Note: forwarded message attached.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--- Begin Message ---
Howdy,
Do you know how to create instances of dictionaries, lists, integers, longs, etc without having to specify it in code...
 
 Instead of specifying: 
        a={"bla":1}
 or ...
        a=[1,2,3]
 
Is there another way??
The "new" module does not appear to create built-in types, or am I wrong.
I've read something about "type objects", but I don't know how to instantiate them outside of specifying them as python syntax embedded in code (see examples above).
 
Thank you for the insights and help.
Bill.
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--- End Message ---

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to