-
Hey PyConners! Here is the latest update of the interactive PyConUS schedule. https://gist.github.com/ptmcg/d851232d6b90812e1c01c990ecec516c
Now supports searching by time frames, such as "Saturday 3pm-4pm". Also now includes the plenary sessions. Look for me there and get your "Python in a Nutshell 4th Ed" badge pin - quantities limited! #pyconUS #python #pycon2026 -
Austin art friends - I am showing one my earliest fractal art pieces in the Bee Cave Arts Foundation's Members Show, beginning next Saturday, May 9 in the Bee Cave Gallaria (same weekend as the Pecan Street Fair). The show is located in the BCAF space, The Hive, across from H&M and Dillards. Hope to see you there! #abstractart #digitialart #computerart #art #beecavearts
-
Another Medium article! I can do this every 8 months or so. This time I walk thru making re.sub accessible using a decorator. Not interested yet? How about if I used this title? "The One Simple Trick Big Regex Doesn't Want You To Know" https://medium.com/@ptmcg/re-sub-as-a-decorator-madness-717eea7ded50 #python #regular_expressions #decorators
-
Some things I'm especially proud of in plusminus (my Python package for parsing and evaluating infix notation arithmetic):
- |absolute value| expressions
- ° symbol as a unary postfix operator, to convert degrees to radians: sin(π/2) vs. sin(90°)
- exponents ² and ³
- √ and ³√ operators (both unary and binary, so you can write 2√2)
- mathematical constants e, π, φ, and τ
- set operators ∈, ∉, ∩, and ∪
- safe eval of untrusted inputs
Try it at https://ptmcg.pythonanywhere.com/plusminus
#python #parsing #infix