[issue5364] documentation in epub format

2011-12-05 Thread James Polley
James Polley added the comment: It looks like the first release that had epub support was 1.0; docs.python.org is still using 0.6.7, according to the footer on the bottom of the page. I suspect that this is (A) pending the upgrade to 1.0.0, which is (B) more difficult than it sounds like, or

[issue5364] documentation in epub format

2011-12-05 Thread Sandro Tosi
Sandro Tosi added the comment: Hello James, please note that EPUB is already available for Python 3 documentation: http://docs.python.org/py3k/download.html . We will probably make it available also for 2.7 when I'll find the time to work on upgrading sphinx on 2.7 branch. -- nosy: +s

[issue13443] wrong links and examples in the functional HOWTO

2011-12-05 Thread Ezio Melotti
Ezio Melotti added the comment: This section has been removed from the 3.x docs in 3828f81a64e7 and 2aeef275bec8, but it's still there in 2.7. -- nosy: +pitrou ___ Python tracker _

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
New submission from mike c : Could a test be added to ./Lib/test/test_defaultdict.py to test for TypeError being thrown when the the first argument to collections.defaultdict is not callable? pypy does not behave the same way as CPython 2.7.2 as the problem is not covered in the testcases.

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread Ezio Melotti
Ezio Melotti added the comment: Sure, do you want to propose a patch? (You can see the devguide for more information.) -- keywords: +easy nosy: +ezio.melotti stage: -> test needed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Cloning repo. Reading the devguide. Patch forthcoming. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Patch to add a defaultdict test which checks that if the first argument is not callable, then a TypeError is thrown. -- keywords: +patch Added file: http://bugs.python.org/file23855/defaultdict_callable_test.patch ___ Pytho

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: patch v2. Now with assertRaises()! -- Added file: http://bugs.python.org/file23856/defaultdict_callable_test_v2.patch ___ Python tracker ___ __

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-05 Thread maniram maniram
New submission from maniram maniram : In IDLE, sys.stdout.write and sys.stderr can write any pickleable object such as 100 when they should only allow strings. IDLE seems to be pickling the object. >>> import sys >>> sys.stdout.write(100) 100 >>> sys.stdout.write(sys) Traceback (most recent call

[issue12944] Accept arbitrary files for packaging's upload command

2011-12-05 Thread Éric Araujo
Éric Araujo added the comment: Someone from the mentoring project has volunteered to work on a patch. -- ___ Python tracker ___ ___ P

[issue13533] Would like Py_Initialize to play friendly with host app

2011-12-05 Thread dangermouseb
New submission from dangermouseb : I'm building a dll add-in (on Windows) in which I want to use the installed version of Python, not provide my own installation. When py_initialize fails it appears to call exit(). This doesn't seem very friendly behaviour for an embeddable scripting language

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Éric Araujo
Éric Araujo added the comment: The updated patch looks good, I’ll commit it soon. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue13524] critical error with import tempfile

2011-12-05 Thread Tim Golden
Tim Golden added the comment: After a discussion on python-dev: http://mail.python.org/pipermail/python-dev/2011-December/114733.html I propose to close this call tomorrow as wontfix -- ___ Python tracker ___

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Nebelhom
Nebelhom added the comment: Hi, thanks for your help and support, mate. Unfortunately, no word about the createdb.py business (the last bullet point on the list) and whether it should be referred to in the doc. Should we just drop this from the adjustments? Thanks. Johannes P.S. Any suggest

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Éric Araujo
Éric Araujo added the comment: > Unfortunately, no word about the createdb.py business (the last bullet point > on the list) > and whether it should be referred to in the doc. If you make the whitespace more standard, use the tempfile module (to remove the os.remove line) and use with statemen

[issue1685453] email package should work better with unicode

2011-12-05 Thread Sivan Greenberg
Sivan Greenberg added the comment: I am having hard time parsing all the text/html and text/plain parts of a message, concatenating them into a string. I am thinking of writing some custom code to do manual handling of this... If this could be fixed that would be great. The issues are convert

[issue13533] Would like Py_Initialize to play friendly with host app

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: If we add a (yet another) variant of Py_Initialize, I would suggest we make it extensible by passing it a struct of arguments (so that the struct can be augmented without breaking compatibility). -- components: +Interpreter Core -None nosy: +pitrou ve

[issue1685453] email package should work better with unicode

2011-12-05 Thread R. David Murray
R. David Murray added the comment: That particular problem will get fixed in the next version of the email package (hopefully in Python3.3), but that isn't ready yet. -- ___ Python tracker _

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Darren Dale
Darren Dale added the comment: Patch addressing latest comments in review. Notable change: defines _PyObject_IsAbstract in object.c/object.h, rather than repeating the code in multiple files and functions. -- Added file: http://bugs.python.org/file23857/abc_descriptor.patch _

[issue11051] system calls per import

2011-12-05 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a trivial patch reducing the number of calls to open. before: """ $ strace -c -e open ./python -c "" % time seconds usecs/call callserrors syscall -- --- --- - - 100.000.49

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2959a6a1440 by Antoine Pitrou in branch 'default': Issue #13503: Use a more efficient reduction format for bytearrays with http://hg.python.org/cpython/rev/e2959a6a1440 -- nosy: +python-dev ___ Python t

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch wasn't entirely PEP 7-compliant (spaces around operators, space after if), but I've fixed that when committing. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue13533] Would like Py_Initialize to play friendly with host app

2011-12-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11051] system calls per import

2011-12-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Confirmed, and this is really annoying. I'm of the mind to apply your second idea. -- nosy: +barry ___ Python tracker ___ __

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Sorry, I meant your first option. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why do you think this is a bug? Is this behavior causing problems? -- nosy: +loewis ___ Python tracker ___ ___

[issue11051] system calls per import

2011-12-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: > First, I don't understand why we need to check both "foo.so" and > "foomodule.so". Because we always did, i.e. changing it now may break backwards compatibility. Now, as for why we always had *module.so also: it may be that calling an extension module foo.

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4579cd952156 by Barry Warsaw in branch '3.2': - Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix http://hg.python.org/cpython/rev/4579cd952156 New changeset 6b6c79eba944 by Barry Warsaw in branch 'default': - Issue #11147: F

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-12-05 Thread STINNER Victor
STINNER Victor added the comment: Alex ? Florent ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to optimized architecture-specific "hypot"

2011-12-05 Thread Dave Malcolm
New submission from Dave Malcolm : On ppc64, on this box, with glibc-2.14.90-19.ppc64, test_cmath fails with: == FAIL: test_specific_values (test.test_cmath.CMathTests) ---

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to optimized architecture-specific "hypot"

2011-12-05 Thread Dave Malcolm
Dave Malcolm added the comment: Reported in glibc's bug tracker as: http://sourceware.org/bugzilla/show_bug.cgi?id=13472 -- ___ Python tracker ___

[issue11051] system calls per import

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here's a trivial patch reducing the number of calls to open. Looks good to me. -- ___ Python tracker ___ ___

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-05 Thread Nick Coghlan
New submission from Nick Coghlan : This RFE proposes two new methods "to_signed" and "to_unsigned" on 'int' objects and on the numbers.Integral ABC. Semantics (and number.Integral implementation): def to_unsigned(self, bits): "Convert this integer to its unsigned two's complement equivalent

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-05 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Alex Gaynor
New submission from Alex Gaynor : In 2.7 ast.literal_eval blows up with a set for input: >>> import ast >>> ast.literal_eval("{1}") -- messages: 148897 nosy: alex priority: low severity: normal status: open title: ast.literal_eval fails on sets versions: Python 2.7 ___

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Alex Gaynor
Alex Gaynor added the comment: Patch with tests -- keywords: +patch Added file: http://bugs.python.org/file23859/x.diff ___ Python tracker ___ __

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-l

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Brian Curtin
Brian Curtin added the comment: I don't profess to have any special ast knowledge, but given the context around there and the fact that it works...it looks fine to me. -- nosy: +brian.curtin ___ Python tracker __

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-05 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Nick Coghlan
Nick Coghlan added the comment: Dict and Set comprehensions are also broken: >>> {1 for x in ()} set([]) >>> {1:2 for x in ()} {} >>> ast.literal_eval("{1 for x in ()}") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/ast.py", line 80, in literal_eval

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Alex Gaynor
Alex Gaynor added the comment: There's no support for comprehensions of any sort, and confusingly limited support for arithmetic ops, I'd like to keep the scope of this issue small, basically backporting 90bf0631bfb8 and adding the tests (which I can also add to default). -- ___

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed superseder: -> ast.literal_eval does not handled new set literals ___ Python tracker ___ ___

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Antoine, do we have unit tests for this code path? -- ___ Python tracker ___ ___ Python-bugs-

[issue13520] Patch to make pickle aware of __qualname__

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: This might not be the case anymore, but __module__ can sometime be None. There is some discussion about this in Issue 3657. We should define the expected behavior when this happens. Also, I don't think backward-compatibility of the protocol is a big iss

[issue13505] Bytes objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I think we are kind of stuck here. I might need to rely on some clever hack to generate the desired str object in 2.7 without breaking the bytes support in 3.3 and without changing 2.7 itself. One *dirty* trick I am thinking about would be to use someth

[issue3635] pickle.dumps cannot save instance of dict-derived class that overrides __getattribute__

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I don't think it is a bug. The posted code completely breaks the expected behavior of __getattribute__. With a such implementation, there is nothing we can do with this object as we cannot introspect it. Use the following if you really need this kind o

[issue2057] difflib: add patch capability

2011-12-05 Thread Marco Scataglini
Marco Scataglini added the comment: I agree with Anatoly that it should be an easy way to create and apply Unified Diff Patches within Python. Also issue 2142 should get fixed, as proposed, but also include the fix at least on 2.7 not only on 3.x -- nosy: +marco _

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-05 Thread maniram maniram
maniram maniram added the comment: It is different behaviour than usual. I agree it is of low importance. -- ___ Python tracker ___ _

[issue13530] Docs for os.lseek neglect to mention what it returns

2011-12-05 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23819/abc_descriptor.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file22729/abc_descriptor.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file22407/abc_descriptor.patch ___ Python tracker ___ ___ Python-bugs-list mail