[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached trivial patch to fix the issue. Needs tests. -- keywords: +easy, patch nosy: +ezio.melotti stage: - test needed Added file: http://bugs.python.org/file21668/issue11787.diff ___ Python

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: PEP 3147 says[0]: For backward compatibility, Python will still support pyc-only distributions, however it will only do so when the pyc file lives in the

[issue11849] ElementTree memory leak

2011-04-15 Thread Kaifeng Zhu
New submission from Kaifeng Zhu cafe...@gmail.com: I'm using xml.etree.ElementTree to parse large XML file, while the memory keep increasing consistently. You can run attached test script to reproduce it. From 'top' in Linux or 'Task Manager' in Windows, the memory usage of python is not

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-04-15 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: It is better to close this issue as it was a Server Error. Standard just says that when there two headers with different values, combine them comma separated as urllib2 does. Making special case exception for 'Content-Length' header when

[issue11849] ElementTree memory leak

2011-04-15 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Do you experience same issue with current versions of Python? (3.2 or 2.7) The package was upgraded in latest versions. -- nosy: +flox ___ Python tracker rep...@bugs.python.org

[issue11849] ElementTree memory leak

2011-04-15 Thread Kaifeng Zhu
Kaifeng Zhu cafe...@gmail.com added the comment: Yes. Just tested with Python 2.7 and 3.2 in Windows 7, the memory usage is still unexpected high after 'Done' is printed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11849

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-04-15 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7a693e283c68 by Senthil Kumaran in branch '2.7': Issue #11467: Fix urlparse behavior when handling urls which contains scheme http://hg.python.org/cpython/rev/7a693e283c68 -- nosy: +python-dev

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-04-15 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 495d12196487 by Senthil Kumaran in branch '3.1': Issue #11467: Fix urlparse behavior when handling urls which contains scheme specific part only digits. http://hg.python.org/cpython/rev/495d12196487 --

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-04-15 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Fixed this in all codelines. Thanks Santoso. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11467

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: #6514 is to make `-m unittest` work run on 2.5/2.6. This bug is not to fix it, but to stop displaying confusing messages. It will be enough to exit with a message like: `-m unittest` call is not supported in Python 2.5/2.6 - use

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: 2.5 / 2.6 are in security fix only mode. So this won't get fixed. Please don't reopen. -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread JoeKuan
New submission from JoeKuan kuan@gmail.com: a = (1970, 1, 1, 0, 59, 58, 0, 0, 0) time.mktime(a) -2.0 a = (1970, 1, 1, 0, 59, 59, 0, 0, 0) time.mktime(a) Traceback (most recent call last): File stdin, line 1, in module OverflowError: mktime argument out of range a = (1970, 1, 1, 1,

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11850 ___ ___ Python-bugs-list

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: JoeKuan wrote: New submission from JoeKuan kuan@gmail.com: a = (1970, 1, 1, 0, 59, 58, 0, 0, 0) time.mktime(a) -2.0 On Windows, you get an OverflowError for this tuple as well. a = (1970, 1, 1, 0, 59, 59, 0, 0, 0)

[issue11849] ElementTree memory leak

2011-04-15 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I've tested a small variant of your script, on OSX. It seems to behave correctly (with 2.5, 2.6, 2.7 and 3.1). You can force Python to release memory immediately by calling gc.collect(). -- Added file:

[issue11849] ElementTree memory leak

2011-04-15 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: this is the output for 2.7.1: $ python2.7 issue11849_test.py *** Python 2.7.1 final --- PID STAT TIME SL RE PAGEIN VSZRSS LIM TSIZ %CPU %MEM COMMAND 0 2754 S+ 0:00.07 0 0 0 2441472 5372

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Do you think this should go in 3.1 too? -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5057 ___

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Do you think this should go in 3.1 too? If the problem triggers there as well: Yes. Is the problem also visible on Python 2.7 ? -- title:

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Yes. The original report was for 2.6. I will apply the patch on all the 4 branches then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5057

[issue11849] ElementTree memory leak

2011-04-15 Thread kaifeng
kaifeng cafe...@gmail.com added the comment: Python 3.2 On Linux (CentOS 5.3) *** Python 3.2.0 final --- PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND 0 15116 pts/0S+ 0:00 1 1316 11055 6452 0.6 python3.2 issue11849_test.py 1 15116 pts/0S+ 0:02

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread JoeKuan
JoeKuan kuan@gmail.com added the comment: I don't think it is to do with the underlying C mktime. Because it works fine with 00:59:58 and 01:00:00, 1, Jan 1970. It is to do with some specific value -1 in the internal code of time.mktime Here is the C code. int main(int argc, char

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Isn't this a duplicate of issue1726687? -- nosy: +Alexander.Belopolsky title: mktime - OverflowError: mktime argument out of range - on very specific time - mktime - OverflowError: mktime argument out of range -

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: JoeKuan wrote: JoeKuan kuan@gmail.com added the comment: I don't think it is to do with the underlying C mktime. Because it works fine with 00:59:58 and 01:00:00, 1, Jan 1970. It is to do with some specific value -1 in the

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Isn't this a duplicate of issue1726687? Could be, but that patch is not yet in Python 2.7, since Python 2.7.1 was release in Nov 2010.

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: If we can rely on the versions field, OP is using python 2.6. I don't think this can be classified as a security issue, so it won't be appropriate to backport issue1726687 to 2.6. -- assignee: - belopolsky

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #1726687 which is already fixed in Python 2.7 by 7a89f4a73d1a (Feb 15 2011): it will be part of 2.7.2. Only security vulnerabilities are fixed in Python 2.6, so I change the version field to 2.7 only.

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11850 ___ ___

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM. Is an automated test really needed, or just a manual run with a pydebug build? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11787

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Edzard Pasma
Changes by Edzard Pasma pasm...@concepts.nl: -- components: None nosy: pasm...@concepts.nl priority: normal severity: normal status: open title: Flushing the standard input causes an error type: behavior ___ Python tracker rep...@bugs.python.org

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: Could you provide more details on the problem? What version of Python did you encounter this error under? A short code fragment that triggers the error would also be useful. (I get no errors executing sys.stdin.flush() on 2.6.6 or 3.3)

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: An automated test would be better. It should be enough to create an invalid tar file, do something similar to the snippet in the first message, but checking that an error is raised and that all the files are closed anyway. --

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I need a why-python-suxx keyword to point people with dumb questions about why they should not use specific Python versions to a query that lists all sensitive issues for this specific version that won't be fixed due to security fix

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3cffa2009a92 by Ezio Melotti in branch '2.7': Issue #5057: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u\U00012345[0]).

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2011-04-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5057 ___

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: At some point we have to draw the line, otherwise we would have to backport things to 2.3 and 2.4 too. We are already maintaining 4 branches (2.7, 3.1, 3.2, 3.3). -- ___ Python tracker

[issue11850] mktime - OverflowError: mktime argument out of range - on very specific time

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Isn't this a duplicate of issue1726687? Could be,

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11851 ___ ___

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I know. But stuff like this is necessary for proper release management and future planning. Using why-python-suxx per module ™ metric, it is possible to pinpoint badly designed parts that should be removed or replaced in Python4.

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Edzard Pasma
Edzard Pasma pasm...@concepts.nl added the comment: Hello, The error occured in the APSW shell, when using its .output command. Looking at the apsw source, it appears to perform a sys.stdin.flush() at that point. Trying this in the Python interpreto gives the same error: $ python Python

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: setuptools sdist uses a wholly different machinery than distutils, so it’s a red herring. Have you tested that your patch does reproduce the bug? From the diff header, I see that you’ve patched your installed Python instead of using a

[issue10496] import site failed when Python can't find home directory (sysconfig._getuserbase)

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It’s not just a try/except, it’s a behavior change: after the patch, paths returned by sysconfig may not be fully expanded paths. I would like Tarek to make a call on this. -- assignee: - tarek ___

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report; I’ll fix it when I get Internet access without port 22 blocked, or any committer interested in documentation can do it. -- ___ Python tracker rep...@bugs.python.org

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am not sure anyone other that Bob Ippolito can contribute later versions of simplejson (or patches derived from those versions) to python. ISTM that simplejson distribution is covered by MIT license [1] which is not

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- hgrepos: +19 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10932 ___ ___ Python-bugs-list mailing

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2011-04-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Good point about the extra parameter just pushing the problem one layer up the stack rather than completely solving the problem. However, on further reflection, I've realised that I really don't like having runpy import the threading module

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks great, thanks. You haven’t addressed this part of my previous message: “I think the fix may be in the wrong place: You fixed sdist but not bdists. I think the root of the problem is in the manifest (distutils2) / filelist (distutils1)

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9e49f4d81f54 by Ezio Melotti in branch '2.7': #11843: remove duplicate line from table in distutil doc. http://hg.python.org/cpython/rev/9e49f4d81f54 New changeset 1d6e28df2fb7 by Ezio Melotti in branch '3.1': #11843: remove

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Done, thanks for the report. -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I was able to spend more time on that this afternoon. 'Got an unkillable diff(1) along the way which required me to force a cold reboot. Well. I attach a C version (11277.mmap.c) which i've used for testing. The file

[issue11731] Simplify email API via 'policy' objects

2011-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: What I hope is the final patch, after Barry's review, and Éric's second. -- Added file: http://bugs.python.org/file21674/policy_final.patch ___ Python tracker rep...@bugs.python.org

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks Ezio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11843 ___ ___ Python-bugs-list

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread higery
higery shoulderhig...@gmail.com added the comment: Yes, the test fails and the output msg is: AssertionError: '\\' unexpectedly found in '# file GENERATED by distutils, do NOT edit\nREADME\nsetup.py\nsomecode\\__init__.py\n' It means that distutils generates MANIFEST with '\' as file path

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! I would also like it if you could use a more specific test, comparing a line with a path instead of using the overly broad assertIn, to make the intent of the test clearer. -- assignee: tarek - eric.araujo

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread higery
higery shoulderhig...@gmail.com added the comment: OK. I used this method just because I thought '\' is a special character and if it's in a file path line, then it must be the separator. As you say, it may be not that clear for others to know what does this test do. --

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: That's not a problem, I'm more than happy to give permission for any patch. If it's easier I can consider dual-licensing in the simplejson source. -- ___ Python tracker rep...@bugs.python.org

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Apr 15, 2011 at 12:17 PM, Bob Ippolito rep...@bugs.python.org wrote: .. That's not a problem, I'm more than happy to give permission for any patch. If it's easier I can consider dual-licensing in the simplejson

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Alexander suggested on IRC to use the 'unicode' directive[0], but even if that works in the HTML (only outside code blocks), it still breaks the PDF. Another alternative that might work is the 'raw' role[1]. [0]:

[issue11819] '-m unittest' should not pretend it works on Python 2.5/2.6

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I need a why-python-suxx keyword to point people with dumb questions about why they should not use specific Python versions to a query that lists all sensitive issues for this specific version that won't be fixed due to security fix only mode.

[issue11824] freeze.py broken due to ABI flags

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +barry, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11824 ___ ___

[issue11831] pydoc -w causes no Python documentation found error when the path is not current directory

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, ron_adam title: python -w causes no Python documentation found error when the path is not current directory - pydoc -w causes no Python documentation found error when the path is not current directory

[issue11834] wrong module installation dir on Windows

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Distutils, Distutils2 nosy: +alexis, eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11834

[issue11846] Implementation question for (-5) - 256 caching, and doc update for c-api/int.html

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11846 ___ ___ Python-bugs-list

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11851 ___ ___ Python-bugs-list

[issue11838] IDLE: make interactive code savable as a runnable script

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo title: IDLE: make interactive code runnable. - IDLE: make interactive code savable as a runnable script ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11838

[issue11841] Bug in the verson comparison

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, looks great! Why does the code use both a string and a singleton tuple? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11841 ___

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The PDF generator is PDFLaTeX, whose range of Unicode characters is very limited, so no, I can't fix it. My search for pdflatex and unicode has quickly revealed this 4-year old howto:

[issue11776] types.MethodType() params and usage is not documented

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11776 ___ ___ Python-bugs-list

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Alexander suggested on IRC to use the 'unicode' directive[0], but even if that works in the HTML (only outside code blocks), it still breaks the PDF. Another

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yep, code cleanup is not done in the stable branches (except as a by-product of a bugfix). -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9904

[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It is really a bad idea to choose an *undecodable* name for a module. You will not be able to write its name using import name syntax. Okay, makes sense that pydoc ignores those. You speak about a user choosing to create such a filename

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: One reason is that unicodedata.lookup actually returns a unicode char, so if we want to show a code snippet that uses unicodedata.lookup we either have to use a unicode literal or limit the chars in the examples to latin1 to make sure it

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: One reason is that unicodedata.lookup actually returns a unicode char, so if we want to show a code snippet that uses unicodedata.lookup we either have to

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Apr 15, 2011 at 1:10 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. Why don't you use the standard literal escapes for the examples and annotate the code points with the code point names ? A am neutral

[issue11841] Bug in the verson comparison

2011-04-15 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: The reason for the use of two constants is that previously there was comparison in the code with a hardcoded 'f': if postdev[0] == 'f': I think it's a common practice to create constants for such hardcoded values. Also this

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___ ___

[issue11841] Bug in the verson comparison

2011-04-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think it's a common practice to create constants for such hardcoded values. Yep, _FINAL_MARKER is clearer here that a cryptic character. An alternate fix would be to use a c as rc marker (like what Python itself does in sys.hexversion and

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Apr 15, 2011 at 1:23 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. Why not wrap the calls with a repr() ? Won't help: 'Ӝ' I think you meant ascii(), but that's ugly IMO: '\\u04dc' Maybe '\u04dc'

[issue11841] Bug in the verson comparison

2011-04-15 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I understand that ML is mailing list, but I have no idea what is fellowship mailing list. Could you elaborate on this? -- ___ Python tracker rep...@bugs.python.org

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-15 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20838/issue11277.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: My last idea for today was to split the writes. This also works for the C version, but it does not for test_zlib.py. I attach the updated files. And for completeness: Adler-32 7a54018b CRC-32 7f1be672 -- @test_13713_tmp

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I can't reproduce this Under Solaris 10 or Ubuntu. Maybe is it something Apple related?. Anyway, does it makes sense to flush sys.stdin, at all?. -- nosy: +jcea ___ Python tracker

[issue11852] New QueueListener is unusable due to threading and queue import

2011-04-15 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur b...@users.sourceforge.net: How to reproduce: from logging.handlers import QueueListener from multiprocessing import Queue q = Queue(100) l = QueueListener(q) Traceback (most recent call last): File stdin, line 1, in module File

[issue11852] New QueueListener is unusable due to threading and queue import

2011-04-15 Thread Baptiste Lepilleur
Baptiste Lepilleur b...@users.sourceforge.net added the comment: Forgot to give the precise python version: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 -- ___ Python tracker rep...@bugs.python.org

[issue11852] New QueueListener is unusable due to missing threading and queue import

2011-04-15 Thread Baptiste Lepilleur
Changes by Baptiste Lepilleur b...@users.sourceforge.net: -- title: New QueueListener is unusable due to threading and queue import - New QueueListener is unusable due to missing threading and queue import ___ Python tracker rep...@bugs.python.org

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-04-15 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This is due to a bug in the TLS key management when mixed with fork. Here's what happens: When a thread is created, a tstate is allocated and stored in the thread's TLS: thread_PyThread_start_new_thread - t_bootstrap -

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-04-15 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: Added file: http://bugs.python.org/file21677/test_specific.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10517 ___

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-04-15 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: -- keywords: +patch Added file: http://bugs.python.org/file21678/thread_invalid_key.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10517

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-04-15 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Note: this seems to be fixed in RHEL6. (Sorry for the noise). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10517 ___

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Now, I'd be super happy to see this strange semantics of PyThread_set_key_value go away. Its very un-standard and complicates the mapping from an native implementation to the python one. But I think I did once bring up this

[issue11803] Memory leak in sub-interpreters

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Swapnil, please pay attention to what people write. PYTHON 2.6 IS NOT OPEN FOR BUGFIXES. Please do not add 2.6 to this issue again or reopen until you find a problem with 2.7.1 or 3.2.0. -- nosy: +terry.reedy status: open - closed

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: What do you propose for a fix? 1. Find a more reliable host to test with? 2. Change test to catch the error and convert failure to a skip? 3. Both ;-? 4. Something else? Something like 2 would seem like a good idea for all tests dependent on a

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I get the same: $ python2.7 Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import sys sys.stdin.flush()

[issue10037] multiprocessing.pool processes started by worker handler stops working

2011-04-15 Thread Nir Aides
Changes by Nir Aides n...@winpdb.org: -- nosy: +nirai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10037 ___ ___ Python-bugs-list mailing list

[issue11852] New QueueListener is unusable due to missing threading and queue import

2011-04-15 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11852 ___

[issue11847] OSError importing antigravity module

2011-04-15 Thread ackounts
ackounts ackou...@gmail.com added the comment: You right, webbrowser.open fails too. It was a duplicate one, sorry guys. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11847

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: In python 2.x, sys.stdin.flush() is more or less equivalent to C fflush(stdin). The behavior of fflush() on streams that are open for reading only is undefined. [1] Python 3.x io does not use C stdio library and

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 1. Find a more reliable host to test with? Well, if you find a more reliable host than localhost, why not ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11812

[issue11820] idle3 shell os.system swallows shell command output

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am not sure if this should be called a bug or feature request, but that does not matter so much with IDLE. Os.system is documented as executing in a subshell and returning the exit code, which is does. The doc also says If command

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Python 2.7.1 ... 32 bit (Intel)] on win32 import sys sys.stdin.flush() stdin.flush() could mean to clear (discard) the input buffer. Given that it is undefined, the puzzle is that it exists at all, even to be called. Consistency across

[issue9650] format codes in time.strptime docstrings

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- assignee: - docs@python components: +Documentation -Library (Lib) versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9650

  1   2   >