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

  • Precision, recall, sensitivity and specificity
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • 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
Create your own website, free on WordPress.com.Create your own website.
Start free