[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-01 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-12-01 Thread Eli Bendersky
Eli Bendersky added the comment: Yep, it appears that Raymond has fixed this in changeset b0065b9087ef -- resolution: wont fix -> fixed ___ Python tracker ___ __

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-12-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-01 Thread STINNER Victor
STINNER Victor added the comment: The overhead on PyObject_Malloc() is just an increment on an integer, so it is very low (or null). The feature is interesting, but I'm not convinced that a very simple counter is enough to track memory leaks. It may help the CPython test suite, but what abou

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-12-01 Thread Adam Forsyth
Adam Forsyth added the comment: This is marked as "wont fix" but has been fixed, the resolution should be changed. -- nosy: +agforsyth ___ Python tracker ___ __

[issue13518] configparser

2011-12-01 Thread Łukasz Langa
Łukasz Langa added the comment: Hello, Mickey. By doing open('file', 'rb') you're explicitly stating you want the file to be opened in BINARY mode which means it doesn't return strings but bytes. This is not supported anymore in Python 3. This is clearly documented here: http://docs.python.o

[issue13518] configparser

2011-12-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13518] configparser

2011-12-01 Thread Mickey Ju
New submission from Mickey Ju : If this issue has raised previously, then I am sorry for repeating. I did a search but did not find related reports. Below is the thing I did. config = configparser.RawConfigParser() #config.read_file(urlopen(path_config)) config.read_file(open('jkl.ini',

[issue5689] Support xz compression in tarfile module

2011-12-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: There is plenty of time until 3.3. OTOH, if Eric wants to work on it now: you got a week :-) Do recognize that there is a patch to start from already. -- ___ Python tracker _

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: And here's a post by Ulrich Drepper: http://udrepper.livejournal.com/18555.html """ readdir_r is only needed if multiple threads are using the same directory stream. I have yet to see a program where this really is the case. In this toy example the s

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
Thouis (Ray) Jones added the comment: > > It's also possible that readdir() is not reentrant with lstat() > This doesn't make much sense to me. Me either. I think what I was actually seeing was multiple calls to readdir() still occurring even after placing a mutex on os.listdir due to my wrap

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
Thouis (Ray) Jones added the comment: Reading through many pages discussing readdir vs. readdir_r (many on security mailing lists, a large number referring to the page linked in the patch), I get the impression that most implementations are thread-safe as long as separate threads do not call

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > Is there any reason to believe that the problem is confined to OS X? It's a bit of a grey area. Here's what POSIX says: http://pubs.opengroup.org/onlinepubs/009695399/functions/readdir.html """ The pointer returned by readdir() points to data which

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
Changes by Thouis (Ray) Jones : Added file: http://bugs.python.org/file23834/py272_readdir_r.v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
Thouis (Ray) Jones added the comment: I should add the caveat that I am not completely confident that I have stress-tested the patch enough to be sure that it actually addresses the problem. It is still possible that this is an error in OSX or the remote fileserver in which a large amount of

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Ned Deily
Ned Deily added the comment: Is there any reason to believe that the problem is confined to OS X? -- nosy: +ned.deily, neologix ___ Python tracker ___ __

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The link mentioned in the patch is really interesting: http://womble.decadent.org.uk/readdir_r-advisory.html -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
Thouis (Ray) Jones added the comment: Here is the script I use to detect the failure. % python filefinder.py /PATH/TO/LARGE/DIRECTORY/TREE (note that I was working over samba with an 8ish-level deep directory with around 25 files). Compare its final output in the FOUND column with % find

[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

2011-12-01 Thread Thouis (Ray) Jones
New submission from Thouis (Ray) Jones : On my system (OSX 10.6.8) using the python.org 32/64-bit build of 2.7.2, I see incorrect results from os.listdir() in a threaded program. The error is that the result of os.listdir() is missing a few files from its list. First, my use case. I work wit

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-12-01 Thread Okko Willeboordse
Okko Willeboordse added the comment: I bumped into this issue at one of my customers that use Python to control a machine through Beckhoff EtherCAT. The Python code communicates with the Beckhoff EtherCAT program using TCP/IP. They use non blocking sockets like so; s = select.select([self._soc

[issue9009] Improve quality of Python/dtoa.c

2011-12-01 Thread Rick Regan
Rick Regan added the comment: > if (!(dig = quorem(b,d))) { > b = multadd(b, 10, 0); /* very unlikely */ > dig = quorem(b,d); > } > > This code is part of the algorithm for strtod. Here b and d are > Bigints, and b / d is a fraction that gives a

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > If someone finds a way to sanitize Valgrind output, > > Did you use the valgrind suppression file (Misc/valgrind-python.supp)? Ah, I hadn't. But using it doesn't seem to make much of a difference. Also, the suppressions file seems quite inflexible (it has

[issue12612] Valgrind suppressions

2011-12-01 Thread Paul Price
Paul Price added the comment: Here's the diff with the added sections commented out. -- keywords: +patch Added file: http://bugs.python.org/file23831/proposed.patch ___ Python tracker _

[issue13516] Gzip old log files in rotating handlers

2011-12-01 Thread Raul Morales
New submission from Raul Morales : Sometimes log files grow very quickly and consume too much disk space (e.g. DEBUG), so compress old log files saves disk space without losing the information from log files. I propose to add a "gzip" or "compress" argument to RotatingFileHandler and TimedRot

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: > If someone finds a way to sanitize Valgrind output, Did you use the valgrind suppression file (Misc/valgrind-python.supp)? If yes, then one could simply use --gen-suppressions=yes to add those spurious warning to the suppression file. > a daily Val

[issue12612] Valgrind suppressions

2011-12-01 Thread Charles-François Natali
Charles-François Natali added the comment: Could you please provide a diff ? Also, they should probably be commented by default (as other obmalloc-related calls). -- nosy: +neologix ___ Python tracker ___

[issue13512] ~/.pypirc created insecurely

2011-12-01 Thread Philip Jenvey
Philip Jenvey added the comment: 2.5 is done http://mail.python.org/pipermail/python-committers/2011-October/001844.html -- ___ Python tracker ___ _

[issue12850] [PATCH] stm.atomic

2011-12-01 Thread Armin Rigo
Armin Rigo added the comment: Closing the request for this patch. It is unsatisfactory that it only offers the basic user-level STM feature of transaction, but not, say, abort_and_retry() or any other feature generally found in real-world STM implementations. This goes against the idea, whi

[issue5302] Allow package_data specs/globs to match directories

2011-12-01 Thread Éric Araujo
Éric Araujo added the comment: As a first step for this, I moved around some things in the test file to ease coming additions. Can someone test this patch for the distutils2 repo on Windows? -- keywords: +patch Added file: http://bugs.python.org/file23829/test_sdist.diff ___

[issue9530] integer undefined behaviors

2011-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e37598a25a6 by Mark Dickinson in branch 'default': Issue #9530: Fix undefined behaviour due to signed overflow in Python/formatter_unicode.c. http://hg.python.org/cpython/rev/7e37598a25a6 -- ___ Python

[issue1040439] Missing documentation on how to link with libpython

2011-12-01 Thread Éric Araujo
Éric Araujo added the comment: I did a review on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13512] ~/.pypirc created insecurely

2011-12-01 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report Vincent. Philip, your patch looks good, except that the code cannot use the with statement due to PEP 291 (I’ll take care of that). 2.5 is also affected (the code is in the distutils.command.register module). I don’t think we can write a

[issue12307] Inconsistent formatting of section titles in PEP 0

2011-12-01 Thread Éric Araujo
Éric Araujo added the comment: Plain text PEPs actually have an HTML title, it’s only PEP 0 that does not. I’ll fix that when I get a minute. -- ___ Python tracker ___ ___

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-12-01 Thread Éric Araujo
Éric Araujo added the comment: Hi Berker Peksag, thanks for your interest in contributing. Your patch is not what I had in mind: In test_command_sdist, a test should create an sdist and check that it fails with an error message, not instantiate a version object. Distutils2 has many layers;

[issue7652] Merge C version of decimal into py3k.

2011-12-01 Thread Stefan Krah
Stefan Krah added the comment: [Amaury] > Overall, I think that the "mpd" C library should be better separated from the > _decimal module (a bit like _ctypes, with the libffi library): its own > configure > & makefile, its own test suite... which are not necessarily related to Python. Except f

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-01 Thread Nick Coghlan
Nick Coghlan added the comment: Yep, using notes rather than simple inline links would also be fine with me. So, with "in-line text" changed to "a ReST note", what do people otherwise think about the proposed style guide addition? -- ___ Python tra

[issue8668] Packaging: add a 'develop' command

2011-12-01 Thread chris
Changes by chris : -- nosy: +chris ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree 100% with Ezio here. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-12-01 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag Added file: http://bugs.python.org/file23828/issue11060_test_v1.diff ___ Python tracker ___

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-01 Thread Ezio Melotti
Ezio Melotti added the comment: I think we are mixing a few different things here: 1) the content of the warning(s); 2) the position of the warning(s); 3) the style of the warning(s); Duplicating the same content in each warning is bad, so a specific section that summarizes the problem is good

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-01 Thread Nick Coghlan
Nick Coghlan added the comment: While I acknowledge the point (it's the reason I *didn't* remove those warnings in my recent major update to the subprocess docs), Raymond's right that scattering warnings everywhere in the docs for modules like subprocess isn't the right answer either. For a l

[issue5689] Support xz compression in tarfile module

2011-12-01 Thread Lars Gustäbel
Lars Gustäbel added the comment: I will be happy to, but my spare time is limited right now, so this could take about a week. If this is a problem, please go ahead. -- ___ Python tracker __

[issue12612] Valgrind suppressions

2011-12-01 Thread Zhiping Deng
Zhiping Deng added the comment: It works for me! -- nosy: +Zhiping.Deng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13493] Import error with embedded python on AIX 6.1

2011-12-01 Thread python_hu
python_hu added the comment: -> void* handle = dlopen("/usr/local/lib/python2.7/lib-dynload/time.so", 2); this code can work well,but when the code run to : PyRun_SimpleString("from time import time,ctime\nprint 'Today is',ctime(time())\n"); it dumped, i think it make be because of there are t

[issue13405] Add DTrace probes

2011-12-01 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The stack walker helper now supports unicode too. This was quite difficult!. The patch is functionally complete. Current patch is pretty final. It was easy and painless EXCEPT the stackhelper, because the "idea" of "PyCompactUnicodeObject" that GCC and DTRAC

[issue13097] ctypes: segfault with large number of callback arguments

2011-12-01 Thread STINNER Victor
STINNER Victor added the comment: Is there really an use case where you need 2 ** 20 (1,048,576) arguments? If yes, I'm not against the torture in this case :-) If no, why not raising an error if there are too many arguments? E.g. limit to 1,024 arguments or maybe just 10? -- __

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-01 Thread Ezio Melotti
Ezio Melotti added the comment: Grouping the common warnings in a "Security Considerations" section sounds OK, but the warnings should still be visible IMHO. In my experience, people: 1) jump right to the doc for the function they are using; 2) read the example and try to figure out how it w

[issue13405] Add DTrace probes

2011-12-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23814/3968bb3e698f.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13405] Add DTrace probes

2011-12-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23827/2a7dedf6a65e.diff ___ Python tracker ___ ___ Python-bugs-list mailin