[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-04-20 Thread R. David Murray
R. David Murray added the comment: If you know what an iterator is, the documentation, it seems to me, is clear. That is, an iterator cannot be indexed, so the behavior you expected could not be implemented by enumerate. That doesn't meant the docs shouldn't be improved. An exam

[issue8094] Multiprocessing infinite loop

2011-04-20 Thread R. David Murray
R. David Murray added the comment: Your code doesn't appear to have anything to do with the reported bug, which is about an infinite loop. But FYI to my understanding your script can't work on windows, since foo can't be imported. On linux, foo doesn't

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-04-21 Thread R. David Murray
R. David Murray added the comment: My fix (and the tests) for this are wrong. decode_header returns (binary, charset) pairs, but the chunks list is (string, charset) pairs. -- stage: committed/rejected -> needs patch status: closed ->

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-21 Thread R. David Murray
New submission from R. David Murray : I went to write a test that would trigger something if it was run on 3.3.0, and had to look in the source code to figure out what the hexversion for that would be. I think the hexversion algorithm should be documented in its sys entry

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-04-21 Thread R. David Murray
R. David Murray added the comment: You subclassed unicode. So print printed the value of your unicode object, which didn't need coercion. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: ope

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-04-21 Thread R. David Murray
R. David Murray added the comment: For the record, this isn't as simple as I made it sound. See, for example, issue 9196. -- ___ Python tracker <http://bugs.python.org/is

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-04-21 Thread R. David Murray
R. David Murray added the comment: Note that when this is fixed, make_header on the return value from decode_header will fail because it doesn't know now to handle unknown-8bit. -- ___ Python tracker <http://bugs.python.org/is

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-04-21 Thread R. David Murray
R. David Murray added the comment: Well, it's possible I'm wrong and you've found a bug. There are numerous differences between 2 and 3 in both string handling and special method handling, though, so it may be hard to pin down. If you poke around a bit more and still th

[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-04-22 Thread R. David Murray
Changes by R. David Murray : -- stage: -> patch review type: -> feature request versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue11873] test_regexp() of test_compileall failure on "x86 OpenIndiana 3.x"

2011-04-22 Thread R. David Murray
R. David Murray added the comment: Given that it happens randomly I suspect a timing issue, but without having reviewed the code in question. I'm not sure when I'll have time to look at this. -- ___ Python tracker <http://bu

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread R. David Murray
Changes by R. David Murray : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue9319> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-25 Thread R. David Murray
R. David Murray added the comment: Yeah, I looked at the source of calendar.gmtime, and it turns out it ignores the isdst flag, which it also seems should be irrelevant anyway, looking at the test code again. I tried setting my /etc/localtime to /usr/share/zoneinfo/posix/Asia/Calcutta

[issue11917] Test Error

2011-04-25 Thread R. David Murray
R. David Murray added the comment: For the record: yes this is the way regrtest works when a test named on the command line doesn't exist. Not pretty, I'll grant you. Maybe someone will propose a patch/feature request to improve the error message some day. -- nosy: +r.da

[issue11917] Test Error

2011-04-25 Thread R. David Murray
R. David Murray added the comment: Your best resources would probably be the python mailing list (python-list, see http://mail.python.org) which is also comp.lang.python, or the #python irc channel on freenode. -- ___ Python tracker <h

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-25 Thread R. David Murray
R. David Murray added the comment: Thanks! I tidied up the ReST formatting a bit and changed the bit numbering to the more standard left to right order (standard for bit fields...I realize hexversion is a number, but conceptually one deals with it as a bit field). -- resolution

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-26 Thread R. David Murray
R. David Murray added the comment: So this is probably not a python problem at all, but a problem with your system c library time functions. time.mktime is a thin wrapper around the mktime libc call. Perhaps you could write a short C program to test it? I've added Barry as nosy sin

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread R. David Murray
R. David Murray added the comment: As part of fixing this we should add a unit test to pydoc that goes something like this: assertEqual(sorted(pydoc.Helper.keywords.keys())), sorted(keyword.kwlist)) -- nosy: +r.david.murray ___ Python tracker

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: We don't ship unless all tests pass on all of our test platforms (and we have quite a few). If you look at that test it says the regex "should match 'ls -ld /.' on any posix system, however perversely configured". Perhaps your

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: The re matches for me if I call it manually with your ls -ld output. What output do you get if you do a 'print commands.getstatus("/.")' using your build of the python interpreter? By the way, this is a deprecated function under test

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: Hmm. This is very odd. The output from getstatus is the same as your ls output, and that output passes the re. Python has its own regular expression implementation, so your pcre version shouldn't have anything to do with it. That complicated re, b

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: You are running selinux, right? Have you checked for things in the log that might indicate selinux is blocking the ls call for some reason? -- ___ Python tracker <http://bugs.python.org/issue11

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: I would say that coreutils is wrong to be appending a space. If a program were to parse the output of ls, it would reasonably expect the filename to be rendered exactly as it appears in the directory. That is, a program should treat a trailing space as

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: By the way, I wouldn't expect most programs to ever notice that trailing space parsing -l output, but if it also attaches the trailing space in regular ls output, *that* I would expect more programs would trip

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: Oh, drat. We could have figured this out much sooner if I'd been paying closer attention. I was testing based on current 2.7 tip instead of 2.7.1, and indeed this test bug was only recently (April 4th!) fixed. And the issue is indeed selinux; the fi

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread R. David Murray
R. David Murray added the comment: No, if you take a look at tip, the problem is that bit of re is not covering all cases, and should look like this: [.+@]? # It may have special attributes. I assumed the "." was selinux, but I don't actually know, as I don't se

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread R. David Murray
R. David Murray added the comment: Did you try a make distclean/configure/make? _thread.info is a new attribute introduced by a relatively recent patch. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread R. David Murray
R. David Murray added the comment: Sorry, didn't see that you'd figured it out in the midst of your other comments not relevant to this bug. If the re were simpler it wouldn't actually be *testing* the function under test, and so would be a useless test. (It would show th

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread R. David Murray
R. David Murray added the comment: Just so you know, you aren't likely to get much help using this approach to bug reporting. A single, focused bug report is much more likely to get attention. You might also want to try starting with a "vanilla configure" and see how thin

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread R. David Murray
R. David Murray added the comment: A focused bug report would focus on *one* of the test failures (as in the failures from running a single test_x). Python3 does not support Berkeley DB out of the box, you need a third party library to get bdb support. You might be interested to look at

[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread R. David Murray
R. David Murray added the comment: The six error messages tell you that six different tests failed. Yes, the failures are probably all due to the same cause, but that's just how unit testing works. (And yes, the argparse tests are a bit more terse and difficult to understand than ma

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread R. David Murray
R. David Murray added the comment: test_distutils should not be dependent on the existence of rpm (if it references the system rpm it should skip if it doesn't exist). It is difficult to find someone willing to run a buildbot as the root user, so while we will see about fixing the test

[issue11959] smtpd cannot be used without affecting global state

2011-04-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread R. David Murray
R. David Murray added the comment: This change was made by Raymond in issue 5729. It is the only feature added by that patch; the missing versionchanged was an oversight and I don't think it makes any more likely that other features were added that weren't documented. If you ar

[issue11883] Call connect() before sending an email with smtplib

2011-04-30 Thread R. David Murray
R. David Murray added the comment: The call to connect() is not required in the first example, since the hostname is passed to the constructor in that case. Since these examples are about the email package rather than smtplib, I preferred to change the other examples to pass localhost to

[issue11935] MMDF/MBOX mailbox need utime

2011-04-30 Thread R. David Murray
R. David Murray added the comment: The problem with this patch is that it would also show 'new mail' if what had in fact happened was that a message had been *deleted* (see the comments at the beginning of the flush method). So actually fixing this is a bit more complicated. A

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-30 Thread R. David Murray
R. David Murray added the comment: Kasun, were you able to reproduce the problem (or show it doesn't happen) calling mktime directly from C? -- resolution: -> invalid stage: -> committed/rejected status: open -> pending ___ Python

[issue11873] test_regexp() of test_compileall failure on "x86 OpenIndiana 3.x"

2011-04-30 Thread R. David Murray
R. David Murray added the comment: The failing test is launching a subprocess to compile python code, waiting for the subprocess to exit, and then checking to see if the file was created. So the timing issue would appear to be that the file created by the subprocess doesn't appear to

[issue11971] Wrong parameter -O0 instead of -OO in manpage

2011-05-01 Thread R. David Murray
R. David Murray added the comment: Thanks for catching that, and for the patch. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://

[issue11834] wrong module installation dir on Windows

2011-05-02 Thread R. David Murray
Changes by R. David Murray : -- assignee: docs@python -> nosy: +brian.curtin, tim.golden ___ Python tracker <http://bugs.python.org/issue11834> ___ ___ Python-

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Running test_compileall with -F it failed on iteration 588 on my linux box. So this isn't platform specific. No idea why that particular test should be fragile, but I'll look in to it when I get some time if nobody beats me to it. --

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
New submission from R. David Murray : The following code: class X(list): def __contains__(self, key): print('X contains:', key) class Y(): def __init__(self, x): self.x = x def __getattr__(self, key): retu

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Well, then I suppose my question is why isn't __contains__ looked up? Other special methods that don't exist on Y do cause __getattr__ to be called. Why is __contains__ special? The docs for __getattr__ don't hint at this possibility eithe

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Ah, that's what my problem is. My test example was poorly conceived (I used __del__!) so I *thought* the other special methods were triggering getattr. I'd have figured it out if I hadn't screwed up my test :( -- resolution: -

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11999> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue665194] datetime-RFC2822 roundtripping

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Here is a patch that adds datetime support to email.utils.formatdate. Ultimately the email package will give programs access to datetime+timezone representations of the dates in various headers, so this provides the output end of the round trip. Alexander

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Thanks everyone. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker <http://bugs.python.o

[issue11935] MMDF/MBOX mailbox need utime

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Not all system mail spools are mode 1777. Mutt needs to be setgid mail on systems that aren't, if I understand correctly. Making a python program setgid mail is a bit more of security issue than making a well-tested C program setgid, since it is easi

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes if you are a member of group mail you would not need setgid mail, obviously. The problem report in question was submitted by one of the Debian maintainers, so I have to believe that the system in question was not misconfigured. This part of the

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Steffen, your sense of humor is great, but oftentimes I have no clue what you are talking about. Where does ftruncate factor in? I was asking what mutt does when it modifies a file in the hopes that it had some pithy algorithm for making sure the mailbox

[issue12007] Console commands won't work

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I believe this is out of scope for Python itself, and is a platform distribution issue. The platform must do some special magic to make those things work; they don't in a vanilla python build as far as I know. You might look to your readline configur

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-05 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +r.david.murray stage: -> test needed type: crash -> behavior ___ Python tracker <http://bugs.python.org/i

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I ran the patched version 2945 times without failure. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Do you think we can get 9527 in? My patch was based on the non-existence of a LocalTimezone facility in the stdlib. Good point about the special interpretation of -. Given 9527 (and only given 9527) it would indeed make sense to restrict email to

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: You are right that I got the regex wrong (I'm bad at regexes), but in fact it is fine the way it is. Since there's no r, the regex is actually "ba[^/]$", which is exactly what I meant. -- __

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: "prepare new tail" means all of the text from the first modified line to the end? (As opposed to "just the new mail"?) mailbox does locking. I see no reason in principle it couldn't stat/restore, it would just be setting the tim

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Oh, and does mutt's behavior apply to any mbox, or only the one in the system spool? -- ___ Python tracker <http://bugs.python.org/is

[issue9527] Add aware local time support to datetime module

2011-05-05 Thread R. David Murray
R. David Murray added the comment: LocalTimezone support would be *really* helpful for the email module. It would allow us to have unambiguous semantics for datetime objects representing timestamps exacted from or inserted into email messages (see issue 665194 for recent discussion). The

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes, since the package will save the original text anyway, I think just clamping to 59 is best. Hmm. Maybe instead I could put in an assert that says "please report this incident to bugs.python.org so we can argue that datetime should get support for

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Well, it turns out that this sporadic failure is not a test bug, but a real bug in the mailbox module that the test is revealing. This issue is the same one that motivated the changes in issue 6896. Those changes, however, merely reduced the problem, but

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21904/mailbox_mtime.patch ___ Python tracker <http://bugs.python.org/issue11999> ___ ___ Python-bug

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file21905/mailbox_mtime.patch ___ Python tracker <http://bugs.python.org/issue11999> ___ ___ Python-bug

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray added the comment: Isn't this a bit out of scope for the mailbox module, though? Mailbox is getting called at irregular intervals, and a clock monitor really wants to be a polling daemon of some sort, I think. In which case a complete application system that use

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray added the comment: Oh, and to be clear: the problem wasn't that the one second interval was too short, the problem was that the times stamps of the files were being compared to the wrong check value (the system clock instead of their previous state). The extra one

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray added the comment: I am open to the argument that we should make it two seconds and a bit to support FAT, but how many people are going to use maildir on FAT? -- ___ Python tracker <http://bugs.python.org/issue11

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-06 Thread R. David Murray
R. David Murray added the comment: All right, let's make it two seconds and a bit, then. Why do you think a tenth of second is too small? A clock with a skew of half that much would be badly broken. -- ___ Python tracker <http://bugs.py

[issue12020] Attribute error with flush on stdout,stderr

2011-05-06 Thread R. David Murray
R. David Murray added the comment: Hmm. That error message is more than a bit misleading. What you need to do is add a flush method to your FlushFile class. Something changed between 3.1 and 3.2 that causes that message to be generated instead of suppressed. Not sure what it was. The

[issue11999] sporadic failure in test_mailbox

2011-05-06 Thread R. David Murray
R. David Murray added the comment: Now we see if the buildbots agree with me that this is fixed. -- resolution: -> fixed stage: -> committed/rejected status: open -> pending title: sporadic failure in test_mailbox on FreeBSD -> sporadic failure in test_mailbox type:

[issue12023] non causal behavior

2011-05-07 Thread R. David Murray
R. David Murray added the comment: In 3.x, yes (the nonlocal keyword). Not in 2.7, though. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12

[issue12036] ConfigParser: items() adds the vars dictionary to the result

2011-05-09 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue12036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12041] test_os test_ctypes test_wait3 causes test_wait3 error

2011-05-09 Thread R. David Murray
New submission from R. David Murray : It doesn't matter which order test_os and test_ctypes run in, but if they precede test_wait3 test_wait3 will fail. When the test is immediately re-run it passes. The reason ought to be interesting once we figure it out :) Tested on linux. Do

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-05-09 Thread R. David Murray
R. David Murray added the comment: Raymond: I haven't read the examples in detail so I don't have an opinion on the appropriateness of the text, but I'm curious: while what you say certainly applies to the Language Reference, does it also apply to the Tutorial?

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-05-09 Thread R. David Murray
R. David Murray added the comment: Raymond: yes, thanks for the clear guidance. Perhaps it could be added to Documenting Python, perhaps in the Style Guide chapter? -- ___ Python tracker <http://bugs.python.org/issue11

[issue12041] test_os test_ctypes test_wait3 causes test_wait3 error

2011-05-09 Thread R. David Murray
R. David Murray added the comment: Confirmed working on my box as well, and on my buildbot (where I first noticed it). -- ___ Python tracker <http://bugs.python.org/issue12

[issue8824] Improve documentation of exec

2011-05-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue8824> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-12 Thread R. David Murray
New submission from R. David Murray : See http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.2/builds/34/steps/test/logs/stdio Antoine says that connect_ex should be returning an error, not None, in that situation. -- components: Tests keywords: buildbot messages

[issue5723] Incomplete json tests

2011-05-12 Thread R. David Murray
R. David Murray added the comment: My usual pattern (adopted from examples in the stdlib tests) is this: TestSomethingBase: tests PyTestSomething(TestSomethingBase, TestCase): stuff CTestSomething(TestSomethingBase, TestCase): stuff Is there a reason that won't work in

[issue11731] Simplify email API via 'policy' objects

2011-05-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue7656] test_hashlib fails on some installations (specifically Neal's regression test runner)

2011-05-15 Thread R. David Murray
R. David Murray added the comment: AFAIK build.sh is only as out of date as the svn/hg switchover. I believe this particular issue was dealt with, but I haven't checked. It runs the refcount tests for 2.7 (Antoine has a separate script that runs them fo

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-16 Thread R. David Murray
R. David Murray added the comment: Antoine removed that check as part of the -j support, if I recall correctly. The check for unexpected output was part of the support for the transition between the old pre-unittest test suite and the unittest based test suite, and does seem like it is

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread R. David Murray
R. David Murray added the comment: Right, that's why I said "if it is a bug" :) FreeBSD has the same behavior, so I'd actually prefer that Apple not "fix" this. It would be nice if FreeBSD did and Apple adopted it, though, since only dropping the % is t

[issue12096] test_threading.test_waitfor() timeout (1 hour) on x86 Gentoo 3.x buildbot

2011-05-17 Thread R. David Murray
Changes by R. David Murray : -- keywords: +buildbot nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12096> ___ ___ Python-bugs-list mailin

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-17 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue12009> ___ __

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-17 Thread R. David Murray
R. David Murray added the comment: With these new additions, the test input is getting unwieldy. If you have the time, I'd like to see the unit tests refactored to be more unit-testy. That is, instead of a single test netrc file, have multiple inputs, one for each thing being tested

[issue10271] warnings.showwarning should allow any callable object

2011-05-18 Thread R. David Murray
R. David Murray added the comment: Brett's been very busy with real life. Maybe someone else can commit this. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue12057] HZ codec has no test

2011-05-18 Thread R. David Murray
R. David Murray added the comment: Haypo, since you've created a new directory there are makefile (and PC build file, I think) updates that will need to be made. (This should be documented in the dev guide if it isn't already.) -- nosy: +r.da

[issue12111] email's use of __setitem__ is highly counterintuitive

2011-05-19 Thread R. David Murray
R. David Murray added the comment: This is a long-standing design choice in the email package. If you want to advocate for changing it, please join the email-sig mailing list (see mail.python.org). We are in the process of developing a new version, which will at least reject things like

[issue12104] os.path.join('/some/path', '') adds extra slash at end of result

2011-05-19 Thread R. David Murray
R. David Murray added the comment: See also #9921. -- nosy: +r.david.murray resolution: rejected -> duplicate superseder: -> os.path.join('x','') behavior ___ Python tracker <http

[issue12127] Inconsistent leading zero treatment

2011-05-20 Thread R. David Murray
R. David Murray added the comment: IMO 3.3 is definitely too soon. 3.4 may be too, depending on how many people are stuck on legacy systems using 2.7. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12

[issue12117] Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import

2011-05-20 Thread R. David Murray
R. David Murray added the comment: In fact, not fixing it might send a small message as to what we think about that particular system default :) -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue12

[issue10447] zipfile: IOError for long directory paths on Windows

2010-11-18 Thread R. David Murray
R. David Murray added the comment: I agree with Amaury. IMO the IOError is the correct error, since it is bubbling up unexpectedly (from zipfile's viewpoint) from a lower layer and is not an error specific to the zip protocol implementation. (CF the discussion surrounding PEP

[issue10456] unittest.main(verbosity=2) broke in python31, worked when I had python27

2010-11-18 Thread R. David Murray
R. David Murray added the comment: 2.7 is post-3.1. This works as you expect in 3.2. This is, it is a new feature in both 2.7 and 3.2. (NB: this is why I wanted 3.2 to come out close to 2.7, but fortunately this is the first report like this I think we've gotten.) --

[issue9921] os.path.join('x','') behavior

2010-11-19 Thread R. David Murray
R. David Murray added the comment: "first part" by itself sounds like there can only be two parts. How about 'inserts a separator between each pair of...' Also, what does 'absolute' mean on Windows? Does it include the drive? If so, the second sentence

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-19 Thread R. David Murray
R. David Murray added the comment: The argument against adding this to the pdb docs is that if you pull in that statement from cmd, you really ought to pull in the full description of the __init__ arguments. And whether you do that or just pull in that single statement, you are duplicating

[issue10462] Handler.close is not called in subclass while Logger.removeHandler is called

2010-11-19 Thread R. David Murray
R. David Murray added the comment: I doubt that close is ever called when removehandler is called. That doesn't strike me as sensible semantics. I suspect that what is happening is that in 2.6 calling removehandler removed all references to the handler, and python's garbage

[issue809163] Can't add files with spaces

2010-11-19 Thread R. David Murray
R. David Murray added the comment: Thanks for diagnosis and the test patch, and welcome to the bug weekend. Some comments: test.support has a symbol, TESTFN, which is guaranteed to be unique for the test run and located in an appropriate writeable location. Many tests use it to create a

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread R. David Murray
R. David Murray added the comment: There are currently no tests in argparse that test the content of error messages, which is fairly standard for stdlib tests since the error messages aren't considered part of the API (only the nature of the exception is). So there's really no exi

[issue8705] shutil.rmtree with empty filepath

2010-11-20 Thread R. David Murray
R. David Murray added the comment: Just as an FYI, a similar situation exists on Solaris. I had to fix one of the Python test suite tests once because it was naively trying to rmtree the CWD. -- nosy: +r.david.murray ___ Python tracker <h

[issue10466] locale.py throws exception on Windows / Non-UTF8 system

2010-11-20 Thread R. David Murray
R. David Murray added the comment: unsupported locale setting is a message that comes from the C runtime, IIUC. Does it work on windows with 2.6? -- nosy: +lemburg, r.david.murray ___ Python tracker <http://bugs.python.org/issue10

[issue10467] io.BytesIO.readinto() segfaults when used on BytesIO object seeked beyond end.

2010-11-20 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10467> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-11-20 Thread R. David Murray
Changes by R. David Murray : -- keywords: -easy ___ Python tracker <http://bugs.python.org/issue5871> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    8   9   10   11   12   13   14   15   16   17   >