[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

[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

[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

[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

[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

[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

[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=('

[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

[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 Paulo Scardine
Changes by Paulo Scardine : Removed file: http://bugs.python.org/file20844/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 ___

[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 _

[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 ___ ___

[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 ___ _

[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

[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 ___

[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

[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

[issue11296] Possible error in What's new in Python 3.2 : duplication of rsplit() mention

2011-02-22 Thread Carl Chenet
New submission from Carl Chenet : Hi, Could the rsplit() method be mentioned mistakenly two times in the following sentence of the current What's new in Python 3.2 ? "The fast-search algorithm in stringlib is now used by the split(), rsplit(), splitlines() and replace() methods on bytes, byte

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

2011-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Is it possible to add some tests for input()? Also the patch uses tabs instead of spaces. -- ___ Python tracker ___

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

2011-02-22 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch to fix input() on Windows: strip also \r. -- keywords: +patch Added file: http://bugs.python.org/file20852/input_rn.patch ___ Python tracker __

[issue3080] Full unicode import system

2011-02-22 Thread STINNER Victor
STINNER Victor added the comment: r88519: Mark _PyImport_FindBuiltin() argument as constant r88520: Add PyModule_GetNameObject() -- ___ Python tracker ___ ___

[issue11295] On Windows, Python crashes on ANSI / Windows-formatted source files

2011-02-22 Thread Jonathan Hayward
New submission from Jonathan Hayward : So far as I can tell, Python 2.7 crashes on at least some ANSI / Windows \r\n-delimited source files. More specifically, as invoked by Apache as a CGI script, the source file line: import cgi generated an error logged by Apache, complaining that the modu

[issue3080] Full unicode import system

2011-02-22 Thread STINNER Victor
STINNER Victor added the comment: I started to commit some parts of the huge patch: r88515: Mark PyWin_FindRegisteredModule() as private r88516: Remove unused argument of _PyImport_GetDynLoadFunc() r88517 (3.3), r88518 (3.2): document encoding used by import functions -- _

[issue11282] unittest document not keep consist with code

2011-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11282] unittest document not keep consist with code

2011-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88511 (3.3) and r88514 (3.2). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11294] Locale - update & uniform ERA_*_FMT doc

2011-02-22 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-February/003004.html here's a patch to: - clarify ERA_D_FMT is for date - uniform the way {ERA_} descriptions are written (are not a native to know if it's better 'a date' or 'dates' (same goes for 'time'

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

2011-02-22 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine's patch looks good to me. Given the assumptions in the memoryview code, disallowing NULL for the buf pointer sounds like the right thing to do, even for zero-length buffers. -- ___ Python tracker

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Matthew Funke
Matthew Funke added the comment: I also tried uninstalling, re-downloading the MSI, and re-installing, but no joy. Thank you for any insight you can lend. -- ___ Python tracker __

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Matthew Funke
Matthew Funke added the comment: Here's the output, in its entirety: - C:\Python32>python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook Fatal Python error: Py_Initialize: unable to load the file system codec LookupError: no codec s

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

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: The patch didn't even import as-is or past the tests, but I tweaked it so it did (and made method() just an attribute on the module). -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed _

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Matthew: please run "python -v", and attach any output it makes to this report. -- ___ Python tracker ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, your msg129093 patch of test_zlib.py does it (with and > without fprintf(3)s). CRC ok etc., it just works. Indeed, and it also seems to work on the buildbot. I will commit the patch soon. Thanks for your help! > (Seems mmap(2) has a problem here, i

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

2011-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > As I said, my only intention here is be to document > (and argparsify/formalize) what is already there. In a handful of cases, that would be useful; however, for the most part, these APIs were undocumented for a reason. Some of the command-line interface

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

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: I will look at the patch. -- assignee: jafo -> brett.cannon nosy: +brett.cannon stage: committed/rejected -> patch review ___ Python tracker ___

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Brian Curtin
Brian Curtin added the comment: It works fine for me. Just did a 32-bit Python 3.2 install on a Windows 7 64-bit machine and IDLE works. -- ___ Python tracker ___ _

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can anybody reproduce this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2011-02-22 Thread dholth
dholth added the comment: What should this option be called? connect(strict=True) ? -- nosy: +dholth ___ Python tracker ___ ___ Pytho

[issue11293] Distutils - read the file when using it in long_description

2011-02-22 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-February/003087.html here's a patch to read the contents of the file for long_description. -- assignee: sandro.tosi components: Documentation files: distutils-read-longdescr-file-py3k.patch keyword

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: neologix: even with 2 GB RAM top(1) shows more than 600 MB free memory with the 4 GB test up and running ... in an Mac OS X environment ... Lucky me, i don't believe them a single word... -- ___ Python tra

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (neologix: SIGBUS is not the same as SIGSEGV. You know. Thanks for this nice bug report. Eight years is a .. time in computer programming - unbelievable, thinking of all these nervous wrecks who ever reported a bug to Apple! Man!!!) -- __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (That is to say: i think it's better not to assume that these boys plan to *ever* fix it. (Though mmap(2) is not CoreAudio/AudioUnit.)) -- ___ Python tracker ___

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

2011-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 22, 2011, at 08:15 PM, Xavier Morel wrote: >Barry, do I correctly understand your comment to mean I should write >end-to-end tests of the CLI (until reaching the already tested "meat" of >smtpd), not just the CLI options parsing? Given the way the __ma

[issue11049] add tests for test.support

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Can we commit this patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11292] Curses - add A_REVERSE to attributes table

2011-02-22 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-February/003142.html here's a patch to add A_REVERSE attribute to attribs table. -- assignee: sandro.tosi components: Documentation files: add-a_reverse-py3k.patch keywords: patch messages: 129121

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I have a MacBook with 2 GB RAM. Of course i'm a little bit messy, so an entry is half written before it comes to an ... end. msg129091 is real life, though. Antoine, your msg129093 patch of test_zlib.py does it (with and without fprintf(3)s). CRC o

[issue8914] Run clang's static analyzer

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: applied in r88506 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

2011-02-22 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: To elaborate on this, to my knowledge, there's no portable and reliable way to close all open file descriptors. Even with the current code, it's still possible that some FD aren't properly closed, since getconf(SC_OPEN_MAX) often returns RLIMIT_NOFILE

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

2011-02-22 Thread Xavier Morel
Xavier Morel added the comment: Barry, do I correctly understand your comment to mean I should write end-to-end tests of the CLI (until reaching the already tested "meat" of smtpd), not just the CLI options parsing? -- ___ Python tracker

[issue11199] urllib hangs when closing connection

2011-02-22 Thread rg3
rg3 added the comment: Charles-Francois Natali, Tuesday, February 22, 2011 20:57: > Attached are two new versions which don't wait for the end of > transfer. I tested the one for Python 2.7 applied to Python 2.6 and it appears to work perfectly. Thanks for the quick fix! -- _

[issue11199] urllib hangs when closing connection

2011-02-22 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Attached are two new versions which don't wait for the end of transfer. -- Added file: http://bugs.python.org/file20848/urllib_ftp_close.diff ___ Python tracker _

[issue11199] urllib hangs when closing connection

2011-02-22 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Removed file: http://bugs.python.org/file20814/urllib_ftp_close.diff ___ Python tracker ___ ___ Python-bu

[issue11199] urllib hangs when closing connection

2011-02-22 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Added file: http://bugs.python.org/file20847/urllib_ftp_close_27.diff ___ Python tracker ___ ___ Python-b

[issue11199] urllib hangs when closing connection

2011-02-22 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Removed file: http://bugs.python.org/file20815/urllib_ftp_close_27.diff ___ Python tracker ___ ___ Python

[issue11291] poplib suppresses exception on QUIT

2011-02-22 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Unlike ftplib, smtplib and probably others, poplib suppresses error_proto exceptions on quit(). I'm not sure in what circumstances a POP3 server can return a negative response on QUIT but if this happens poplib should raise an exception. Users who don't c

[issue11086] add lib2to3/__main__.py

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: r88503 has the patch in 3.3 Didn't both with documenting it since I only expect core devs who are debugging something with 2to3 will want to use this approach. -- assignee: -> brett.cannon resolution: -> fixed stage: commit review -> committed/rejecte

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

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: We already have 3 places where a tuple is used: socket.socket.bind socket.create_connection http.client.HTTPConnection Changing this notation in smtplib for such a rarely used feature is not worth the effort, imo. Also, I would not add two new SMTP attribu

[issue11200] Addition of abiflags breaks distutils

2011-02-22 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Distribute issue opened and patch based on Antoine's comments attached. https://bitbucket.org/tarek/distribute/issue/191/distribute-fails-unittests-on-python-32 -- ___ Python tracker

[issue11199] urllib hangs when closing connection

2011-02-22 Thread rg3
rg3 added the comment: > > I have to correct myself. I applied the patch manually to my Python > > 2.6 installation. In Python 2.6, the line you moved is number 961, > > and I did the same change. > > OK. For information, you can apply it using the Unix "patch" command, > who can most of the ti

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: While directly referencing a module on its own is useless, this is an issue if the module is used in e.g., an assignment: ``blah = cPickle`` is not changed. -- nosy: +brett.cannon stage: -> needs patch ___ Python tra

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

2011-02-22 Thread Paulo Scardine
Paulo Scardine added the comment: My first idea was to make the argument a tuple to match socket.create_connection(), but SMTP uses host and port arguments, for consistency it's better havin separate source_ip and source_port arguments. As a side effect, it makes easier to specify only source

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. > The problem is not crc32(), but the buffer itself: > >if (pbuf.len > 1024*5) { > unsigned char *buf = pbuf.buf; > Py_ssize_t len = pbuf.len; > Py_ssize_t i; >

[issue11287] Add context manager support to dbm modules

2011-02-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, you must update Doc/library/smtplib.rst and write tests. If you're not the one who's gonna commit the patch you can ignore Doc/whatsnew/3.3.srt and Misc/NEWS changes. Updating the docstring is usually optional but I see smtplib module is already well

[issue11289] smtplib context manager

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > is print really necessary in the test? no, my mistake -- ___ Python tracker ___ ___ Python-bu

[issue11289] smtplib context manager

2011-02-22 Thread SilentGhost
SilentGhost added the comment: is print really necessary in the test? Also, I think it would be better to unpack the tuple in test, rather then index it. -- ___ 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: @Giampaolo: should I change the text in Doc/library/smtplib.rst or it is infered from the docstrings? -- ___ Python tracker ___ __

[issue11289] smtplib context manager

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ouch! Here. =) -- keywords: +patch Added file: http://bugs.python.org/file20845/smtplib_context_manager.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: Also, it is my first patch and I have no clue about what I'm doing, I don't expect to get it right in the first try - please point any mistakes. -- ___ Python tracker ___

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

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Seems like the signature of Lib.test.mock_socket.create_connection does > not match socket.create_connection since 2.7. You can add a fake parameter which does nothing. > What is the notation for the new keyword arguments? fun(a, b, c=None, d=None) ---

[issue11289] smtplib context manager

2011-02-22 Thread SilentGhost
SilentGhost added the comment: you didn't attach anything, Giampaolo. -- components: +Library (Lib) nosy: +SilentGhost ___ 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: Seems like the signature of Lib.test.mock_socket.create_connection does not match socket.create_connection since 2.7. I need help with the docs; the last argument is positional and optional, using the `[ ]' notation. What is the notation for the new keyword a

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-22 Thread Clayton Darwin
New submission from Clayton Darwin : In working with the ttk.Combobox (Windows XP, Python 3.1), I have found that setting the values for the popdown using ttk.Combobox['values'] has an problem converting the string to the proper Tcl value when (and this is the only instance I have found) there

[issue11289] smtplib context manager

2011-02-22 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Patch in attachment provides a context manager for SMTP class so that it can be used with the "with" statement. -- messages: 129096 nosy: giampaolo.rodola, pitrou priority: normal severity: normal status: open title: smtplib context manager versio

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

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with tests. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file20842/null_ptr_buffer.patch ___ Python tracker __

[issue6549] ttk.Style not translating some Tcl options

2011-02-22 Thread Clayton Darwin
Clayton Darwin 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 TCombobox and TE

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Out of curiosity, could you try the following patch? Index: Lib/test/test_zlib.py === --- Lib/test/test_zlib.py (révision 88500) +++ Lib/test/test_zlib.py (copie de travail) @@ -70,7 +7

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

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I would like to add source_ip and source_port parameters to > smtplib.SMTP, default to '' and 0 respectively. It would be better to provide a unique source_address parameter defaulting to None, for consistency with socket.create_connection() expecting a

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Snippet if (pbuf.len > 1024*5) { volatile unsigned char *buf = pbuf.buf; Py_ssize_t len = pbuf.len; Py_ssize_t i = 0; volatile unsigned char au[100]; volatile unsigned char*x = au; fprintf(stderr, "CRC ENTER, buffer=%p\n", bu

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. > The problem is not crc32(), but the buffer itself: > >if (pbuf.len > 1024*5) { > unsigned char *buf = pbuf.buf; > Py_ssize_t len = pbuf.len; > Py_ssize_t i; > fprintf(

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2011-02-22 Thread SilentGhost
SilentGhost added the comment: Here is the patch fixing pep-8 compatibility and test. It is against the latest commit. -- nosy: +SilentGhost status: closed -> open Added file: http://bugs.python.org/file20840/crypt.py.diff ___ Python tracker

[issue11288] Python installed from MSI doesn't work

2011-02-22 Thread Matthew Funke
New submission from Matthew Funke : I uninstalled Python 3.1.3 and installed the 32-bit version of Python 3.2 on my 64-bit Win7 box. (My favorite IDE requires the 32-bit version.) trying to run IDLE crashes; running C:\python32\python.exe returns this error: Fatal Python error: Py_Initialize

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (P.S.: of course talking about ChecksumBigBufferTestCase and the 4GB, say.) -- ___ Python tracker ___ _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. The problem is not crc32(), but the buffer itself: if (pbuf.len > 1024*5) { unsigned char *buf = pbuf.buf; Py_ssize_t len = pbuf.len; Py_ssize_t i; fprintf(stderr,

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

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: +1, this has been done for other modules such as ftplib as well and probably could be done for others such as httplib and poplib. -- nosy: +giampaolo.rodola ___ Python tracker

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-22 Thread Andres Riancho
Andres Riancho added the comment: Yes, the traceback was in my code because as I stated before: "my w3af code had a section of urllib2's code in logHandler.py" in other words, I copy+pasted a section of urllib2 into my code. Can't provide a test case now, sorry. -- _

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-22 Thread R. David Murray
R. David Murray added the comment: The traceback you point to seems to indicate the getheaders call is in your code. Can you provide a minimal test case that demonstrates the failure mode you are concerned about? -- nosy: +r.david.murray ___ Pytho

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

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is because of the buffer pointer passed to the codecs machinery being NULL when the empty string is being decoded. Quick patch follows (needs a test). Also, it is not clear whether it is allowed to store a NULL pointer in the "buf" member of a Py_buffer

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

2011-02-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Storing the pickle using protocol 0, it works OK. Using protocol 1 or 2, it fails. -- ___ Python tracker ___

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

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so it boils down to: >>> pickle.loads(b'\x80\x02}q\x00U\x00q\x01h\x01s.') {'': ''} >>> pickle.loads(b'\x80\x02}q\x00U\x00q\x01h\x01s.', encoding='latin1') Traceback (most recent call last): File "", line 1, in ValueError: operation forbidden on released

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

2011-02-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I got a trivial (41 bytes long) reproductable case: Pickle the following structure in Python 2.7, and try to unpickle with Python 3.2, using a "latin1" encoding: """ {'ya_volcados': {'comment': ''}} """ Load with: """ #!/usr/local/bin/python3 import pickl

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

2011-02-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'd support updating to argparse *if* you write a test suite for full coverage of the existing cli first. Once that passes, you'll have more confidence in your port. Modernizing the argument parsing in that case would be a useful addition. Not critical, b

[issue10882] Add os.sendfile()

2011-02-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yes I agree it can go in now. Unless someone wants to do some tests on more OS's like FreeBSD 7.2, Solaris, etc. (I've only checked on Linux 2.6, FreeBSD 8.1, OpenIndiana and OS X 10.5). -- ___ Python tracker

[issue11287] Add context manager support to dbm modules

2011-02-22 Thread Ray.Allen
New submission from Ray.Allen : dbm objects, including gdbm, ndbm, dumb, should support context manager. That is, can be used with 'with' keyword, just like regular file objects. I'm working out a patch for this. -- components: Extension Modules messages: 129076 nosy: ysj.ray priority:

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

2011-02-22 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : I have 10MB pickled structure generated in Python 2.7. I only use basic types (no clases) like sets, dictionaries, lists, strings, etc. The pickle stores a lot of strings. Some of them should be "bytes", while other should be "unicode". My idea is to import

[issue2159] dbmmodule inquiry function is performance prohibitive

2011-02-22 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11285] io.py standart stream setup crash

2011-02-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

  1   2   >