Skip to primary content
Skip to secondary content

Ubershmekel's Uberpython Pythonlog

Python, music, sports, gaming and philosophy.

Ubershmekel's Uberpython Pythonlog

Main menu

  • Home
  • About

Tag Archives: breaks

I broke the python interpreter today

Posted on September 5, 2009 by ubershmekel
Reply

locals() can let you add non-strings to your local namespace, check it out…

>>> locals().update({3:2})
>>> dir()
Traceback (most recent call last):
File “”, line 1, in
TypeError: unorderable types: int() < str()

Posted in Uncategorized | Tagged breaks, dictionary, interpreter, locals, python | Leave a reply

Top Posts

  • Why I'm not leaving Python for Go
  • Precision, recall, sensitivity and specificity
Create a free website or blog at WordPress.com.
  • Subscribe Subscribed
    Ubershmekel's Uberpython Pythonlog

    Have a WordPress.com account? Log in now.

  • Ubershmekel's Uberpython Pythonlog
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
Design a site like this with WordPress.com
Get started
Sponsor
SponsoredKunjungi sekarang
Promo