When playing with decorators (this week’s challenge) I got stuck: how do you write a decorator that takes an optional argument? Python cookbook 3rd ed edition to the rescue. In this post how I failed my way to the right solution.
Articles on tips
Twitter digest 2017 week 14
By PyBites Team on 9 April 2017
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
Twitter digest 2017 week 13
By PyBites Team on 2 April 2017
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
Twitter digest 2017 week 12
By PyBites Team on 26 March 2017
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
PyBites Module of the Week – ipaddress
By Julian Sequeira on 23 March 2017
While playing around with code for our post on generators we discovered the ipaddress module, part of the Standard Library. Such a handy little module!
Twitter digest 2017 week 11
By PyBites Team on 19 March 2017
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
Generators are Awesome, Learning by Example
By Julian Sequeira on 17 March 2017
Learn what a Generator is and check out some different examples.
10 Tips to Get More out of Your Regexes
By Bob Belderbos on 15 March 2017
Regular expressions can be arcane, yet when used with care they can also be very powerful. In this post a couple of tips to get more out of your regexes when using Python’s re module.
Comparing Lists with Difflib
By Julian Sequeira on 8 March 2017
Learn to compare blocks of text with the difflib module.
Pythonic String Formatting
By Julian Sequeira on 2 March 2017
The formatting of strings has been a hot topic in Python and something that I struggled with at the beginning. It’s quite interesting to see how it’s evolved over time to be what it is today!