[issue14308] '_DummyThread' object has no attribute '_Thread__block'

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- stage: -> test needed title: Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in ignored -> '_DummyThread' object has no attribute '_Thread__b

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: OK, I've gone through Dan's update (thanks very much for the tests!). I'm uploading a revised patch. The major differences are: I've refactored the parsing. Now it is a three step process: peel off the extra keyword (FROM:, TO:) i

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file24855/issue8739.patch ___ Python tracker <http://bugs.python.org/issue8739> ___ ___ Python-bugs-list m

[issue14314] logging smtp handler (and test) timeout issue

2012-03-14 Thread R. David Murray
New submission from R. David Murray : I'm working on a patch that updates smtpd, and when I ran the full test suite I got a hang in test_logging. This means there's a bug in my update, but there is also a bug in the logging test. But see below for another issue I noticed while inv

[issue11959] smtpd cannot be used without affecting global state

2012-03-14 Thread R. David Murray
R. David Murray added the comment: The test failure in #14314 isn't a bug in my code, it is due to the fact that you copied the __init__ method of SMTPChannel in your logging tests, and the __init__ is changed by my patch. Clearly it would be good to resolve this issue one way or an

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Note that this patch causes test_logging to fail/hang. I've opened issue 14314 that mentions the hang (the issue is really about the lack of a timeout in logging's smtp handler) and updated issue 11959 about the issues involved in test_logging u

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray resolution: -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker <http://bugs.python

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Fixed in the email6 feature branch. Thanks Brian. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue12758] time.time() returns local time instead of UTC

2012-03-15 Thread R. David Murray
R. David Murray added the comment: Thanks, Dylan. -- nosy: +r.david.murray resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue14261] Cleanup in smtpd module

2012-03-16 Thread R. David Murray
Changes by R. David Murray : -- dependencies: +Update to smtpd.py to RFC 5321 stage: -> needs patch ___ Python tracker <http://bugs.python.org/issu

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. I think this is fine. An alternate approach would be to introduce the concept of a state (like imaplib has), have a list of which commands are allowed in which state, and implement the check in the command processing function, but

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Oh, by the way the mention of EHLO in that message depends on issue 8739 going in. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: When do patches get applied? The general answer is "when someone gets around to it" :) In this particular case the issue 8739 patch is waiting on the resolution of its dependency (logging uses smtpd in its tests, and the 8739 patch breaks the lo

[issue12788] test_email fails with -R

2012-03-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11780] email.encoders are broken

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Nope, those errors are correct. The encodings functions do not apply to Multipart messages. I've updated the docs to reflect that. -- components: +Documentation -Library (Lib) resolution: -> fixed stage: -> committed/rejected s

[issue11780] email.encoders are broken

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks, fixed. -- ___ Python tracker <http://bugs.python.org/issue11780> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11686] Update of some email/ __all__ lists

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch, Steffen. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread R. David Murray
R. David Murray added the comment: To answer your question about wrapping, it is best not to introduce noise into the patch. The person who commits it can rewrap (although even then it is nice to do the rewrapping in a separate changeset). -- nosy: +r.david.murray

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: That doesn't produce an evalable repr, though. The repr should actually be Policy(linesep='\\r\\n', max_line_length=None) I'm not immediately seeing how to get that to happen. -- ___ P

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Ach, I screwed up my testing at the interactive interpreter. Yes, it does work, and I will commit the fix. Thanks for the report. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Committed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: The patch was actually by Brian Curtin, before he got commit privs :). Attached is a fix. I don't know what t.py has to do with the issue, though. I'm experimenting to see if I can trigger the bug before I apply the fix. -- keywor

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue12757> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: OK, ./python -OO -m test test_json will trigger it. Updated fix attached. I'm not completely happy with it, though, since it prints the 'skipping test from module XXX' twice, and I don't know why (some unittest thing I'm not

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Oh, in case anyone is wondering, the fix for -OO test runs was originally made because the unladen swallow folks ran the test suite that way. (I think someone else wanted it too, but I don't remember who). It's broken again, so I doubt anyone i

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread R. David Murray
R. David Murray added the comment: I believe this was already found by someone (Georg, Martin?) and fixed by Ezio. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti, r.david.murray ___ Python tracker <http://bugs.python.org/issu

[issue14333] queue unittest errors

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Not only do I think we should support calling our tests via unittest, I think we should move in the direction of having regrtest be implemented via standard unittest hooks rather than the monster it currently is. That will take quite a bit of effort

[issue14353] Proper gettext support in locale module

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue14353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14348] Whitespace - Lib/base64.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Yes, our preferred approach is to make such cleanups when we touch that section of code for some other reason. Like Éric said, your willingness to contribute is very much appreciated and we hope you'll find another bug to work on. -- s

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
R. David Murray added the comment: @Ramchandra: I think you referring to the traceback format (which is indeed less useful than a normal Python traceback in the context of this tracker). The OP, however, is referring to the exception itself: TypeError: object.__new__(listiterator) is not

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue14350> ___ ___ Python-bugs-list mailin

[issue13922] argparse handling multiple "--" in args improperly

2012-03-18 Thread R. David Murray
R. David Murray added the comment: I think it is unlikely that anyone depends on argparse consuming multiple -- strings. If you are worried about it we could restrict the change to 3.3. But personally I think this would be OK for a bug fix. -- nosy: +r.david.murray versions

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread R. David Murray
R. David Murray added the comment: It does look like there's anomalous behavior here of some sort, but I'd expect --test=-- to result in test="--", myself, rather than an error. My intuition is that '--' would need to be preceded by a space to function a

[issue14115] 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows

2012-03-18 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue14115> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13922] argparse handling multiple "--" in args improperly

2012-03-18 Thread R. David Murray
R. David Murray added the comment: No, it is definitely a bug. It prevents implementing parsers that pass strings on to another sub-parser or command. Imagine, for example, implementing a script that takes some arguments, but takes the entire rest of the command string and passes it to

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Interesting. I would have said that an open source project ought to have a link for reporting bugs on the front page, but I just checked perl.org and apache.org, and they both put the bug tracker links on the 'get involved' page. The devgui

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread R. David Murray
R. David Murray added the comment: That is indeed better than the current devguide for introducing people to the community. I think the current devguide is better at explaining the development process in detail, but that's not what is needed for a 'getting invo

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Interesting. Apparently we have no tests for the encode_ functions, nor do we use them inside the email package itself (except for encode_7or8bit). Do you have any interest in writing a patch with tests? -- assignee: -> r.david.murray n

[issue14355] imp module docs should omit references to init_frozen

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Eric. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-19 Thread R. David Murray
R. David Murray added the comment: If one could distinguish that python had ended because of a sigint from the error code, then it would be possible for the caller to throw away stderr in that case. I agree with the OP that that having to deal with the traceback when you know what you want

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-19 Thread R. David Murray
R. David Murray added the comment: I applied both patches, and I get 16 test failures in test_smtpd. I haven't looked at the errors, but probably most of them are lack of a HELO in the test. -- ___ Python tracker <http://bugs.py

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: Hmm. I'm certain that QUIT shouldn't require HELO, and I wouldn't expect that NOOP would either. I just checked the RFC. The *only* command that requires HELO/EHLO is MAIL (and by implication RCPT, since it in turn requires MA

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: If you mean "either way in the test", that's true. But what we need to test is that the smtpd server we are providing matches the spec, which means that we need to confirm that it does *accept* QUIT, NOOP, etc without a previous HELO. Also

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: I think we're close. You new test 'test_HELO_RSET_syntax' should be named just 'test_HELO_RSET'. And could you please add tests for RCPT and DATA generating the 'no HELO' error? Thanks. -- ___

[issue14375] Add socketserver running property

2012-03-20 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue14375> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: I tweaked a couple more of your test method names, but otherwise used your patch as is. Welcome to the ACKS file :) If you haven't already submitted a contributor agreement it would be great if you did. I'm hoping you'll want to

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: Contributor agreement is here: http://python.org/psf/contrib/contrib-form-python/ ACKS file ships in every Python source tarball (not sure if goes out in the binary ones). Here it is in the repository: http://hg.python.org/cpython/file/default

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Well, a patch won't get committed if it lacks tests, so commit would have to wait until I have time to write some, then. The encode_ methods (from email.encoders) take *message* objects as their arguments. MIMEText internally converts a byte string

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Oh, you are right. I even noted that bug in my PyCon talk, but immediately forgot about it :( I do intend to fix it. You can get it to work by explicitly passing the charset: >>> x = MIMEText('йцукен', _charset='utf8') &

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-21 Thread R. David Murray
New submission from R. David Murray : The MIMEText class of the email package in Python3 requires that a character set be specified in order for the resulting email to be valid. If no character set is specified, it currently assumes ascii but puts a unicode payload in the message. Because

[issue12757] undefined name in doctest.py

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Since nobody really cares about this issue :), I went ahead and applied the patch that at least avoids the tracebacks. Someone can open a new bug about the duplicated message if they really care. -- resolution: -> fixed stage: test nee

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: PendingDeprecationWarning would mean that we are going to remove it "someday". If you actually want to remove them in a reasonable time, you should use "DeprecationWarning" in 3.3, and then remove them in 3.4. But is there a need to

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Also, posting a patch for review before committing is a good idea. If you don't get a review in a reasonable time period, then as a committer you can of course go ahead and commit, based on your judg

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion. It is an interesting idea, but there are some issues. attrgetter and itemgetter can take more than one key. It would probably make more sense to have the returned function be the one that takes the default, but in that case

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-22 Thread R. David Murray
R. David Murray added the comment: email in python3 doesn't necessarily work with binary payloads. (Obviously here you've found the opposite problem, but it is in methods that aren't used by the package itself.) There aren't any tests of binary payloads in the test sui

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-03-22 Thread R. David Murray
Changes by R. David Murray : -- keywords: +needs review stage: -> patch review type: -> enhancement ___ Python tracker <http://bugs.python.org/i

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread R. David Murray
R. David Murray added the comment: Thanks for the report and patch. However, in general we prefer not to mask exceptions (doing that can hide bugs in programs). It would probably be reasonable to fix this in pydoc, however. Alternatively there might be a specific exception or set of

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread R. David Murray
R. David Murray added the comment: After this commit the buildbots are dying randomly with segfaults. -- nosy: +r.david.murray priority: normal -> release blocker status: closed -> open ___ Python tracker <http://bugs.python.org/i

[issue14388] configparser.py traceback

2012-03-22 Thread R. David Murray
R. David Murray added the comment: Looking at the traceback and your code, configparser is calling 'get', expecting to call its own get method (that takes a 'raw' keyword), but instead is calling the get on your subclass, which doesn't take a 'raw' keyword.

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread R. David Murray
R. David Murray added the comment: Michael, I thought you might be interested in this one since it looks like it might involve inspect executing code unexpectedly, and I know you worked on ways of not doing that... -- nosy: +michael.foord

[issue14389] Mishandling of large numbers

2012-03-22 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14389] Mishandling of large numbers

2012-03-22 Thread R. David Murray
R. David Murray added the comment: You might want to take a look at the Decimal module. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue14

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread R. David Murray
R. David Murray added the comment: This appears to be causing buildbot failures: http://www.python.org/dev/buildbot/all/builders/x86%20debian%20parallel%203.x/builds/4077 http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/3520 -- keywords: +buildbot

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2012-03-22 Thread R. David Murray
R. David Murray added the comment: Great. I'm going to close the issue, but it's only "for now": if you get a good response and a design agreement on python-ideas please reopen the issue. Of course, we'd need a patch, too; and I believe there would need to be

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread R. David Murray
R. David Murray added the comment: Pretty close. I'd do the check for us_ascii first, and only do the encode test/switch to utf-8 if that's the charset. The reason is that that if a charset has been specified, we don't waste time doing an unnecessary encoding (and the asci

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread R. David Murray
R. David Murray added the comment: That looks good. -- stage: test needed -> commit review ___ Python tracker <http://bugs.python.org/issue14380> ___ ___ Py

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-22 Thread R. David Murray
R. David Murray added the comment: You are theoretically right about not posting trivial patches, but as you can see, sometimes even a trivial patch elicits unexpected insights. So I like to always post my patches, even the seemingly trivial ones. Then if I don't get any respons

[issue12553] email should default to 8bit CTE unless policy.must_be_7bit is set

2012-03-22 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue12553> ___ ___ Python-bugs-list mailing list Un

[issue7304] email.message.Message.set_payload and as_string given charset 'us-ascii' plus 8bit data produces invalid message

2012-03-22 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue7304> ___ ___ Python-bugs-list mailing list Un

[issue7304] email.message.Message.set_payload and as_string given charset 'us-ascii' plus 8bit data produces invalid message

2012-03-22 Thread R. David Murray
R. David Murray added the comment: In Python2 the fix would be to use charset unknown-8bit instead of us-ascii. In Python3 this actually puts unicode in the message body. There we should default to utf-8, but this requires a more extensive change than the Python2 change, and probably should

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread R. David Murray
R. David Murray added the comment: See also issue 7304. It was niggling at the back of my brain, and I finally managed to dig it up. Fixing that is much more complex than fixing this (because set_charset is a *very* strange method), so I committed this patch in case we don't manage t

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-23 Thread R. David Murray
R. David Murray added the comment: Better, but not stable: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.2/builds/984/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/998/steps/test/logs/stdio

[issue14350] Strange Exception from copying an iterator

2012-03-25 Thread R. David Murray
R. David Murray added the comment: Please, give it a try. But also be prepared for it being harder than it looks; the problem is that there may be very limited knowledge available where the error is generated. (I don't know; I haven't looked at the code and am not likely to..

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-25 Thread R. David Murray
R. David Murray added the comment: @telmich: I think you will have more success at getting what you want if you work with us rather than being confrontational. Respect that we have reasons for doing things a certain way (and not because we are stupid), and we will respect your perspective

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread R. David Murray
R. David Murray added the comment: I believe it was actually Guido who suggested exposing dict_proxy, in response to Victor (but independent of Victor's needs, if I understood the message correctly). It has always seemed odd to me ("always" referring my time working with Pyt

[issue14399] zipfile and creat/update comment

2012-03-25 Thread R. David Murray
R. David Murray added the comment: I'm marking this as easy hoping someone in the mentoring group will pick it up and take a look. The relevant code is in Python, and I'm guessing there is some logic bug when only the comment is set (and nothing is added to the zipfile), but

[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-25 Thread R. David Murray
R. David Murray added the comment: There is no sftp module in the standard library. Presumably you are talking about a 3rd party product and should report the bug to its developers. If you are trying instead to report a bug in the logging module, please reopen the issue if you can provide a

[issue14361] No link to issue tracker on Python home page

2012-03-25 Thread R. David Murray
R. David Murray added the comment: OK, so whatever else is true, it seems like there isn't anything for the python core dev team to do here. Any action would take place at the www.python.org level, and this bug tracker isn't where such changes are tracked, so I'm cl

[issue14379] Several traceback docs improvements

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue14379> ___ ___ Python-bugs-list mailing list Unsubscri

[issue786827] IDLE starts with no menus (Cygwin)

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: -smccardell ___ Python tracker <http://bugs.python.org/issue786827> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14415] ValueError: I/O operation on closed file

2012-03-26 Thread R. David Murray
R. David Murray added the comment: The bug tracker is not a good place to get programming help. Please try the python-tutors list, or the general python-list (see mail.python.org for a list of mailing lists). There will be people on one of those lists with time to help you out

[issue14413] whatsnew deprecation tweak

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Somebody (Raymond?) is going to go through and edit for style and consistency before the release. But I applied your tweak anyway. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -&g

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Looks like someone else noticed the problem, but did not notice that there was an existing issue with a patch :(. Sorry about that, Mark. Thanks very much for working on this, and I'm very sorry it got lost. Hopefully Eli will review your patch and s

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-26 Thread R. David Murray
R. David Murray added the comment: > Limited by what? The alphabet. I suppose we could use a -- option, but somebody would have to add support for those. -- ___ Python tracker <http://bugs.python.org/issu

[issue14417] dict RuntimeError workaround

2012-03-26 Thread R. David Murray
R. David Murray added the comment: I must admit to being concerned by the possible impact of this change as well. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue14

[issue14416] syslog missing constants

2012-03-26 Thread R. David Murray
R. David Murray added the comment: LOG_SYSLOG and LOG_UUCP have been present in Python for a *long* time (since 1998 at least). The other two are not. What fallbacks should be used if they don't exist? (I believe you meant 'facilities', rather than 'priorities'.) -

[issue12649] email.Header ignores maxlinelen when wrapping encoded words

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Looking at this again, as_string defaults to maxheaderlen=0, which means no wrapping. In Python 3.2 you can pass it a maxheaderlen of 78 to get the correct behavior for passing the message to smtp. -- resolution: -> invalid stage: -> com

[issue14399] zipfile and creat/update comment

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Hmm. When I did the same (changed to b'...') and ran it, I got an archive test.zip. When I then opened that archive using ZipFile, its comment attribute was b''. Thus I concluded that the bug exists in Python3. I don't remembe

[issue5301] add mimetype for image/vnd.microsoft.icon (patch)

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue5301> ___ ___ Pyth

[issue4528] test_httpservers consistently fails - OSError: [Errno 13] Permission denied (e.g. on OS X using tarball, but not svn tag r30)

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate status: open -> closed superseder: -> test_httpservers on Debian Testing ___ Python tracker <http://bugs.python.o

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: That's probably reasonable (we have precedents for that in other modules), except that that's not how the older possibly-not-there constants work. For backward compatibility reasons we can't change the older constants, but I don't see

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Frederico: thanks for the patch. Do you want to do the doc patches as well? -- ___ Python tracker <http://bugs.python.org/issue14

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. The advantage of the more complicated way being that you get an immediate TypeError instead of a delayed one? Is there any other advantage? (That's probably enough reason, though :) Now we just need a unit test for

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Close. We either need to mention that LOG_AUTHPRIV is only defined if the platform defines it, or we need to change the implementation so that it is always defined (by mapping it to some other facility if it doesn't exist). I'm of mixed mind abo

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Got you. We'll definitely go with the more complete fix, then. -- ___ Python tracker <http://bugs.python.org/is

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread R. David Murray
R. David Murray added the comment: I believe there is an example in the packaging unit tests of building an extension module in a test (but I'm not 100% sure). Also, the fact that the test will deadlock if it fails is not a deal breaker: the test should pass normally, and if it fail

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread R. David Murray
New submission from R. David Murray : Currently the prototype uses timeout=socket._GLOBAL_DEFAULT_TIMEOUT, and the docs give the prototype as: urlopen(url, data=None[, timeout], *, cafile=None, capath=None) which is unlike most other Python function prototypes in the docs, and makes no

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thinking about this some more, I think that AUTHPRIV is special. You don't want to inadvertently log AUTHPRIV stuff to some other facility. So I think the code patch is good, and we should add a note to the docs that AUTHPRIV may not exist o

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: >From what I understand, that defeats the purpose of AUTHPRIV, which is to log >messages that should be logged in a "safer" location than AUTH. That's why I >said it was a special case. In other words, if an application is going

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: The tests don't seem to be included in the new patch. Also, you could modernize the property definition (@property, @comment.setter). -- ___ Python tracker <http://bugs.python.org/is

<    43   44   45   46   47   48   49   50   51   52   >