How to Write a Decorator with an Optional Argument?

Posted by Bob on Tue 11 April 2017 in Tips • Tagged with decorators, arguments, tricks, tips, cookbook • 3 min read

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.


Continue reading

5 Vim Tricks to Speed up Your Python Development

Posted by Bob on Tue 28 March 2017 in Tools • Tagged with vim, tools, shortcuts, tricks, flake8, howdoi, conque, shell, virtualenv, nerdtree, pyperclip • 4 min read

In this article 5 Vim shortcuts to speed up your Python development.


Continue reading

How to Order Dict Output in Python

Posted by Julian on Thu 16 February 2017 in Tips • Tagged with python, tips, tricks, code, pybites, dicts, data structures • 6 min read

Learn how to order the output of a Python Dict


Continue reading

Shelve It!

Posted by Julian on Tue 14 February 2017 in Learning • Tagged with shelve, python, tips, tricks, code, pybites, database • 3 min read

Shelve basics and a question on how best to manage importing the DB.


Continue reading

From beginner to pro: Python books, videos and resources

Posted by PyBites on Tue 07 February 2017 in Books • Tagged with python, resources, books, videos, reference, tricks, tools • 4 min read

A list of useful Python resources to boost up your skills.


Continue reading

Twitter digest 2017 week 05

Posted by PyBites on Sat 04 February 2017 in Digest • Tagged with twitter, news, Jupyter, Flask, Django, vim, PyCon, HackersGuide, f-string, Github, learnpython, tricks • 2 min read

On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.


Continue reading

Discover Python Help Options

Posted by Julian on Thu 02 February 2017 in Tips • Tagged with python, tips, tricks, code, pybites, help • 3 min read

Discover some of the numerous Python Help functions.


Continue reading

Send Advanced Emails with Python MIME Submodules

Posted by Julian on Wed 01 February 2017 in Tools • Tagged with python, tips, tricks, code, pybites, email, automation, MIME • 3 min read

Learn how to send richer emails with Python and the MIME Submodules


Continue reading

Python Tricks book review

Posted by Bob on Tue 31 January 2017 in Books • Tagged with review, tricks, tips, pythonic, oop, ABC, dicts, cleancode • 2 min read

A review of Dan Bader's Python tricks book.


Continue reading

Send Emails with Python smtplib

Posted by Julian on Thu 26 January 2017 in Tools • Tagged with python, tips, tricks, code, pybites, email, automation • 2 min read

Learn how to send emails using Python


Continue reading