[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-26 Thread stan mihai
stan mihai stanmih...@gmail.com added the comment: Disabling optimizations doesn't really fix the issue, just hides it, for now. The problem was an uninitialized variable. Attached is the patch that fixes it. -- nosy: +stan.mihai Added file:

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-26 Thread stan mihai
stan mihai stanmih...@gmail.com added the comment: Disabling optimizations doesn't really fix the issue, just hides it, for now. The problem was an uninitialized variable. Attached is the patch that fixes it. -- keywords: +patch nosy: +stan.mihai Added file:

[issue9266] ctypes ValueError: NULL pointer access on Win7 x64

2011-01-26 Thread stan mihai
stan mihai stanmih...@gmail.com added the comment: The problem was an uninitialized variable. Attached is the patch that fixes it. -- keywords: +patch nosy: +stan.mihai Added file: http://bugs.python.org/file20529/ctypes_win64.diff ___ Python tracker

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-26 Thread nooB
nooB nsharish@gmail.com added the comment: Few points that could be useful, 1) I added print statements in `shutil.move` and found that the `real_dst` was wrong for the case coz os.path.isdir returns true. import os os.mkdir('test') os.path.isdir('TEst') True In shutil.move, when we

[issue11013] Build of 2.7 svn fails in readline

2011-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please run gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -I/usr/lsd/Linux/include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/google/tools/python/release27-maint/Include

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I reverted r88197 because it was incorrect and caused an email test to fail. Once I come up with a test for it I'll fix it correctly. test_mailbox is a good (indirect) test suite for this change. The problem of r88197 is that it

[issue10826] pass_fds sometimes fails

2011-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: 'D' denotes a door file. There are several of them in the system; the following ones (from /var/run) match the time stamp: Dr--r--r-- 1 daemon daemon 0 Mar 27 2010 kcfd_door Dr--r--r-- 1 root root 0 Mar 27 2010

[issue10826] pass_fds sometimes fails

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 'D' denotes a door file. There are several of them in the system; the following ones (from /var/run) match the time stamp: Thanks for the explanation! It's common for library routines to open a door and keep it open for the entire process

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Solaris has an additional kind of special files named doors. The standard headers define the following macro: #define S_ISDOOR(mode) (((mode)0xF000) == 0xd000) Perhaps it would be nice to include the equivalent in the stat module.

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This message will not help anyone. And it's not a chat, but because it seems i really made the horses gone grazy (direct translation of a german proverb): - msg127002: RDM, i didn't know all of that and i am really sorry. Now I

[issue11011] More functools functions

2011-01-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: How the conversion from a recursive algorithm to an iterative one works depends on the specific algorithm involved. A trampoline does the job for tail calls, but not necessarily any other recursive algorithm. Factorial actually has a fairly

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Thanks for the feature request. It seems trivial to implement, but not trivial to test :). I assign this to myself. I will work on it after Mercurial migration is finished. Getting impatient :). -- assignee: - jcea

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: All test_email and test_mailbox pass with mailbox.patch+BytesGenerator_handle_text.patch on Windows except one test: == ERROR: test_set_item

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the feature request. It seems trivial to implement, but not trivial to test :). You can test against an existing file, such as /var/run/syslog_door (given its name, it is unlikely to be anything other than a door) --

[issue11017] optparse: error: invalid integer value

2011-01-26 Thread hensing
New submission from hensing h.dick...@gmx.net: OptionParser can't parse int 08 and 09. 8, 9 and 01..07 works. -- components: Library (Lib) files: minimal.py messages: 127106 nosy: hensing priority: normal severity: normal status: open title: optparse: error: invalid integer value type:

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I do know, but when you are working inside a zone, I am not sure you can count of that file being always present. Syslog even could be disabled or not available inside a zone. I am thinking about how to manage OS's with no support for doors.

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I do know, but when you are working inside a zone, I am not sure you can count of that file being always present. Syslog even could be disabled or not available inside a zone. Then you can just skip the test. I am thinking about how to

[issue11017] optparse: error: invalid integer value

2011-01-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 08 is not a valid octal number. See http://docs.python.org/library/optparse#standard-option-types and http://docs.python.org/reference/lexical_analysis#integer-and-long-integer-literals Hope this helps. -- nosy: +eric.araujo

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Given the behaviour of Solaris DOORS, the flags selected are very cleverly chosen. Sensible engineering :). But now I am wondering... Which organization defines flags like S_IFSOCK or S_IFIFO?. Posix members?. I am worried about flag collision

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But now I am wondering... Which organization defines flags like S_IFSOCK or S_IFIFO?. Posix members?. I am worried about flag collision between OSs. They are defined unconditionally in Lib/stat.py. For instance, if DOORS were a real flag

[issue11017] optparse: error: invalid integer value

2011-01-26 Thread hensing
hensing h.dick...@gmx.net added the comment: Shouldn't it be better to parse only numbers with prefix 0o 0o72 as an octal number? So it would be consistent to hex and bin (0x and 0b). -- ___ Python tracker rep...@bugs.python.org

[issue11017] optparse: error: invalid integer value

2011-01-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That change has been done in Python 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11017 ___

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Antoine, I am not talking about python, I am talking about the UNIX standarization process. In particular, how a new flag (for filesystems) in an OS can be skipped and not being reused for some other purpuse in other OS. Off topic for python,

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: * The read*() methods are implemented very inefficiently. Since they have to deal with the bytes objects returned by BZ2Decompressor.decompress(), a large read results in lots of allocations that weren't necessary in the C implementation. It

[issue11018] typo in test_bz2

2011-01-26 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This was found by Nadeem in issue5863. Index: Lib/test/test_bz2.py === --- Lib/test/test_bz2.py(révision 88199) +++ Lib/test/test_bz2.py(copie de travail) @@ -86,7

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread John Levon
John Levon movem...@users.sourceforge.net added the comment: Jesus, yes, it's totally possible that POSIX might define: (stat.S_IFSOCK + stat.S_IFIFO) to mean something other than S_IDOOR. However, the POSIX committee is always careful to respect existing usage. It's vanishingly unlikely that

[issue11018] typo in test_bz2

2011-01-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11018 ___ ___ Python-bugs-list

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I am looking at Linux :-). Anyway the feedback has been very useful. I will implement this as soon as mercurial switch is done. -- ___ Python tracker rep...@bugs.python.org

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There's a missing conversion in mailbox.patch. Running with -bb shows the issue. Here is an updated patch. -- Added file: http://bugs.python.org/file20532/mailbox2.patch ___ Python tracker

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: * The read*() methods are implemented very inefficiently. Since they have to deal with the bytes objects returned by BZ2Decompressor.decompress(), a large read results in lots of allocations that weren't necessary in the C

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would it be possible to add a test case to the patch? -- nosy: +georg.brandl, pitrou stage: - patch review type: behavior - crash versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-26 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6926 ___ ___ Python-bugs-list mailing

[issue11007] stack tracebacks should give the relevant class name

2011-01-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: trace.py has a hack for this: it uses gc.get_referrers() to crawl back from the code object to the encloding class. I would not trust this gc.get_referrers() though; it is probably slow, and there are even some crashers related to this

[issue11013] Build of 2.7 svn fails in readline

2011-01-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20526/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11013 ___

[issue11013] Build of 2.7 svn fails in readline

2011-01-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11013 ___ ___ Python-bugs-list

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-01-26 Thread David Stanek
David Stanek dsta...@dstanek.com added the comment: Should this just be resolved as a won't fix? -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8036 ___

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-01-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, the issue can be fixed by better checking the arguments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8036 ___

[issue6584] gzip module has no custom exception

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584 ___ ___ Python-bugs-list mailing

[issue8025] TypeError: string argument expected, got 'str'

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8025 ___ ___ Python-bugs-list mailing

[issue7659] Attribute assignment on object() instances raises wrong exception

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7659 ___ ___ Python-bugs-list mailing

[issue4492] httplib code thinks it closes connection, but does not

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4492 ___ ___ Python-bugs-list mailing

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2007 ___ ___ Python-bugs-list mailing

[issue9233] json.load failure when C optimizations aren't built

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9233 ___ ___ Python-bugs-list mailing

[issue3849] FUD in documentation for urllib.urlopen()

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3849 ___ ___ Python-bugs-list mailing

[issue5097] asyncore.dispatcher_with_send undocumented

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5097 ___ ___ Python-bugs-list mailing

[issue8743] set() operators don't work with collections.Set instances

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___ ___ Python-bugs-list mailing

[issue7100] test_xmlrpc: global name 'stop_serving' is not defined

2011-01-26 Thread David Stanek
Changes by David Stanek dsta...@dstanek.com: -- nosy: +dstanek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7100 ___ ___ Python-bugs-list mailing

[issue11018] typo in test_bz2

2011-01-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Patch looks good to me. -- assignee: - pitrou nosy: +brett.cannon resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org

[issue763708] Failures in test_macostools for --enable-unicode=ucs4

2011-01-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Since the whole Mac directory got gutted in the switch over to Python 3, macostools is now gone, making this out of date. -- resolution: - out of date status: languishing - closed ___ Python tracker

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-26 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: Thank you. The new patch works and it also fixes a crash of the python-2.5.4.amd64 interpreter at startup when ctypes 1.0.2 and pyreadline 1.6.2 are installed. -- ___ Python tracker

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-01-26 Thread Arif Amirani
Changes by Arif Amirani arif.amir...@gmail.com: -- nosy: +kontinuity ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9516 ___ ___ Python-bugs-list

[issue11011] More functools functions

2011-01-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm intrigued by the tampoline() but after reading Nick's post, I think it needs to be an external recipe or blog post with extensive examples so that it can mature and either prove its worth or serve as an intellectually

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-01-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have the impression that there has been progress on tcl/tk on Apple in the last 7 months. Should this issue still be open, and if so, for both 2.7 and 3.2? -- nosy: +terry.reedy ___ Python tracker

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Added file: http://bugs.python.org/file20533/tarfile.patch2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11014 ___

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Looks good to me. As discussed in IRC, a note in 2.7 about the future of the `add` signature would also be helpful. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-01-26 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Terry J. Reedy wrote: Terry J. Reedytjre...@udel.edu added the comment: I have the impression that there has been progress on tcl/tk on Apple in the last 7 months. Should this issue still be open, and if so, for both 2.7 and

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Anthony Long
Anthony Long antl...@gmail.com added the comment: Tests trying all positions and expecting an appropriate TypeError should be included. -- nosy: +antlong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11014

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Anthony Long
Changes by Anthony Long antl...@gmail.com: -- nosy: -antlong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11014 ___ ___ Python-bugs-list mailing

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Anthony Long
Anthony Long antl...@gmail.com added the comment: Strange, I didn't see it until this email came. Probably an old browser cache. Either way, looks good to me. No issues on mac SL. -- nosy: +antlong ___ Python tracker rep...@bugs.python.org

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Anthony, that is what tarfile.patch2 does. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11014 ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Haypo: yeah, in an ideal world Generator would use get_payload() and not _payload, but I had to make some compromises with purity of model separation in order to achieve the practical goal of handling bytes usefully. I'd like to fix

[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

2011-01-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r88201. Will add a note to 2.7 docs advising use as a keyword-only argument. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I am thinking about how to manage OS's with no support for doors. Instead of conditionally compile the new STAT, I would rather have the function always available, but returning FALSE when the OS doesn't support doors. But what happen if

[issue11016] Add S_ISDOOR to the stat module

2011-01-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Am 26.01.2011 14:14, schrieb Jesús Cea Avión: Jesús Cea Avión j...@jcea.es added the comment: Antoine, I am not talking about python, I am talking about the UNIX standarization process. In particular, how a new flag (for filesystems)

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: This was discovered by Haypo during work on #9124. I'll attach a patch with test shortly. -- assignee: r.david.murray messages: 127139 nosy: r.david.murray priority: high severity: normal stage: commit review status: open

[issue3754] cross-compilation support for python build

2011-01-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: fixed patch failure on Parser/pgen.stamp -- Added file: http://bugs.python.org/file20534/python-2.7-20110126-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (Patch without patch from #9124) -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file20535/BytesGenerator_handle_text.patch ___ Python tracker rep...@bugs.python.org

[issue3754] cross-compilation support for python build

2011-01-26 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file20536/python-py3k-20110126-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's the patch and test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11019 ___ ___

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, so let's try again, since roundup saw fit to clear the upload field on me... -- Added file: http://bugs.python.org/file20537/bytes_generator_none_body.patch ___ Python tracker

[issue3871] cross and native build of python for mingw32 with distutils

2011-01-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: fixed test case failure for 32-bit time_t -- Added file: http://bugs.python.org/file20538/python-2.7-20110126-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue3871] cross and native build of python for mingw32 with distutils

2011-01-26 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3871] cross and native build of python for mingw32 with distutils

2011-01-26 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file20539/python-2.7-20110126-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3871] cross and native build of python for mingw32 with distutils

2011-01-26 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file20540/python-py3k-20110126-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-01-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Terry, we are working on all of the OS X IDLE Tk issues at the moment with focus first on 3.2. These issues will be updated and closed as they are resolved. -- ___ Python tracker rep...@bugs.python.org

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The new test fails without the fix, and it pass with the fix. The fix itself looks correct because I wrote a similar patch :-) Go on. -- ___ Python tracker rep...@bugs.python.org

[issue11019] BytesGenerator fails if the Message body is None

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed in r88203. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11019

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: pitrou There's a missing conversion in mailbox.patch. pitrou Running with -bb shows the issue. pitrou Here is an updated patch. Good catch: test_mailbox now pass on Windows. -- Some remarks on mailbox2.patch. get_string() returns

[issue10878] asyncore does not react properly on close()

2011-01-26 Thread gmr
gmr g...@myyearbook.com added the comment: What I noticed in tracing through the code is that it's getting stuck in a loop because it depends on grabbing asyncore.socket_map if map is null when passed into asyncore.loop. I got around this by appending: asyncore.loop(0.1, map=[], count=1)

[issue10878] asyncore does not react properly on close()

2011-01-26 Thread gmr
gmr g...@myyearbook.com added the comment: For more clarity, I am passing in a list because it will evaluate as False in the while loop on 209 and 213. The fix is to add len(map) to the while loops on those lines. -- ___ Python tracker

[issue10981] argparse: options starting with -- match substrings

2011-01-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is this behavior documented? -- nosy: +eric.araujo versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10981

[issue11003] os.system should be deprecated in favour of subprocess module

2011-01-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note that os.popen is implemented with subprocess. For os.system, what Raymond said: It complies with the Python habit of exposing calls as is, and its documentation already advertises subprocess. -- nosy: +eric.araujo

[issue10848] Move test.regrtest from getopt to argparse

2011-01-26 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: As suggested by David, I made it possible to specify an alternative test directory by introducing '--testdir DIR' cli option: attached the patch, comments are welcome :) What about STDTESTS/NOTTESTS in case --testdir is specified? Currently

[issue10848] Move test.regrtest from getopt to argparse

2011-01-26 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: shouldn't we use the same method also for --coverdir (that currently faild the least surprise test when specifying a relative path) replacing coverdir = os.path.join(os.getcwd(), a) with coverdir = os.path.join(support.SAVEDCWD, a) ?

[issue10981] argparse: options starting with -- match substrings

2011-01-26 Thread David Caro
David Caro david.caro.este...@gmail.com added the comment: Yes it is, here http://docs.python.org/dev/library/argparse.html#argument-abbreviations. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10981

[issue11020] Pyclbr broken because of missing 2-to-3 conversion

2011-01-26 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: The command line invocation of pyclbr failed because of a 2-to-3 error. The dict.values() call returns a dictview which doesn't support the sort() method. Invoke with: $ python -m pyclbr Lib/collections.py --

[issue10848] Move test.regrtest from getopt to argparse

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I would open three new bugs to address the issues you raise. It ought to be possible to rename things so that we can eliminate the pre-population of NOTTESTS (if not I'd like to know why not!). STDTESTS appear to move certain tests to

[issue11018] typo in test_bz2

2011-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r88204 (3.2), r88205 (3.1) and r88206 (2.7). -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed versions: +Python 2.7 ___ Python tracker

[issue11020] Pyclbr broken because of missing 2-to-3 conversion

2011-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file20542/pyclbr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11020

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-01-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Here is an update patch, which corrects a typo in the previous patch, and adds a test to test_zlib. The test uses a memory-mapped sparse file, so it gets skipped on systems without mmap. The alternative would be to allocate a 4+GB buffer

[issue11020] Pyclbr broken because of missing 2-to-3 conversion

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: As long as we are modifying that code, how about fixing the use of 'dict' as a variable name? Alternative patch attached. -- nosy: +r.david.murray Added file: http://bugs.python.org/file20544/pyclbr2.patch

[issue11021] email MIME-Version headers for each part in multipart message

2011-01-26 Thread David Caro
New submission from David Caro david.caro.este...@gmail.com: When attaching a subpart to a multipart message, python should follow the recomendations of the rfcs and remove the MIME-Version header of each part, leaving only one MIME-Version header at the beggining of the message. from

[issue11020] Pyclbr broken because of missing 2-to-3 conversion

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: One fix or the other ought to go in, IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11020 ___

[issue6584] gzip module has no custom exception

2011-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584 ___

[issue11021] email MIME-Version headers for each part in multipart message

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For the record, can you point to the relevant part of the relevant RFC? -- assignee: - r.david.murray nosy: +r.david.murray stage: - needs patch versions: +Python 3.1, Python 3.2 -Python 2.6

[issue11003] os.system should be deprecated in favour of subprocess module

2011-01-26 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Eric Note that os.popen is implemented with subprocess. That seems somewhat wrong to me. There is a stdio popen function which os.popen used to expose. I thought that was the goal (thin wrapper around many library functions, then build higher

[issue11020] Pyclbr broken because of missing 2-to-3 conversion

2011-01-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: At some point, we ought to clean-up bad variable names. For now (close to the release), I'll stick with the minimal fix. Fixed r88207 and r88028. -- resolution: - fixed status: open - closed versions: +Python 3.1

[issue9233] json.load failure when C optimizations aren't built

2011-01-26 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: For what it's worth, I don't think any of the failures mentioned here are in the current version of simplejson. There aren't any tests that check the speedup module name, the speedup tests are skipped when speedups are not detected, and the

[issue8914] Run clang's static analyzer

2011-01-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Analyzed by downloading the latest Clang static analyzer from http://clang-analyzer.llvm.org/ and running ``scan-build ./configure --with-pydebug; scan-build make -s -j2``. The attached tar.xz (yes I went with a cutting edge archival format;

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I haven't looked at the items Haypo has pointed to yet, but I have looked at the API issues (get_string, add, etc). It seems to me that we have to make a decision here: do we break API backward compatibility and convert to consuming

  1   2   >