[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-30 Thread Ross Lagerwall
Ross Lagerwall added the comment: The tests seem to be working fine on all the buildbots now... Thanks! -- resolution: -> accepted stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue12449] Add accelerator "F" to button "Finish" in all MSI installers made by bdist_msi

2011-06-30 Thread Ram Rachum
New submission from Ram Rachum : I noticed that in MSI installers downloaded from PyPI don't have an accelerator on the Finish button. Please add an accelerator on it. (I think that "F" is the accepted one.) -- assignee: tarek components: Distutils messages: 139463 nosy: cool-RR, eric.

[issue12446] StreamReader Readlines behavior odd

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also #8260. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also #12446. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : Reported by Michael Ford in msg139402: http://www.serpentine.com/blog/2011/06/29/here-be-dragons-advances-in-problems-you-didnt-even-know-you-had/ describes a new algorithm for float<->str conversions. It would be interesting to see if it is better/fast

[issue7117] Backport py3k float repr to trunk

2011-06-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I've filed issue12450 to track this last idea. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12442] shutil.disk_usage()

2011-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New patch includes: - Py_BEGIN/END_ALLOW_THREADS around GetDiskFreeSpaceEx() call - use of assertGreaterEqual / assertLessEqual when testing the percentage usage - use of hasattr(shutil, 'disk_usage') for skipping the test - extended url reference in the com

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Eric V. Smith
Eric V. Smith added the comment: I see the problems as: 1. Given Python's other overhead, we'd need to profile to show an improvement in the speed of this conversion would make a noticeable impact on any import workload. 2. If we want to keep the shortest-float-repr property for all possible

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Tomaž Šolc
Tomaž Šolc added the comment: The way I see it is that Charles-François' patch trades a possibility of a deadlock for a possibility of a child process running with inconsistent states due to forcibly reinitialized locks. Personally, I would rather have an occasional deadlock than an occasiona

[issue7117] Backport py3k float repr to trunk

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11682] PEP 380 reference implementation for 3.3

2011-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: Renaud has updated the patch on bitbucket to incorporate Greg's tests (still in golden output form, but in a unittest/regrtest compatible way). That's a good enough starting point for me - they can be refactored into proper assert based tests later. The only t

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I don't think this is worth further disruption. We already have an excellent set of float repr routines. There is no problem to be solved here. -- assignee: -> rhettinger priority: normal -> low versions: +Python 3.3 __

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
New submission from STINNER Victor : open() uses the locale encoding in Python 3 when opening text file if the encoding argument is not specified (implicit). Some functions use locale encoding, but it's not the right encoding. I see at least three cases where the encoding should be changed:

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Charles-François Natali
Charles-François Natali added the comment: > The way I see it is that Charles-François' patch trades a possibility of a > deadlock for a possibility of a child process running with inconsistent > states due to forcibly reinitialized locks. > Yeah, that's why I let this stale: that's really an

[issue12442] shutil.disk_usage()

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why do you return a percentage? People can compute that themselves if they want to. -- ___ Python tracker ___

[issue12442] shutil.disk_usage()

2011-06-30 Thread Brian Curtin
Brian Curtin added the comment: Agreed. I think we should pass on the raw data - how the user wants to format and present that is up to them. -- ___ Python tracker ___

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd73edea78dc by Victor Stinner in branch '3.2': Issue #12451: distutils now opens the setup script in binary mode to read the http://hg.python.org/cpython/rev/bd73edea78dc New changeset 8a7fd54cba01 by Victor Stinner in branch 'default': (merge 3.2

[issue12450] Use the Grisu algorithms to convert floats to strings

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1942f7c8f51c by Victor Stinner in branch '3.2': Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to http://hg.python.org/cpython/rev/1942f7c8f51c New changeset 3e627877b5a9 by Victor Stinner in branch 'default': (merge 3.2

[issue12449] Add accelerator "F" to button "Finish" in all MSI installers made by bdist_msi

2011-06-30 Thread Éric Araujo
Éric Araujo added the comment: As a new feature, this cannot go into distutils. Would you like to contribute a patch? I have currently no idea about the workings of the MSI code. -- components: +Distutils2 -Distutils nosy: +alexis stage: -> needs patch type: behavior -> feature requ

[issue12448] smtplib's __main__ doesn't flush when prompting

2011-06-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Nir Aides
Nir Aides added the comment: Well, I ping my view that we should: 1) Add general atfork() mechanism. 2) Dive into the std lib and add handlers one by one, that depending on case, either do the lock/init thing or just init the state of the library to some valid state in the child. Once this m

[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

2011-06-30 Thread STINNER Victor
New submission from STINNER Victor : sysconfig uses regex to parse the a .plist file (format based on XML), /System/Library/CoreServices/SystemVersion.plist: the plistlib module can be used instead. I rebuild my patched Python from scatch (make distclean) and I didn't notice any bootstrap issu

[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file22522/plistlib_deprecation.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

2011-06-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2193] Cookie Colon Name Bug

2011-06-30 Thread R. David Murray
R. David Murray added the comment: Well, it's been a while since I looked at the cookie code, and I didn't review it when I reviewed your patch. But some time after I hit submit on my message the issue about some stuff getting ignored anyway occurred to me. So given that we are *already* in

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: pkginfo_utf8.patch: distutils uses UTF-8 to write PKG-INFO and .egg-info, instead of the locale encoding. It should be applied to 2.7, 3.2 and 3.3. packaging_pkginfo_utf8.patch: packaging tests use UTF-8 to write PKG-INFO files, instead of the locale encoding

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file22524/packaging_pkginfo_utf8.patch ___ Python tracker ___ ___ Python-bugs-li

[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2011-06-30 Thread Julian
Julian added the comment: Looking over this again with a clear head, adding the number operators is the incorrect thing to do here I think, since that function was also written assuming we had a set-like view object as input. I am inclined to think that the correct behavior here for those ope

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Tomaž Šolc
Tomaž Šolc added the comment: > You mean a runtime warning? That would be ugly and clumsy. > A warning is probably a good idea, but it should be added somewhere in os.fork() and threading documentation. I was thinking about a run time warning that is emitted if you call os.fork() while multipl

[issue7846] Fnmatch cache is never cleared during usage

2011-06-30 Thread R. David Murray
R. David Murray added the comment: Well, it's unnoficially configurable pre-3.2 (set _MAXCACHE on the module). The lru_cache implementation doesn't have such an undocumented way of tweaking the limit. In neither case, however, is it true that "nothing is ever cached". You are saying that y

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-06-30 Thread Éric Araujo
Éric Araujo added the comment: > pkginfo_utf8.patch: distutils uses UTF-8 to write PKG-INFO and > .egg-info, instead of the locale encoding. It should be applied to > 2.7, 3.2 and 3.3. Okay. I guess you’ll use codecs.open in 2.7; please make sure there is no bootstrapping issue for the build

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I was thinking about a run time warning that is emitted if you call > os.fork() while multiple threads are active. It is ugly, but at least > it tells you you are doing something that will in most cases not work > correctly. The problem is that multiprocessin

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Nir Aides
Nir Aides added the comment: > I believe that the comp.programming.threads post from > David Butenhof linked above explains why adding atfork() > handlers isn't going to solve this. In Python atfork() handlers will never run from signal handlers, and if I understood correctly, Charles-Franço

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-30 Thread Éric Araujo
Éric Araujo added the comment: Agreed with Raymond. Is there some way the doc could be improved, or do we just close this report? -- nosy: +eric.araujo ___ Python tracker ___

[issue11873] test_regexp() of test_compileall fails occassionally

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: > What about Windows? tempfile.mkdtemp(prefix='bar') can generate > ...\tmpxxbaxx\... AH! The test failed on "x86 XP-4 x86": http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4874/steps/test/logs/stdio ===

[issue12453] test_import.test_failing_import_sticks() sporadic failures

2011-06-30 Thread STINNER Victor
New submission from STINNER Victor : The following test fails sometimes. I don't know on which buildbot it occurs. The last failure is on "x86 XP-5 3.x": == FAIL: test_failing_import_sticks (test.test_import.ImportTests) --

[issue12139] Add CCC command support to ftplib

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: The test is still failing on many buildbots. x86 Ubuntu Shared 3.x: == ERROR: test_ccc (test.test_ftplib.TestTLS_FTPClass) -

[issue7846] Fnmatch cache is never cleared during usage

2011-06-30 Thread R. David Murray
R. David Murray added the comment: Grr. "it is *not* true that nothing is ever cached". -- ___ Python tracker ___ ___ Python-bugs-lis

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bafc5c7d24b2 by Victor Stinner in branch '3.2': Issue #12451: doctest.debug_script() doesn't create a temporary file anymore to http://hg.python.org/cpython/rev/bafc5c7d24b2 New changeset 77c589b27e90 by Victor Stinner in branch 'default': (merge 3

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also issue #9561 for distutils: I just attached a new patch for PKG-INFO / .egg-info files. -- ___ Python tracker ___

[issue11873] test_regexp() of test_compileall fails occassionally

2011-06-30 Thread Thomas Holmes
Changes by Thomas Holmes : -- nosy: +Thomas.Holmes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45e3dafb3dbe by Victor Stinner in branch '3.2': Issue #12451: The XInclude default loader of xml.etree now decodes files from http://hg.python.org/cpython/rev/45e3dafb3dbe New changeset e8eea84a90dc by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68bc1a29ba5a by Victor Stinner in branch '3.2': Issue #12451: Open files in binary mode in some tests when the text file is not http://hg.python.org/cpython/rev/68bc1a29ba5a New changeset 3969b6377f52 by Victor Stinner in branch 'default': (merge 3

[issue12139] Add CCC command support to ftplib

2011-06-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The culprit here is the dummy FTP test server which does not complete the SSL shutdown procedure successfully. I believe it's better if we remove the self.client.sendcmd('noop') line. That's there in order to check that client and server can still "talk" a

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4388478f9b2 by Victor Stinner in branch 'default': Issue #12451: Open the test file in binary mode in test_bz2, the text file is http://hg.python.org/cpython/rev/c4388478f9b2 -- ___ Python tracker

[issue12139] Add CCC command support to ftplib

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0cef8cac71c8 by Giampaolo Rodola' in branch 'default': Issue 12139: ftplib - remove 'post CCC' test to fix various buildot failures due to dummy test server not properly handling SSL shutdown(), see http://bugs.python.org/msg139499 http://hg.pytho

[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-06-30 Thread STINNER Victor
New submission from STINNER Victor : The MH class uses the locale encoding to read and write .mh_sequences files. According to R. David Murray, ASCII can be safetly used instead. Extract of our discussion on IRC: bitdancer> haypo: that's one of the cases where using locale is probab

[issue12139] Add CCC command support to ftplib

2011-06-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +jerub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also issue #12454 for the mailbox module (.mh_sequences). -- ___ Python tracker ___ ___ Python-

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12449] Add accelerator "F" to button "Finish" in all MSI installers made by bdist_msi

2011-06-30 Thread Thomas Holmes
Changes by Thomas Holmes : -- nosy: +thomas.holmes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8501] --dry-run option doesn't work

2011-06-30 Thread Thomas Holmes
Changes by Thomas Holmes : -- nosy: +thomas.holmes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-30 Thread Thomas Holmes
Changes by Thomas Holmes : -- nosy: +thomas.holmes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs are clear on this topic. No doc change can help someone who skips reading the docs and assumes the method does something different. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue9504] signal.signal/signal.alarm not working as expected

2011-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> stage: patch review -> needs patch versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___

[issue12407] test_subinterps fails on Windows

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c60c1b41da9 by Antoine Pitrou in branch '3.2': Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows. http://hg.python.org/cpython/rev/7c60c1b41da9 -- nosy: +python-dev ___ Python tracker

[issue12407] test_subinterps fails on Windows

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cae52417b9d by Antoine Pitrou in branch 'default': Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows. http://hg.python.org/cpython/rev/5cae52417b9d -- ___ Python tracker

[issue12407] test_subinterps fails on Windows

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed, thank you. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker ___ __

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the question is: will the slowdown apply to module import, or only to explicit uses of the marshal module? If the latter, then I think we can live with it - we discourage using marshal as a general-purpose serialization scheme anyway. As for the patc

[issue7123] Multiprocess Process does not always exit when run from a thread.

2011-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: My suggestion to this would be that it should be outdated in the same way that Georg Brandl has suggested for changing the default encoding on python-dev [1], and add clear documentation on that, also in respect to the transition phase .. > The problem

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Vinay Sajip
Vinay Sajip added the comment: > Antoine Pitrou added the comment: > > I think the question is: will the slowdown apply to module import, or only > to >explicit uses of the marshal module? If the latter, then I think we can live >with it - we discourage using marshal as a general-purpose

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would add a big fat note that multiprocessing.Process should be > used instead today, because how about those of us who are not > sophisticated enough to be appointed to standard committees? How do you think multiprocessing.Process launches a new process?

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread Cal Leeming
New submission from Cal Leeming : I came up against a problem today whilst trying to submit a request to a remote API. The header needed to contain: 'Content-MD5' : "md5here" But the urllib2 Request() forces capitalize() on all header names, and transformed it into "Content-Md5", which in tur

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > - "assertEqual = self.assertEqual" is more of a nuisance than anything > > else; > >you're making the code more complicated to read just to save a few > >keystrokes; > >same for "assertIsInstance = self.assertIsInstance" > > I'm not sure how it's mor

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread R. David Murray
R. David Murray added the comment: Well, three occurrences means you only have three methods to patch (and two of them are trivial). But I agree that copying the non-trivial method doesn't look fun from a maintenance perspective. You could also try using an object that is not a subclass of s

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread Cal Leeming
Cal Leeming added the comment: Sorry, I should clarify.. The str() patch worked, but it failed to work within the realm of urllib2: s = _str("Content-MD5") print "Builtin:" print "plain: %s" % ( s ) print "capitalized: %s" % ( s.capitalize() ) s = str("Content-MD5") print "Builtin:" pr

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread R. David Murray
R. David Murray added the comment: Well, judging by your test it isn't capitalize that's the issue. capitalize produces Content-md5, whereas debug is showing urllib2 sending Content-Md5. So something else is massaging the header name on send. --

[issue5120] Disabling test_ttk_guionly on mac

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: Still crashing on "PPC Tiger 3.x" buildbot: ... [333/356/2] test_ttk_guionly Fatal Python error: Segmentation fault Current thread 0xa000ed88: File "/Users/buildbot/buildarea/3.x.parc-tiger-1/build/Lib/tkinter/ttk.py", line 47 in _load_tile

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: test_ttk_guionly is still crashing regulary on "PPC Tiger 3.x" buildbot, see issue #5120. Can anyone with a Mac look at this issue? -- ___ Python tracker _

[issue12452] reuse plistlib in sysconfig; deprecation process in plistlib

2011-06-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread Cal Leeming
Cal Leeming added the comment: (short answer, I found the cause, and a suitable monkey patch) - below are details of how I did it and steps I took. - Okay so I forked AbstractHTTPHandler() then patched do_request_(), at which point "request.headers" and request.header_items() have the co

[issue12455] urllib2 Request() forces capitalize() on header names, breaking some requests

2011-06-30 Thread Cal Leeming
Cal Leeming added the comment: So @r.david.murray, it would appear you were right :D Really, I should have looped through each method on str(), and wrapped them all to see which were being called, but lesson learned I guess. Sooo, I guess now the question is, can we possibly get a vote on hav

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > How do you think multiprocessing.Process launches a new process? But it's a single piece of code under control and even multi-OS/multi-architecture test-coverage, not a general purpose "Joe, you may just go that way and Python will handle it correctly

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > How do you think multiprocessing.Process launches a new process? > > But it's a single piece of code under control and even > multi-OS/multi-architecture test-coverage, not a general purpose > "Joe, you may just go that way and Python will handle it > corre

[issue12455] urllib2 forces title() on header names, breaking some requests

2011-06-30 Thread R. David Murray
R. David Murray added the comment: A feature request for a way to control this is reasonable. However, new features can only go into 3.3. -- stage: -> needs patch title: urllib2 Request() forces capitalize() on header names, breaking some requests -> urllib2 forces title() on header

[issue12455] urllib2 forces title() on header names, breaking some requests

2011-06-30 Thread Cal Leeming
Cal Leeming added the comment: Damn 3.3 huh? Ah well, at least it's in the pipeline ^_^ Thanks for your help on this @r.david.murray! -- ___ Python tracker ___

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c49260e85a0 by Victor Stinner in branch 'default': Issue #12451: Add support.create_empty_file() http://hg.python.org/cpython/rev/0c49260e85a0 -- ___ Python tracker

[issue11999] sporadic failure in test_mailbox

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Now we see if the buildbots agree with me that this is fixed. There is a new failure today on a Windows Seven buildbot: == FAIL: test_reread (test.test_mailbox.TestMaildir) -

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread Ned Deily
Ned Deily added the comment: I think this issue should be considered a test environment error. Since this buildbot is set up in an environment where it is "running headless", that is to say the tests are run under a username that is not logged in to the window server, we should not be trying

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Okay. I guess you’ll use codecs.open in 2.7 Oh, Python 2.7... DistributionMetadata of distutils encodes most values to byte strings (get_xxx() methods calls self._encode_field). It would be possible to use codecs.open(), but an Unicode file expects Unicode

[issue11682] PEP 380 reference implementation for 3.3

2011-06-30 Thread Renaud Blanch
Renaud Blanch added the comment: I've just updated the pep380-test patch to make it slightly simpler (still in golden output form though) https://bitbucket.org/rndblnch/cpython-pep380/src/317eadf5e3e8/pep380-tests -- ___ Python tracker

[issue5120] Change _tkinter initialization for new versions of Aqua Tk on OS X

2011-06-30 Thread Ned Deily
Ned Deily added the comment: See comments to Issue8716. Suggest any further comments on the "headless" crash issue go there and reserve this issue for investigation into the suggested changes to initialization when using Aqua Tk. BTW, the supplied patch has compile time Tk version tests whic

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Since this buildbot is set up in an environment where it is > "running headless", that is to say the tests are run under > a username that is not logged in to the window server, we should > not be trying to run GUI tests there, in particular Tkinter tests. If

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file22527/requires_tkinter.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue12455] urllib2 forces title() on header names, breaking some requests

2011-06-30 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread Ned Deily
Ned Deily added the comment: Victor, I don't understand what your patch is trying to accomplish. The problem is not that Tkinter isn't built; the problem is simply at execution time. Yes, you'll see exactly the same behavior if you are logged in via ssh and the usename you are running under

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Victor, I don't understand what your patch is trying to accomplish. It skips test_tk and test_ttk_guionly if the DISPLAY environment variable is not set. -- ___ Python tracker

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread Ned Deily
Ned Deily added the comment: > It skips test_tk and test_ttk_guionly if the DISPLAY environment variable is > not set. Whether DISPLAY is set or not isn't relevant. What's relevant is whether I'm logged in as the GUI user. In this example, I'm logging in through ssh using the same user nam

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: @pitrou: How can we fix the configuration of the buildbot? -- nosy: +pitrou ___ Python tracker ___ _

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file22528/c3ba4f7b5db1.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: As discussed on IRC, updated patch skipping test_tk and test_ttk_guionly very early if the gui resource is not set. -- Added file: http://bugs.python.org/file22529/requires_tkinter-2.patch ___ Python tracker

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Vinay Sajip
Vinay Sajip added the comment: > Antoine Pitrou added the comment: > It's not proscribed, but trying to remove the "self." because it's > supposed to be more readable is a bit of a strange thing to do. > Also, people reading the test suite should be accustomed to > "self.assertEqual" anywa

[issue12449] Add accelerator "F" to button "Finish" in all MSI installers made by bdist_msi

2011-06-30 Thread Ram Rachum
Ram Rachum added the comment: I can only do wxPython, I have no idea how Python's MSI installers work. I did a quick search for "Finish" in the codebase but could find any obvious place to add the accelerator. "As a new feature, this cannot go into distutils." Seriously? Why? -- __

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file22530/9993567039c0.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-30 Thread Vinay Sajip
Vinay Sajip added the comment: As a result of the changes to marshal.c, test_importlib needs a small change: the test_bad_marshal raises an EOFError now, whereas it raised ValueError before. I think it's because the earlier code in marshal didn't properly check for EOF conditions in some pla

  1   2   >