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
130K Followers 980 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__
166K Followers 881 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. 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 163 Following Teaching practical programming through real-world applications. Tweets by @MikeHerman and @JanGiacomelli.
Samuel Colvin @samuel_colvin
17K Followers 845 Following Building @pydantic Logfire - uncomplicated observability for Python.
Reuven M. Lerner @reuvenmlerner
27K Followers 1K Following Helping you become more confident with Python and Pandas... on BlueSky.
Simon Willison @simonw
115K 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
66K Followers 1K Following DevX @GoogleDeepMind, building Gemini API & AI Studio & Gemma. My views
Pablo Galindo Salgado @pyblogsal
13K Followers 347 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 724 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
686K 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
Oladele Taofeek @OladeleTaofeek5
5 Followers 179 Following
Umesh Kumar @UmeshKu86889408
101 Followers 6K Following
Paul Zieba @pziebamortgage
1K Followers 3K Following Edmonton Mortgage Broker | U of A Intl Business & Marketing grad | $400M+ closed | Sharing insights so you can make smarter mortgage decisions
Nico Nico @crist1an001
121 Followers 2K Following
Mr Nuwagaba @MrNuwagaba
1K Followers 592 Following Creator |Connector |Strategic Thinker Everything rises and falls on leadership; mission first, people always❤️
Bharat Virutkar @bharat_990
6 Followers 190 Following
Ajit Trivedi @AjitTrivedi99
1 Followers 371 Following
Carlos Ortiz @orealus
0 Followers 5 Following
José Claro @josepclaro
131 Followers 249 Following
H Marko @markoharryz
36 Followers 371 Following
Ou Dara @ou65857
52 Followers 688 Following Self trustworthy confidence and justice with positive mindset.
Mohammad Astaneh @mohammadastane
206 Followers 285 Following -Atmospheric science PhD student @UCDavis -Air quality engineer
Kator @realest_kator
26 Followers 176 Following Rap is my sport Tech & Science is my life 💻Software Developer💻
Gareth Jordan @gareth_jordan
150 Followers 442 Following
Jav @javvvx
209 Followers 523 Following
Ariana Smith @ArianaSmit34889
25 Followers 57 Following
Krupakar @Krupakar37
2 Followers 34 Following
George @GeorgeScript
34 Followers 145 Following Data Scientist | Creating Predictive Model for Business Impact | Machine Learning | Python, SQL
Oleksii Golubkov @OleksiiGolubkov
1 Followers 21 Following
云创兽Ai @Salbou7934921
1 Followers 107 Following 📊 independent girl all in on richly analyzing macro trends! hungry for trade ideas. DM me for REITs! 🚀 #Futures #Trading
smile @Smilex_P
220 Followers 5K Following
Salah DZ @Salah134549
0 Followers 27 Following
Guang Hao @guang_hao_24
16 Followers 513 Following
Robot Auto Posting @RobotAutopost
2 Followers 87 Following Anda bebas jalan-jalan, bisnis tetap jalan dengan robot marketing auto posting
Andrei Potlogea @APotlogea
1K Followers 6K Following Assistant Professor of Economics at the University of Edinburgh, Urban Economics, Economic Geography, International Trade
Pawan Suman @iampwnsmn
4 Followers 9 Following Learning • Building • Growing 🚀 | Follow for the journey 📈
BiswajitB @biswajitb
251 Followers 5K Following
Edward Miller @EdwardM42568988
0 Followers 5 Following
George @George320872160
226 Followers 548 Following
PyCon UK @PyConUK
5K Followers 224 Following Manchester, Friday 19th September to Monday 22nd September 2025. All enquiries, please email: [email protected] @[email protected] bsky: @PyConUK.org
Rahvita Solutions @ReactCoders
118 Followers 2K Following A software services company specializing in building scalable applications using React Native, React JS and Python. React Coders — Powered by Rahvita Solutions
Alberto @albertdsc
481 Followers 4K Following Software Engineer, Music Addicted and opinions are my own (not in that order)
Claudio Jose Abud @claudio_abud
2 Followers 6 Following
Muhammad Essam @MoEssamKhattab
0 Followers 32 Following Tech enthusiast, driven and detail-oriented.
Derrick Odoom @DerrickOdo96439
1 Followers 191 Following
Ravikumar @RaviKamleshR
47 Followers 765 Following
buraymij @buraymij
2 Followers 428 Following
kamyar @kamyar1992
1 Followers 40 Following
Madhusudan Somvanshi @sanataniMadhu25
2 Followers 52 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__
166K Followers 881 Following Python 🐍 + Data Science 🚀 trainer @__metasnake__ 🦜 Speaker ✍ Author 👨🏫 Instructor (@Stanford) 📣 DM for Sponsorship
Armin Ronacher ⇌ @mitsuhiko
59K Followers 828 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. 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
115K 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 347 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
686K 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
209K 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 154 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 726 Following Posting about AI, Python, @SymPy, and other nonsense.
Sebastian Raschka @rasbt
354K 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.8M 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
554K Followers 131 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.5M 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.5M Followers 4 Following 45th & 47th President of the United States. The Golden Age of America Begins Right Now.
Elizabeth Weiss @eweissunburied
8K Followers 412 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 954 Following Host of The Liz Wheeler Show. Author of “Hide Your Children: Exposing the Marxists Behind the Attack on America’s Kids”
Polymarket @Polymarket
635K Followers 5K Following Trade politics, news, culture, sports & tech. Discord: https://t.co/tzKrbDf7dZ Tag @AskPolymarket to get 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
728 Followers 639 Following Mathematical physics, quantum computers. @[email protected]
Malcolm Jones @bossjones
2K 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
224K 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.1M 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
60 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 432 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 66 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 598 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
710K 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 133 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
20K Followers 899 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 974 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.