Raymond Hettinger @raymondh
Chief trainer for Mutable Minds. Certified Public Accountant, Retired Python guru. Alloy & TLA⁺ enthusiast. Aspiring pianist. Former pilot. Born at 320 ppm CO₂. rhettinger.wordpress.com Austin, TX Joined March 2008-
Tweets6K
-
Followers75K
-
Following545
-
Likes4K
QOTD: "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." -- C.A.R. Hoare
#Python notes: imap_unordered() has less overhead than imap() and map(). Calls to imap and map do not yield results immediately. Instead, they buffer results in memory until the ordering and completion requirements are met. This eats memory and impairs responsiveness.
Often it is the most basic questions that are the hardest to answer. * What is a number? * What is a straight-line? * What do you mean by "continuous"? * What is "red"? * What is "attention"? * When is something "conscious"? * What is "casual"?
#Python / C tip: Replace log(1 + x) or log(1 - x) with log1p(x) or log1p(-x). Avoiding an unnecessary addition or subtraction saves work. More importantly, it avoids loss of significance *prior* to making the log/log1p call.
#Python recipe of the day: relu = functools.partial(max, 0.0) Presto, you have rectified linear unit for a neural net. geeksforgeeks.org/deep-learning/…
*raises hand* There are dozens of us! DOZENS!!
*raises hand* There are dozens of us! DOZENS!!
In your experience, are LLMs as vulnerable as humans to be thrown-off by incorrect code comments?
#Python notes: The Counter in the collections module supports two kinds of arithmetic. The update() and subtract() methods implement normal arithmetic with possible negative numbers in the results. The "+" and "-" implement saturating arithmetic giving non-negative results.
#Python teaching tool: To demonstrate testing and debugging, I often use this function: def square(n: int) -> int: return sum(n - 2 for i in range(n + 2)) + 4 Tests pass for n=100, n=7, n=1, n=0, n=-1, and n=-2. But fail for n=-5. Tests can't prove the absence of errors.
#Python teaching tip: If someone says, "I didn't get topic X, can you go over it again" that means that your approach wasn't successful. Don't say the same words over again. Instead, approach the topic from a completely different angle. Home in on what works.
#Python tip: The w in r"\w+" stands for "wrong". False negatives: can't you've Mary's cul-de-sac non-profit False positives: _____ 123 Actual word tokens may include apostrophes and hyphens and may exclude underscores or numbers.
For me, the Desmos Graphing Calculator sparks joy. Its API designers are true craftsmen (and women). The tool is approachable for kids, powerful enough for real world use, and completely devoid of cruft/nonsense. It takes discipline to make something this good.
Overall, AI Is Making Humans More Stupid AI makes 1% of us smarter and the remaining 99% stupider. The 1% are using AI to learn and do things, and know how to use it effectively. The remaining 99% blindly use AI to copy homework, write emails they don't read, try vibe coding,…
#Python musing: From a practical point of view, "infinite" is just a special case of "inconveniently large". There is nothing special about: sum(itertools.count()) as compared to: sum(range(10**20))
asyncio is still really wild in 2025. I haven't actively written asyncio code in a while but now that I have done it for a week agian, I noticed that most problems from when I used it last are still unresolved. Problem 1: asyncio.create_task is a massive footgun because it can…
#Python tip: operator.itemgetter() accepts slice objects. >>> from operator import itemgetter >>> chomp_ends = itemgetter(slice(1, -1)) >>> chomp_ends('abcdefgh') 'bcdefg'

Mike Driscoll @driscollis
131K Followers 978 Following Python Book author, blogger, and more @ThePSF #Python
Will McGugan @willmcgugan
36K Followers 2K Following Terminal hater. Hyperborean Python expert, PSF fellow, author, humanist, husband, sometimes wildlife photographer. He/him @[email protected]
Matt Harrison @__mharrison__
167K Followers 880 Following Python 🐍 + Data Science 🚀 trainer @__metasnake__ 🦜 Speaker ✍ Author 👨🏫 Instructor (@Stanford) 📣 DM for Sponsorship
Real Python @realpython
261K Followers 166 Following Online #Python Training & Expert Community: Tutorials, Video Courses, Books, Quizzes...and More! Join 1M+ Pythonistas at https://t.co/VpjtGxdL7J
@ramalho.org lá na b... @ramalhoorg
34K Followers 3K Following Vamo embora dessa josta. Estou no mastodon e também no Blue Sky como https://t.co/GfhF4YqhFj. Isso aqui é controlado por um racista misógino assumido.
Peter Wang 🦋 @pwang
48K Followers 2K Following Chief AI & Co-founder @AnacondaInc; invented @pyscript_dev, @PyData @Bokeh @Datashader. Former physicist. A student of the human condition. bsky: @wang.social
TestDriven.io @testdrivenio
38K Followers 162 Following Teaching practical programming through real-world applications. Tweets by @MikeHerman and @JanGiacomelli.
Samuel Colvin @samuel_colvin
17K Followers 845 Following Building The @pydantic Stack - Validation, AI and Logfire.
Reuven M. Lerner @reuvenmlerner
27K Followers 1K Following Helping you become more confident with Python and Pandas... on BlueSky.
Simon Willison @simonw
117K Followers 6K Following Creator @datasetteproj, co-creator Django. PSF board. Hangs out with @natbat. He/Him. Mastodon: https://t.co/t0MrmnJW0K Bsky: https://t.co/OnWIyhX4CH
Patrick Loeber @patloeber
67K Followers 1K Following DevX @GoogleDeepMind, building Gemini API & AI Studio & Gemma. My views
Pablo Galindo Salgado @pyblogsal
13K Followers 346 Following Python Steering Council and core developer. Python 3.10/3.11 release manager. @ThePSF Fellow. Deals with black holes and parsers. Attracts linker problems.
Stephen Gruppetta @s_gruppetta
9K Followers 725 Following Constantly looking for simple ways to explain complex things You'll find: • Python • Narrative Technical Writing • Track & Field Athletics—Links in pinned post
Bas Steins @bascodes
7K Followers 1K Following Software Developer | Consultant | Trainer #CoffeeChatter ☕ Tweets about 🐍 Python and Software Development 🗄️ Databases (SQL, NoSQL) ☁️ CloudComputing & DevOps
Bob Belderbos @bbelderbos
10K Followers 1K Following Software developer passionate about building useful tools and helping people grow their #Python and #programming skills through @Pybites
Anthony Shaw @anthonypjshaw
21K Followers 3K Following Python, Cloud and OSS at Microsoft. Author of "CPython Internals". x3 Father, Christian, PSF Fellow, Fellow at Macquarie University @[email protected]
Python Software Found... @ThePSF
687K Followers 127 Following The nonprofit organization behind the Python programming language. For help with Python code: https://t.co/XDHPttz2Xv On Mastodon: @[email protected]
Łukasz Langa moved t... @llanga
22K Followers 576 Following X is a compromised platform. Find me here: @[email protected], @lukasz.langa.pl on BlueSky, and -- I can't believe I'm saying this -- on LinkedIn.
Jake VanderPlas @jakevdp
39K Followers 396 Following Coffee and Python, preferably in that order. Dad of two girls; once-astronomer; author of @pydatasci, working on JAX and Altair. https://t.co/yKeqcBuFtA
Garrigus Calli💕�... @GarrigusC31558
33 Followers 528 Following
Keer Manuela @KeerManuel78478
25 Followers 539 Following
Keith McCormick @Keith_McC_6
341 Followers 1K Following
RSFHerlihy Ayanna🤍... @pziczrxf70450
13 Followers 420 Following
BITCOIN INVESTMENT �... @Ellen8199
59 Followers 2K Following invest and get X3 your profit without one week,we’ve a lot of testimony’s.
Piotr @piotr__celinski
637 Followers 871 Following Obywatel Planety Ziemia, Europy, Polski, Warszawy, Ursynowa. W tej kolejności. ***** *** aż do całkowitego za*******. I konfederuskich.
panican 🔆 👊🇨... @team_chao
794 Followers 2K Following 🕎 not canadian. blocking all advertisers, so sorry if anyone nice gets blocked
MOHAMMED SAAD @MOHAMMEDSA14474
0 Followers 51 Following
Jelly @yelidely
5 Followers 302 Following
Antionette Larkan @Antionette48421
16 Followers 244 Following
Rachid @quatrinos
95 Followers 2K Following
MQ @funky_matfiej
0 Followers 33 Following
Mundia. @JMundiaK
399 Followers 4K Following In pursuit of knowledge. “above all, do not lie to yourself.” ― dostoevsky
Mohamed Shokry @Mohamed0651281
18 Followers 566 Following
Lavallie Naya😛🥰 @LavallieNa90740
28 Followers 437 Following
Krukiel Reyna😚🖤 @KrukielR2029
37 Followers 538 Following
Vikas Mishra @VIKASMISHRA44
59 Followers 1K Following Brainstormer|Thinker|CuratorlDisgitally Socially Activist✨️Inspiration (Modi Ji 🙏) |Ex Research Fellow|Ex BDM|Ex Civil Service Aspirants|Next AI to AGI to ASI
Krystina Rekas @krystina44864
13 Followers 260 Following
Saskia Benedix🤍 @BenedixSas55764
17 Followers 436 Following
Millan Nidia @millan_nid7686
21 Followers 391 Following
riuSRawdon Larissa�... @udmqpn858930
32 Followers 547 Following
Luther @Luther_Dagson
4K Followers 5K Following Money cant buy health, but it can buy a bottle of our freshly pressed juice which is almost the same thing
Shullick Junko💖�... @shullick76327
18 Followers 402 Following
QuantumLambda @QLambda35187
0 Followers 70 Following
ieogChrissy Colander�... @ktkrlz40150
11 Followers 255 Following
Ivory Heintz💜 @heintz91275
19 Followers 272 Following
Pedro Leao @pjubilotleao
27 Followers 180 Following Work in Risk, Finance, Data Science and Probabilities. Love Leisure. Enjoy Books, Combat Sports, Lifting Weights, Kettlebells and Z2 Cardio.
SanchosDonkey @sanchos_donkey
8 Followers 296 Following
Avni Isgrigg @AIsgrigg92951
14 Followers 411 Following
Danila @gtcaa
420 Followers 1K Following • Multimodal genomics @Stanford w/ @anshulkundaje & @jengreitz • Steering council & core dev @scverse_team 👾 • @EMBL alumnus PhD w/ @OliverStegle @StatGenomics
Karen @Nawpsear5zFkJu
22 Followers 2K Following Getting along with people who can play is called happiness, and getting along with people who can't play is called overtime https://t.co/XK7TSGy94D
Cherry Suthoff🤍 @CherrySuth84853
21 Followers 386 Following
HxidQuyen TandetzkeSD... @hxidquyen90445
11 Followers 449 Following
Lydia Silkwood🍑 @LydiaSilkw20713
22 Followers 508 Following
42sTabitha JauchmBXYH... @42stabitha97056
20 Followers 428 Following
Luria Pilar @LuriaPilar46066
16 Followers 423 Following
boPwnAna ErmitaQElXY8... @bopwnana73235
17 Followers 451 Following
Kaylee Dorch @KDorch8360
14 Followers 400 Following
Packard Yesenia @PackardY2413
33 Followers 522 Following
Gmolate @gmolate
1K Followers 6K Following CTI 🎩👁️🗨️Politics & Science🧪🦷⚕️👨⚕️🏥🦠 #Cypherpunk 🇨🇱 🇦🇶 #bitcoin #OSINT #Cybersecurity opiniones? no!. + bien payloads para humanos.
Vachula Jada @VachulaJ11411
18 Followers 447 Following
Viorel Emeli👅🤤 @EmeliViore64569
23 Followers 380 Following
A9grEvery Lake💌1QT... @1qt0tbmoo31776
17 Followers 416 Following
yeks @paa_yeku
11 Followers 72 Following
Pierre De Luca @PierreDeLuca
93 Followers 422 Following
shiredude95 @shiredude95
13 Followers 289 Following
Will McGugan @willmcgugan
36K Followers 2K Following Terminal hater. Hyperborean Python expert, PSF fellow, author, humanist, husband, sometimes wildlife photographer. He/him @[email protected]
Matt Harrison @__mharrison__
167K Followers 880 Following Python 🐍 + Data Science 🚀 trainer @__metasnake__ 🦜 Speaker ✍ Author 👨🏫 Instructor (@Stanford) 📣 DM for Sponsorship
Armin Ronacher ⇌ @mitsuhiko
60K Followers 836 Following Creator of Flask; A decade at @getsentry; Building new things — love API design & AI. Bypassing Permissions. Husband and father of 3 — “more nuanced in person”
@ramalho.org lá na b... @ramalhoorg
34K Followers 3K Following Vamo embora dessa josta. Estou no mastodon e também no Blue Sky como https://t.co/GfhF4YqhFj. Isso aqui é controlado por um racista misógino assumido.
Guido van Rossum @gvanrossum
288K Followers 480 Following Python's BDFL-emeritus, Distinguished Engineer at Microsoft, Computer History Fellow, fully vaccinated. Opinions are my own. He/him.
Peter Wang 🦋 @pwang
48K Followers 2K Following Chief AI & Co-founder @AnacondaInc; invented @pyscript_dev, @PyData @Bokeh @Datashader. Former physicist. A student of the human condition. bsky: @wang.social
Reuven M. Lerner @reuvenmlerner
27K Followers 1K Following Helping you become more confident with Python and Pandas... on BlueSky.
Simon Willison @simonw
117K Followers 6K Following Creator @datasetteproj, co-creator Django. PSF board. Hangs out with @natbat. He/Him. Mastodon: https://t.co/t0MrmnJW0K Bsky: https://t.co/OnWIyhX4CH
PyCoder’s Weekly @pycoders
124K Followers 3 Following 🐍📰 Your weekly dose of all things Python! The best articles, projects, and events curated for you.
Anthony Sottile @codewithanthony
6K Followers 297 Following
Pablo Galindo Salgado @pyblogsal
13K Followers 346 Following Python Steering Council and core developer. Python 3.10/3.11 release manager. @ThePSF Fellow. Deals with black holes and parsers. Attracts linker problems.
Trey Hunner @treyhunner
22K Followers 434 Following I share weekly Python tips in my newsletter & I run Python Morsels 🐍🍪 💌: https://t.co/s83bzhUjHC 🐘: https://t.co/Q5KO3SJBqI 🦋: https://t.co/HrIl3uLJ0L
Anthony Shaw @anthonypjshaw
21K Followers 3K Following Python, Cloud and OSS at Microsoft. Author of "CPython Internals". x3 Father, Christian, PSF Fellow, Fellow at Macquarie University @[email protected]
Python Software Found... @ThePSF
687K Followers 127 Following The nonprofit organization behind the Python programming language. For help with Python code: https://t.co/XDHPttz2Xv On Mastodon: @[email protected]
Łukasz Langa moved t... @llanga
22K Followers 576 Following X is a compromised platform. Find me here: @[email protected], @lukasz.langa.pl on BlueSky, and -- I can't believe I'm saying this -- on LinkedIn.
Jake VanderPlas @jakevdp
39K Followers 396 Following Coffee and Python, preferably in that order. Dad of two girls; once-astronomer; author of @pydatasci, working on JAX and Altair. https://t.co/yKeqcBuFtA
Marlene Mhangami @marlene_zw
23K Followers 3K Following Python & AI @Microsoft🐍✨ Chair @TheOfficialACM, @ThePSF Fellow. Seeing open futures👁️ ex: @nvidia|@voltrondata|@pyconafrica chair👩🏾💻🌍❤️
Scientific Python @SciPyTip
210K Followers 18 Following Tweets about SciPy (Scientific Python) and related topics from @JohnDCook.
Matthew Rocklin @mrocklin
9K Followers 88 Following Open source maintainer. @dask_dev author. CEO at @CoiledHQ Additionally I try to be a decent human and help the world from melting.
Lower Colorado River ... @LCRA
15K Followers 531 Following Official news and emergency communications from the Lower Colorado River Authority. Account not monitored 24/7.
Jon Crall @erotemic
72 Followers 153 Following Open Source Enthusiast, PhD, CV/ML Researcher, I want to understand the Cosmos as it is. Born at 353 ppm CO₂. I value honesty and integrity over saving face.
Aaron Meurer @asmeurer
2K Followers 727 Following Posting about AI, Python, @SymPy, and other nonsense.
Sebastian Raschka @rasbt
358K Followers 1K Following ML/AI researcher & former stats professor turned LLM research engineer. Author of "Build a Large Language Model From Scratch" (https://t.co/O8LAAMRzzW).
Lauren Boebert @laurenboebert
4.9M Followers 2K Following Lauren Boebert for Congress: CO-04 Congresswoman, Mom & Gigi with a fierce love for liberty. Sent to DRAIN THE SWAMP drier than a CO irrigation ditch in July.
DHH @dhh
564K Followers 135 Following Father of three, Creator of Ruby on Rails + Omarchy, Co-owner & CTO of 37signals, Shopify director, NYT best-selling author, and Le Mans 24h class-winner.
The White House @WhiteHouse
2.8M Followers 6 Following The Golden Age of America Begins Right Now. 📱 Text USA to 45470 to receive alerts.
Vice President JD Van... @VP
1.1M Followers 20 Following 50th Vice President of the United States. Christian, husband, father. Proud to serve the American people with President Donald J. Trump 🇺🇸
President Donald J. T... @POTUS
3.6M Followers 4 Following 45th & 47th President of the United States. The Golden Age of America Begins Right Now.
Elizabeth Weiss @eweissunburied
8K Followers 416 Following Professor Emeritus of Anthropology at SJSU. National Association of Scholars Board Member. For science over superstition. Research, not reburial.
WestlakeNation @Westlake_Nation
8K Followers 214 Following The official Twitter handle of Westlake Nation. Dedicated to promoting Chaparral student-athletes. #GoChaps
Miranda Green @mirandacgreen
21K Followers 4K Following National Reporter. I write The Understory for Atmos Mag. Words at BBC, NYMag. Join my Substack: Evergreen
Liz Wheeler @Liz_Wheeler
1.1M Followers 956 Following Host of The Liz Wheeler Show. Author of “Hide Your Children: Exposing the Marxists Behind the Attack on America’s Kids”
Polymarket @Polymarket
645K Followers 5K Following The world's largest prediction market. Trade politics, news, culture, sports & tech. Discord: https://t.co/tzKrbDf7dZ Tag @AskPolymarket for live odds.
Thor Whalen @thorwhalen1
26 Followers 37 Following Director of AI research at Analog Devices. Pure math. Pure music. Constantly trying to find ways to code less and manage even less.
Tim Peters @UncleTimmyP
2 Followers 3 Following
Simon Burton @fridaysimon
724 Followers 635 Following Mathematical physics, quantum computers. @[email protected]
Malcolm Jones @bossjones
3K Followers 941 Following TONY DARK. Black Tony Stark. Founding Team @Behance (acq'd by @Adobe). Sr AI Eng. NUPE, WAHOO. Call me #HERON, SON OF BABYLON,Le #Hyena. I build shit. HELLDIVER
Real Time with Bill M... @RealTimers
225K Followers 1K Following He's not in it for the likes. Watch Real Time with @BillMaher Fridays on @HBO & @HBOMax. The contents of this account don't reflect the opinions of HBO.
Massimo @Rainmaker1973
3.3M Followers 150 Following Engineer. Selecting and curating pictures and videos trying to awaken your sense of wonder. Science, tech, art, weather, space, the unusual around us.
Cassandra B.C. @michaeljburry
1.4M Followers 0 Following
Jason Huggins 🛠️ @hugs
11K Followers 7K Following i make robots 🤖 at @tapsterbot. started @saucelabs, @seleniumhq, @appiumdevs. now ➡️ @valetnet go irish ☘️
Moondra @Moondra2017
58 Followers 23 Following I love Science Math Tech. I have a Youtube channel for Python Programming and Health. Currently learning about biohacking, data, and Computer Vision.
Dougall @dougallj
3K Followers 436 Following he/they | mastodon: https://t.co/d5YdiePIr8 / @[email protected]
Oz @oznova_
6K Followers 610 Following Teaching computer science, learning bio, and homeschooling. Check out https://t.co/7DJHcrvyg1 and https://t.co/pDTuKaskQZ
Abakcus @abakcus
87K Followers 291 Following Abakcus is the best curation site for math and science. Please subscribe my weekly newsletter! It is FREE! https://t.co/uPkgdO2mwT
Clément Canonne (on ... @ccanonne_
37K Followers 65 Following Senior Lecturer @Sydney_Uni. Formerly Postdocs @IBMResearch, @Stanford; PhD @Columbia. Converts ☕ into puns: sometimes theorems. He/him. @ccanonne.bsky.social
Jay Cummings @LongFormMath
44K Followers 597 Following Math prof. Author of long-form textbooks on proofs (https://t.co/YqXnxDmOe0), real analysis (https://t.co/3IGQ6BIx5Z) & math history (https://t.co/KkXMGTxCDK).
Roy Kishony @RoyKishony
3K Followers 205 Following Systems Biology, CS, Microbial Evolution: Can we predict antibiotic resistance? Can we drive it backwards?
Jay Bhattacharya @DrJBhattacharya
711K Followers 6K Following Emeritus Professor Stanford School of Medicine. MD, PhD. NIH Director.
Human-lawyer hybrid @Regulawyer
1K Followers 1K Following Not legal advice. Law Science and Tech insights that impact your life. (also, shitposting)
Tulsi Gabbard 🌺 @TulsiGabbard
3.8M Followers 1K Following Director of National Intelligence. Former Presidential candidate & Congresswoman. Soldier. NYT bestselling author. (Views do not reflect position of USG/DoD)
Matt Taibbi @mtaibbi
2.0M Followers 4K Following Author of INSANE CLOWN PRESIDENT, I CAN’T BREATHE, SPANKING THE DONKEY, and SMELLS LIKE DEAD ELEPHANTS
Hudson River Trading @weHRTyou
7K Followers 132 Following NYC-based trading and technology firm with offices around the globe. HRT is an equal opportunity employer; so whoever you are, we'd love to get to know you.
John Sailer @JohnDSailer
19K Followers 890 Following Senior Fellow @ManhattanInst. Investigating higher ed. FOIA fan. Tall. Opinions mine.
Verified @verified
4.1M Followers 1 Following Individuals can get a blue checkmark with @Premium. Organizations can sign up for Verified Organizations here: https://t.co/uFOsfTiR2A
Premium @premium
1.2M Followers 2 Following Subscribe for the best X experience: ad-free, post edits, content monetization, Grok AI with higher limits, video downloads, long posts, X Pro, and more.
Magnus Carlsen @MagnusCarlsen
1.1M Followers 139 Following World Chess Champion. Playing for @TeamLiquid. Download my app here👇
Austin-Bergstrom Inte... @AustinAirport
43K Followers 973 Following AUS is the gateway to Central Texas. This account is monitored on weekdays from 9-5 📞 512-530-2242 📧[email protected] 🚗 Parking info: 512-530-3300
Philosophy Path @PhilosophyPath
16K Followers 1 Following Quotes ◆ Philosophy ◆ Psychology ◆ Discipline.