[issue15805] Add stdout redirection tool to contextlib

2012-09-25 Thread Nick Coghlan

Nick Coghlan added the comment:

I'd actually be inclined to make it the full trio: redirect_stdin, 
redirect_stdout, redirect_stderr.

Mostly because I don't see an especially compelling reason to privilege 
redirecting stdout over the other two standard streams, and the "pass in the 
stream name" approach is just ugly (e.g. we don't have 
"sys.stdstream['stdin']", we have sys.stdin).

There are plenty of command line apps that have both -i and -o options (to 
select input and output files), and "2>1" is a pretty common shell redirection.

Agreed that the general purpose nature of standard stream redirection makes it 
a good fit for contextlib, though.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15222] mailbox.mbox writes without empty line after each message

2012-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a87ab9b0c9e5 by Petri Lehtinen in branch '2.7':
#15222: Fix a test failure on Windows
http://hg.python.org/cpython/rev/a87ab9b0c9e5

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16040] nntplib: unlimited readline() from connection

2012-09-25 Thread Hynek Schlawack

Changes by Hynek Schlawack :


--
nosy: +hynek

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15805] Add stdout redirection tool to contextlib

2012-09-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I like Nick's proposed variant and think it should go in contextlib, not the 
mocking library.  Redirection has a lot of use cases that has nothing to do 
with mocking-up test suites.  Contextlib is about general purpose 
context-managers that apply in many situations (the closing() context manager 
is a good example).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-25 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
keywords: +easy
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16051] Documentation missing pipes.quote()

2012-09-25 Thread Barry Morrison

New submission from Barry Morrison:

Documentation here: http://docs.python.org/library/pipes.html makes no mention 
of quote()

But the link to Source code: Lib/pipes.py 
http://hg.python.org/cpython/file/2.7/Lib/pipes.py has:


267 def quote(file):
268 """Return a shell-escaped version of the file string."""
269 for c in file:
270 if c not in _safechars:
271 break
272 else:
273 if not file:
274 return "''"
275 return file
276 # use single quotes, and put single quotes into double quotes
277 # the string $'b is then quoted as '$'"'"'b'
278 return "'" + file.replace("'", "'\"'\"'") + "'"

First _ever_ bug report, apologies if this is incorrect.

--
assignee: docs@python
components: Documentation
messages: 171326
nosy: Barry.Morrison, docs@python
priority: normal
severity: normal
status: open
title: Documentation missing pipes.quote()
type: enhancement
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7897] Support parametrized tests in unittest

2012-09-25 Thread Santoso Wijaya

Changes by Santoso Wijaya :


--
nosy: +santa4nt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16050] ctypes: callback from C++ to Python fails with Illegal Instruction call

2012-09-25 Thread Pavel Maltsev

New submission from Pavel Maltsev:

ppc_405, Linux 2.4, GCC 3.3.1

Python crashes on attempt to pass python callback function to custom C++ 
library under PowerPC 405. This happens because some versions of GCC (I guess 
below 4.1) doesn't raise __NO_FPRS__ flag if hard-floats is not supported, 
instead they use _SOFT_FLOAT. So we need to change

#ifndef __NO_FPRS__
to
#if (!defined(__NO_FPRS__) && !defined(_SOFT_FLOAT))

--
components: ctypes
files: soft_float.patch
keywords: patch
messages: 171325
nosy: Opilki_Inside
priority: normal
severity: normal
status: open
title: ctypes: callback from C++ to Python fails with Illegal Instruction call
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file27309/soft_float.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-25 Thread Jeremy Kloth

Changes by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7427] BadStatusLine is hell to debug

2012-09-25 Thread Andrew Swan

Andrew Swan added the comment:

I just got tripped up by this change, I wanted to catch the specific case of an 
http server closing a connection and assumed that the following would work:

try:
  resp = conn.getresponse()
except httplib.BadStatusLine, e:
  if len(e.line) == 0:
# server closed...
  else:
raise

That doesn't work since e.line holds the representation of the empty string 
instead of just holding the empty string.  I think the fragment above would be 
a much better way to write this test, the current alterntative of:
  if e.line == "''":
is hopelessly obscure.

Seems like the original fix should have been to add __repr__ to BadStatusLine 
rather than changing its contents.  Can this be revisited?

--
nosy: +aswan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-09-25 Thread Raymond Hettinger

New submission from Raymond Hettinger:

Since inheritance is more commonplace and more easily understood than 
__metaclass__, the abc module would benefit from a simple helper class:

class ABC(metaclass=ABCMeta):
pass

>From a user's point-of-view, writing an abstract base call becomes simpler and 
>clearer:

from abc import ABC, abstractmethod

class Vector(ABC):

@abstractmethod
def __iter__(self):
pass

def dot(self, other):
'Compute a dot product'
return sum(map(operator.mul, self, other))

Notice that this class seems less mysterious because it inherits from ABC 
rather than using __metaclass__=ABCMeta.

Also note, it has become a reasonably common practice for metaclass writers to 
put the __metaclass__ assignment in a class and have it get inherited rather 
than requiring users do the metaclass assignment themselves.

--
components: Library (Lib)
messages: 171323
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Create abstract base classes by inheritance rather than a direct 
invocation of __metaclass__
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Please don't apply this until I've signed-off on it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16001] small ints: cache string representation

2012-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Small int caching saves both time and space. On a nearly fresh IDLE session:
>>> sys.getrefcount(0)
772
>>> sys.getrefcount(1)
854
>>> sum(sys.getrefcount(i) for i in range(-5, 257))
4878

While an interesting idea, I do not see the same gain here, and agree with 
Martin.

Array lookup *is* faster than string conversion:
>>> ti.repeat(setup = "ar = [str(i) for i in range(101)]", stmt = "ar[100]")
[0.058166605132757995, 0.03438449234832762, 0.034402937150259674]
>>> ti.repeat(setup = "S = str", stmt = 'S(100)')
[0.21833603908330446, 0.19469564386039195, 0.1947128590088596]

but
1: converting ints to decimal digits is nearly always done for output,
and conversion is blazingly fast compared to output, so output time will 
dominate.

>>> ti.repeat(setup = "S = str", stmt = 'S(100)', number = 20)
[1.0144641009901534e-05, 8.914987631669646e-06, 8.914987574826228e-06]
>>> ti.repeat(setup = "p = print", stmt = 'p(100)', number = 20)
...
[0.11873041968999587, 0.039060557051357137, 0.03859697769621562]

2. I presume the conversion of 0 - 9 to '0' - '9' within the conversion 
routines is already optimized. I don't see that 10 - 259 should be more common 
that 257 - 999, let alone more common than all higher ints. So the limited 
optimization can have only limited effect.

3. Much production numerical output is float or decimal rather than int. The 
3.3 optimization of ascii-only strings to bytes helped here.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16023] IDLE freezes on ^5 or ^6 (Un-)Tabify Region with OS X Cocoa Tk 8.5

2012-09-25 Thread Ned Deily

Ned Deily added the comment:

Thanks for the additional information!  I can now reproduce a hang using just 
Ctrl-5 on a US keyboard input method.  Ctrl-5 is the default IDLE keyboard 
accelerator for the "Tabify Region" menu item under the "Format" menu cascade 
for an edit window.  With any current Python (2.7.3, 3.2.3, or 3.3.0rc3) linked 
with Cocoa Tk 8.5, using the Ctrl-5 accelerator key causes the hang, requiring 
a force quit.  Selecting the menu item with a mouse causes the "Tab Width" 
window to appear as expected.  Ctrl-5 seems to work properly with Pythons 
linked with either Carbon Tk 8.4 or with X11 8.5.  There is a similar hang 
behavior with Ctrl-6 "Untabify Region" using Cocoa Tk 8.5 as well.  Attached is 
an excerpt from a hang dump when running with a debug framework build of 3.3 
tip.

--
nosy: +ned.deily
title: IDLE froze when typing ctrl-shift-5 -> IDLE freezes on ^5 or ^6 
(Un-)Tabify Region with OS X Cocoa Tk 8.5
versions: +Python 2.7, Python 3.3
Added file: http://bugs.python.org/file27308/3.3.0_tip_10_8_2012-09-25.hang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16036] simplify int() signature docs

2012-09-25 Thread Chris Jerdonek

Chris Jerdonek added the comment:

I'm attaching an updated patch that does not cover certain edge cases that may 
differ for other Python implementations (and in fact does differ for PyPY).

See issue 16045 for more information.

--
Added file: http://bugs.python.org/file27307/issue-16036-2-default.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16010] Some Unicode in identifiers improperly rejected

2012-09-25 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> invalid

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Ian Kelly reminds me that instance.__xxx__ is only skipped by the internal 
machinery and not by direct accesses in user code. In the other hand, docs, 
official or otherwise, are filled with things like 'len(a) calls a.__len__', so 
I think something should be said that giving instances special method 
attributes does not have the effect one might expect.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Peter Otten thought the first clause should instead be ""Data attributes and 
method attributes share the same namespace.", which is also true for a given 
object. This is a different intepretation of what the original author was 
getting at. The convention remark applies both within the class namespace and 
between class and instance namespaces.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy

New submission from Terry J. Reedy:

(from python-list thread "data attributes override method attributes?")

"9.4. Random Remarks

Data attributes override method attributes with the same name; to avoid 
accidental name conflicts, which may cause hard-to-find bugs in large programs, 
it is wise to use some kind of convention that minimizes the chance of 
conflicts. Possible conventions include capitalizing method names, prefixing 
data attribute names with a small unique string (perhaps just an underscore), 
or using verbs for methods and nouns for data attributes."

The first semi-sentence is wrong. Within a class or instance attribute space, 
later assignments replace earlier ones. Between them, instance attributes 
(usually) override class attributes. The exceptions are (some? all?) special 
methods. One suggestion on the thread is to replace the clause with 'Instance 
attributes override class attributes', as that is the apparent intent, but the 
exception needs to be noted.

The suggested Method and _data conventions are wrong in that they contradict 
PEP8 style. Peter Otten suggested that the convention suggestion be shortened 
to "To avoid name conflicts consider using verbs for methods and nouns for data 
attributes".

--
assignee: docs@python
components: Documentation
messages: 171316
nosy: docs@python, terry.reedy
priority: normal
severity: normal
status: open
title: Tutorial-classes-remarks: replace paragragh
versions: Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16035] Segmentation fault in test suite of apsw

2012-09-25 Thread Stefan Krah

Stefan Krah added the comment:

[Adding the apsw author to the cc.]


Antoine is right, no Python bug here. I think we can close this.

--
nosy: +rogerbinns
stage:  -> committed/rejected
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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ù :


Added file: http://bugs.python.org/file27306/bench.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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ù :


Removed file: http://bugs.python.org/file27293/bench.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

> I'm not sure of the usefulness of this comment.
removing, then.

> "else" redundant here.

> Instead of using a local variable "intersected", you can simply add "else
> Py_INCREF(other)" here and then decref "other" unconditionally. It will be
> shorter and perhaps a little clearer, but a bit slower.

I find my first patch more readable and efficient, but if these comments are 
conformant to pep7.. 
Attaching updated patch (issue8425.3.patch)


> Did you run benchmarks in debug mode?
Yes, but bench.py is available, fell free to run it with whatever 
configuration; my example was done with a --with-pydebug and clang compiler. 

> In order for results to be convenient to compare please sort it by name.
Done.

--
Added file: http://bugs.python.org/file27305/issue8425.3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

> I'm not sure of the usefulness of this comment.
removing, then.

> "else" redundant here.

> Instead of using a local variable "intersected", you can simply add "else
> Py_INCREF(other)" here and then decref "other" unconditionally. It will be
> shorter and perhaps a little clearer, but a bit slower.

I find my first patch more readable and efficient, but if these comments are 
conformant to pep7.. 
Attaching updated patch (issue8425.3.patch)


> Did you run benchmarks in debug mode?
Yes, but bench.py is available, fell free to run it with whatever 
configuration; my example was done with a --with-pydebug and clang compiler. 

> In order for results to be convenient to compare please sort it by name.
Done.

--
Added file: http://bugs.python.org/file27303/issue8425.3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16002] AIX buildbot compile errors

2012-09-25 Thread Stefan Krah

Stefan Krah added the comment:

Hi Trent, nice setup BTW!

Trent Nelson  wrote:
> 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).

That's good to know. I did the whole thing manually and pasted the ./configure
environment from

   
http://buildbot.python.org/all/builders/RS6000%20AIX%207.1%20%5BSB%5D%203.x/builds/85/steps/configure/logs/stdio

to a file "build_env" in the home directory. Perhaps we can put that subroutine
in the file instead.

> (I haven't set up a buildslave for gcc on that box.)

I think that's not so important right now. It's good to have more diversity
w.r.t compilers.

For the commercial compilers it might be good to switch to optimized builds
in order to see if there are either optimizer bugs or Python bugs that don't
show up with gcc.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Updated patch:  rename range_stop, as suggested in Rietveld review.

--
Added file: http://bugs.python.org/file27302/xrange_reduce_repr_4.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15222] mailbox.mbox writes without empty line after each message

2012-09-25 Thread Petri Lehtinen

Petri Lehtinen added the comment:

Fixed, thanks!

--
keywords:  -needs review
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15222] mailbox.mbox writes without empty line after each message

2012-09-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6451be0e374a by Petri Lehtinen in branch '2.7':
#15222: test_mailbox: End message template in a newline
http://hg.python.org/cpython/rev/6451be0e374a

New changeset d903d4981e33 by Petri Lehtinen in branch '2.7':
#15222: Insert blank line after each message in mbox mailboxes
http://hg.python.org/cpython/rev/d903d4981e33

New changeset 8adac3f03372 by Petri Lehtinen in branch '3.2':
#15222: test_mailbox: End message template in a newline
http://hg.python.org/cpython/rev/8adac3f03372

New changeset f7615ee43318 by Petri Lehtinen in branch '3.2':
#15222: Insert blank line after each message in mbox mailboxes
http://hg.python.org/cpython/rev/f7615ee43318

New changeset 4b626ccace1a by Petri Lehtinen in branch 'default':
#15222: Merge 3.2
http://hg.python.org/cpython/rev/4b626ccace1a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

s/it/them/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I added a few comments in Rietveld.

Did you run benchmarks in debug mode?

In order for results to be convenient to compare please sort it by name.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2771] Test issue

2012-09-25 Thread Ezio Melotti

Changes by Ezio Melotti :


Added file: http://bugs.python.org/file27301/entities.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> :meth:`closed ` 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: http://bugs.python.org/file27300/doc_zipfile-2.7.patch

___
Python tracker 

___diff -r 3d9c323711d0 Doc/library/zipfile.rst
--- a/Doc/library/zipfile.rst   Mon Sep 24 07:46:35 2012 +0200
+++ b/Doc/library/zipfile.rst   Mon Sep 24 18:56:25 2012 +0300
@@ -61,7 +61,7 @@
 .. class:: ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0))
 
Class used to represent information about a member of an archive. Instances
-   of this class are returned by the :meth:`getinfo` and :meth:`infolist`
+   of this class are returned by the :meth:`.getinfo` and :meth:`.infolist`
methods of :class:`ZipFile` objects.  Most users of the :mod:`zipfile` 
module
will not need to create these, but only use those created by this
module. *filename* should be the full name of the archive member, and
@@ -87,20 +87,20 @@
 .. data:: ZIP_DEFLATED
 
The numeric constant for the usual ZIP compression method.  This requires 
the
-   zlib module.
+   :mod:`zlib` module.
 
 
 .. data:: ZIP_BZIP2
 
The numeric constant for the BZIP2 compression method.  This requires the
-   bz2 module.
+   :mod:`bz2` module.
 
.. versionadded:: 3.3
 
 .. data:: ZIP_LZMA
 
The numeric constant for the LZMA compression method.  This requires the
-   lzma module.
+   :mod:`lzma` module.
 
.. versionadded:: 3.3
 
@@ -155,7 +155,7 @@
these extensions.
 
If the file is created with mode ``'a'`` or ``'w'`` and then
-   :meth:`close`\ d without adding any files to the archive, the appropriate
+   :meth:`closed ` without adding any files to the archive, the 
appropriate
ZIP structures for an empty archive will be written to the file.
 
ZipFile is also a context manager and therefore supports the
@@ -169,7 +169,7 @@
   Added the ability to use :class:`ZipFile` as a context manager.
 
.. versionchanged:: 3.3
-  Added support for :mod:`bzip2` and :mod:`lzma` compression.
+  Added support for :mod:`bzip2 ` and :mod:`lzma` compression.
 
 
 .. method:: ZipFile.close()
@@ -207,7 +207,7 @@
*mode* parameter, if included, must be one of the following: ``'r'`` (the
default), ``'U'``, or ``'rU'``. Choosing ``'U'`` or  ``'rU'`` will enable
:term:`universal newlines` support in the read-only object.  *pwd* is the
-   password used for encrypted files.  Calling  :meth:`open` on a closed
+   password used for encrypted files.  Calling  :meth:`.open` on a closed
ZipFile will raise a  :exc:`RuntimeError`.
 
.. note::
@@ -229,7 +229,7 @@
 
.. note::
 
-  The :meth:`open`, :meth:`read` and :meth:`extract` methods can take a 
filename
+  The :meth:`.open`, :meth:`read` and :meth:`extract` methods can take a 
filename
   or a :class:`ZipInfo` object.  You will appreciate this when trying to 
read a
   ZIP file that contains members with duplicate names.
 
@@ -335,7 +335,7 @@
   :class:`ZipInfo` constructor sets this member to :const:`ZIP_STORED`.
 
.. versionchanged:: 3.2
-  The *compression_type* argument.
+  The *compress_type* argument.
 
 The following data attributes are also available:
 
@@ -351,7 +351,7 @@
The comment text associated with the ZIP file.  If assigning a comment to a
:class:`ZipFile` instance created with mode 'a' or 'w', this should be a
string no longer than 65535 bytes.  Comments longer than this will be
-   truncated in the written archive when :meth:`ZipFile.close` is called.
+   truncated in the written archive when :meth:`close` is called.
 
 
 .. _pyzipfile-objects:
@@ -407,8 +407,8 @@
 ZipInfo Objects
 ---
 
-Instances of the :class:`ZipInfo` class are returned by the :meth:`getinfo` and
-:meth:`infolist` methods of :class:`ZipFile` objects.  Each object stores
+Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` 
and
+:meth:`.infolist` methods of :class:`ZipFile` objects.  Each object stores
 information about a single member of the ZIP archive.
 
 Instances have the following attributes:
diff -r aa73e60f65e9 Doc/library/zipfile.rst
--- a/Doc/library/zipfile.rst   Fri Sep 21 17:26:35 2012 +0300
+++ b/Doc/library/zipfile.rst   Mon Sep 24 19:01:40 2012 +0300
@@ -61,7 +61,7 @@
 .. class:: ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0))
 
Class used to represent information about a member of an archive. Instances
-   of this class are returned by the :meth:`getinfo` and :meth:`infolist`
+   of this class are returned by the :meth:`.getinfo` and :meth:`.infolist`
methods of :class:`ZipFile` objects.  Most users of the :mod:`zipfile` 
module
will not need to create these, but only use those created by this
module. *filename* shoul

[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file27277/doc_zipfile-3.3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that, you need ./configure --without-gcc --with-pydebug to get 
the same environment as the build slave.

(I haven't set up a buildslave for gcc on that box.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Jeremy Kloth

Changes by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) 
Traceback (most recent call last):
  File "", line 1, in 
TypeError: int() can't convert non-string with explicit base
 int(base=6)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: int() can't convert non-string with explicit base
 int(base='foo')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: expected integer, got str object

So it looks like "no x with given base" is where behavior differs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "", line 1, in 
TypeError: 'NoneType' object cannot be interpreted as an integer

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 symlinks to restore the non-ABI flagged names, freezing fails 
with a linker error in Python 3.3:

Tools/freeze> python3 freeze.py hello.py
Tools/freeze> make
config.o:(.data+0x38): undefined reference to `PyInit__imp'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

--
components: Demos and Tools
messages: 171295
nosy: lemburg
priority: normal
severity: normal
status: open
title: Tools/freeze no longer works in Python 3
versions: Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16042] smtplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +barry, r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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] http://www.freesoft.org/CIE/RFC/821/24.htm

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
cpython-specific, but I would refrain to document them.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is found rather than falling back 
> to the emulation (we only retained the emulation for backwards compatibility 
> - it's a public API, so others may be using it directly).

That's difficult to test, since the Tools/freeze/ tool no longer works
in Python 3.3. I'll open a separate issue for that.

> I have a feeling that there may still be a couple of checks which are 
> restricted to PY_SOURCE and PY_COMPILED that really should be allowing 
> PY_FROZEN as well.

Same here.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 25 2012)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2012-10-29: PyCon DE 2012, Leipzig, Germany ...34 days to go
2012-10-23: Python Meeting Duesseldorf ... 28 days to go
2012-09-25: Released mxODBC 3.2.1 ... http://egenix.com/go31
2012-09-18: Released mxODBC Zope DA 2.1.0 ... http://egenix.com/go32

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Clarification of argparse docs, re: add_argument() type and
http://hg.python.org/cpython/rev/b738e42e664a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, aka. 
apsw_free_func(), which calls Py_DECREF without re-acquiring the GIL.

So apsw needs to sanitize its callbacks implementation here.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 retained the emulation for backwards compatibility - 
it's a public API, so others may be using it directly).

I have a feeling that there may still be a couple of checks which are 
restricted to PY_SOURCE and PY_COMPILED that really should be allowing 
PY_FROZEN as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16025] Minor corrections to the zipfile documentation

2012-09-25 Thread Ezio Melotti

Ezio Melotti added the comment:

:meth:`closed ` works too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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=) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x771ea5c0 in *__GI_abort () at abort.c:92
#2  0x005076a0 in Py_FatalError (msg=0x652a88 "PyThreadState_Get: no 
current thread")
at Python/pythonrun.c:2360
#3  0x00500a67 in PyThreadState_Get () at Python/pystate.c:423
#4  0x0043211f in tupledealloc (op=0x762ce4c0) at 
Objects/tupleobject.c:236
#5  0x0041fb5a in _Py_Dealloc (op=0x762ce4c0) at 
Objects/object.c:1764
#6  0x005d6867 in func_dealloc (op=0x76b8eea0) at 
Objects/funcobject.c:564
#7  0x0041fb5a in _Py_Dealloc (op=0x76b8eea0) at 
Objects/object.c:1764
#8  0x768754e2 in FunctionCBInfo_dealloc (self=0x76317bf0) at 
src/connection.c:119
#9  0x0041fb5a in _Py_Dealloc (op=0x76317bf0) at 
Objects/object.c:1764
#10 0x7687b4f4 in apsw_free_func (funcinfo=0x76317bf0) at 
src/connection.c:2221
#11 0x765d03f7 in functionDestroy (db=0xd0cb08, p=0x26f4) at 
sqlite3.c:112342
#12 0x765eb7e0 in sqlite3CreateFunc (db=0x8, zFunctionName=, nArg=-1, enc=1, 
pUserData=, xFunc=0, xStep=0x7687ae90 
, 
xFinal=0x7687b0a4 , pDestructor=0xd05448) at 
sqlite3.c:112858
#13 0x765ebb9c in sqlite3_create_function_v2 (db=0xd0cb08, zFunc=, nArg=-1, enc=1, 
p=0x76ba3988, xFunc=, xStep=0x7687ae90 
, 
xFinal=0x7687b0a4 , xDestroy=0x7687b47d 
) at sqlite3.c:112913
#14 0x7687ba30 in Connection_createaggregatefunction 
(self=0x76b2cdd8, args=0x762f29c0)
at src/connection.c:2395
#15 0x005ffee7 in PyCFunction_Call (func=0x76bab768, 
arg=0x762f29c0, kw=0x0)
at Objects/methodobject.c:81
#16 0x004d0ea1 in call_function (pp_stack=0x7fff3b78, oparg=2) at 
Python/ceval.c:4062
#17 0x004cab06 in PyEval_EvalFrameEx (f=0xd0d720, throwflag=0) at 
Python/ceval.c:2679
#18 0x004cea43 in PyEval_EvalCodeEx (_co=0x76078940, 
globals=0x77eae330, locals=0x0, args=0xd0c598, 
argcount=1, kws=0xd0c5a0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, 
closure=0x0) at Python/ceval.c:3433
#19 0x004d14cb in fast_function (func=0x763597e0, 
pp_stack=0x7fff47e8, n=1, na=1, nk=0)
at Python/ceval.c:4160
#20 0x004d1074 in call_function (pp_stack=0x7fff47e8, oparg=0) at 
Python/ceval.c:4083
#21 0x004cab06 in PyEval_EvalFrameEx (f=0xd0c3e0, throwflag=0) at 
Python/ceval.c:2679
#22 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3580, 
globals=0x76bf1ba0, locals=0x0, args=0xd0c2e0, 
argcount=3, kws=0xd0c2f8, kwcount=1, defs=0x76ad6168, defcount=1, 
kwdefs=0x0, closure=0x0)
at Python/ceval.c:3433
#23 0x004d14cb in fast_function (func=0x76c0d420, 
pp_stack=0x7fff5458, n=5, na=3, nk=1)
at Python/ceval.c:4160
#24 0x004d1074 in call_function (pp_stack=0x7fff5458, oparg=258) at 
Python/ceval.c:4083
#25 0x004cab06 in PyEval_EvalFrameEx (f=0xd0c100, throwflag=0) at 
Python/ceval.c:2679
#26 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3700, 
globals=0x76bf1ba0, locals=0x0, 
---Type  to continue, or q  to quit---
args=0x76368628, argcount=2, kws=0x77fa9088, kwcount=0, 
defs=0x76c14da8, defcount=1, kwdefs=0x0, 
closure=0x0) at Python/ceval.c:3433
#27 0x005d6e1f in function_call (func=0x76c0d4e0, 
arg=0x76368600, kw=0x762b8c18)
at Objects/funcobject.c:633
#28 0x0059969b in PyObject_Call (func=0x76c0d4e0, 
arg=0x76368600, kw=0x762b8c18)
at Objects/abstract.c:2083
#29 0x004d239b in ext_do_call (func=0x76c0d4e0, 
pp_stack=0x7fff60f8, flags=3, na=1, nk=0)
at Python/ceval.c:4377
#30 0x004caf3c in PyEval_EvalFrameEx (f=0x762ef460, throwflag=0) at 
Python/ceval.c:2720
#31 0x004cea43 in PyEval_EvalCodeEx (_co=0x76ae3a00, 
globals=0x76bf1ba0, locals=0x0, 
args=0x75acb1f0, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
kwdefs=0x0, closure=0x0)
at Python/ceval.c:3433
#32 0x005d6e1f in function_call (func=0x76c0d660, 
arg=0x75acb1c8, kw=0x0) at Objects/funcobject.c:633
#33 0x0059969b in PyObject_Call (func=0x76c0d660, 
arg=0x75acb1c8, kw=0x0) at Objects/abstract.c:2083
#34 0x005b7cc4 in method_call (func=0x76c0d660, arg=0x75acb1c8, 
kw=0x0) at Objects/classobject.c:323
#35 0x0059969b in PyObject_Call (func=0x7635c7e0, 
arg=0x763257d0, kw=0x0) at Objects/abstract.c:2083
#36 0x004462c2 in slot_tp_call (self=0x762ce840, 
args=0x763257d0, kwds=0x0)
at Objects/typeobject.c:5349
#37 0x0059969b in PyObject_Call (func=0x762ce840, 
arg=0x763257d0, kw=0x0) at 

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

2012-09-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
keywords: +3.3regression
nosy: +brett.cannon, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 +273,21 @@ class ImpLoader:
 def is_package(self, fullname):
 fullname = self._fix_name(fullname)
 return self.etc[2]==imp.PKG_DIRECTORY

 def get_code(self, fullname=None):
+if self.code is not None:
+return self.code
+fullname = self._fix_name(fullname)
+mod_type = self.etc[2]
+if mod_type == imp.PY_FROZEN:
+self.code = imp.get_frozen_object(fullname)
+return self.code
+else:
+return self._get_code(fullname)
+
+def _get_code(self, fullname=None):
 fullname = self._fix_name(fullname)
 if self.code is None:
 mod_type = self.etc[2]
 if mod_type==imp.PY_SOURCE:
 source = self.get_source(fullname)

This makes runpy work for top-level frozen modules, but it's really only 
partial solution, since pkgutil would need to get such support in more places.

We also found that for some reason, runpy/pkgutil does not work for frozen 
package imports, e.g. wsgiref.util. The reasons for this appear to be deeper 
than just in the pkgutil module. We don't have a solution for this yet. It is 
also not clear whether the problem still exists in Python 3.x. The __path__ 
attribute of frozen modules was changed in 3.0 to be a list like for all other 
modules, however, applying that change to 2.x lets runpy/pkgutil fail 
altogether (not even the above fix works anymore).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Marco Buttu

Changes by Marco Buttu :


--
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
$ python3.3 -O -m foo
/usr/local/bin/python3.3: No module named foo

--
components: Interpreter Core
messages: 171276
nosy: mbuttu
priority: normal
severity: normal
status: open
title: python -O does not find *.pyo files
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 some unit tests for built-in int() -> add more unit tests for 
built-in int()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Brett Cannon

Changes by Brett Cannon :


--
versions: +Python 3.4 -Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 of date
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, base=10)  # raises TypeError
int(5.8)  # test truncation towards zero
int(-5.8)  # ditto
int('5.8')  # raises ValueError

Both positional and keyword argument combinations should be tested.

--
components: Library (Lib)
keywords: easy
messages: 171270
nosy: chris.jerdonek, ezio.melotti
priority: normal
severity: normal
status: open
title: create some unit tests for built-in int()
type: enhancement
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 POST data (hence no chunked encoding).

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 `\ 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 like, "... and then close() is called without "

--
nosy: +chris.jerdonek

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: +Python 3.4 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +flox, loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
socket closed.  IE tries to recover by re-POST'ing (which 
is behavior specified in the HTTP/1.1 RFC)... only they 
seem to add an embedded NULL the second time through, and 
the original socket problem happens again anyway."


... I have a hard time believing IE is still broken today. I'd rather close 
this issue, please re-open if you can reproduce with a recent IE.

--
nosy: +pitrou
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 import xml.etree.cElementTree you get a faster 
implementation of the same interface, and this (C-based) implementation does 
validate arguments.

--
resolution:  -> invalid

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10980] http.server Header Unicode Bug

2012-09-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution: accepted -> fixed
stage: commit review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 patch.  This patch also makes related adjustments to 
the corresponding text.

--
keywords: +needs review, patch
stage:  -> patch review
Added file: http://bugs.python.org/file27294/issue-16036-1-default.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: gzip, bz2, lzma: add method to get decompressed size -> gzip, bz2, lzma: 
add option to limit output size

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


append(subelement)
Adds the element subelement to the end of this elements internal list of 
subelements.


--
assignee: ronaldoussoren -> nobody
nosy: +nobody

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "help", "copyright", "credits" or "license" for more information.
>>> import xml.etree.ElementTree as et
>>> et.VERSION
'1.3.0'
>>> root = et.Element('root')
>>> sublist = [et.Element('sub'), et.Element('sub')]
>>> root.append(sublist)
>>> et.tostring(root)
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 1127, in tostring
ElementTree(element).write(file, encoding, method=method)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 818, in write
self._root, encoding, default_namespace
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 878, in _namespaces
for elem in iterate():
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 477, in iter
for e in e.iter(tag):
AttributeError: 'list' object has no attribute 'iter'

>>> root = et.Element('root')
>>> root.append(iter(sublist))
>>> et.tostring(root)
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 1127, in tostring
ElementTree(element).write(file, encoding, method=method)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 818, in write
self._root, encoding, default_namespace
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 878, in _namespaces
for elem in iterate():
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 477, in iter
for e in e.iter(tag):
AttributeError: 'listiterator' object has no attribute 'iter'

--
assignee: ronaldoussoren
components: Macintosh, XML
messages: 171255
nosy: kirpit, ronaldoussoren
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree.Element: append method iterator param is broken
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 build/temp.linux-x86_64-3.3/src/apsw.o
src/apsw.c:62:2: erreur: #error Your SQLite version is too old. It must be at 
least 3.7.13

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Merge and update from 3.2.
http://hg.python.org/cpython/rev/fcb5bc824e3e

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >