[issue3244] multipart/form-data encoding

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsub

[issue1162477] Parsing failures in parsedate_tz

2010-12-27 Thread R. David Murray
R. David Murray added the comment: Somehow I missed this in my pre-beta feature request review :( -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1162

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue9864> ___ ___ Python-bugs-list mailing list Unsub

[issue1043706] External storage protocol for large email messages

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1043706> ___ ___ Python-bugs-list mailin

[issue6533] Make test_xmlrpc_net functional in the absence of time.xmlrpc.com

2010-12-27 Thread R. David Murray
R. David Murray added the comment: The skip was added and the service is back and has been for a while, so I'm closing this, but see also issue 6027. -- resolution: -> out of date stage: patch review -> committed/rejected status: ope

[issue740495] API enhancement: poplib.MailReader()

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue740495> ___ ___ Python-bugs-list mailin

[issue634412] RFC 2112 in email package

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue634412> ___ ___ Python-bugs-list mailin

[issue795081] email.Message param parsing problem II

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue795081> ___ ___ Python-bugs-list mailin

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue1025395> ___ ___ Python-bugs-list mailin

[issue8769] Straightforward usage of email package fails to round-trip

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue8769> ___ ___ Python-bugs-list mailing list Unsub

[issue9967] encoded_word regular expression in email.header.decode_header()

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue9967> ___ ___ Python-bugs-list mailing list Unsub

[issue9298] binary email attachment issue with base64 encoding

2010-12-27 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue9298> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-27 Thread R. David Murray
R. David Murray added the comment: If the RFC says they are safe it seems like we should include them in the safe list. -- ___ Python tracker <http://bugs.python.org/issue10

[issue1379416] email.Header encode() unicode P2.6

2010-12-27 Thread R. David Murray
R. David Murray added the comment: Committed to 2.7 in r87515. On second thought there's no reason to forward port the test because Python3 doesn't have the equivalent type-promotion issues. -- nosy: -BreamoreBoy resolution: -> fixed stage: patch review -> committed

[issue7056] regrtest runtest_inner calls findtestdir unnecessarily

2010-12-27 Thread R. David Murray
R. David Murray added the comment: Committed (redid, actually) 2nd patch in r87516. I may or may not backport it. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.6, Python 2.7, P

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread R. David Murray
R. David Murray added the comment: But clearly intentional, and now enshrined in released code. -- nosy: +mark.dickinson, r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python track

[issue4212] email.LazyImporter does not use absolute imports

2010-12-27 Thread R. David Murray
R. David Murray added the comment: LazyImporter isn't used in Python3. Without someone motivated to propose a patch this isn't going to be changed, so I'm closing the issue. -- resolution: -> wont fix stage: -> committed/rejected s

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread R. David Murray
R. David Murray added the comment: >>> struct.pack('2s', 'ha') b'ha' >>> struct.pack('2s', 'hé') b'h\xc3' >>> struct.pack('3s', 'h

[issue8009] email.parser.Parser is inefficient with large strings

2010-12-27 Thread R. David Murray
R. David Murray added the comment: Parser is a legacy API, and message_from_string (which uses it) is just a convenience function. If performance is an issue for your application, call feedparser directly and optimize the feeding to suit your application. -- resolution: -> wont

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2010-12-27 Thread R. David Murray
R. David Murray added the comment: As far as I can tell it is simply wrong per-RFC to put a charset parameter on a mulitpart content-type. So I think this should, indeed, raise an error on the Multipart subtype. If someone sets any charset, the CTE is set wrong. So code that sets charset

[issue5423] Exception raised when attempting to call set_charset on an email.mime.multipart once sub-parts have been attached

2010-12-27 Thread R. David Murray
R. David Murray added the comment: Since set_charset should not be valid on a multipart, I don't see a reason to have a separate issue for the post-attach case. Also, although I haven't searched the RFCs, I don't think we can assume that set_chaset is valid only on text pa

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-28 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +michael.foord versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue10

[issue6027] test_xmlrpc_net fails when the ISP returns "302 Found"

2010-12-28 Thread R. David Murray
R. David Murray added the comment: See also issue 6533. -- ___ Python tracker <http://bugs.python.org/issue6027> ___ ___ Python-bugs-list mailing list Unsub

[issue9824] SimpleCookie should escape commas and semi-colons

2010-12-28 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r87550. Since the only application that would trip up would be one not using SimpleCookie to read SimpleCookie generated cookies *and* that doesn't implement unescaping (in which case it wasn't really handling SimpleCookie co

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-29 Thread R. David Murray
R. David Murray added the comment: In this case I think it is safe enough, since it only results in the ;,= not getting encoded. If an application were doing anything with the encoded chars, it would probably be decoding them, and now that step will simply become a noop. Of course

[issue10790] Header.append's charset logic is bogus, 'shift_jis' and "euc_jp' don't work as charsets

2010-12-29 Thread R. David Murray
New submission from R. David Murray : Working on issue 10686, I've discovered that the logic for charset conversion in email.header.Header.append is bogus. It happens to work for most charsets because for most charsets the input codec and the output codec are the same. For shift_ji

[issue10790] Header.append's charset logic is bogus, 'shift_jis' and "euc_jp' don't work as charsets

2010-12-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue10790> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10790] Header.append's charset logic is bogus, 'shift_jis' and "euc_jp' don't work as charsets

2010-12-29 Thread R. David Murray
R. David Murray added the comment: Updated patch that also fixes the docs. -- Added file: http://bugs.python.org/file20189/header_append.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread R. David Murray
R. David Murray added the comment: Since GZipFile inherits from BufferedIOBase, and TextIOWrapper is supposed to be designed to wrap a BufferedIOBase object, I would say yes it ought to work. On the other hand there may also be a doc error there, since it may be that TextIOWrapper actually

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread R. David Murray
R. David Murray added the comment: Oops. It only has that inheritance in 3.2. -- versions: -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue10

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread R. David Murray
R. David Murray added the comment: Heh, and 2.7. Fixing versions yet again. -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue10

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread R. David Murray
R. David Murray added the comment: bz2 is a pure C module, so that's a very different situation. -- ___ Python tracker <http://bugs.python.org/is

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread R. David Murray
R. David Murray added the comment: Right, but in the bz2 case I think it is a feature request rather than a bugfix. In any case it should be a separate issue. -- ___ Python tracker <http://bugs.python.org/issue10

[issue1674555] sys.path in tests contains system directories

2010-12-29 Thread R. David Murray
R. David Murray added the comment: One way to "fix" this would be to have make test run the tests with -j1 and pass in the -S and -s flags, and then have regrtest special case test_site and remove those flags for the run of that single test. An interesting facet of this proposal

[issue1674555] sys.path in tests contains system directories

2010-12-31 Thread R. David Murray
R. David Murray added the comment: Here is a proof of concept patch if anyone wants to play with it.Note that a higher value could be used for the j option; multiple threads help even on uniprocessor systems since a bunch of the tests spend time waiting around. The patch removes the &#x

[issue9361] Tests for leapdays in calendar.py module

2010-12-31 Thread R. David Murray
R. David Murray added the comment: Applied in r87590. I threw in an extra test for a multi-leapyear-range. Since there was no reason not to, I backported it to 3.1 in r87591 and 2.7 in r87592. In the latter two commits I also backported the issue 9342 patch. Thanks for the patch, John

[issue9342] Tests for monthrange in calendar.py module

2010-12-31 Thread R. David Murray
R. David Murray added the comment: Backported it to 3.1 in r87591 and 2.7 in r87592 along with the patch for issue 9361. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue9

[issue10694] zipfile.py end of central directory detection not robust

2010-12-31 Thread R. David Murray
R. David Murray added the comment: I finally got around to researching this issue in the tracker. Issue 10298 is a close relative to this issue. The fix from that issue make the test that Xuanji added here pass. That issue contains no testsit would be ideal to have tests that test the

[issue10801] zipfile.ZipFile().extractall() header mismatch for non-ASCII characters

2010-12-31 Thread R. David Murray
R. David Murray added the comment: FWIW, having just looked at related code in zipfile recently, this patch looks correct to me. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue10

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-02 Thread R. David Murray
R. David Murray added the comment: Thank you very much for working on this! I'll try to take a look at the patch soon. A couple quick comments based on your posting: first, the email module now has a BytesFeedparser that will accept a byte stream, which I hope might simplify your

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Dev: I have no idea how what you just posted relates to the subject of this issue. Could you clarify please? -- ___ Python tracker <http://bugs.python.org/issue10

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Etienne: since this is about solving a 3.x specific problem, it will not get backported. Issue 1573931 looks unrelated to me at a quick glance. FYI, you will find that you *do* have detach in 2.7 if you open a file using the io subsystem (import io). Of

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Yes, that is my suggestion. Keep in mind that I haven't looked at the patch or run any tests yet :) If windows-specific hacks are needed to get the binary stream in 3.x, then IMO that's a bug in IO. As far as I know at the moment there

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Yeah, making a generic way to put specific tests into a subprocess run sounds like a better solution. But... The xml error in test___all__ is due to the fact that test___all__ imports site. So even with the above we'd need to special case si

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Ah, I hadn't looked closely enough at site.py to realize that the init work was being done by a 'main()' call. Given that, just moving the main call out should be relatively unlikely to break any custom site.py. Worse case would pre

[issue4188] test_threading hang when running as verbose

2011-01-03 Thread R. David Murray
R. David Murray added the comment: The hanging test still hangs for me with _VERBOSE set to True on py3k trunk. -- resolution: fixed -> status: closed -> open ___ Python tracker <http://bugs.python.org/

[issue10824] urandom should not block

2011-01-04 Thread R. David Murray
R. David Murray added the comment: Agreed that the original issue is invalid. So either the title should be changed so it can be used to address Martin's question, or it should be closed. -- nosy: +r.david.murray ___ Python tracker

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-04 Thread R. David Murray
R. David Murray added the comment: Have you tried 3.2b2? -- nosy: +haypo, r.david.murray type: -> behavior ___ Python tracker <http://bugs.python.org/issu

[issue10790] Header.append's charset logic is bogus, 'shift_jis' and "euc_jp' don't work as charsets

2011-01-04 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r87750 and 3.1 in r87751. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-04 Thread R. David Murray
R. David Murray added the comment: A day late, but I've looked at the patch. Now, I'm not all that knowledgeable about CGI, so other people will probably want to chime in here First, I'm uploading a new version of the patch as an svn diff (can be applied to a checkout u

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-04 Thread R. David Murray
R. David Murray added the comment: Here is a modified version of the unittest file from unittest.zip that can be run against Pierre's code (it feeds FieldStorage a text stream with a buffer). Running the tests require the data files from the zip. They do not pass, in a very differen

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-05 Thread R. David Murray
R. David Murray added the comment: Yeah, the documentation for the email stuff is in the dev docs. There's a short summary in the changes section of the email intro with links to the classes and methods that are affected. But basically you call BinaryFeedParser and feed it a binary

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
R. David Murray added the comment: Another alternative might be to return "None" ("refuse the temptation to guess"). But, given the long standing nature of the current guessing, having it return the specific version string may indeed make sense. --

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue10835> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
R. David Murray added the comment: Well, the digits are there if they are there in the name when that's actually what is in argv[0], so as long as that's the name the binary is actually installed under I don't think it will break anything. I presume the same applies to th

[issue10839] email module should not allow some header field repetitions

2011-01-05 Thread R. David Murray
R. David Murray added the comment: The behaviour you observe is by design, and documented. The email package needs to be able to handle RFC-invalid input, which includes messages with multiple instances of fields that are supposed to be singletons. It also needs to keep track of the order

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Haypo: I believe that the consensus we've come to is that you shouldn't have to. FieldStorage should take a binary stream. So should cgi.parse. If defaulting to sys.stdin, then if stdin is text, they should turn it in to a binary stream ri

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Ah, you are right. That makes the backward compatibility issue a lot worse :( -- ___ Python tracker <http://bugs.python.org/issue4

[issue10848] Move test.regrtest from getopt to argparse

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Note that based on my experience with the conversion of compileall to argparse,it is important to have good tests. Of course, regrtest itself has no tests... -- nosy: +r.david.murray ___ Python tracker <h

[issue10835] sys.executable default and altinstall

2011-01-06 Thread R. David Murray
R. David Murray added the comment: I agree that not guessing would be better. But as long as we *are* guessing, it seems to me that /usr/bin/python2.7 would be less wrong than /usr/bin/python, for almost all modern unix systems. -- ___ Python

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Here is a patch. Three of the tests currently fail due to what appears to be a bug in the Header formatting routines. I'll have to look in to that before finishing this issue. Note that doing str on a message with binary headers can produce ove

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue10686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
R. David Murray added the comment: I have a little bit of concern whether or not 'unknown-8bit' is the correct charset to use. It seems to be the one in the RFCs, but I have a feeling it may not be what is used "in the wild" in headers, so I am looking for opinions. -

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray added the comment: Well, unknown-8bit is registered as a charset with IANA. It is registered specifically for use in message bodies, but as a registered charset it "should" be acceptable in headers as well. There is no similar registration for just 'unknown&

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray added the comment: Well, since unknown-8bit is a registered charset, it should be RFC-valid in an encoded word. Whether or not any other mailer out there is going to be able to handle it is a different question. -- ___ Python

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread R. David Murray
R. David Murray added the comment: There's no need for any deeper investigation. The answer is "nobody wrote the patch". If someone writes a good patch, it will go in. -- nosy: +r.david.murray ___ Python tracker <http

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread R. David Murray
R. David Murray added the comment: No it doesn't. It has an arbitrary message string. That's the same as all other exceptions that don't have special attributes. -- nosy: +r.david.murray status: open -> closed ___ Pyt

[issue10858] Make source code links less proeminent

2011-01-07 Thread R. David Murray
R. David Murray added the comment: +1 -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue10858> ___ ___ Python-bugs-list mailing list Unsub

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray added the comment: Committed a revised version of the patch, including doc updates, in r87840. While I haven't documented the way to alter what encoding name is used for the unknown bytes, I did make it possible to do so (set charset.UNKNOWN8BIT to the desired s

[issue1372770] email.Header should preserve original FWS

2011-01-08 Thread R. David Murray
R. David Murray added the comment: I agree that when dealing with prexisting folding it is better to preserve it. The case I was talking about is, say, prepending re to a subject and refolding it. It is the transformation step where I think turning fws into a single space makes sense. But

[issue10867] python mmap objects issue msync() in destructor even if mapping was created with prot=mmap.PROT_READ only

2011-01-08 Thread R. David Murray
R. David Murray added the comment: Antoine didn't want to backport that patch. Does the fix applied in issue 678250 address this? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-08 Thread R. David Murray
R. David Murray added the comment: I ran into a redirection loop when cookies were blocked from google, who should know better. And then they had the gall to blacklist my ip for an attempted DOS attack. So a feature request may not be out of order; but I for one would not be motivated

[issue5871] email.header.Header too lax with embeded newlines

2011-01-08 Thread R. David Murray
R. David Murray added the comment: Receiving no negative votes :), I've committed this to py3k in r87873, 3.1 in r87874, and 2.7 in r87875. Barry, Martin, do you think this should be backported as a security fix? I'm thinking it should be. -- nosy: +loewis resolution:

[issue10879] cgi memory usage

2011-01-10 Thread R. David Murray
R. David Murray added the comment: The email package does have a 'parser headers only' mode, but it doesn't do what you want, since it reads the remainder of the file and sets it as the payload of the single, un-nested Message object it returns. Adding a flag to tell it

[issue10879] cgi memory usage

2011-01-10 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue10879> ___ ___ Python-bugs-list mailin

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-10 Thread R. David Murray
R. David Murray added the comment: I don't have time to review the patch or even respond in detail to the comments right now, but I do want to respond about BytesFeedParser. It is true that there is currently no interface to get the raw-bytes version of the header back out of the Me

[issue5871] email.header.Header too lax with embeded newlines

2011-01-10 Thread R. David Murray
R. David Murray added the comment: Well, imagine a web form that has a 'subject' text entry field, and the application does Message['Subject'] = subject_from_form as it builds a Message to hand off to smtp.sendmail. If the application didn't sanitize the subjec

[issue5871] email.header.Header too lax with embeded newlines

2011-01-10 Thread R. David Murray
R. David Murray added the comment: Ah, I should clarify. A sensible web application should be dealing with any multiline input it allows by turning it into a newline-less single line before using it as a subject, so the probability that there are exploitable applications out there is, I

[issue10848] Move test.regrtest from getopt to argparse

2011-01-10 Thread R. David Murray
R. David Murray added the comment: Testing regrtest is distinctly non-trivial, since options have interactions (some of the somewhat unobvious). Ideally we'd refactor the code so that we could point it at a test test-directory so we could write some automated tests for it :) But if yo

[issue10848] Move test.regrtest from getopt to argparse

2011-01-10 Thread R. David Murray
R. David Murray added the comment: Note that it is also possible that after doing a review of the functionality, there might be consensus to drop one or more options, which would be a good thing overall, IMO. -- ___ Python tracker <h

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-12 Thread R. David Murray
R. David Murray added the comment: Yes, the immanence of RC1 makes it really doubtful that this can be fixed in 3.2. Whether or not it can be fixed in 3.2.1 will depend on the nature of the fix. If it changes behavior such that currently working uses of FieldStorage (that don't deal

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-12 Thread R. David Murray
R. David Murray added the comment: I've been intending to take a look at this issue at some point, but am not sure when I'd get to it. I took a quick look. It does seems to me that it is true that for data-validity purposes the message files need to be opened in binary and fed to

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread R. David Murray
R. David Murray added the comment: It getting in to 3.2 would be a release manager call, so I've set it to release blocker so Georg can make the call. My opinion is that while I would *really* like to see this fixed in 3.2, the changes really should have a thorough *design* review as

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-14 Thread R. David Murray
R. David Murray added the comment: Victor: we normally leave the patch file that was committed attached to the issue for future reference. The _plus_tests file was just the original patch plus the existing cgi tests adjusted to pass in bytes instead of strings to cgi, if I recall correctly

[issue9532] pipe.read hang, when calling commands.getstatusoutput in multi-threading code of python 2.4

2011-01-15 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue10918] **kwargs unnecessarily restricted in API

2011-01-17 Thread R. David Murray
R. David Murray added the comment: Adrian's suggestions don't look to me like they fiddle with the API, but rather make the behavior match the documented API. The existing behavior is, IMO, a very surprising corner case, especially to a less experienced Python programmer. I do

[issue10926] Some Invalid Relative Imports succeed in Py 3.0 & 3.1 [& correctly fail in 3.2rc1]

2011-01-17 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> relative import broken ___ Python tracker <http://bugs.python

[issue10928] Strange input processing

2011-01-17 Thread R. David Murray
R. David Murray added the comment: 08 is an invalid octal literal. See http://docs.python.org/reference/lexical_analysis.html#integer-and-long-integer-literals -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -&g

[issue10918] **kwargs unnecessarily restricted in API

2011-01-17 Thread R. David Murray
R. David Murray added the comment: The reason that it is surprising is that the API is designed to allow an arbitrary function to be called, with whatever arguments and keyword arguments that function takes. The user of the API is not necessarily going to remember that the first argument to

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-17 Thread R. David Murray
R. David Murray added the comment: Yes, it's about the concurrent.futures 'submit' method: http://docs.python.org/dev/py3k/library/concurrent.futures.html#executor-objects I've updated the title to reflect this. There are other places in the stdlib affected by this

[issue10927] Allow universal line endings in filecmp module

2011-01-17 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 6306. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> filecmp.cmp can not compare two files from different OS with the

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-17 Thread R. David Murray
R. David Murray added the comment: Name mangling applies only to attributes of classes, and so does not enter in to this issue. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-01-17 Thread R. David Murray
R. David Murray added the comment: Adrian: you are correct of course, I was misremembering and did not check the docs. I prefer the other solution, though. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10929] telnetlib does not send FIN when self.close() issued

2011-01-17 Thread R. David Murray
R. David Murray added the comment: telnetlib closes the socket, which in turn calls the OS level socket close function. What happens after that is up to the OS tcp/ip stack, and is not under Python's control. So if there is a bug here it isn't in Python. -- nosy:

[issue10921] imaplib: Internaldate2tuple() string/bytes issues, does not handle negative TZ offsets, does not handle DST correctly

2011-01-18 Thread R. David Murray
R. David Murray added the comment: If I understand correctly, what Alexander means by "only work in the C locale" is that both strptime and strftime are locale dependent, and so if the locale is something other than C it may fail to parse the month name and may generate a non-stan

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: Eric, could you point out the part of the specification that requires exactly a string and makes a string subclass invalid? I did a quick scan and couldn't find it, and unfortunately don't have the time to re-read the whole spec right now. -

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread R. David Murray
R. David Murray added the comment: As you say, "on some systems". The variation is documented, and the documented codes are documented as being just those required by the C standard. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: OK. So he is saying that when the spec says "an object of type str" he means 'type(x) is str' as opposed to 'isinstance(x, str)'. I would naively have expected the latter, as other people clearly do as well. I didn't par

[issue10938] Provide links to system specific strftime/ptime docs

2011-01-18 Thread R. David Murray
R. David Murray added the comment: All right, I'll open it back up for that suggestion (I've changed the title accordingly) and let the docs folks decide. The most useful link would be one to the relevant Windows documentation, since that's the hardest one to find. Altho

[issue10942] xml.etree.ElementTree.tostring returns type bytes, expected type str

2011-01-18 Thread R. David Murray
R. David Murray added the comment: This is indeed a doc problem, although there was some discussion of working toward a method rename. See issue 8047 (but be prepared to read a novel to understand why tostring returns bytes...) The doc for 3.2 is slightly clearer, but both 3.1 and 3.2

<    12   13   14   15   16   17   18   19   20   21   >