Generators are Awesome, Learning by Example

Posted by Julian on Fri 17 March 2017 in Concepts • Tagged with python, tips, code, pybites, generators, iteration, yield • 5 min read

Learn what a Generator is and check out some different examples.


Continue reading

Don't let mutability of compound objects fool you!

Posted by Bob on Tue 07 March 2017 in Concepts • Tagged with list, mutable, copy, deepcopy • 3 min read

In this article I explain the difference between shallow versus deep copy with a working example. It's an important concept when working with compound objects.


Continue reading

How To Build a Simple API with Flask and Unit Test it

Posted by Bob on Fri 03 March 2017 in Concepts • Tagged with APIs, Flask, REST, curl, testing, unittest, inventory • 3 min read

In this post I will create a simple API with Flask and test it with curl and unit testing its HTTP methods.


Continue reading

Python's data model by example

Posted by Bob on Wed 25 January 2017 in Concepts • Tagged with datamodel, oop, magicmethods, builtin, pythonic, iterators, slicing • 14 min read

After last post on OOP a logical follow-up is Python's data model. We use the great Fluent Python book to code up an example of our own, showing the powerful way you can leverage this data model. You can download the notebook here.


Continue reading

Everything is an Object, Python OOP primer

Posted by Bob on Tue 24 January 2017 in Concepts • Tagged with tutorial, oop, objectoriented, programming, inheritance, polymorphism, ABC, encapsulation, property • 13 min read

I created a notebook on OOP (object oriented programming) in Python.


Continue reading

Python Iteration

Posted by Julian on Thu 19 January 2017 in Concepts • Tagged with python, tips, tricks, iteration, resources • 3 min read

Iteration in Python is incredibly simple compared to C and other languages. It's easy... maybe a little TOO easy...


Continue reading