-
Archives
- April 2026
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Category Archives: Python
Did You Know? Python’s Walrus Operator Can Make Your Code Cleaner
Did you know? Since Python 3.8, you can use the walrus operator ( := ) to assign a value to a variable as part of an expression. It’s a small piece of syntax that can meaningfully tidy up loops and … Continue reading
Did You Know? Python Dictionaries Preserve Insertion Order
Did you know? Since Python 3.7, the built-in 1dict type officially preserves the order in which keys are inserted. Before that, if you needed ordering guarantees you had to reach for 1collections.OrderedDict . Today, a plain dictionary is enough for … Continue reading
Python Sample Script
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990import re import ntpath import glob import subprocess # In order to get this tool to run correctly, you’ll need python installed (duh!) and graphviz basedir = "/home/ronald-dev/allBashScript/" ”’ This function will scan a bash file, and look for any … Continue reading
Posted in Python
Leave a comment