[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks as bz2 in Python 3.3 has bad buffering. Reading by larger chunks shows the same speed in 2.7 and 3.3. -- components: +Library (Lib) -None nosy: +storchaka ___ Python tracker rep...@bugs.python.org

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, I was able to restore performance (using same code as in zipfile). The patch will be later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16034

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-25 Thread Victor Hooi
Victor Hooi added the comment: Hi, I didn't have any buffering size set before, so I believe it defaults to 0 (no buffering), right? Wouldn't this be the behaviour on both 2.x and 3.x? I'm using a 1.5 Mb bzip2 file - I just tried setting buffering to 1000 and 100, and it didn't seem to

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-25 Thread Victor Hooi
Victor Hooi added the comment: Hi, Aha, whoops, sorry Serhiy, didn't see your second message - I think you and I posted our last messages at nearly the same time... Cool, looking forward to your patch =). Also, is there any chance you could provide a more detailed explanation of what's

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-25 Thread Omanand Jha Vatsa
Omanand Jha Vatsa added the comment: I have tried re-installing to 8.5.11.1. Still same issue. I am on Mac OSX 10.7.4 version. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16032

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-25 Thread Ned Deily
Ned Deily added the comment: Odd, it works for me. Check to make sure it really got installed: $ cd /Library/Frameworks/Tk.framework/ $ grep PATCH tkConfig.sh TK_PATCH_LEVEL='.11' You could manually delete the frameworks and try installing again: $ cd /Library/Frameworks $ sudo rm -r

[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)

2012-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch, which also fixes issue 16030. It needs more tests. -- Added file: http://bugs.python.org/file27289/xrange_reduce_repr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029

[issue16013] small csv reader bug

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a test. -- Added file: http://bugs.python.org/file27290/csv_eof_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___

[issue16023] IDLE froze when typing ctrl-shift-5

2012-09-25 Thread Zellmeyer
Zellmeyer added the comment: I used OSX 10.8.2 build 12C54 on both Macbookair and iMac I have ActiveState TCL installed 8.5 Ctrl-shift-5 does not correspond to a special character on my keyboard layout. But i discovered that this combination open a window called tab width in the IDLE shell

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Cool, looking forward to your patch =). It will take some time to make a completed patch. I don't have much time *right* now. Wait for a few hours. Also, is there any chance you could provide a more detailed explanation of what's going on? This is just

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27293/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Michele Orrù added the comment: Updated. tumbolandia:cpython maker$ hg import --no-commit -f issue8425.2.patch make -j3 /dev/null 2/dev/null sto applicando issue8425.2.patch tumbolandia:cpython maker$ ./python.exe bench.py starting... setting up tests... testing... big_timer_no_intersection

[issue16013] small csv reader bug

2012-09-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good and is doing the right thing, that is, when the, strict mode is passed, it fails and without strict mode, it is printing the parsed list. -- nosy: +orsenthil ___ Python tracker

[issue16015] Incorrect startup header in tutorial

2012-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: OK. If you change the date also change s/py3k/default/, py3k was used on the SVN days. Here is what my header looks like: $ python3 Python 3.2.3 (default, May 3 2012, 15:54:42) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: The fix for issue #13992 introduced segmentation fault in test suite of apsw (http://code.google.com/p/apsw/) (with Python 2.7, 3.2 and 3.3). $ python2.7 setup.py build running build running build_ext SQLite: Using system sqlite

[issue16013] small csv reader bug

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9c005676d6e by Senthil Kumaran in branch '3.2': Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/e9c005676d6e New changeset 25f0756deeae by Senthil Kumaran in

[issue16013] small csv reader bug

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f0465d0e91e by Senthil Kumaran in branch '2.7': 2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/5f0465d0e91e --

[issue16036] simplify int() signature docs

2012-09-25 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to simplify the documentation of the built-in function int()'s signature: int([number | string[, base]]) and to make any needed changes to the text of the docs as a consequence. Discussion around this issue began in the comments to issue

[issue14783] Make int() and str() docstrings correct

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: To make it easier to make progress on this docstring issue, I created issue 16036 to focus on int()'s reST documentation. (I have a comment on that aspect.) This will allow the current issue to focus on the docstring aspect. -- nosy: +chris.jerdonek

[issue16037] httplib: header parsing is not delimited

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: The httplib module / package can read arbitrary amounts of data from its socket when it's parsing the HTTP header. This may lead to issues when a user connects to a broken HTTP server or something that isn't a HTTP at all. The issue can be broken up into

[issue16038] ftplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037. The ftplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious FTP server can trick the ftplib module to consume large amounts of memory. Suggestion: The ftplib module should be

[issue16039] imaplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The imaplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious IMAP server can trick the imaplib module to consume large amounts of memory.

[issue16040] nntplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The nntplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious news server can trick the nntplib module to consume large amounts of memory.

[issue16041] poplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The poplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious POP3 server can trick the poplib module to consume large amounts of memory.

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The smtplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious SMTP server can trick the smtplib module to consume large amounts of memory.

[issue16043] xmlrpc: gzip_decode has unlimited read()

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: The xmlrpc client library is the only stdlib module that has a gzip decompression handler for compressed HTTP streams. The gzip_decode() function decompresses HTTP bodies that are compressed and sent with Accept-Encoding: x-gzip. A malicious server can

[issue16043] xmlrpc: gzip_decode has unlimited read()

2012-09-25 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list

[issue16043] xmlrpc: gzip_decode has unlimited read()

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: Also see #15955 According to Nadeem it's not (easily) possible to detect how large the output is going to be. -- dependencies: +gzip, bz2, lzma: add method to get decompressed size ___ Python tracker

[issue15955] gzip, bz2, lzma: add method to get decompressed size

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: I've checked the implementation of the gzip command. It uses some tricks to get the result size of a compressed file. The bzip2 command doesn't have the ability. lzmainfo can print the actual size of the file but it says Unknown for my test file. Also see

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Georg Brandl
Georg Brandl added the comment: Can you provide a stacktrace? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___ ___ Python-bugs-list

[issue16037] httplib: header parsing is not delimited

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a22a2804a66 by Christian Heimes in branch '2.7': Issue #16037: Limit httplib's _read_status() function to work around broken http://hg.python.org/cpython/rev/8a22a2804a66 -- nosy: +python-dev ___ Python

[issue16037] httplib: header parsing is not delimited

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: The readline() limitation in _read_status() was added at some point in the 3.2 line. Python 3.1 has an unlimited readline(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037

[issue16015] Incorrect startup header in tutorial

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d2df5bc89fc9 by Chris Jerdonek in branch '3.2': Issue #16015: Make welcome message more realistic in tutorial example. http://hg.python.org/cpython/rev/d2df5bc89fc9 New changeset fcb5bc824e3e by Chris Jerdonek in branch 'default': Issue #16015:

[issue16015] Incorrect startup header in tutorial

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Fixed, and thanks for the report! (Ezio, I didn't add code-block:: sh because it resulted in some undesired highlighting in the interpreter portion when I tried it.) -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't build apsw here: gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/home/antoine/opt/include/python3.3m -c src/apsw.c -o

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread kirpit
New submission from kirpit: xml.etree.ElementTree.Element's append method doesn't support iterator/sequence parameters as it's supposed to, for the version 1.3.0. Python 2.7.3 (default, Sep 14 2012, 09:52:31) [GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin Type

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: (unassigning as this is not a mac-specific issue) BTW. Is this really a bug, the documentation says that append appends a single element http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.append: quote append(subelement)

[issue15955] gzip, bz2, lzma: add option to limit output size

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: You don't need to know the final size. You just need to be able to pass an output size limit. This would be an easy feature to add to functions like zlib.decompress(), since they already handle sizing of the output buffer. -- nosy: +pitrou title:

[issue16037] httplib: header parsing is not delimited

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: 100 headers sounds more than enough for everybody. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue16036] simplify int() signature docs

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: [Continuing the issue 14783 discussion] That said, I don't have a strong opinion about this, so if people think that x should be used, it's fine with me. I also feel that *x* should be used, since that is what the code enforces. I'm attaching a revised

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread kirpit
kirpit added the comment: well, i've just followed the source code regardless to documentation so you may be right about appending a single element. (kind of newbie around here.) but then, append method is misbehaving about asserting the parameter, isn't it? --

[issue10980] http.server Header Unicode Bug

2012-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10980

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Use the extend method to add multiple elements. Both the source and documentation indicate that 'append' is used for appending a single item and 'extend' for appending multiple items (just like with list). IMHO this is not a bug. As an aside: when you

[issue2126] BaseHTTPServer.py fails long POST from IE

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reading the original issue: it appears that IE is sending 2 extra bytes ('\r\n') after the request data. and if you don't read those two extra bytes off, the window's socket handling gets messed up. the result is that a partial response is returned and the

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The example URL doesn't seem to work anymore. Do you have another example to test with? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14044

[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length

2012-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +flox, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14414 ___ ___ Python-bugs-list

[issue13403] Option for XMLPRC Server to support HTTPS

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note there's already a couple of HTTPS servers in Lib/test/ssl_servers.py. I'm not sure there's anything special to do for XMLRPC except to take the core instantiation code and put it in xmlrpclib. -- nosy: +flox, loewis, pitrou stage: - needs patch

[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)

2012-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: Patch with tests. -- components: +Interpreter Core -Library (Lib) stage: needs patch - commit review Added file: http://bugs.python.org/file27295/xrange_reduce_repr_2.patch ___ Python tracker rep...@bugs.python.org

[issue16030] xrange repr broken for large arguments

2012-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: The patch for issue #16029 fixes this issue, too. -- components: +Interpreter Core -Library (Lib) dependencies: +pickle.dumps(xrange(sys.maxsize)) produces xrange(0) ___ Python tracker rep...@bugs.python.org

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: - :meth:`close`\ d without adding any files to the archive, the appropriate + :meth:`close close`\ d without adding any files to the archive, the appropriate This formatting looks odd to me when rendered (both cases). I would perhaps suggest something

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: We had support for chunked transfer encoding for POST method recently, which is exposed via urllib2 wrapper function. I couldn't find what you're talking about. If I look at AbstractHTTPHandler.do_request_, it actually mandates a Content-Length header for

[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)

2012-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; there's no need to iterate over pickle protocols in test_repr. New patch. -- Added file: http://bugs.python.org/file27296/xrange_reduce_repr_3.patch ___ Python tracker rep...@bugs.python.org

[issue16045] create some unit tests for built-in int()

2012-09-25 Thread Chris Jerdonek
New submission from Chris Jerdonek: The built-in function int() does not seem to have any basic unit tests (e.g. in test_builtin). It would be good to add some. Some cases (including edge cases) for possible inclusion: int() int(base='foo') # no exception; returns 0 int(x=5) int(x=5,

[issue2600] BindingHTTPConnectionWithTimeout and BindingHTTPHandlerWithTimeout

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: HTTPConnection now supports timeout and source_address parameters, so this is really out of date. Thanks for reporting, though! (see http://docs.python.org/dev/library/http.client.html#http.client.HTTPConnection) -- nosy: +pitrou resolution: - out

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___

[issue16045] create some unit tests for built-in int()

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, have you looked at test_int? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045 ___ ___

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing

[issue16045] create some unit tests for built-in int()

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the pointer. That should do it. :) Searching for test_int( completely missed test_int.py. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue16045] add more unit tests for built-in int()

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: [Reopening] Actually, there may still be value in this. Not all of the edge cases I mentioned are covered (e.g. calling using keyword arguments). -- resolution: invalid - stage: committed/rejected - test needed status: closed - open title: create

[issue16045] add more unit tests for built-in int()

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: We should also add a code-comment pointer in test_builtin to test_int (where test_int() would be located). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16045

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Marco Buttu
New submission from Marco Buttu: $ echo print(__file__) foo.py $ python3.3 -O -m foo /home/marco/temp/foo.py $ ls foo.py __pycache__ $ rm foo.py $ mv __pycache__/foo.cpython-33.pyo foo.pyo $ rm __pycache__ -r $ ls foo.pyo # The following works in Python3.2, but not in Python 3.3.0rc3 $

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Marco Buttu
Changes by Marco Buttu marco.bu...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's the fix we're applying in pyrun to make -m imports work at least for top-level modules: --- /home/lemburg/orig/Python-2.7.3/Lib/pkgutil.py 2012-04-10 01:07:30.0 +0200 +++ pkgutil.py 2012-09-24 22:53:30.982526065 +0200 @@ -273,10

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +3.3regression nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Stefan Krah
Stefan Krah added the comment: I don't get a segfault, but a fatal error. Here's the back trace (unfortunately I've no time to debug this further today; sqlite is the latest version compiled from source): #0 0x771e6a75 in *__GI_raise (sig=value optimized out) at

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: :meth:`closed close` works too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: My guess is an extension problem (failing to aqcuire locks?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035 ___

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good to me too! Thanks; I'll apply the patch. -- assignee: docs@python - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Nick Coghlan
Nick Coghlan added the comment: Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't used by runpy any more - with the migration to importlib, the interface that runpy invokes fails outright if no loader is found rather than falling back to the emulation (we only

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The cause for Stefan's traceback looks quite clear: Connection_createaggregatefunction() release the GIL (through the PYSQLITE_CON_CALL macro) before calling into sqlite3_create_function_v2, which itself calls the destructor for the old aggregate function,

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b624059a8dac by Barry Warsaw in branch '2.7': - Issue #15935: Clarification of argparse docs, re: add_argument() type and http://hg.python.org/cpython/rev/b624059a8dac New changeset b738e42e664a by Barry Warsaw in branch '3.2': - Issue #15935:

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread R. David Murray
R. David Murray added the comment: FTR, the 3.3 commit is cce2bfe03dc5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15935 ___ ___

[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Georg Brandl
Georg Brandl added the comment: Not a blocker then. -- priority: release blocker - normal resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Georg, do you want to take this for 3.3, final? -- assignee: - georg.brandl nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Georg Brandl
Georg Brandl added the comment: Looks serious enough, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___ ___ Python-bugs-list mailing

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4de5e4ec3cff by Benjamin Peterson in branch 'default': don't depend on __debug__ because it's baked in at freeze time (issue #16046) http://hg.python.org/cpython/rev/4de5e4ec3cff -- nosy: +python-dev ___

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: This tested in the sense if you run test_import with -O, it fails. We ought to have a buildbot running with -O. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue16046] python -O does not find *.pyo files

2012-09-25 Thread Georg Brandl
Georg Brandl added the comment: Transplanted to ff50579241cd. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16046 ___

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Nick Coghlan wrote: Nick Coghlan added the comment: Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't used by runpy any more - with the migration to importlib, the interface that runpy invokes fails outright if no loader

[issue16045] add more unit tests for built-in int()

2012-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: Before adding tests (and possibly documentation) for edge cases like int(base='foo') # no exception; returns 0 I'd take a look at what other implementations do. If they do something different we might still decide to keep the tests and mark them as

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: RFC 821 [1] specifies rather short line lengths between 512 and 1001 chars including the trailing CRLF. A line limit of a couple of kilobyte should definitely work with all standard conform SMTP clients and servers. [1]

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +barry, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___ ___

[issue16047] Tools/freeze no longer works in Python 3

2012-09-25 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: The freeze tool used for compiling Python binaries with frozen modules no longer works with Python 3.x. It looks like it was never updated to the various path and symbols changes introduced with PEP 3149 (ABI tags) in Python 3.2. Even with lots of

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: First patch I haven't written tests yet nor implemented the size limit on the mock_socket class. -- keywords: +patch Added file: http://bugs.python.org/file27297/smtp_readline.patch ___ Python tracker

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread R. David Murray
R. David Murray added the comment: I've only taken a quick glance at this so far. Why size=-1 instead of size=None? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
Christian Heimes added the comment: size=-1 mimics the code of the io module. The C implementation of readline() maps all negative values to unlimited and values = 0 as limit. sys.stdin.readline(None) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'NoneType'

[issue16045] add more unit tests for built-in int()

2012-09-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Good thought. Here is one data point: $ pypy Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:11) [PyPy 1.9.0] on darwin Type help, copyright, credits or license for more information. int() 0 int(x='10', base=8) 8 int(x=5, base=10)

[issue16047] Tools/freeze no longer works in Python 3

2012-09-25 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16047 ___ ___

[issue16002] AIX buildbot compile errors

2012-09-25 Thread Trent Nelson
Trent Nelson added the comment: Hi Stefan, quick question: how did you invoke ./configure on the AIX box? The reason for asking is that a7/arsenic is a little quirky, you need to run a zsh subroutine via `_xlc 12` to set up the right CC env (see ~/buildslave/start.zsh). Once you've done

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both io.IOBase.readline() and io.TextIOBase.readline() have parameter named limit. I doubt that such a change can be done in 2.7 and 3.2. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-09-25 Thread Erik Johansson
Erik Johansson added the comment: The issue14201-v2.patch patch looks good to me at least. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14201 ___

[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please submit patches in standard Mercurial format to them understood Rietveld. I wanted to make a code review, but I don't see the definition of readline() method in the file Lib/smtplib.py. -- ___ Python

[issue15955] gzip, bz2, lzma: add option to limit output size

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Antoine. This would be a desirable feature. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27277/doc_zipfile-3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: :meth:`closed close` works too. Patches updated. -- Added file: http://bugs.python.org/file27298/doc_zipfile-3.3.patch Added file: http://bugs.python.org/file27299/doc_zipfile-3.2.patch Added file:

[issue2771] Test issue

2012-09-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file27301/entities.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

  1   2   >