Other articles


  1. How wide are the underlying data types for Python integers - 2021 March 11

    Here's how you can find out how many bytes wide the underlying data structures are for Python integers.


    read more
  2. Dependency management in code files is not great - 2021 January 03

    Managing dependencies via executable code files seems OK but actually turns into a massive pain, here's why.


    read more
  3. Default parameters and sentinel objects - 2020 August 18

    How you can use sentinel objects to define default parameters in Python without running into the mutable default parameter pitfall.


    read more
  4. Python's data model and intuitive operators - 2020 July 11

    Being familiar with the implications of Python's data model will help you be able to make more intuitive APIs.


    read more
  5. PyPi web API - 2020 May 12

    PyPi has a web API that will give you JSON encoded information about packages.


    read more
  6. Updating your setup.py files to the newer format - 2020 May 11

    One of the not so nice things about legacy installable python packages is the executable nature of setup.py files. This means amongst other things that you can't reliably determine the contents of some setup.py files without arbitrary code execution. This is what led to PEP 518 which specified a declarative metadata format that can be stored in easy to parse file. Updating is a pain though, but thankfully there's some tooling that makes this easier as I found out recently.


    read more
  7. Creating your own user events in pygame - 2020 April 21

    Here's how you can create your own user events in Pygame.


    read more
  8. Unicode whitespaces in Python - 2020 April 20

    Getting a list of all the Unicode whitespace characters is less straightforward than I would have hoped.


    read more
  9. Finding out what a python script imports - 2020 April 16

    Finding out what a Python module imports


    read more

Page 1 / 5 »