[issue11272] input() has trailing carriage return on windows

2011-02-22 Thread STINNER Victor
STINNER Victor added the comment: C:\Python32>python Python 3.2 ... on win32 >>> import sys >>> for line in sys.stdin: ... print(repr(line)) ... hello 'hello\r\n' ^Z Oh yes, I confirm that there is a second bug: sys.stdin doesn't translate \r\n to \n, wherea

[issue11272] input() has trailing carriage return on windows

2011-02-22 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file20852/input_rn.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2011-02-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: amaury.forgeotdarc -> krisvale keywords: +buildbot -easy, patch nosy: +krisvale -amaury.forgeotdarc versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue6549] ttk.Style not translating some Tcl options

2011-02-22 Thread Guilherme Polo
Guilherme Polo added the comment: > I have been working with the ttk module (Windows XP, Python 3.1) and have > encountered some specific issues with ttk.Style() not fully propagating the > style into the widget.  In my particular case, there seem to be issues with > setting style in TCombobo

[issue4111] Add Systemtap/DTrace probes

2011-02-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: dmalcolm -> dino.viehland nosy: +dino.viehland versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2011-02-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: krisvale -> amaury.forgeotdarc keywords: +easy, patch -buildbot nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jesus, perhaps you can address Amaury's comments by uploading a new patch? -- assignee: amaury.forgeotdarc -> stage: commit review -> needs patch ___ Python tracker _

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-22 Thread Paulo Scardine
Paulo Scardine added the comment: Ok, I changed to a single parameter matching socket.create_connection(). I made my best to update tests and docs, but I don't have a clue if it is right. -- Added file: http://bugs.python.org/file20854/smtp_lib_source_address.patch ___

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-22 Thread Paulo Scardine
Changes by Paulo Scardine : Removed file: http://bugs.python.org/file20844/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Follow my comments: > + source_address=('', 0)): Make that default to None instead and pass it as-is to socket.create_connection(). > +self.source_address = source_address There's no need to store the source address as an instance

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-22 Thread Paulo Scardine
Paulo Scardine added the comment: > There's no need to store the source address as an instance attribute. > Just pass it as-is to socket.create_connection() in __init__ and > connect methods and then get rid of it. Ok, what if user initialize with something like smtplib.SMTP(source_address=('

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
s7v7nislands added the comment: thanks, neologix. I think should put this hint in python doc. -- ___ Python tracker ___ ___ Python-b

[issue11049] add tests for test.support

2011-02-22 Thread R. David Murray
R. David Murray added the comment: I agree that the docs for import_fresh_module are confusing. The code says there are sanity checks in test_heapq and test_warnings, so that code could presumably be used as a model for someone to develop a more complete stand-alone test (I haven't looked fo

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am not sure PyUnicode_Decode() should treat NULL as an empty string. Decoding empty string is wasteful and if the caller knows that the string is empty, it should skip decoding because the result is empty. Providing *two* ways to invoke expensive Py

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-22 Thread Xavier Morel
Xavier Morel added the comment: > Only "document and formalize" the parts that are well thought out. I don't believe I have the knowledge, right or ability to make that call for any module or package but a pair of extremely obvious ones (http.server seems a pretty good candidate as it's docum

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Georg Brandl
Changes by Georg Brandl : -- keywords: +3.2regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Bartosz
Bartosz added the comment: I've got the same situation. Windows 7 (32bit) python-3.2.msi installations puts through, but when I try to lunch python appears error : Fatal Python error: Py_Initialize: unable to load the file system codec LookupError: no codec search functions registered: can't f

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-02-22 Thread wesley chun
New submission from wesley chun : In the re docs, it states the following for the conditional regular expression syntax: (?(id/name)yes-pattern|no-pattern) Will try to match with yes-pattern if the group with given id or name exists, and with no-pattern if it doesn’t. no-pattern is optional an

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-22 Thread Xavier Morel
Xavier Morel added the comment: > Do tests currently exist for smtpd run as a script? I have to confess I didn't think to check. > If not, our experience with converting compileall to argparse indicates a > thorough test suite is needed (and even so we missed some things we hadn't > thought

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
New submission from s7v7nislands : when use popen*() and close_fds is True, python will close unused fds. but the MAXFD is not the real max. especially in freebsd, subprocess.MAXFD=655000. so python will try to close to many fd, it's too slow, in my test on freebsd, using about 3 seconds. poo

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread s7v7nislands
Changes by s7v7nislands : Added file: http://bugs.python.org/file20835/python27.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Xavier, I think these efforts are misguided in several ways: * Many of the undocumented command-line interfaces are intentionally undocumented -- they were there for the convenience of the developer for exercising the module as it was being developed and are

[issue11284] slow close file descriptors in subprocess, popen2, os.pepen*

2011-02-22 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: dup(2) returns the lowest numbered available file descriptor: if there's a discontinuity in the FDs allocation, this code is going to close only the FDs up to the first available FD. Imagine for example the following: open("/tmp/foo") = 3 open("/tmp/b

[issue11243] email/message.py str conversion

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Of course you're right. It just reads, passes around and spits out that ... of a mail just the same it came in. Performance is very well, too, just about 1.5 seconds - some two weeks ago it took about 1.1 seconds, but with Python 2.7 - so! P.S.: m

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-22 Thread Xavier Morel
Xavier Morel added the comment: > any of the undocumented command-line interfaces are intentionally > undocumented -- they were there for the convenience of the developer for > exercising the module as it was being developed and are not part of the > official API. I can understand that, but

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-22 Thread Xavier Morel
Xavier Morel added the comment: One more note I forgot previously: the conversion of as much scripts as possible to argparse would be for three reasons: * Make behavior consistent across the board (e.g. -h/--help) * Make CLI documentation format consistent across the board either so users kno

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread Sean Reifschneider
Sean Reifschneider added the comment: Committed in r88500. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does it matter that _4G < UINT_MAX? You mean _4G > UINT_MAX, right? Yes, it matters, otherwise that defeats the point of the test :) -- ___ Python tracker _

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-22 Thread Andres Riancho
Andres Riancho added the comment: Please take a deeper look. I think you're trusting the "old code" more than my bug report. Some things to keep in mind: * The "headers" parameter is a dict. It will never have a getheaders method * The If you search the whole urllib2.py file, you won't find

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 'Have no glue, but Ned Daily's patch (msg129011) seems to be required for adler, too. (You know...) -- nosy: +sdaoden ___ Python tracker

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, it's not a patch, just a traceback :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Wait a few minutes, i'll write this simple patch for adler and crc. But excessive testing and such is beyond my current capabilities. -- ___ Python tracker _

[issue11243] email/message.py str conversion

2011-02-22 Thread R. David Murray
R. David Murray added the comment: We might wind up with a relatively quick 3.2.1, in which case we can get this fixed then. The parser is supposed to operate without throwing exceptions (just setting defects), so if you find a case where *parsing* throws an exception please open an issue.

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: File: issue11277.patch. Hmm. Two non-register constants and equal code on 32 and 64 bit. Does Python has a '64 bit' switch or the like - PY_SSIZE_T_MAX is not preprocessor-clean, i would guess. -- keywords: +patch Added file: http://bugs.pyt

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file20836/issue11277.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Sorry - that was a mess. -- Added file: http://bugs.python.org/file20837/issue11277.patch ___ Python tracker ___ __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > File: issue11277.patch. > Hmm. Two non-register constants and equal code on 32 and 64 bit. > Does Python has a '64 bit' switch or the like - PY_SSIZE_T_MAX is not > preprocessor-clean, i would guess. Er, how is this patch different from r88460? --

<    1   2