Re: Why is this?

2005-08-12 Thread Peter Mott
Duncan Booth wrote: > Peter Mott wrote: > > >>But it is still true that [[]] + [[]] is not the same as [[]] * 2. In my >>usage anyway this means that "S+S is the same as S*2" is false. Because >>there are Python expressions for which it is falsfi

Re: Why is this?

2005-08-12 Thread Peter Mott
Matt Hammond wrote: > On Fri, 12 Aug 2005 12:57:38 +0100, Peter Mott <[EMAIL PROTECTED]> wrote: > >> If I use concatenation + instead of multiplication * then I get the >> result that Jiri expected: >> >> >>> L = [[]] + [[]] >> >>

Re: Why is this?

2005-08-12 Thread Peter Mott
If I use concatenation + instead of multiplication * then I get the result that Jiri expected: >>> L = [[]] + [[]] >>> L[1].append(1) >>> L [[], [1]] With * both elements are changed: >>> L = [[]] * 2 >>> L[1].append(1) >>> L [[1], [1]] Alex Martelli says in his excellent Nutshell book t

Docs. for logging module typo

2005-02-12 Thread Peter Mott
The documentation for SMTPHandler say "The toaddrs should be a list of strings without domain names (That's what the mailhost is for)." which does not seem to be correct. The toaddr should be a list of strings like '[EMAIL PROTECTED]'. Peter -- http://mail.python.org/mailman/listinfo/python

Re: Uploading files

2005-01-11 Thread Peter Mott
Thanks for this. Peter "Robert Brewer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Peter Mott wrote: > If you upload a file using the cgi module is there any > way to discover the file name that the user submitted > as well as the file data? I've

Uploading files

2005-01-10 Thread Peter Mott
If you upload a file using the cgi module is there anyway to discover the file name that the user submitted as well as the file data? I've googled till I squint but I can't find anything. Peter -- http://mail.python.org/mailman/listinfo/python-list