Simple Object assignment giving me errors

Chris Angelico rosuav at gmail.com
Wed Feb 12 16:48:31 EST 2014


On Thu, Feb 13, 2014 at 8:42 AM, Nir <nirchernia at gmail.com> wrote:
> Also, UserDict is a built in module. I just typed it out so as to give reference or any clue as to why I cant instantiate jeez.

Recommendation for next time: Don't type it out, copy and paste it.
Show the actual code you ran, and the actual error message.

As a debugging/exploration technique, btw, copying in the definition
of something from the standard library is often useful. You can then
cut it down to the barest minimum that does what you want, and post
that. But if you're using UserDict exactly as it is in the stdlib, you
can simply show your import statement and we'll know what you mean.

ChrisA



More information about the Python-list mailing list