[issue5729] Allows tabs for indenting JSON output

2010-10-16 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: Sorry but I don't think I will be able to. I'd be happy to accept patches into simplejson that make it easier to merge with Python 3 in the future, but I simply do not have the time to maintain the Python 3 branch of the code that we don't use.

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: with make install (r85564), lib/python3.2/concurrent is created, but the futures module is not installed there. The attached trivial patch fixes this here. -- files: futures-Makefile.diff keywords: patch messages: 118858 nosy:

[issue10119] test_urllibnet failure when using support.transient_internet

2010-10-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Actually, this is not related to transient_internet call. Just that file handle not behaving as expected due to some delays. -- ___ Python tracker rep...@bugs.python.org

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: There isn't an entry for anyone in maintainers.rst for concurrent.futures either. That should probably also be fixed. -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org

[issue1343] XMLGenerator: nice empty/ elements

2010-10-16 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: So what still needs to happen to get this in? Patch still applies to current python 3.2 trunk (r85564). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1343

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I added myself as the maintainer of concurrent.futures. I'll look at the patch now. -- assignee: - bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10120

[issue2775] Implement PEP 3108

2010-10-16 Thread Retro
Retro vinet...@gmail.com added the comment: My patch zipfile-patch.diff was sent to python-dev. Please act on it as you see fit. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2775

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Patch committed in r85567. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10120 ___

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Here is a new patch [code_encoding.patch] implementing this idea: - Use filesystem encoding (and surrogateescape) to encode/decode paths in compile() and the parser, instead of utf-8 in strict mode (...) The patch restores the

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, I just realized that Python 3.1.2 (last Python 3.1 release) was released the 21st March, whereas r82063 (commit for #6543) was made the 17st June. So the encoding change was not released yet. --

[issue10121] test_multiprocessing stuck in test_make_pool if run in a loop

2010-10-16 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, when trying to see if issue6661 was still valid, I run test_multiprocessing in a tight loop and I got it reproducibly stuck on test_make_pool: ... test_imap_unordered (test.test_multiprocessing.WithManagerTestPool) ... ok

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited to 3.2 (r85569+r85570). I wait for the buildbot before porting the patch to 3.1 and close the issue. There is already a regression on Gentoo buildbot with ascii locale encoding, test_doctest test_zipimport_support:

[issue10122] Documentation typo fix and a side question

2010-10-16 Thread Retro
New submission from Retro vinet...@gmail.com: Please read the first sentence of the docs for the built-in function getattr() here: http://docs.python.org/library/functions.html?highlight=getattr#getattr Fix the word 'attributed' to 'attribute', because the former is a typo. A side question.

[issue10123] test_doctest failure with ASCII filesystem encoding

2010-10-16 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: In #10114, I changed parser filename encoding from utf-8/strict to the filesystem encoding/surrogateescape. With C locale, the filesystem encoding is ASCII and test_doctest fails because it uses an unencoable filename

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created #10123 for the test_doctest regression. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10114 ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Interestingly enough, the distutils failure that dmalcolm found was present in the trunk even before my patch. If you build Python with --enable-shared, that distutils test fails because of the default path used for the -L option. I fixed

[issue10098] intermittent failure in test_os

2010-10-16 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry about this. And thank you for fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10098 ___

[issue5736] Add the iterator protocol to dbm modules

2010-10-16 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: Removed file: http://bugs.python.org/file13673/issue5736.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5736 ___

[issue5736] Add the iterator protocol to dbm modules

2010-10-16 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: Removed file: http://bugs.python.org/file13674/issue5736.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5736 ___

[issue5736] Add the iterator protocol to dbm modules

2010-10-16 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: Removed file: http://bugs.python.org/file13682/test_issue5736.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5736 ___

[issue5736] Add the iterator protocol to dbm modules

2010-10-16 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: Removed file: http://bugs.python.org/file13676/issue5736.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5736 ___

[issue5736] Add the iterator protocol to dbm modules

2010-10-16 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: This patch just uses PyObject_GetIter to get an iter. (I just copied the idea from issue9523) -- nosy: +ysj.ray versions: +Python 3.2 -Python 2.7 Added file: http://bugs.python.org/file19250/issue5736.diff

[issue10124] obvious typo in cporting HOWTO

2010-10-16 Thread Paul Bolle
New submission from Paul Bolle pebo...@tiscali.nl: 0) There's an obvious typo in the cporting HOWTO: [...] It’s also important to remember that PyBytes and PyUnicode in 3.0 are not interchangeable like PyString and PyString are in 2.x. [...] That PyString and PyString are interchangeable is

[issue10122] Documentation typo fix and a side question

2010-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, that would be incorrect syntax (if you omit the optional argument you should also omit the comma that precedes it). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue10122] Documentation typo fix and a side question

2010-10-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- type: - behavior versions: -3rd party, Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10122 ___

[issue10125] Closing a file within its writelines method causes segfault

2010-10-16 Thread intuited
New submission from intuited cecinemapasdera...@gmail.com: Discovered when using the current Ubuntu 10.04 package of Python: 2.6.5-0ubuntu1 Reproducible with :: outfile = open(tmpout, w) outfile.writelines(f() or line for f in (outfile.close,)) This problem is probably most likely to

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I yhink you need to add an svnignore property to that directory for __pycache__. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9308

[issue10089] Add support for arbitrary -X options

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a new patch renaming the attribute to sys._xoptions, and adding some docs. -- Added file: http://bugs.python.org/file19252/xopts2.patch ___ Python tracker rep...@bugs.python.org

[issue10122] Documentation typo fix and a side question

2010-10-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Typo fixed in r85572. Otherwise, as David says. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10122

[issue10124] obvious typo in cporting HOWTO

2010-10-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I don't think this is what was intended; rather str and unicode. Fixed in r85573. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10125] Closing a file within its writelines method causes segfault

2010-10-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r85574 -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10125 ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I fixed that in my patch, but it was unrelated to the changes I made to expose sys.abiflags. Would you mind committing that part independently of the rest? I wonder if we should try to get a buildbot up that uses --enable-shared? If the

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-16 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: PPC Tiger is using Python 2.7, so it's 3.6.11. Python 3.X also seems to be failing the sqlite tests on PPC Leopard. Is the required version # different between 3.1 and 3.x? -- ___ Python

[issue10115] accept4 can fail with errno 90

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Weekend is coming, so I can lend a hand in implementing whatever you choose. I don't have any strong opinion about it, so it's whichever you prefer really :) -- ___ Python tracker

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (barry) I wonder if we should try to get a buildbot up that uses --enable- shared? (éric) If the option has significant use, why not. Well, it's all the more significant that most Linux distros use shared libraries, so they will use that

[issue10089] Add support for arbitrary -X options

2010-10-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'd prefer -X key[=val] without the possibility to mention multiple key=val pairs, so that val can contain anything (commata in particular). Otherwise, the change looks fine to me. -- nosy: +georg.brandl

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've done so on one of the stable buildbots. Let's see how it behaves: http://www.python.org/dev/buildbot/builders/x86%20Ubuntu%20Shared%203.x/ -- ___ Python tracker rep...@bugs.python.org

[issue5729] Allows tabs for indenting JSON output

2010-10-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: bob.ippolito - nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5729 ___

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, Oct 16, 2010 at 1:34 PM, R. David Murray rep...@bugs.python.org wrote: .. I yhink you need to add an svnignore property to that directory for __pycache__. r85576 (I hope I got it right.) --

[issue10126] test_distutils failure with --enable-shared

2010-10-16 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This happens on Python 3.1: /usr/bin/ld: cannot find -lpython3.1 collect2: ld returned 1 exit status test test_distutils failed -- Traceback (most recent call last): File

[issue10126] test_distutils failure with --enable-shared

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Similar failure on 2.7: /usr/bin/ld: cannot find -lpython2.7 collect2: ld returned 1 exit status test test_distutils failed -- Traceback (most recent call last): File

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Barry: I had misunderstood your message, so disregard my request for commit (since the fix you mention *is* committed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807

[issue10126] test_distutils failure with --enable-shared

2010-10-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I fixed this in py3k branch, so you just need to backport that. I can do if you can't get to it in the next day or so. -- ___ Python tracker rep...@bugs.python.org

[issue10126] test_distutils failure with --enable-shared

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le samedi 16 octobre 2010 à 20:43 +, Barry A. Warsaw a écrit : Barry A. Warsaw ba...@python.org added the comment: I fixed this in py3k branch, so you just need to backport that. I can do if you can't get to it in the next day or so. I

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The attribute and test aren't in 3.1 (or 2.7), so this issue only applies to 3.x trunk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845

[issue10127] ssl.SSLSocket().close() does not close the connection

2010-10-16 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: Quoting PoltoS from issue 8293: If I do sock.close() (sock is instance of ssl.SSLSocket), the connection is not closed: I see it as Established in netstat and nothing is sent over network: tcpdump show nothing going thru the network.

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I opened issue 10127 for the ssl.SSLSocket().close() problem. -- resolution: works for me - out of date stage: - committed/rejected status: open - closed ___ Python tracker

[issue10127] ssl.SSLSocket().close() does not close the connection

2010-10-16 Thread PoltoS
PoltoS polto...@alsenet.com added the comment: After some investigations it seems that a dup() is called in ssl wrap_socket(), so on sock.close() the socket is not really closed, since there is still one more reference (file descriptor) in the kernel's tcp/ip stack. Can someone confirm this?

[issue10127] ssl.SSLSocket().close() does not close the connection

2010-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I cannot reproduce with 2.7, 3.1 or 3.2. It seems the issue is obsolete, many changes having been made to the ssl module since 2.6. -- resolution: - out of date status: open - pending ___ Python

[issue10123] test_doctest failure with ASCII filesystem encoding

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Failures occurred on: http://www.python.org/dev/buildbot/builders/AMD64%20Gentoo%20Wide%203.x http://www.python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%203.x test_zipimport_support does also fail, but it is linked to

[issue10123] test_doctest failure with ASCII filesystem encoding

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed by r85578. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10123 ___

[issue5391] mmap: read_byte/write_byte and object type

2010-10-16 Thread benrg
benrg benrud...@gmail.com added the comment: With this patch, read_byte returns an integer in the range -128 to 127 instead of 0 to 255 if char is signed. Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 is affected by this. I think it is a bug. The test

[issue10073] calendar.isleap() not checking parameter type

2010-10-16 Thread Retro
Retro vinet...@gmail.com added the comment: Please leave this function as is because it works just fine. calendar.isleap(2011) False The argument for isleap() must not be in quotes. That's all. -- nosy: +Retro ___ Python tracker

[issue10073] calendar.isleap() not checking parameter type

2010-10-16 Thread Retro
Retro vinet...@gmail.com added the comment: I would just add an exception to the isleap() function. def isleap(year): Return 1 for leap years, 0 for non-leap years. try: return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) except TypeError: # somehow inform

[issue5729] Allows tabs for indenting JSON output

2010-10-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5729 ___

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-16 Thread Michael Olson
New submission from Michael Olson ol...@irinim.net: In an application with an entry point of __main__.py, multiprocessing.Pool throws the following: Traceback (most recent call last): File string, line 1, in module File D:\Dev\Python27\lib\multiprocessing\forking.py, line 346, in main

[issue10115] accept4 can fail with errno 90

2010-10-16 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Made a proof of concept patch (no doc updates yet). Decided to implement separate accept4() method, cause we have already spent enough time dealing with it and rollback would be pity. -- keywords: +patch Added file:

[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2010-10-16 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: This patch is specifically targeted at FreeBSD 4. tested on FreeBSD 4.11 and OS X 10.6.4 I don't know how to accommodate SGI IRIX's case. -- keywords: +patch Added file: http://bugs.python.org/file19254/issue10052.diff

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Status of this issue, 5 months later: most tests pass except test_gc test_gdb test_runpy test_sys test_wsgiref test_zipimport. Said differently, 95% of the task (or more?) is done. It's possible to run Python installed in a

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-10-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I don't see this issue on netbsd 5.0.2 i386 in the py3k branch. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533105

[issue5510] patches for Modules/socketmodule.c for NetBSD

2010-10-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: netbsd-wizs-mod.patch applied in 85587. -- assignee: - gregory.p.smith nosy: +gregory.p.smith resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: FYI, in a recent py3k installer build test using the same installer image (2-way i386/ppc universal with statically linked sqlite 3.6.11), the test fails on ppc G3 (10.4), ppc g4 (10.5) but passes on i386 (10.6) so I'd go along with Bill's big- vs

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128 ___ ___ Python-bugs-list mailing list

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128 ___ ___ Python-bugs-list

[issue3482] re.split, re.sub and re.subn should support flags

2010-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For reference, the py3k rev was r70091. -- nosy: +r.david.murray resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10090] python -m locale fails on OSX

2010-10-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10090 ___ ___ Python-bugs-list

[issue10129] Curious 'name not defined error' with 'python -m'

2010-10-16 Thread Andreas Kloeckner
New submission from Andreas Kloeckner inf...@tiker.net: $ python3.1 -m a b.py results in Traceback (most recent call last): File /usr/lib/python3.1/runpy.py, line 128, in _run_module_as_main __main__, fname, loader, pkg_name) File /usr/lib/python3.1/runpy.py, line 34, in _run_code

[issue4949] Constness in PyErr_NewException

2010-10-16 Thread Andreas Kloeckner
Andreas Kloeckner inf...@tiker.net added the comment: ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4949 ___ ___ Python-bugs-list mailing