ways to declare empty set variable

Paul Rubin http
Tue Feb 12 16:26:24 EST 2008


"Sun" <as at hut.at> writes:
> I was wondering why can't I use a format as "var = {} " to "var=list()" in 
> set variable, and decided not to  bother with it.

In 3.0 you may be able to say {,} but there is a contingent that would
just as soon get rid of all that special syntax, so you'd say list()
instead of [], dict() instead of {}, etc.



More information about the Python-list mailing list