[issue7998] MacPython 2.7a3 posix_spawn error for build using --with-framework-name

2010-02-22 Thread Tom Loredo
New submission from Tom Loredo : Build Py-2.7a3 on Snow Leopard OS 10.6.2 with a non-default framework name: ./configure --prefix=/usr/local/tmp --enable-framework --with-framework-name=PythonAlpha --enable-universalsdk=/ --with-universal-archs=intel "make" succeeds, "make test" isn't perfec

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Alexander: What makes you think r63955 introduced the problem? Btw. This does not crash the interpreter: the example you give causes an exception and cleanly shuts down the interpreter. The exception is unwanted, but I wouldn't call it a crash. The Apple

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed some comments would be helpful, I'll add them. I also tried already to reuse 's' and extract the first char using unicode_getitem, but it returns a PyObject and anyway it's probably more expensive/complicated than calling PyString_AS_STRING again. I'll tr

[issue5801] spurious empty lines in wsgiref code

2010-02-22 Thread Tarek Ziadé
Tarek Ziadé added the comment: empty lines were removed in r78367, r78369 -- status: open -> closed ___ Python tracker ___ ___ Python-

[issue5939] Ensure that PyCapsule_GetPointer calls in ctypes handle errors appropriately

2010-02-22 Thread Larry Hastings
Larry Hastings added the comment: I finally reviewed this, and I think it does need additional armor against attack. I think a user could insert a different object into the thread local dict with the hard-coded name and get CPython to crash. This patch fixes the vulnerability: http://coderev

[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-22 Thread R. David Murray
R. David Murray added the comment: I believe the ability to log warning messages was added recently, but that it does not give you an control over what warnings are *generated*, just what happens to them (that is, allowing you to log them). On the other hand, what is the motivation for wantin

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Dave Malcolm
Dave Malcolm added the comment: Eric Smith: > Isn't it true that after regenerating configure that you need to check > it back in? Or is that so obvious to everyone except me that it's not > worth mentioning? FWIW the above point wasn't obvious to me; if that's the case, then it needs to be s

[issue2134] function generate_tokens at tokenize.py yields wrong token for colon

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Unfortunately I think this will break many users of tokenize.py. e.g. http://browsershots.googlecode.com/svn/trunk/devtools/pep8/pep8.py has code like: if (token_type == tokenize.OP and text in '([' and ...): If tokenize now returns LPAR, this code will no lon

[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-22 Thread Éric Araujo
Éric Araujo added the comment: Hello Here’s another idea. I seem to remember Python warnings can be turned into logging events. If these big apps and frameworks (that already use logging) turned warnings into logging calls, standard logging configuration mecanisms could be used to achieve yo

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-22 Thread Vlastimil Brom
Vlastimil Brom added the comment: Wow, that's what can be called rapid development :-), thanks very much! I did'n noticed before, that \G had been implemented already. \X works fine for me, it also maintains the input string indices correctly. We can use unicode character properties \p{Letter}

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-22 Thread Alex Willmer
Alex Willmer added the comment: On 22 Feb 2010, at 21:24, Matthew Barnett wrote: > issue2636-20100222.zip is a new version of the regex module. > > This new version adds reverse searching. > > The 'features' now come in ReStructuredText (.rst) and HTML Thank you

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-22 Thread Matthew Barnett
Matthew Barnett added the comment: OK, you've convinced me, \X is supported. :-) issue2636-20100223.zip is a new version of the regex module. -- Added file: http://bugs.python.org/file16331/issue2636-20100223.zip ___ Python tracker

[issue1708316] doctest work with Windows PyReadline

2010-02-22 Thread manuelg
manuelg added the comment: The supported version and the trunk of pyreadline launchpad.net/pyreadline no long relies on sys.stdout for the encoding for the Windows console. Getting .encoding from sys.__stdout__ seems reasonable. If taken from sys.stdout at very last moment, only referencing

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Eric Smith
Eric Smith added the comment: Isn't it true that after regenerating configure that you need to check it back in? Or is that so obvious to everyone except me that it's not worth mentioning? -- nosy: +eric.smith ___ Python tracker

[issue6292] Fix tests to work with -OO

2010-02-22 Thread R. David Murray
R. David Murray added the comment: Applied a slightly cleaned up (with help from Brian and Matias Torchinsky at the sprint) version of Brian's patch in r78351. Leaving open until merged to py3k. -- assignee: -> r.david.murray nosy: +r.david.murray resolution: -> fixed stage: patch

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: This looks good! Is it worth mentioning that autoreconf updates pyconfig.h.in as well as configure? There's also an OS X oddity to be aware of, though I'm not sure whether it's worth mentioning in the FAQ. On OS X 10.6, the system autoconf (/usr/bin/autoco

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: Here is a profile run of the 200 line case, run on the 3.x trunk, and with all the trivial functions removed. quick_ratio and __contains__ dominate the time. The process was CPU bound, memory usage stayed low. 17083154 function calls (17066360 primitive c

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Dave Malcolm
New submission from Dave Malcolm : http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure" Here's an attempt at answering that question; I hope the following is appropriate and factually correct: How to regenerate the "configure" script (e.g. to add a new configura

[issue7196] Clarify str.split() behavior

2010-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Agreed. Thanks Jack. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-22 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Mon, Feb 22, 2010 at 6:10 PM, Guido van Rossum wrote: > > Guido van Rossum added the comment: > > All examples so far (*) have to do with our inability to have properly nested > blocks. If we did, I'd make the except clause a block, and I'd issue a syntax

[issue7996] concurrency problem in regrtest -jX

2010-02-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : While testing GIL changes I ran against an interesting bug in regrtest when run with -j. It turns out that we can't consume a generator from two threads simultaneously. Exception in thread Thread-8: Traceback (most recent call last): File "/home/antoine/

[issue6886] cgi.py runs python, not python3

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: +0 I'm ambivalent. The script uses a reasonable default and pyhton3 is a reasonable default for the 3k branch. That said most people will have to edit the file anyway to use it: I had to chmod a+x the file and change the bang path to /usr/bin/python to get

[issue1517495] memory leak threading or socketserver module

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I can no longer confirm this bug, either; trying the scripts with the current trunk doesn't seem to leak. Backing out Jeffrey's r61011 didn't bring the problem back, so I'll just conclude that the problem has gotten fixed along the way somehow. -- re

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is another patch based on a slightly different approach. Instead of being explicitly triggered in I/O methods, priority requests are decided based on the computed "interactiveness" of a thread. Interactiveness itself is a simple saturated counter (increm

[issue7196] Clarify str.split() behavior

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: I suggest this be closed WONTFIX. The str.split() documentation accurately describes str.split() but doesn't happen to do what the OP wanted which was list(filter(None, '00010001'.split('0'))) Instead split(sep) is the reciprocal of sep.join(), that is txt =

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-22 Thread Matthew Barnett
Matthew Barnett added the comment: I don't know what happened there. I didn't notice that the zip file was way too small. Here's a replacement (still called issue2636-20100222.zip). Unicode script properties are already included, at least those whose definitions at htt

[issue7796] No way to find out if an object is an instance of a namedtuple

2010-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Discussed this with GvR. Here's a recap: For 2.6 and 3.1 which are already released, check for the _fields attribute. This is a guaranteed part of the API is not fragile. For the C structures, check for the n_fields attribute. In the future, the C API n

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-22 Thread Guido van Rossum
Guido van Rossum added the comment: All examples so far (*) have to do with our inability to have properly nested blocks. If we did, I'd make the except clause a block, and I'd issue a syntax warning or error if a nested block shadowed a variable referenced outside it. Ditto for generator exp

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am reclassifying this as a crash because os.getgroups() crashes the interpreter when python is running as root on an unmodified system: $ sudo ./python.exe -c "import os; os.getgroups()" Traceback (most recent call last): File "", line 1, in OSErro

[issue1180002] locale.format question

2010-02-22 Thread R. David Murray
R. David Murray added the comment: The last comment set this issue to 'remind' in case someone wanted to fix it in the future...it's pretty much fixed now. format_string was added in 2.5, and in 2.6 format only accepts a string containing just a format code. -- nosy: +r.david.murray

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-22 Thread Vlastimil Brom
Vlastimil Brom added the comment: Is the issue2636-20100222.zip archive supposed to be complete? I can't find not only the rst or html "features", but more importantly the py and pyd files for the particular versions. Anyway, I just skimmed through the regular-expressions.inf

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After some head-scratching, I figured out how to reproduce stock python2.5 behavior. It turns out that defining _DARWIN_C_SOURCE not only allows getgroups() output to exceed NGROUPS_MAX (as documented), but also effectively disables setgroups() which i

[issue216285] Unicode encoders don't report errors properly

2010-02-22 Thread R. David Murray
Changes by R. David Murray : -- resolution: remind -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2010-02-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: platform.system() is a direct interface to platform.uname() which in return is an interface to the platform's uname() API, so the reasoning is much the same as for sys.platform on those platforms that do expose a uname() function (and command). On Mac OS

[issue7366] weakref module example relies on behaviour not guaranteed by id()

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: This is true but /any/ key in the WeakValueDictionary could be reused and result in similar behavior, not just the id() of the inserted value. I'm closing at "won't fix" -- nosy: +jackdied resolution: -> wont fix status: open -> closed

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-22 Thread Eric Smith
Eric Smith added the comment: Could you add a comment on why you're calling PyUnicode_FromString and then throwing away the result? I believe it's so you'll get the same error checking as PyUnicode_FromString, but it's sufficiently tricky that I think it deserves a comment. Now that I think

Re: [issue4617] SyntaxError when free variable name is also an exception target

2010-02-22 Thread Jeremy Hylton
It's an interesting bug. Maybe the compiler shouldn't allow you to use such a variable as a free variable in a nested function? On Thu, Feb 11, 2010 at 9:09 PM, Craig McQueen wrote: > > Craig McQueen added the comment: > > There's also this one which caught me out: > > def outer(): >  x = 0 >  

[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2010-02-22 Thread Justin Cappos
Justin Cappos added the comment: Perhaps the right way to fix the problem without breaking code would be to propose a new function for platform which would return a 'newbie readable' string of the system type? -- nosy: +Justin.Cappos ___ Python tra

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-02-22 Thread Justin Cappos
New submission from Justin Cappos : Suppose there is a program that has a listening socket that calls accept to obtain new sockets for client connections. socketmodule.c assumes that these client sockets have timeouts / blocking in the default state for new sockets (which on most systems mea

[issue6902] Built-in types format incorrectly with 0 padding.

2010-02-22 Thread Eric Smith
Eric Smith added the comment: The root of this problem is an interaction with ',' formatting that was introduced in 2.7 and 3.1. I'm still trying to figure out how to implement it. I'm changing the priority to low because I can't imagine this is a problem in practice. If anyone thinks otherwi

[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2010-02-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: A.M. Kuchling wrote: > > A.M. Kuchling added the comment: > > I tried figuring out to rebuild the codecs using the scripts in > Tools/unicode/ but failed. Is the use of that directory documented anywhere? See the Makefile in that directory - that's wha

[issue7994] object.__format__ should reject format strings

2010-02-22 Thread Eric Smith
New submission from Eric Smith : Background: format(obj, fmt) eventually calls object.__format__(obj, fmt) if obj (or one of its bases) does not implement __format__. The behavior of object.__format__ is basically: def __format__(self, fmt): return str(self).__format__(fmt) So the caller

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-22 Thread David Beazley
David Beazley added the comment: I posted some details about the priority GIL modifications I showed during my PyCON open-space session here: http://www.dabeaz.com/blog/2010/02/revisiting-thread-priorities-and-new.html I am attaching the .tar.gz file with modifications if anyone wants to look

[issue6871] decimal.py: more format issues

2010-02-22 Thread Eric Smith
Eric Smith added the comment: [If the status is pending, any comment turns it back to open, by design.] I'd rather float.__format__ agree with %-formatting for floats than with anything else. >>> '%+08.4f' % float('nan') '+nan' >>> "%00f" % float('123') '123.00' (Not sure about the p

[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I tried figuring out to rebuild the codecs using the scripts in Tools/unicode/ but failed. Is the use of that directory documented anywhere? -- ___ Python tracker _

[issue6871] decimal.py: more format issues

2010-02-22 Thread Stefan Krah
Stefan Krah added the comment: [The tracker apparently set the status to 'open' without my intervention.] To sum up what I said earlier about #1 and #2, I think that the C standard and gcc's warning behavior support the way of Decimal. -- ___ Python

[issue6871] decimal.py: more format issues

2010-02-22 Thread Stefan Krah
Stefan Krah added the comment: I couldn't find other issues where #1 and #2 are addressed. This is from py3k: #1: >>> format(float('nan'), '+08.4') '+nan' [70141 refs] >>> format(Decimal('nan'), '+08.4') '+NaN' #2:>>> format(float(123), "00") '123.0' [70141 refs] >>> format(Decimal(

[issue7463] PyDateTime_IMPORT() causes compiler warnings

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: changing the definition to (const char *) seems like the right thing to do - a quick grep of the Python source and a search on google codesearch only shows uses with either string literals or string literals cast to (char *) in order to silence a warning. I

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2010-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: I tried json.loads(u'3.14') on trunk and release26-maint and it worked fine, on py3k and release31-maint json.loads('3.14') works too, so I'm closing this issue. -- nosy: +ezio.melotti resolution: accepted -> out of date stage: needs patch -> committed/

[issue6871] decimal.py: more format issues

2010-02-22 Thread Eric Smith
Eric Smith added the comment: I think there are no remaining issues here that don't have their own issue. I'm going to close this unless one of you think otherwise. -- assignee: -> eric.smith resolution: -> out of date status: open -> pending type: -> behavior _

[issue1514] missing constants in socket module

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: The original problem has been fixed since 2007. Improving the #if condition doesn't seem very important to anyone, so I'll just close this bug. -- nosy: +akuchling resolution: -> fixed status: open -> closed ___ Py

[issue7049] decimal.py: Three argument power issues

2010-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: Well, the real problem is that powmod doesn't really belong in the decimal module at all. It's not a natural primitive arithmetic operation; it's certainly not naturally a floating-point operation; nothing like this appears in any floating-point standard tha

[issue7646] test_telnetlib fails in Windows XP

2010-02-22 Thread Austin English
Austin English added the comment: Okay, thanks for the information. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue7646] test_telnetlib fails in Windows XP

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: I was mistaken, the tests were backported to 3.1.x maint (In fact I was the one who did it). So this is fixed in the next point release of 3.1.x. -- resolution: -> out of date status: open -> closed ___ Python tra

[issue1708316] doctest work with Windows PyReadline

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Does the attached, slightly simpler patch, also fix it? The patch just sets the .encoding attribute after creating it with _SpoofOut(). The revised patch doesn't seem to break anything on MacOS; I don't have access to Windows to test whether it still fixes t

[issue7647] Add statvfs flags to the posix module

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a patch that updates the 2.7 docs. Adam, have you submitted a contributor agreement (http://www.python.org/psf/contrib/)? -- nosy: +akuchling Added file: http://bugs.python.org/file16318/posix-statvfs-flag-docs.txt _

[issue7049] decimal.py: Three argument power issues

2010-02-22 Thread Stefan Krah
Stefan Krah added the comment: I've tried to pinpoint exactly what I don't like about the current behavior, and the main reason is that it violates my mental model of how the functions in the specification generally behave: 1) Functions take arbitrary precision input. 2) Functions try to prese

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: I disagree with this bug report. First the responsibility of checking if something is not malicious URL lies at the application/client end, urllib in its redirection never urlopen()'s the redirected url, so you are not harmed in anyway. If you wanted to be

[issue6857] float().__format__() default alignment

2010-02-22 Thread Eric Smith
Eric Smith added the comment: With the fixes for complex in issue 7988, I believe this issue is completed. -- priority: -> normal resolution: -> accepted stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue7988] complex.__format__ has incorrect default alignment

2010-02-22 Thread Eric Smith
Eric Smith added the comment: Checked in: trunk r78329 py3k r78333 release31-maint r78334 -- priority: -> low resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: And here is an experimental patch which enables the "priority requests" mechanism which was in the original new GIL patch. "Experimental" because it only enables them on a couple of socket methods (enough to affect the benchmarks). Here are the UDP benchmark

[issue4331] Can't use _functools.partial() created function as method

2010-02-22 Thread R. David Murray
R. David Murray added the comment: I would expect the second and would view the first as a bug. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue1669349] make install fails if no previous Python installation

2010-02-22 Thread Gael
Gael added the comment: I have the same issue on Sun Solaris while compiling Python 2.4.5 on a Python-less system. I was using GNU tools (tar, zlib, libgcc and bash). I have noticed that the error appears while using --prefix=/something/ending/with/Python-2.4 But if I use --prefix=/somethin

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: New patch (issue7649v2.diff) with refleak fixed and improved unittests. -- keywords: +needs review Added file: http://bugs.python.org/file16314/issue7649v2.diff ___ Python tracker __

[issue7627] mailbox.MH.remove() lock handling is broken

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your bug report! Unfortunately, the fix isn't quite right, because on Windows you can't delete files that are open. I think an even simpler fix is just to remove that locking; if self._locked is true, this process presumably has exclusive access t

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2010-02-22 Thread Joel Pearson
Joel Pearson added the comment: The fix for this bug was included in r72194. I verified that the fix is included in trunk, the release31-maint branch, and the py3k branch. I also verified that json.loads(u'3.14') works in 2.7a3, and that json.loads('3.14') works in 3.1.1, so I believe that th

[issue7980] time.strptime not thread safe

2010-02-22 Thread R. David Murray
R. David Murray added the comment: Attribute error confirmed on linux on trunk and py3k. -- priority: -> normal stage: -> test needed ___ Python tracker ___ ___

[issue7980] time.strptime not thread safe

2010-02-22 Thread Eric Smith
Eric Smith added the comment: I just tried it again under gdb on MacOS 10.6, the supplied python 2.6.4 and got this backtrace: Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to process 61133] 0x7fff87a4b790 in __CFInitialize () (gdb) bt #0 0x7fff87a4b790 in __CFIni

[issue7989] Transition time/datetime C modules to Python

2010-02-22 Thread Brian Curtin
Brian Curtin added the comment: Correct, your wording is better than mine. I'll ask around and see where that datetime module may be and what it's state is. -- ___ Python tracker _

[issue7989] Transition time/datetime C modules to Python

2010-02-22 Thread R. David Murray
R. David Murray added the comment: By 'convert', I believe you mean 'create a python implementation of'. That is, there's no reason to drop any c code, just to create parallel python versions when possible. Also note that one of the alternate implementations (IronPython I think) has an impl

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for the patches! Two comments on the addchstr change: * I think that, instead of checking for a list, the method should accept any Python sequence; a tuple is perfectly reasonable, for example, and if the code is changed to use PyCurses_ConvertToChType

[issue6312] httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

2010-02-22 Thread Michal Božoň
Michal Božoň added the comment: i confirm.. in my case, the bug manifestated when calling HEAD method on a different server with chunked transfer encoding (http://obrazky.cz) my workaround is to call response.read() always, except from cases when method == 'HEAD' and resp.getheader('transfer

[issue4174] Performance optimization for min() and max() over lists

2010-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: I agree that the performance improvement isn't worth the extra code, or the risk of introducing bugs (the comments so far show that it's not trivial to get this right). Closing as rejected. -- nosy: +mark.dickinson resolution: -> rejected status: op

[issue4174] Performance optimization for min() and max() over lists

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the patch should just be rejected. Workloads where min() / max() performance is a bottleneck have to be very rare. -- ___ Python tracker __

[issue7399] Possible bug in Python Tutorial

2010-02-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r78325, r78326. -- assignee: georg.brandl -> orsenthil nosy: +orsenthil resolution: -> fixed status: open -> closed ___ Python tracker __

[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: -1, my Ubuntu laptop says "linux2" and not "ubuntu." This would also be an incompatible change that would cause headaches with little benefit to balance it out. -- nosy: +jackdied ___ Python tracker

[issue4174] Performance optimization for min() and max() over lists

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Should this patch just be rejected, then? Or is the more general locking suggested in msg88021 of interest? -- nosy: +akuchling ___ Python tracker

[issue6243] getkey() can segfault in combination with curses.ungetch()

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Backported to 2.6-maint in commit 78324. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4331] Can't use _functools.partial() created function as method

2010-02-22 Thread Jack Diederich
Jack Diederich added the comment: I'm having some trouble wrapping my head around this one. It isn't obvious to me that my_method(*args): print(args) class A(): meth = partial(my_method, 'argA') ob = A() ob.meth('argB') should print (, 'argA', 'argB') and not ('argA', , 'argB') The patch

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've converted apple patches to unified diffs, but I cannot reproduce 2.5 behavior. -- Added file: http://bugs.python.org/file16309/apple-2.5-fix-posixmodule.c.diff ___ Python tracker

[issue7989] Transition time/datetime C modules to Python

2010-02-22 Thread Brian Curtin
New submission from Brian Curtin : After discussion on numerous issues, python-dev, and here at the PyCon sprints, it seems to be a good idea to move timemodule.c to _timemodule.c and convert as much as possible into pure Python. The same change seems good for datetime.c as well. -- c

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: And as usual they can't be bothered to describe what the patch does, or even use regular universal diffs. -- ___ Python tracker ___ __

[issue3132] implement PEP 3118 struct changes

2010-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: > One benefit of having a type code for 'long double' (assuming you are > mapping the value to the platform's 'long double') is that the you > don't have to know how many bytes are in the underlying representation. Agreed: it's nice to have struct.pack already

[issue7987] Python 3.1's http.client doesn't support HTTPS

2010-02-22 Thread Florent Xicluna
Florent Xicluna added the comment: Duplicate of #6494: "This is not a bug in Python. You need to build Python with SSL support for this to work." -- nosy: +flox priority: -> low resolution: -> duplicate status: open -> closed superseder: -> xmlrpc client does not support HTTPS

[issue7980] time.strptime not thread safe

2010-02-22 Thread R. David Murray
R. David Murray added the comment: FYI there's been a proposal to create a time.py module anyway in order to add some pure python functions not worth writing in c. -- nosy: +r.david.murray ___ Python tracker _

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Apparently, Apple patches posix_[gs]etgroups functions as follows: for 2.5: http://www.opensource.apple.com/source/python/python-44/2.5/fix/posixmodule.c.ed for 2.6: http://www.opensource.apple.com/source/python/python-44/2.6/fix/posixmodule.c.ed

[issue7987] Python 3.1's http.client doesn't support HTTPS

2010-02-22 Thread Jelly Chen
New submission from Jelly Chen : posturl='https://storage.msn.com/storageservice/MetaWeblog.rpc' username="sinojellycn" password="123456" blog = pyblog.WordPress(posturl, username, password) content = {"description":'Test description6', "title":'Test article6'} blog.new_post(content, blogid = "1

[issue1657] [patch] epoll and kqueue wrappers for the select module

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: What exactly needs to be finished in the documentation? There are sections for the epoll and kqueue objects, and the epoll section looks fine, if brief. Is the problem that the kqueue section says things like 'filter-specific data' with no explanation?

[issue7977] I found Python 3.1 xmlrpc lib use "" not properly. and i have fixed it.

2010-02-22 Thread Florent Xicluna
Florent Xicluna added the comment: Attached, the output of the test with "-v test_xmlrpc". -- Added file: http://bugs.python.org/file16308/issue7977_test_xmlrpc.log ___ Python tracker __

[issue7232] Support of 'with' statement fo TarFile class

2010-02-22 Thread Brian Curtin
Brian Curtin added the comment: The last patch does more than it should for this issue. Here is a minimal patch with the change, test, and doc updates. -- Added file: http://bugs.python.org/file16307/issue7232.diff ___ Python tracker

[issue7986] Python 3 cannot recognize url like: https://sinojellycn:123...@storage.msn.com

2010-02-22 Thread Jelly Chen
New submission from Jelly Chen : posturl='https://sinojellycn:123...@storage.msn.com/storageservice/MetaWeblog.rpc' username="sinojellycn" password="123456" blog = pyblog.WordPress(posturl, username, password) content = {"description":'Test description6', "title":'Test article6'} blog.new_post(c

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is another interesting fact: Mac OS 10.6 comes with python 2.5 and 2.6 preinstalled: $ python2.5 -V Python 2.5.3c1 $ python2.6 -V Python 2.6.1 Neither of these exhibit the same bug, but both are broken in some way. Given $ cat tg.py import os g =

[issue7038] test_curses fails on os x 10.6

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing this bug is fine with me. -- nosy: +akuchling resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue7977] I found Python 3.1 xmlrpc lib use "" not properly. and i have fixed it.

2010-02-22 Thread Florent Xicluna
Florent Xicluna added the comment: I didn't look at this issue in details. I'm not a specialist of xmlrpc. But it is unlikely that the patch will be accepted, if it fails the regression tests. Could you investigate this failure and provide a patch which fixes the tests? You could add a specif

[issue7049] decimal.py: Three argument power issues

2010-02-22 Thread Mark Dickinson
Mark Dickinson added the comment: I've fixed the docs to accurately describe three-argument pow results (the exponent in particular) in r78312 through r78315. -- ___ Python tracker

[issue7310] Unhelpful __repr__() in os.environ

2010-02-22 Thread R. David Murray
R. David Murray added the comment: I like (2). If someone tries to use the repr to recreate the object, it will fail with a message that mentions _Environ. So no information is lost, I think, by using (2). -- nosy: +r.david.murray ___ Python trac

[issue4852] Cleanup old stuff from pythread.h

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: The patch seems obviously correct to me; there's no way a user of pythread.h can make NO_EXIT_PROG be undefined. The patch no long applies cleanly to thread_nt.h -- one hunk is rejected -- but it looks like the change in that hunk has already been applied (th

[issue7980] time.strptime not thread safe

2010-02-22 Thread Brett Cannon
Brett Cannon added the comment: Lib/_strptime.py itself should be thread-safe. I am guessing that it has something to do with the way the C code in time.c imports _strptime.py. A possible solution if it is the C code's import stuff is to create a time.py that imports a _time.c, but that's a t

[issue7310] Unhelpful __repr__() in os.environ

2010-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Do you have any preference about the text that should appear in the repr? There have been some discussion on #python-dev about it, and the two main proposal were: 1) _Environ({...}) -> the right class name but kind of "ugly" and probably unnecessary (if no one c

  1   2   >