[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22060/fail_mcbs.txt ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22059/issue8898_withtests.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22058/fail_tactis.txt ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Michele Orrù added the comment: Well, actually encodings.aliases links to the encoding _module name_, as described in the doc: """ Encoding Aliases Support This module is used by the encodings package search function to map encodings names to module names. """ So I've adjusted your snip

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
Eli Bendersky added the comment: Raymond, I see you assigned the issue to yourself. The assignment was removed by mistake when I closed the issue - is this still something you need to look at? -- ___ Python tracker

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
Eli Bendersky added the comment: This was fixed by Georg in 538a6b23b18f and 12a2c1085621 -- assignee: rhettinger -> ___ Python tracker ___

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
Eli Bendersky added the comment: The Tokenizer example seems to have appeared in 3.2, it's not present in 3.1 -- ___ Python tracker ___ _

[issue12126] incorrect select documentation

2011-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca4d9ccb6894 by Eli Bendersky in branch '3.1': Issue 12126: removing incorrect claim about return value of select http://hg.python.org/cpython/rev/ca4d9ccb6894 New changeset c26d551b5ff6 by Eli Bendersky in branch '3.2': Issue 12126: removing incor

[issue12126] incorrect select documentation

2011-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0a3e17e677f by Eli Bendersky in branch '2.7': Issue 12126: removing incorrect claim about return value of select http://hg.python.org/cpython/rev/c0a3e17e677f -- nosy: +python-dev ___ Python tracker

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: eli.bendersky -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12146] Possible bug in 're' documentation example

2011-05-21 Thread Eli Bendersky
New submission from Eli Bendersky : >From the docs maillist, by Herman L. Jackson: --- Hi, When running the tokenize example at the bottom of http://docs.python.org/py3k/library/re.html#match-objects I received the following error: Traceback (most recent call last): F

[issue12145] distutils2 should support README.rst

2011-05-21 Thread Daniel Lindsley
New submission from Daniel Lindsley : Given that reST is the format all of Python's docs are in, it'd be nice if distutils(2) would support looking for README.rst (in addition to the existing README & README.txt). -- assignee: tarek components: Distutils2 messages: 136500 nosy: alexis,

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
Scott Wimer added the comment: Forgot to include the patch. Oops. -- keywords: +patch Added file: http://bugs.python.org/file22055/cookielib-crash.patch ___ Python tracker ___ _

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
Scott Wimer added the comment: The actual error is triggered by line 1507 in '_cookie_from_cookie_tuple()'. An easy fix is to move the setting of '_now' on line 1636 into the 'make_cookies()' method. That addresses this problem and doesn't look like it would introduce any negative side effec

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
New submission from Scott Wimer : When cookielib.CookieJar().make_cookies is used to extract cookies from a urllib2 response, it crashes when it encounters a 'Set-Cookie' header entry that has an 'expires' attribute. This crash occurs because the expires time is evaluated against the '_now' a

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-21 Thread Brian May
Brian May added the comment: What needs to happen to get recvmsg() supported in Python? recvmsg() is required to get get transparent UDP proxies working under Linux using tproxy, the code needs to run recvmsg() to be able to find out what the original destination address was for the the packe

[issue12143] packaging extension gcc linking fails on Ubuntu Shared

2011-05-21 Thread David Bolen
David Bolen added the comment: I just ran a manual build/test on the buildbot, and these underlying failures appear to be due to the "-l python3.3" option, which can't be found. I also don't see that library in the build tree. Instead, the library is built as python3.3dm (the buildbot proce

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Ned Deily
Ned Deily added the comment: The test should be changed anyway to avoid the dependency on "srcdir", whose value has no meaning when the tests are not run from a simple in-source-directory build. The test could create its own temp copy of xxmodule.c. -- nosy: +ned.deily

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Because sys.executable (argv[0] in fact) is not filled when you call > multiprocess vvia the -j option. sys.executable is set perfectly well when running regrtest in multiprocess mode, otherwise many other tests would fail. Try: $ grep "sys.executable" Lib/t

[issue12143] packaging extension gcc linking fails on Ubuntu Shared

2011-05-21 Thread Tarek Ziadé
New submission from Tarek Ziadé : I can't reproduce this yet, or compare it to distutils. I == ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase)

[issue12131] python built with --prefix fails in site.py with no section 'posix_prefix'

2011-05-21 Thread Ned Deily
Ned Deily added the comment: Applied as requested. -- assignee: tarek -> ned.deily resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue12131] python built with --prefix fails in site.py with no section 'posix_prefix'

2011-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f37a4e1182d6 by Ned Deily in branch 'default': Issue #12131: Ensure that the sysconfig.cfg file, introduced by packaging, http://hg.python.org/cpython/rev/f37a4e1182d6 -- nosy: +python-dev ___ Python tra

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: sysconfig is looking for the source dir when sysconfig.get_config_var('srcdir') is called. And this is done like this: if sys.executable: _PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable)) else: # sys.executable can be empty if argv[0]

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Ezio Melotti
Ezio Melotti added the comment: The patch looks ok to me. AFAIU the lookup will take care to normalize the name and return latin_N. This also implies that other names (like 'latin-N', 'LaTiN~~N' and so on) will be normalized to latin_N and then accepted. Regarding the tests, I don't see test

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Oops. It's a duplicate. Keeping this one since the problem was > narrowed to multiprocessing/sys,executable and sysconfig I don't think it has anything to do with sys.executable. As the other issue says, it seems the test (or packaging/sysconfig itself) is si

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12142] Reference cycle when importing ctypes

2011-05-21 Thread poq
Changes by poq : -- title: eference cycle when importing ctypes -> Reference cycle when importing ctypes ___ Python tracker ___ ___ P

[issue12142] eference cycle when importing ctypes

2011-05-21 Thread poq
Changes by poq : -- title: Circular reference when importing ctypes -> eference cycle when importing ctypes ___ Python tracker ___ __

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: Oops. It's a duplicate. Keeping this one since the problem was narrowed to multiprocessing/sys,executable and sysconfig -- ___ Python tracker ___

[issue12142] Circular reference when importing ctypes

2011-05-21 Thread poq
New submission from poq : When importing ctypes after gc.set_debug(gc.DEBUG_LEAK), the garbage collector finds a 'c_int_Array_3' class and some related objects. The class is created in ctypes/_endian.py: _array_type = type(c_int * 3) It seems that this could be avoided with: _array_type = type

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- superseder: test_packaging failures when run with -j -> --multiprocessing fails with packaging.tests.test_command_build_ext ___ Python tracker ___ __

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- superseder: -> test_packaging failures when run with -j ___ Python tracker ___ ___ Python-bugs-list maili

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: What's the difference with issue12132? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
New submission from Tarek Ziadé : this test module looks for sysconfig.get_config_var('srcdir') which in turns uses the sys,executable path. multiprocess seems to change it in every process, leading to the errors. To reproduce: ./python Lib/test/regrtest.py -j2 -v test_packaging A workaround

[issue12140] Crash upon start up

2011-05-21 Thread Ezio Melotti
Ezio Melotti added the comment: Can you try to open a Windows terminal (start->run->cmd or win+r on the keyboard), cd to Python27, execute python.exe and see if it gives any error message there? -- nosy: +ezio.melotti ___ Python tracker

[issue12140] Crash upon start up

2011-05-21 Thread Philip Drew
New submission from Philip Drew : Upon execution of python.exe a command line box appears for a fraction of a second, closes and is followed by nothing. On executing IDLE from the start menu, nothing happens. I have installed python to C:\Python27 using the python windows installer. I am runni

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22053/issue8898.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file22049/issue8898.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12131] python built with --prefix fails in site.py with no section 'posix_prefix'

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: This seems to be the proper fix, I forgot to change the Makefile. Would you mind applying it ? thanks about editing this file: as mentioned on python dev, there will be several levels of customization (global, per project, per user) -- ___

[issue12075] python3.2 memory leak when reloading class with attributes

2011-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: > my class also inherits from subprocess.Popen, which has a __del__ method, > which might interfere w/ collection The doc says __del__ *will* prevent collection. > (although gc.garbage says otherwise ;). Do you mean that gc.garbage is empty, when it should n

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 21, 2011 at 3:32 PM, Mark Dickinson wrote: .. > That might be viable (a math module function might also make sense here), > though it feels a bit YAGNI to me. I have to admit that it would be YAGNI for most of my code because it uses numpy f

[issue12127] Inconsistent leading zero treatment

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: It does look as though all the arguments were pretty thoroughly hashed out on the python-3000 list when this was first proposed. See e.g., the thread starting at: http://mail.python.org/pipermail/python-3000/2007-March/006262.html and various follow-on thre

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > and it's dishonest to claim it is. This language was going too far, and I apologise for it. I think I need one of those 'wait 5 minutes before allowing you to post' controls. -- keywords: +gsoc ___ Python tracke

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm, okay. Call me +0 on the warning. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 21, 2011 at 3:50 PM, Mark Dickinson wrote: .. > On the idea of a warning, I don't really see the point;  I find it hard to > imagine it's really going to catch many real errors. My experience is different. In my work, NaNs often creep into

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > This is just sophistry. If Python was more popular than C at the > time Prof. Kahan wrote this, he would write "in the syntax of Python." I doubt it. C has a standard that explicitly states that < must signal on comparison with NaNs. Python doesn't. Ale

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: On the idea of a warning, I don't really see the point; I find it hard to imagine it's really going to catch many real errors. -- ___ Python tracker

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > What is the reason to make them quiet for floats other > than backward compatibility? For me, none. I'll happily agree that, all other things being equal, it's more natural (and more consistent with other languages) to have < correspond to the signaling op

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 21, 2011 at 3:22 PM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > >> Prof. Kahan states that nan < x must signal. > > Would that be the sentence that starts "In the syntax of C ..." ? This is just sophistry. If Python was

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 21, 2011 at 3:18 PM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > >> Table 5.2 referenced above lists 10 operations, four of which (>, <, >> >=, and <=) are given spellings that are identical to the spellings of >> Python com

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > keep naive implementation of builtin max() Agreed. > provide symmetric float.max such that nan.max(x) = x.max(nan) = x (nan > result would be a valid but less useful alternative.) That might be viable (a math module function might also make sense here), th

[issue11986] Min/max not symmetric in presence of NaN

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > Prof. Kahan states that nan < x must signal. Would that be the sentence that starts "In the syntax of C ..." ? -- ___ Python tracker ___ ___

[issue11949] Make float('nan') unorderable

2011-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: > Table 5.2 referenced above lists 10 operations, four of which (>, <, > >=, and <=) are given spellings that are identical to the spellings of > Python comparison operators. Yep, those are included amongst the "various ad-hoc and traditional names and symbols

[issue12139] Add CCC command support to ftplib

2011-05-21 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: voidcmd() expects a response code starting with "2" and automatically raises an exception otherwise. A server succesfully accepting the CCC command is supposed to first reply with 220 and then shutdown() the SSL layer. Client is supposed to do the same: fir

[issue12135] The spawn function should return stderr.

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Same request for distutils in issue11599, by the way. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue12139] Add CCC command support to ftplib

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This can be useful to take advantage of firewalls that know how to > handle NAT with non-secure FTP without opening fixed ports. Can you explain this a little more? +resp = self.voidcmd('CCC') +self.sock = self.sock.unwrap() +

[issue12135] The spawn function should return stderr.

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: That's a feature request then, so we will see this once the bbot are green -- priority: critical -> normal title: test_packaging failure under Windows -> The spawn function should return stderr. type: behavior -> feature request _

[issue12135] test_packaging failure under Windows

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Specifically, the "spawn" function *must* be fixed to include stderr in the exception message. -- ___ Python tracker ___ _

[issue12135] test_packaging failure under Windows

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: As I said on python-dev, I am aware of the failures. I have fixed most of them today and yesterday. I have four left including this one. So no need to add more issues, I am on it :) -- ___ Python tracker

[issue12139] Add CCC command support to ftplib

2011-05-21 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : In FTPS, CCC command can be used to switch back to a clear-text control connection. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports. Patch in attachment includes lib, test and d

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: In the buffered reader case, the result buffer is actually pre-allocated with the total size, making fragmentation even less likely. -- ___ Python tracker

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: > Patch looks ok. Is 3.x also affected? The I/O stack changed quite a bit in > 3.x. I think it's not affected, but I can't reproduce this behaviour with glibc/eglibc, so don't just take my word for it. The reason is that in py3k, imaplib uses a buffer

[issue12138] buggy use of transient_internet() in test_urllibnet

2011-05-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : The code I added in b65f417dd266 is buggy, because it calls __exit__ with (None, None, None) rather than the exception to be tested. -- assignee: pitrou components: Tests messages: 136456 nosy: pitrou priority: normal severity: normal stage: needs pa

[issue12137] EBADF in test_urllibnet

2011-05-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is probably a transient failure due to the remote host being unavailable, but the "bad file descriptor" error is not ok: test test_urllibnet failed -- Traceback (most recent call last): File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/

[issue2091] file accepts 'rU+' as a mode

2011-05-21 Thread Tres Seaver
Changes by Tres Seaver : -- nosy: -tseaver ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12136] test_logging fails when no ssl available

2011-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2be3ffa82293 by Vinay Sajip in branch 'default': Issue #12136: Added change to handle non-availability of the ssl module. http://hg.python.org/cpython/rev/2be3ffa82293 -- nosy: +python-dev ___ Python tra

[issue12136] test_logging fails when no ssl available

2011-05-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : == ERROR: test_output (test.test_logging.HTTPHandlerTest) -- Traceback (most recent call last): File "/home2/buildbot/slav

[issue12102] mmap requires file to be synced

2011-05-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Looked at it again and i think it's much better english with an > additional ..to ensure "that" local... > @Ross, aren't you a native english speaker? What do you say? Yes I am, but that doesn't make me any good ;-) I'd probably agree that it's better with

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks ok. Is 3.x also affected? The I/O stack changed quite a bit in 3.x. -- nosy: +pitrou ___ Python tracker ___ _

[issue12090] 3.2: build --without-threads fails

2011-05-21 Thread Georg Brandl
Georg Brandl added the comment: No, it's not too late -- rc2 is shifted to next weekend. -- ___ Python tracker ___ ___ Python-bugs-li

[issue12126] incorrect select documentation

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It makes sense to bring this up for discussion on pydev, then. Ok, done. > In the meantime, is there an objection to removing the incorrect > statement Jean-Paul mentioned from the doc? Well, no. -- ___ Python t

[issue12126] incorrect select documentation

2011-05-21 Thread Eli Bendersky
Eli Bendersky added the comment: It makes sense to bring this up for discussion on pydev, then. Perhaps it will be decided to remove this document from the official documentation, possibly relegating it to the Wiki. In the meantime, is there an objection to removing the incorrect statement J

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: $ cat test_sock.py import socket import fcntl with socket.socket(socket.AF_INET, socket.SOCK_STREAM|socket.SOCK_CLOEXEC) as s: print(bool(fcntl.fcntl(s, fcntl.F_GETFD) & fcntl.FD_CLOEXEC)) $ ./python test_sock.py True -- _

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file22050/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The request is reasonable, but the best bet is for someone interested to provide a patch. See http://docs.python.org/devguide/ if you aren't acquainted with the development process. -- components: +Library (Lib) nosy: +pitrou stage: -> needs patch ty

[issue12107] TCP listening sockets created without FD_CLOEXEC flag

2011-05-21 Thread Christophe Devriese
Christophe Devriese added the comment: It would already be a nice piece of progress if you could request the SO_CLOEXEC (with fallback to FD_CLOEXEC), say, in the constructor, or even with a module variable. I hope at least this change can make it in, so that we have a decent in-python solution

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Victor, you broke the Solaris gcc buildbot on 2.7. http://www.python.org/dev/buildbot/all/builders/sparc%20solaris10%20gcc%202.7/builds/837 -- assignee: -> haypo stage: patch review -> committed/rejected status: closed -> open

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Michele Orrù added the comment: The attached patch adds aliases for latin_N in encodings.aliases, and fixes email.charset behaviour according to codecs.lookup, as requested. Tested on (Arch) Linux. Am I supposed to add any unittest? I'm wavering about where they should be placed (in encodings

[issue12135] test_packaging failure under Windows

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Many other failures in http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4630/steps/test/logs/stdio , by the way -- ___ Python tracker

[issue12135] test_packaging failure under Windows

2011-05-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : Also, *please* provide stderr in the error message when an external command fails. Otherwise, it's impossible to properly debug failure of external commands. == ERROR: test_build_ext (pack

[issue12134] json.dump much slower than dumps

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is indeed the case. And the solution is obvious: call dumps() and then write() the result yourself. If dump() used _one_shot=True, it would defeat the purpose of minimizing memory consumption by not buffering the whole result. -- assignee: -> do

[issue12134] json.dump much slower than dumps

2011-05-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) -Extension Modules nosy: +ezio.melotti versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ __

[issue12134] json.dump much slower than dumps

2011-05-21 Thread poq
New submission from poq : import json, timeit obj = [[1,2,3]*10]*10 class writable(object): def write(self, buf): pass w = writable() print('dumps: %.3f' % timeit.timeit(lambda: json.dumps(obj), number=1)) print('dump: %.3f' % timeit.timeit(lambda: json.dump(obj,w), number=1)) O

[issue4558] with_stdc89

2011-05-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, vs2008 requires that variables must be declared at the start of a block, and IIRC there is a AIX compiler that does not allow // comments. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12133] ResourceWarning in urllib.request

2011-05-21 Thread Ezio Melotti
Ezio Melotti added the comment: The packaging test (test_pypi_simple.py:test_uses_mirrors) creates a server and a mirror, starts the mirror only, tries to connect to the server, and then falls back on the mirror when the server raises a timeout error. The code in the first message does more or

[issue12133] ResourceWarning in urllib.request

2011-05-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Ezio, the connection can be closed via the finally call as you do in the patch. There are times when request object is re-used, but before the connection is made. It may also help to understand how the code in the packaging was invoking it. If you run th

[issue11015] Bring test.support docs up to date

2011-05-21 Thread Ezio Melotti
Ezio Melotti added the comment: There are still functions that are not documented, so I think this should stay open until we documented them (unless they shouldn't be documented -- in that case it can be closed). -- ___ Python tracker

[issue12133] ResourceWarning in urllib.request

2011-05-21 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12102] mmap requires file to be synced

2011-05-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Looked at it again and i think it's much better english with an additional ..to ensure "that" local... @Ross, aren't you a native english speaker? What do you say? -- Added file: http://bugs.python.org/file22048/12102.2.diff __

[issue12133] ResourceWarning in urllib.request

2011-05-21 Thread Ezio Melotti
New submission from Ezio Melotti : In case of error (e.g. timeout error), urllib.request leaves the socket open: import urllib.request as ur import socket s = socket.socket() s.bind(('localhost', 1)) s.listen(0) socket.setdefaulttimeout(5) ur.urlopen('http://localhost.localdomain:1') ou

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (This was an attachment to an empty mail message.) -- Added file: http://bugs.python.org/file22046/11877-standalone.1.diff ___ Python tracker _

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: diff --git a/Doc/library/os.rst b/Doc/library/os.rst --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -810,6 +810,35 @@ Availability: Unix, and Windows. +.. function:: fullfsync(fd) + + The POSIX standart requires that :c:func:`fsync` must tra

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils2 nosy: +alexis, eric.araujo ___ Python tracker ___ ___ Pytho

[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for reporting this, the current behaviour is clearly wrong. The child process doesn't need to - and shouldn't - inherit the server socket. The custom idiom when writting such code is to close the new socket (well, in TCP) in the parent process,

[issue12126] incorrect select documentation

2011-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, my main issue with this document is that it doesn't seem to have a well-defined destination: - people who know sockets won't learn anything from it - but people who don't know sockets will probably find it clear as mud (for example, what's an "INET" or "

  1   2   >