Re: question about shadowing built-in names

2006-05-23 Thread John Salerno
Dennis Lee Bieber wrote: >> import MySQLdb >> >> db = connect(blah blooh blee) > > Actually, the above has already failed Should be > MySQLdb.connect... Heh heh, yeah, I totally meant to do that on purpose. ;) > Well, if you have a habit of doing > from module import

question about shadowing built-in names

2006-05-23 Thread John Salerno
I understand that if you reassign a built-in name to your own variable, such as: str = 'hello' then you lose the use of the built-in (in this case str()), but is this also the case in terms of imported names? For example: import MySQLdb db = connect(blah blooh blee) cursor = db.cursor() Now,