Skip to content

Yes this repository will be renamed soon...

Notifications You must be signed in to change notification settings

treyhunner/python-oddities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Oddities and Peculiarities

These are snippets of Python code with results that you may find surprising, especially if you're new to Python.

Categories

  • gotchas: these sometimes bite new Python programmers. The most useful sort of oddity to discuss.
    • Example: mutable default function arguments
  • curiosities: a peculiarity that's unexpected, but not something you'd care about day-to-day
    • Example: -5 to 256 are always identical but other numbers aren't
  • absurdities: absurd code, just for the fun of it
    • example: {*()} vs. set()

About

Yes this repository will be renamed soon...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors