Namespace issues...
cghost
phreacker at aol.com
Sat Feb 14 05:59:27 EST 2004
More information about the Python-list mailing list
Sat Feb 14 05:59:27 EST 2004
- Previous message (by thread): Namespace issues...
- Next message (by thread): Namespace issues...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i am very confused...why does the following script modify the global list "l":
l=[]
def x():
l.append("xyz")
x()
print l
but the same script applied to a single variable doesnt..:
l="moe"
def x():
l+="howdy"
x()
print l
- Previous message (by thread): Namespace issues...
- Next message (by thread): Namespace issues...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list