[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread Vinay Sajip
Vinay Sajip 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 : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-02-07 Thread Stefan Krah
Stefan Krah 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 -> NaN Invalid_operatio

[issue11138] Docs: incollect example: "fill" and "align"

2011-02-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r88364. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2011-02-07 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r88365. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

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

2011-02-07 Thread Georg Brandl
Georg Brandl 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 ___ __

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

2011-02-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r88366. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

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

2011-02-07 Thread Georg Brandl
Georg Brandl 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 ___ __

[issue11116] mailbox and email errors

2011-02-07 Thread Georg Brandl
Georg Brandl 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 that change. S

[issue11134] Add missing type slots

2011-02-07 Thread Georg Brandl
Georg Brandl 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 ___ ___

[issue11135] Redundant doc field in TypeSpec

2011-02-07 Thread Georg Brandl
Georg Brandl added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7719] distutils: ignore .nfsXXXX files

2011-02-07 Thread Michael Haubenwallner
Changes by Michael Haubenwallner : -- nosy: +haubi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10882] Add os.sendfile()

2011-02-07 Thread Giampaolo Rodola'
Giampaolo Rodola' 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. -- reso

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

2011-02-07 Thread Stefan Krah
Stefan Krah 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 only testing the context metho

[issue10882] Add os.sendfile()

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please leave open until a patch is actually committed ;) -- status: pending -> open ___ Python tracker ___

[issue7719] distutils: ignore .nfsXXXX files

2011-02-07 Thread SilentGhost
SilentGhost 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 __

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

2011-02-07 Thread Arve Knudsen
New submission from Arve Knudsen : 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 character '|' to .bat scri

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

2011-02-07 Thread Nick Coghlan
Nick Coghlan 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 tracker

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

2011-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: (Georg reviewed the patch after I mentioned it to him on IRC) -- ___ Python tracker ___ ___ Python-bu

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

2011-02-07 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Justin Bronder
Justin Bronder added the comment: On Thu, Feb 3, 2011 at 7:39 PM, Éric Araujo 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. -- ___ Python tracker

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Éric Araujo
Éric Araujo 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 __

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

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

2011-02-07 Thread SilentGhost
SilentGhost added the comment: This seem to have been discussed in issue8972: closing as a duplicate. -- nosy: +SilentGhost resolution: -> duplicate status: open -> closed ___ Python tracker _

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

2011-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-07 Thread Justin Bronder
Justin Bronder added the comment: > Éric Araujo 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 rendered(?) correctly. For instance, 'pyd

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

2011-02-07 Thread SilentGhost
SilentGhost added the comment: issue11139 was closed as a duplicate of this issue. -- nosy: +SilentGhost ___ Python tracker ___ ___ Py

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

2011-02-07 Thread aaugustin
New submission from aaugustin : 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 RuntimeError will be raised. Howev

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

2011-02-07 Thread R. David Murray
R. David Murray 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 bug fix in issue 8972 ca

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

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou 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. -- nosy: +gregory.p.sm

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

2011-02-07 Thread aaugustin
aaugustin 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 = PyErr_NewException("thread.error", NULL, NULL); d

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

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou 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

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

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > aaugustin 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 = Py

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

2011-02-07 Thread Eric Smith
Eric Smith 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. -- ___ Python tracker

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

2011-02-07 Thread Arve Knudsen
Arve Knudsen 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 guess) is only an implem

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

2011-02-07 Thread Mark Dickinson
Mark Dickinson 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 tracker

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

2011-02-07 Thread Ned Deily
Ned Deily 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 ___ Py

[issue11104] distutils sdist ignores MANIFEST

2011-02-07 Thread John Dennis
Changes by John Dennis : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2011-02-07 Thread Daniel Urban
New submission from Daniel Urban : 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 doesn't!* -- d['xx'] is STILL

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

2011-02-07 Thread R. David Murray
R. David Murray 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 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

[issue11142] xmlrpclib.ServerProxy with verbosity produces bad output

2011-02-07 Thread Erez Sh
New submission from Erez Sh : 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: print "body:",

[issue11143] Issue with the issue tracker

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo : 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 the quotes), then we g

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

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo : 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 another story becaus

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

2011-02-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-02-07 Thread Arve Knudsen
Arve Knudsen 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 sequence to command lin

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

2011-02-07 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20712/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-02-07 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20714/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-02-07 Thread R. David Murray
R. David Murray 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 much API consistency be

[issue11143] Issue with the issue tracker

2011-02-07 Thread R. David Murray
R. David Murray 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 status: open -> clo

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

2011-02-07 Thread Arve Knudsen
Arve Knudsen 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 arguments passed as a list (i.e

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

2011-02-07 Thread Armin Rigo
New submission from Armin Rigo : 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 sentence. If 'x' is an

[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread anatoly techtonik
anatoly techtonik added the comment: Where is this configuration? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2011-02-07 Thread R. David Murray
R. David Murray 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 tracker

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

2011-02-07 Thread Arve Knudsen
Arve Knudsen added the comment: I'll keep it in mind. On Mon, Feb 7, 2011 at 8:00 PM, R. David Murray wrote: > > R. David Murray 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 o

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

2011-02-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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: +amaury.forgeotdar

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

2011-02-07 Thread Manuel Bärenz
New submission from Manuel Bärenz : 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 namespace std; cou

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

2011-02-07 Thread R. David Murray
R. David Murray 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 added the comment: Chris Lambacher 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 cross-compiling a C-extension? How can you be sure t

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

2011-02-07 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-02-07 Thread Martin v . Löwis
Martin v. Löwis 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 _

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

2011-02-07 Thread Sandro Tosi
Sandro Tosi 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 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 is not defined in th

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou 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 regressions. --

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

2011-02-07 Thread Darren
Darren 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

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

2011-02-07 Thread Darren
Darren added the comment: FWIW I'm using the 64 bit installer on Windows 7 -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2011-02-07 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2011-02-07 Thread Lenard Lindstrom
Lenard Lindstrom 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 this pointer is p

[issue11129] logging: allow multiple entries in qualname config

2011-02-07 Thread Vinay Sajip
Vinay Sajip added the comment: See PEP 391. Documentation is at http://docs.python.org/library/logging.html#configuration as you might expect. -- ___ Python tracker ___ __

[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 : 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 /opt/py32/include/python3.2d/Python.h:52:0,

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

2011-02-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai