[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: There's no particularly good use case for this. Plus, going forwards, dictionary-based configuration should be used (as it supports more logging features). -- nosy: +vinay.sajip resolution: - wont fix status: open - closed

[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11129 ___ ___

[issue11128] decimal.py: to_integral() corner cases

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: For the record, I prefer Python's behavior. The quantize() definition does not work well for arbitrary precision input and leads to situations like: Precision: 1 Maxexponent: 1 Minexponent: -1 tointegral 101 - 101 tointegral 101.0

[issue11138] Docs: incollect example: fill and align

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r88364. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11138

[issue8691] Doc: left alignment is not the default for numbers

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r88365. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8691 ___

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Same here: can't test it, but if you test it successfully and the installer runs, this is good for 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11079

[issue11132] compileall.compile_dir loses 'optimize' parameter in recursion.

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r88366. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11132 ___

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Same here: can't test it, but if you test it successfully and the installer runs, this is good for 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11079

[issue11116] mailbox and email errors

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The traceback from email.generator is unfortunate. I should have message_from-string reject non-ASCII input with a clear error message like mailbox.add does now, but I didn't think of it. I will see if the release manager will let me make

[issue11134] Add missing type slots

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm sure Martin has now carefully checked all the remaining slots and these three are the last ones to be added :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11134

[issue11135] Redundant doc field in TypeSpec

2011-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11135 ___ ___ Python-bugs-list

[issue7719] distutils: ignore .nfsXXXX files

2011-02-07 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- nosy: +haubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7719 ___ ___

[issue10882] Add os.sendfile()

2011-02-07 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I was testing against FreeBSD 7.0 RC1 and I confirm the problem doesn't occur on 8.1 version. Patch in attachment adds test for flags argument and skips headers/trailers tests on linux and solaris. I'm ok for committing this as-is in 3.3.

[issue11131] decimal.py: plus/minus with ROUND_FLOOR

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The patch and the test cases look good, but the implicit context must be looked up earlier now (see the altered patch). I just realize that there aren't any regression tests for this sort of situation, since for the main tests we are

[issue10882] Add os.sendfile()

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please leave open until a patch is actually committed ;) -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10882 ___

[issue7719] distutils: ignore .nfsXXXX files

2011-02-07 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Here is the applicable patch against py3k branch. -- nosy: +SilentGhost Added file: http://bugs.python.org/file20710/dir_util.py.diff ___ Python tracker rep...@bugs.python.org

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread Arve Knudsen
New submission from Arve Knudsen arve.knud...@gmail.com: As a regression from Python 2.6, when running .bat scripts on Windows with f.ex. subprocess.call under Python 2.7.1, arguments get interpreted by the shell. This bit me in the way that I could no longer pass arguments containing the

[issue10971] python Lib/test/regrtest.py -R 3:3: test_zipimport_support fails

2011-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Fixed for 3.2 in r88368 (no backport needed, since the older test suites didn't exhibit the original problem with the _ssl module reloading) -- resolution: - fixed status: open - closed ___ Python

[issue10971] python Lib/test/regrtest.py -R 3:3: test_zipimport_support fails

2011-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: (Georg reviewed the patch after I mentioned it to him on IRC) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10971 ___

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11139 ___

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Justin Bronder
Justin Bronder jsbron...@gentoo.org added the comment: On Thu, Feb 3, 2011 at 7:39 PM, Éric Araujo rep...@bugs.python.org wrote: .. Justin: what exactly is a pager that does not support man pages? vimpager is the one I'm using. For man pages there's vimmanpager. --

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Excuse me if I was unclear: I wasn’t asking for program names but for a definition of “don’t support” or description of problematic behavior. -- ___ Python tracker rep...@bugs.python.org

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Reusing MANPAGER is practical. Yet another PY* environment variable doesn't seem warranted in this case. Agreed with Alexander's simpler logic proposal in msg105153. -- nosy: +pitrou ___ Python

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: This seem to have been discussed in issue8972: closing as a duplicate. -- nosy: +SilentGhost resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11136] imaplib IMAP4_SSL shutdown gets socket error in py 3.2

2011-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11136 ___ ___ Python-bugs-list

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Justin Bronder
Justin Bronder jsbron...@gentoo.org added the comment: Éric Araujo mer...@netwok.org added the comment: Excuse me if I was unclear: I wasn’t asking for program names but for a definition of “don’t support” or description of problematic behavior. In headers with vimpager ^H is not

[issue8972] subprocess.list2cmdline doesn't quote the character

2011-02-07 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: issue11139 was closed as a duplicate of this issue. -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8972 ___

[issue11140] Error in the documentation of threading.Lock().release()

2011-02-07 Thread aaugustin
New submission from aaugustin aymeric.augus...@polyconseil.fr: The docs for the threading module state that: The release() method should only be called in the locked state; it changes the state to unlocked and returns immediately. If an attempt is made to release an unlocked lock, a

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, it's not really a duplicate, but rather invalid, since the 2.7 behavior is more correct than the 2.6 behavior. Not that it matters all that much what particular resolution is attached to a bug. Arve: It is unfortunate that the

[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would rather make _thread.error an alias of RuntimeError. That way, we can reconcile the docs and the code without breaking compatibility. Also, importing _thread won't be necessary to catch errors raised in threading objects. --

[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

2011-02-07 Thread aaugustin
aaugustin aymeric.augus...@polyconseil.fr added the comment: I agree with your solution. Unfortunately, I do not know how you would redefine ThreadError to extend RuntimeError in a C extension. _thread.error is created line 741 in trunk/Modules/threadmodule.c: ThreadError =

[issue11137] clarify use of imaplib IMAP4(_SSL) shutdown

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, clarified in r88371. Thank you! -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: aaugustin aymeric.augus...@polyconseil.fr added the comment: I agree with your solution. Unfortunately, I do not know how you would redefine ThreadError to extend RuntimeError in a C extension. _thread.error is created line 741 in

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-07 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Steven: Yes, the current structure of the first pass scan makes any patch problematic. It really would be an implementation of a different algorithm. I'm still interested in looking at it, though. --

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread Arve Knudsen
Arve Knudsen arve.knud...@gmail.com added the comment: Would you mind defining why the 2.7 behaviour is correct in this particular case? The list2cmdline behaviour discussed in issue 8972 has to do with shell commandlines; in this case, in my eyes any shell invocation (in order to run a .bat I

[issue11131] decimal.py: plus/minus with ROUND_FLOOR

2011-02-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, good point about the context; thanks for the updated patch. Yes, those missing regression tests are a problem; this isn't the first time that the above problem has appeared. -- ___ Python

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Committed in r88374 and r88375 to py3k for 3.2 and the documentation links part only in r88376 to 27 for release in 2.7.2. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed

[issue11104] distutils sdist ignores MANIFEST

2011-02-07 Thread John Dennis
Changes by John Dennis jden...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11104 ___ ___ Python-bugs-list mailing

[issue11141] 2.x range() in 3.x shelve documentation

2011-02-07 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: The example in the shelve documentation (http://docs.python.org/dev/py3k/library/shelve.html#example) uses the old range() (which returned a list): d['xx'] = range(4) # this works as expected, but... d['xx'].append(5) # *this

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The point is that subprocess (now!) is *not* interpreting the arguments when shell is false. It is passing them through to Windows. What windows does with them after that is out of the control of subprocess (and always has been).

[issue11141] 2.x range() in 3.x shelve documentation

2011-02-07 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Here is the patch. -- keywords: +needs review, patch nosy: +SilentGhost versions: +Python 3.3 Added file: http://bugs.python.org/file20713/shelve.rst.diff ___ Python tracker rep...@bugs.python.org

[issue11142] xmlrpclib.ServerProxy with verbosity produces bad output

2011-02-07 Thread Erez Sh
New submission from Erez Sh ere...@gmail.com: In xmlrpclib, a ServerProxy initialized with verbose=True produces an occasionally jumbled-up output, due to a multiple threads writing to stdout without synchronizing. I noticed this happening only for incoming data (at line 1461:

[issue11143] Issue with the issue tracker

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo ar...@users.sourceforge.net: Should I report it here? The issue is with this issue tracker itself. If we search for 2147483647 using the search box on this site (look up to the right), then it works; but if we search for 2147483648 or a bigger number (without

[issue11144] int(float) may return a long for no reason

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo ar...@users.sourceforge.net: On 32 bits, there is no reason to get a 'long' here: int(float(sys.maxint)) 2147483647L int(int(float(sys.maxint))) 2147483647 int(float(-sys.maxint-1)) -2147483648L int(int(float(-sys.maxint-1))) -2147483648 On 64 bits, it's

[issue11141] 2.x range() in 3.x shelve documentation

2011-02-07 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: docs@python - resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11141 ___

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread Arve Knudsen
Arve Knudsen arve.knud...@gmail.com added the comment: I wasn't saying that subprocess is interpreting the arguments, but that the shell is. Which was highly unexpected to me when outside of shell mode (i.e., shell == False). From some further testing, though, I see that the transformation from

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file20712/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11139 ___

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file20714/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11139 ___

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: As noted in issue 8972, it's not clear what such a mode should actually do. If you have a concrete proposal you could make it, probably on the python-ideas mailing list. But I'm personally not in favor of it; I prefer maintaining as

[issue11143] Issue with the issue tracker

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There is a link 'report tracker problem' at the bottom of the left hand column. Unfortunately you have to create an account there to submit an issue :( -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread Arve Knudsen
Arve Knudsen arve.knud...@gmail.com added the comment: The non-obvious thing with 8972 is what to do with an argument list when the 'shell' option is True, isn't it? I can't see how it overlaps with my case. My suggestion is a flag to enable argument protection in Popen, either just for

[issue11145] '%o' % user-defined instance

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo ar...@users.sourceforge.net: The expression '%o' % x, where x is a user-defined instance, usually ignores a user-defined __oct__() method. I suppose that's fine; assuming this is the expected behavior, then the present issue is about the usually in my previous

[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Where is this configuration? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11129 ___

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, having a cmd.exe 'quote' function, parallel to the shutil 'quote' function, would be an excellent addition to the stdlib. You could open a feature request for that. -- ___ Python

[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

2011-02-07 Thread Arve Knudsen
Arve Knudsen arve.knud...@gmail.com added the comment: I'll keep it in mind. On Mon, Feb 7, 2011 at 8:00 PM, R. David Murray rep...@bugs.python.orgwrote: R. David Murray rdmur...@bitdance.com added the comment: Yes, having a cmd.exe 'quote' function, parallel to the shutil 'quote'

[issue11145] '%o' % user-defined instance

2011-02-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: And this code will crash a debug build: class X(long): ... def __oct__(self): ... return 'foo'.upper() ... '%o' % X() Assertion failed: buf[sign] == '0', file ..\..\Objects\stringobject.c, line 4059 -- nosy:

[issue11146] Add a feature similar to C++ using some_namespace

2011-02-07 Thread Manuel Bärenz
New submission from Manuel Bärenz man...@enigmage.de: In C++, the the approach to the namespace problem is having different namespaces that should not contain different definitions of the same name. Members of a namespace can be accessed explicitly by e.g. calling std::cout etc. or using

[issue11146] Add a feature similar to C++ using some_namespace

2011-02-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a topic more suited to python-ideas. It isn't likely to get much traction there, but you can try :) -- nosy: +r.david.murray resolution: - rejected stage: - committed/rejected status: open - closed

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Chris Lambacher rep...@bugs.python.org wrote: I was cross-compiling to a target architecture that does not support the -march option so I would not be able to provide a different one as override. Just out of curiosity: You are

[issue11145] '%o' % user-defined instance

2011-02-07 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11145 ___ ___ Python-bugs-list

[issue11144] int(float) may return a long for no reason

2011-02-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm not sure whether this is a bug, though. So I'd be skeptical that it should be changed in 2.x, even if the cause was identified. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2011-02-07 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello Felix/Don, are you still interested in seeing this fixed in smtplib? If so, what about incorporating Martin's suggestions and propose a new patch for review? -- nosy: +sandro.tosi -Felix Schwarz stage: - test needed

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Antoine said: I don't understand how you can cross-compile using the host Python Makefile. Could you explain? The get_config_vars() function parses the host Makefile to get the values that we are discussing overriding. EXTRA_CFLAGS

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Any interest in a cleaned up version of the Debian patch (remove double opt, line length, add documentation for overriding BASECFLAGS and OPT)? I think it would be nice, but it should have a test if possible. Otherwise there'll keep being

[issue11103] Python 3.2 installer doesn't register file extensions on Windows 7

2011-02-07 Thread Darren
Darren darr...@sybase.com added the comment: I originally installed rc1 for all users. Then today I uninstalled and re-installed rc2 for just me and that didn't help anything. -- ___ Python tracker rep...@bugs.python.org

[issue11103] Python 3.2 installer doesn't register file extensions on Windows 7

2011-02-07 Thread Darren
Darren darr...@sybase.com added the comment: FWIW I'm using the 64 bit installer on Windows 7 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11103 ___

[issue11141] 2.x range() in 3.x shelve documentation

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r88377, thank you! -- nosy: +pitrou resolution: accepted - fixed stage: - committed/rejected status: open - closed versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-02-07 Thread Lenard Lindstrom
Lenard Lindstrom le...@telus.net added the comment: I think only a simple solution is needed. From my experience adding the new buffer protocol to pygame.mixer.Sound it would be easy enough for bf_releasebuffer to use the internal field to free memory allocated by bf_getbuffer. As long as

[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: See PEP 391. Documentation is at http://docs.python.org/library/logging.html#configuration as you might expect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11129

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-02-07 Thread Campbell Barton
New submission from Campbell Barton ideasma...@gmail.com: Hi, Im buildiong blender3d with -Werror and python 3.2 gives an error which doesnt happen in 3.1. Tested with SVN r88378. on linux. --- cc1: warnings being treated as errors In file included from

[issue11144] int(float) may return a long for no reason

2011-02-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11144 ___ ___