[issue5364] documentation in epub format

2011-12-05 Thread James Polley
James Polley jamezpol...@gmail.com 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

[issue5364] documentation in epub format

2011-12-05 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com 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

[issue13443] wrong links and examples in the functional HOWTO

2011-12-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

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

2011-12-05 Thread mike c
New submission from mike c coolbutusel...@gmail.com: 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

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

2011-12-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-12-05 Thread mike c
mike c coolbutusel...@gmail.com added the comment: Cloning repo. Reading the devguide. Patch forthcoming. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13531 ___

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

2011-12-05 Thread mike c
mike c coolbutusel...@gmail.com 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

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

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

[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 maniandra...@gmail.com: 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

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

2011-12-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Someone from the mentoring project has volunteered to work on a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12944 ___

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

2011-12-05 Thread dangermouseb
New submission from dangermouseb da...@bigredmedia.tv: 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

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The updated patch looks good, I’ll commit it soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13491 ___

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Nebelhom
Nebelhom nebel...@googlemail.com 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.

[issue13491] Fixes for sqlite3 doc

2011-12-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue1685453] email package should work better with unicode

2011-12-05 Thread Sivan Greenberg
Sivan Greenberg siv...@gmail.com 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

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

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue1685453] email package should work better with unicode

2011-12-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Darren Dale
Darren Dale dsdal...@gmail.com 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:

[issue11051] system calls per import

2011-12-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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.00

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

2011-12-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13533 ___ ___ Python-bugs-list

[issue11051] system calls per import

2011-12-05 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051 ___ ___ Python-bugs-list

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

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Confirmed, and this is really annoying. I'm of the mind to apply your second idea. -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11147

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

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Sorry, I meant your first option. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11147 ___

[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 mar...@v.loewis.de added the comment: Why do you think this is a bug? Is this behavior causing problems? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532

[issue11051] system calls per import

2011-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[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 ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11147 ___

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

2011-12-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[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 victor.stin...@haypocalc.com added the comment: Alex ? Florent ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11886 ___ ___

[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 dmalc...@redhat.com: 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 dmalc...@redhat.com added the comment: Reported in glibc's bug tracker as: http://sourceware.org/bugzilla/show_bug.cgi?id=13472 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13534

[issue11051] system calls per import

2011-12-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here's a trivial patch reducing the number of calls to open. Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051 ___

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

2011-12-05 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: 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

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

2011-12-05 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13535 ___ ___ Python-bugs-list

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Alex Gaynor
New submission from Alex Gaynor alex.gay...@gmail.com: 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 alex.gay...@gmail.com added the comment: Patch with tests -- keywords: +patch Added file: http://bugs.python.org/file23859/x.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13536

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13536 ___

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Brian Curtin
Brian Curtin br...@python.org 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 rep...@bugs.python.org

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

2011-12-05 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13535 ___ ___ Python-bugs-list

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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 stdin, line 1, in module File /usr/lib64/python2.7/ast.py, line 80, in

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com 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

[issue13536] ast.literal_eval fails on sets

2011-12-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid status: open - closed superseder: - ast.literal_eval does not handled new set literals ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13536

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

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Antoine, do we have unit tests for this code path? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13503 ___

[issue13520] Patch to make pickle aware of __qualname__

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com 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

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

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com 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

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

2011-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com 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

[issue2057] difflib: add patch capability

2011-12-05 Thread Marco Scataglini
Marco Scataglini atlant...@gmx.com 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 maniandra...@gmail.com added the comment: It is different behaviour than usual. I agree it is of low importance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532 ___

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

2011-12-05 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13530 ___ ___ Python-bugs-list

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23819/abc_descriptor.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file22729/abc_descriptor.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___

[issue11610] Improved support for abstract base classes with descriptors

2011-12-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file22407/abc_descriptor.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___