[issue13315] tarfile extract fails on OS X system python due to chown of gid=-1

2011-11-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: There's little chance that Apple will fix this issue in their build (at least not until Lion+1 gets released) because this is not a security bug. Their breaking of 2.7 in Lion is probably due to lack of review for their collection of patches, and is not some

[issue13330] Attempt full test coverage of LocaleTextCalendar.formatweekday

2011-11-02 Thread Sean Fleming
New submission from Sean Fleming : Patch includes new statements in test_localecalendars of CalendarTestCase such that coverage of LocaleTextCalendar.formatweekday should improve significantly. Feedback is appreciated. -- components: Tests files: test_calendar.patch keywords: patch me

[issue13327] Update utime API to not require explicit None argument

2011-11-02 Thread Brian Curtin
Brian Curtin added the comment: The `delta` keyword would actually be better than `places`, especially on the slower buildbots. delta=10 would allow up to 10 seconds between those utime calls. Is that being too permissive? -- ___ Python tracker

[issue13329] Runs normal as console script but falls as CGI

2011-11-02 Thread Nick Rowan
New submission from Nick Rowan : There is a Python script that tries to print a message in Russian language. It's okay when script runs in console, but it causes DecodeUnicodeError if it invokes as CGI. -- components: Interpreter Core, Library (Lib), Unicode files: Test.py messages: 14

[issue13327] Update utime API to not require explicit None argument

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would specify an even smaller "places". We have very slow buildbots. You could first call utime() with a date far away in the past if you want. -- ___ Python tracker ___

[issue13327] Update utime API to not require explicit None argument

2011-11-02 Thread Brian Curtin
Brian Curtin added the comment: Ah, yes. Would the following work better for the last line? self.assertAlmostEqual(st1.st_mtime, st2.st_mtime, places=2) -- ___ Python tracker _

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the current behaviour is fine, in that the alternatives are not better at all. In the absence of a type inherently "superior" to the others (as float can be to int, except for very large integers :-)), it makes sense to keep the type of the left-hand

[issue13327] Update utime API to not require explicit None argument

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: You have a possible failure here: +# Set to the current time in the old explicit way. +os.utime(support.TESTFN, None) +st1 = os.stat(support.TESTFN) +# Set to the current time in the new way +os.utime(support.TESTFN) +

[issue13311] asyncore handle_read should call recv

2011-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola, josiahcarlson, neologix, stutzbach stage: -> patch review versions: +Python 3.2 ___ Python tracker ___ __

[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed

2011-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13325] no address in the representation of asyncore dispatcher after connection established

2011-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola, josiahcarlson, stutzbach stage: -> patch review versions: +Python 3.3 ___ Python tracker ___

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c0253d4d9ba by Antoine Pitrou in branch '3.2': Issue #13307: fix bdist_rpm test failures http://hg.python.org/cpython/rev/2c0253d4d9ba New changeset eb2991f7cdc8 by Antoine Pitrou in branch 'default': Issue #13307: fix bdist_rpm test failures http

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now (verified here on Mageia). -- dependencies: -distutils doesn't byte-compile .py files to __pycache__ during installation nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue13328] pdb shows code from wrong module

2011-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13328] pdb shows code from wrong module

2011-11-02 Thread Arkadiusz Wahlig
Arkadiusz Wahlig added the comment: How to reproduce: Given a module foo.py imported using zipimport with a function bar, if we try to set a breakpoint in bar using: > break foo.bar pdb would take filename and lineno from the function object but would use current frame to get module globals

[issue13328] pdb shows code from wrong module

2011-11-02 Thread Arkadiusz Wahlig
New submission from Arkadiusz Wahlig : If pdb is used to debug code using zipimport, it may end up displaying source code from wrong module. Python will execute the correct code but the source code lines displayed by pdb (including the "list" command) will come from an unrelated module. Reaso

[issue13327] Update utime API to not require explicit None argument

2011-11-02 Thread Brian Curtin
New submission from Brian Curtin : os.utime currently requires an explicit `None` as the second argument in order to update to the current time. Other APIs would just have the second argument as optional in this case, operating with one argument. Attached is a patch which changes the second ar

[issue13326] make clean failed on OpenBSD

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

[issue13326] make clean failed on OpenBSD

2011-11-02 Thread Remi Pointel
Remi Pointel added the comment: FYI I tested with Python 3.3, but I didn't look for 2.7 and 3.2, I think modifications are also needed. -- ___ Python tracker ___ __

[issue13326] make clean failed on OpenBSD

2011-11-02 Thread Remi Pointel
New submission from Remi Pointel : Hi, "make clean" failed on OpenBSD with this error: find: -exec: no terminating ";" *** Error code 1 (ignored) It seems that "-exec" with "+" is a GNU extension. Are you OK with this diff which does the same and is multi-platform? Modifications can only be d

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: > So Python starts by removing the .tmp file, but it fails if another > process is already writing into the .tmp file. In this case, we do > nothing, which is not a problem: the other process will create the > file. unlink() does not fail, even if t

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: "I don't believe that the first parameter to tparm() (the format string) is ever constructed by hand, because it's terminal specific. The value is obtained from the terminfo database by calling tigetstr() instead. Furthermore, tigetstr() returns binary data,

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e41663970ca5 by Victor Stinner in branch '3.2': Issue #10570: curses.tigetstr() is now expecting a byte string, instead of a http://hg.python.org/cpython/rev/e41663970ca5 New changeset ab11a6a73683 by Victor Stinner in branch 'default': (Merge 3.2)

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-02 Thread sbt
sbt added the comment: BufferedReader.readinto() should also raise BlockingIOError according to the docs. Updated unittest checks for that also. BTW, The documentation for BufferedIOBase.read() says that BlockingIOError should be raised if nothing can be read in non-blocking mode. BufferedR

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: > 3) Fall back to the original ".tmp" suffix (with the risk > of stale tmp file). I missed something, what is the "stale tmp file" issue? Python/import.c uses: (void) unlink(filename); fd = open(filename, O_EXCL|O_CREAT|O_WRONLY|O_TRUNC ...); So Pytho

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-11-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -osvenskan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-02 Thread Mark Hammond
Mark Hammond added the comment: I can't explain why this might be happening given the Python dll is still build against vc9 - I'm guessing this can't be reproduced without vs10 in the mix? Re making the feature optional - distutils doesn't really lend itself to customizing the compiler best I

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread David Fischer
David Fischer added the comment: I think the key words in the RFC are "strongest auth-scheme it understands". I think in an ideal world, the urllib2 opener (given its handlers) would see that it doesn't understand the second auth-scheme and then see if it understands the first one. However, t

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-11-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Review done after Charles-François review. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: I'm not a curses expert, but after digging a while, I believe that I now understand what these functions are doing. tigetstr() returns a "format string" (bytes) and tparm() does substitutions and returns a command string (bytes) for the terminal. I don't bel

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

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

[issue13285] signal module ignores external signal changes

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: >> Could it return an opaque wrapper object, rather than just the raw >> address? Something like: > > Are you suggesting that it would return either a Python function object or a > wrapper object? I think it would be an ugly kludge. I don't like the id

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: > My current suggested doc change is to replace the sentence quoted at the top > with Sounds good to me. -- ___ Python tracker ___ __

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: So what do you propose to do? RFC 2617 specifies The user agent MUST choose to use one of the challenges with the strongest auth-scheme it understands and request credentials from the user based upon that challenge. --

[issue13321] fstat doesn't accept an object with "fileno" method

2011-11-02 Thread Eric V. Smith
Eric V. Smith added the comment: If I understand it correctly, this change request is to change os.fstat(obj) (and probably other functions) to call obj.fileno(), instead of the caller doing that? If so, -1. Keep os.fstat() as a thin wrapper around fstat. -- nosy: +eric.smith __

[issue13285] signal module ignores external signal changes

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: > Could it return an opaque wrapper object, rather than just the raw address? > Something like: Are you suggesting that it would return either a Python function object or a wrapper object? -- ___ Python tracker <

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread David Fischer
David Fischer added the comment: Perhaps I should have chosen my words more carefully. There are two www-authenticate headers the single HTTP response. -- ___ Python tracker __

[issue13324] fcntl module doesn't support F_NOCACHE (OS X specific) results in high 'inactive' memory performance issues

2011-11-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I ran into an application that responded with two www-authenticate > challenges to an HTTP request. First, it sends a standard Basic > authentication challenge and then it also returns a www-authenticate > header referencing another scheme. What exactly do

[issue13308] fix test_httpservers failures when run as root

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset d1cde7081bf5 by Charles-François Natali in branch '2.7': Issue #13308: Fix test_httpservers failures when run as root. http://hg.python.org/cpython/rev/d1cde7081bf5 New changeset 4dc5590dbd0b by Charles-François Natali in branch '3.2': Issue #13308

[issue13324] fcntl module doesn't support F_NOCACHE (OS X specific) results in high 'inactive' memory performance issues

2011-11-02 Thread Charles-François Natali
Changes by Charles-François Natali : -- type: behavior -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue13324] fcntl module doesn't support F_NOCACHE (OS X specific) results in high 'inactive' memory performance issues

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: > With this patch in place the inactive memory on my system stays (low) > and flat, without it it rises until it maxes out all available memory > and then starts paging. It's often a desired behaviour: paging out unused memory makes room for a bigger

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the report, Jakub and for the patch, Jyrki -- nosy: +orsenthil resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37e34a983d6d by Senthil Kumaran in branch '2.7': Fix Issue13147 - Correct the Multiprocessing Pool.map_async method signature. http://hg.python.org/cpython/rev/37e34a983d6d -- nosy: +python-dev ___ Pytho

[issue13324] fcntl module doesn't support F_NOCACHE (OS X specific) results in high 'inactive' memory performance issues

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset cee6fdd6436d by Charles-François Natali in branch 'default': Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart. http://hg.python.org/cpython/rev/cee6fdd6436d -- nosy: +python-dev _

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thoughts? I would say go for the simpler (that's probably option 3). -- ___ Python tracker ___ _

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread Vinay Sajip
Vinay Sajip added the comment: What's the downside of option 2) ? -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list m

[issue13224] Change str(class) to return only the class name

2011-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please also see the proposed PEP 3155 - http://mail.python.org/pipermail/python-ideas/2011-October/012609.html -- nosy: +pitrou ___ Python tracker ___

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: fixed -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: I've done a review of your patch (looks like Rietveld doesn't send emails). -- stage: needs patch -> patch review ___ Python tracker _

[issue13295] Fix HTML produced by http.server

2011-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the reviews! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker _

[issue13295] Fix HTML produced by http.server

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10823e7be085 by Ezio Melotti in branch 'default': #13295: http.server now produces valid HTML 4.01 strict. http://hg.python.org/cpython/rev/10823e7be085 -- nosy: +python-dev ___ Python tracker

[issue13224] Change str(class) to return only the class name

2011-11-02 Thread Guido van Rossum
Guido van Rossum added the comment: On Wed, Nov 2, 2011 at 9:31 AM, Éric Araujo wrote: > > Éric Araujo added the comment: > > I’ve updated my patch to handle modules and functions too, but there is a > decision to make.  The functions of built-in modules are implemented by > methodobject.c,

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread dmitry be
Changes by dmitry be : -- nosy: +Dmitry.Beransky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue3173] external strftime for Python?

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: > Maybe rather than spending the effort maintaining a legacy API such as > strftime, someone could > look into implementing localized date formatting as defined by recent Unicode > standards: > http://unicode.org/reports/tr35/#Date_Format_Patterns This scheme is

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I haven't found anything in the HTML5 spec but I haven't looked closely. I'll do some more research when I'll start working on an actual patch. -- ___ Python tracker ___

[issue13226] Expose RTLD_* constants in the posix module

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: sys.getdlopenflags() doc and docstring still contain references to ctypes and DLFCN module. -- ___ Python tracker ___

[issue13295] Fix HTML produced by http.server

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: Thanks. +0. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13325] no address in the representation of asyncore dispatcher after connection established

2011-11-02 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- keywords: +patch Added file: http://bugs.python.org/file23594/dispatcher_addr.diff ___ Python tracker ___ _

[issue13325] no address in the representation of asyncore dispatcher after connection established

2011-11-02 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file23593/dispatcher_addr.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13325] no address in the representation of asyncore dispatcher after connection established

2011-11-02 Thread Xavier de Gaye
New submission from Xavier de Gaye : When an asyncore dispatcher initiates a tcp connection, its representation lacks the peer address. The output of the attached script 'dispatcher_addr.py' gives on linux with Python 3.2: call stack in handle_connect_event: ->main->loop->poll->write->handle_wri

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +distutils doesn't byte-compile .py files to __pycache__ during installation ___ Python tracker ___ ___

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: > This is what Firefox seems to do. I think more confidence would be good. Doesn’t the HTML5 spec define that? Have you found their test suite? Do you have more than one browser known to be compliant (trick: not sure there is even one)? -- __

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: Mark, can you give feedback? -- nosy: +mhammond ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13324] fcntl module doesn't support F_NOCACHE (OS X specific) results in high 'inactive' memory performance issues

2011-11-02 Thread Alex Stewart
New submission from Alex Stewart : ISSUE DESCRIPTION: In 2.6.7, 2.7.2 and also HEAD (r 73301) the fcntl module does not support the F_NOCACHE OSX specific mode. The affect of this is that the default behaviour (data caching enabled) i

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: bdist_rpm uses the record option of install to create INSTALLED_FILES. install delegates to the get_output method of install_* commands to build its record. install_lib has buggy code that appends 'c' or 'o' instead of using imp functions. I have expanded one

[issue13224] Change str(class) to return only the class name

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: I’ve updated my patch to handle modules and functions too, but there is a decision to make. The functions of built-in modules are implemented by methodobject.c, not functionobject.c (that’s for Python functions), so if we want str(sys.exc_info) to be equal to '

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: mkstemp() creates the file with mode 0600, which can be surprising. I'm note sure about the best way to handle this: 1) change the file mode after creating it with fchmod(), using the source file mode. But we must also take into account the umask, so w

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13323] urllib2 does not correctly handle multiple www-authenticate headers in an HTTP response

2011-11-02 Thread David Fischer
New submission from David Fischer : I ran into an application that responded with two www-authenticate challenges to an HTTP request. First, it sends a standard Basic authentication challenge and then it also returns a www-authenticate header referencing another scheme. This looks legal to me

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +IO, Library (Lib) nosy: +pitrou versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-02 Thread sbt
Changes by sbt : -- type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-02 Thread sbt
New submission from sbt : According to the the documentation, BufferedReader.read() and BufferedWriter.write() should raise io.BlockingIOError if the file is in non-blocking mode and the operation cannot succeed without blocking. However, BufferedReader.read() returns None (which is what RawIO

[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: A proposal by Martin in a python-dev email: > I'd generate four versions of CDROM.py (with differing names), and > provide a CDROM.py that imports the right one. -- keywords: +easy -patch stage: -> needs patch ___ Pyt

[issue13284] email.utils.formatdate function does not handle timezones correctly.

2011-11-02 Thread Mikhail I. Izmestev
Mikhail I. Izmestev added the comment: I have strange behavior too: im@cgt-serv ~ $ python Python 2.6.6 (r266:84292, Feb 28 2011, 09:01:15) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from email.Utils import formatdate >>> import time >>> tim

[issue13310] asyncore handling of out-of-band data fails

2011-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: > It is not clear why recv() can return EAGAIN because we're trying to > _send_ a packet ;-) Well, I was refering to a problem with the current implementation, not limited to this specific example. >> Closing as invalid > > Ok, 2.6.30 is an old kernel

[issue13321] fstat doesn't accept an object with "fileno" method

2011-11-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12939] Add new io.FileIO using the native Windows API

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: > Instead of rewriting your own RawIO implementation, why not use > _open_osfhandle? I don't know yet what is the best approach. One important point is to keep the HANDLE, to be able to manipulate the open file using the Windows API (e.g. call WriteFile inste

[issue13310] asyncore handling of out-of-band data fails

2011-11-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hi Charles-François, > And indeed, that's a known kernel regression introduced in 2.6.28, > and fixed by this commit: > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b634f87522dff87712df8bda2a6c9061954d552a > http://kerneltrap.org/

[issue12709] In multiprocessing, error_callback isn't documented for map_async

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: Sandro: The error_callback parameter is not available on 2.7. See #13147. -- nosy: +petri.lehtinen ___ Python tracker ___ _

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +needs review nosy: +petri.lehtinen stage: -> patch review ___ Python tracker ___ ___ Python

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Also: note that 2.6 does not document this error_callback, so the issue is present only in 2.7 -- ___ Python tracker ___ ___

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Patch attached. This patch removes the error_callback from 2.7's documentation. -- keywords: +patch Added file: http://bugs.python.org/file23589/issue13147.patch ___ Python tracker

[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

2011-11-02 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Python 3.x seems to have the error_callback parameter on all *_async operations. However, 2.7 lacks it. I think adding the actual error_callback would be deemed as a new feature, so the right thing would just be removing the documentation. I'll whip up a p

[issue13321] fstat doesn't accept an object with "fileno" method

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: This is a request for new functionality, so marking as a feature request for 3.3. If implemented, the change should be applied to many other functions, in the os module at least. I'm not sure whether this is very useful, though. The fstat(f.fileno()) idiom d

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a0bfc26af57 by Florent Xicluna in branch 'default': Issue #13312: skip the failing negative years for now. http://hg.python.org/cpython/rev/1a0bfc26af57 -- ___ Python tracker

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-02 Thread Florent Xicluna
Florent Xicluna added the comment: I mean formatted with '%Y', of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-02 Thread Florent Xicluna
Changes by Florent Xicluna : -- Removed message: http://bugs.python.org/msg146827 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-02 Thread Florent Xicluna
Florent Xicluna added the comment: It fails for very low negative years: -2147483648 <= year < -2147481748 (-1<<31)<= year < (-1<<31) + 1900 Every other value behaves correctly on this FreeBSD buildbot: - (-1<<31) + 1900 <= year < (+1<<31) : correctly formatted with '%Z' - year < (

[issue13312] test_time fails: strftime('%Y', y) for negative year

2011-11-02 Thread Florent Xicluna
Florent Xicluna added the comment: It fails for very low negative years: -2147481749 <= year <= -2147483648 (-1<<31) + 1900 <= year <= (-1<<31) Every other value behaves correctly on this FreeBSD buildbot: - (-1<<31) + 1900 < year < (+1<<31) : correctly formatted with '%Z' - year < (