Filter
Exclude
Time range
-
Near
Triton's focus on developer productivity for custom DL primitives is a significant leap. The ability to write high-performance code with Pythonic syntax, akin to high-level C or Julia, unlocks new possibilities for specialized hardware acceleration. Link to repository will be below. #LLM #Python #DeepLearning
1
1
11
Replying to @PythonPr
Much more pythonic, even professionals forget this
43
Replying to @NAITOTokihiro
pythonic people will angry 😡
1
67
🐍 Make It Pythonic A one-liner can look smart… until you come back next week and ask: “What was I trying to do here?” 😅 Instead of writing: message = "Allowed" if age >= 18 and has_id and not is_banned else "Denied" ✨ Write it the Pythonic way: can_enter = age >= 18 and has_id and not is_banned message = "Allowed" if can_enter else "Denied" The condition is now named. So the code tells the reader what the rule means, not just how it works. One line is enough only when one line is clear. #Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
13
AsyncTrix retweeted
Stop writing ugly Python loops 🤯 These 3 habits will make your code instantly cleaner & more Pythonic 👇 -> enumerate() > range(len()) -> List comprehensions over append loops -> .get() for safe dict access Save this for your next refactor 🔥
3 Python Habits That Make Your Code Cleaner 🐍
3
1
7
376
Khalid | Python Tasks Adventurer 🐍 retweeted
🐍 Make It Pythonic The or trick looks nice… until a real value disappears. Instead of writing: quantity = user_quantity or 1 ✨ Write it the Pythonic way: quantity = 1 if user_quantity is None else user_quantity If user_quantity is 0, the first version replaces it with 1. But sometimes 0 is a valid value. Use is None when you only want a default for missing values. When 0 is a real answer, do not let or erase it. 🐍 #Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode #Developer #AI #PythonTips
1
27
PYTHONIC Unleash Groove‑Driven Assault “Set You Free” insaneblog.net/2026/06/pytho… #metal
14
the retweeter 🤘🎸🤘 retweeted
Pythonic - Set You Free youtu.be/kJw7vOY-lU0?si=21_b… via @YouTube
1
14
Saskatoon's PYTHONIC Unleash Groove‑Driven Assault “Set You Free” From New EP "Laws of Karma" Out July 2026 ashermediarelations.com/2026… via @AsherMedia
5
Replying to @JohnCleese
Thank you sir. We love you and are deeply grateful, including for every Monty pythonic laugh, every bit of abuse Manuel had to take for the hotel to run, your beautiful energy 🙏🏿🌏🙏🕊️🤞🏽💙
1
144
Other frameworks worth knowing: CrewAI — role-based multi-agent, easiest to read AutoGen — Microsoft's, code-heavy, very flexible Pydantic AI — type-safe, very Pythonic Mastra — TypeScript-native (rare!), if you live in Node Pick by language style, not by hype.
1
36
25 List Comprehension tricks you should know 🐍 ① Basic list creation → [x for x in range(5)] ② Squares → [x*x for x in nums] ③ Even numbers → [x for x in nums if x % 2 == 0] ④ Odd numbers → [x for x in nums if x % 2] ⑤ Convert to uppercase → [name.upper() for name in names] ⑥ String lengths → [len(word) for word in words] ⑦ Filter long words → [w for w in words if len(w) > 5] ⑧ Flatten a nested list → [item for row in matrix for item in row] ⑨ Create pairs → [(x,y) for x in a for y in b] ⑩ Replace values → ["Adult" if age >= 18 else "Minor" for age in ages] ⑪ Extract dictionary keys → [k for k in data] ⑫ Extract dictionary values → [v for v in data.values()] ⑬ Dictionary comprehension → {x: x*x for x in nums} ⑭ Set comprehension → {x % 5 for x in nums} ⑮ Remove duplicates → list({x for x in nums} ⑯ Filter files → [f for f in files if f.endswith(".csv")] ⑰ Clean strings → [s.strip() for s in names] ⑱ Convert data types → [int(x) for x in values] ⑲ Nested conditions → [x for x in nums if x > 0 and x % 2 == 0] ⑳ Create a matrix → [[0 for _ in range(3)] for _ in range(3)] ㉑ Reverse strings → [s[::-1] for s in words] ㉒ First letters → [word[0] for word in words] ㉓ Boolean mapping → [score > 50 for score in scores] ㉔ API data extraction → [user["name"] for user in users] ㉕ Data cleaning shortcut → [x for x in data if x is not None] List comprehensions aren't just shorter loops. They're one of the most Pythonic ways to write clean, readable code. 🐍⚡
6
22
935