[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Georg Brandl
Georg Brandl added the comment: Can y'all please accept the limitation to latin-1? Like Marc-Andre says, the more "exotic" the examples, the less likely it is that users reading the HTML can display it anyway. -- ___ Python tracker

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Ned Deily
Ned Deily added the comment: "Given that it is undefined, the puzzle is that it exists at all, even to be called." No puzzle at all: in Python 2, stdin is a file object which automatically has a flush method. And the behavior seen here is not limited to OS X; FreeBSD, for one, gives exactly

[issue11853] idle3.2 on mac unresponsive on input() called from a source file

2011-04-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This is the same problem as reported in Issue11088. A fix will be available in the next releases of Python 3.2 and 2.7. A workaround is to use the 32-bit-only version of Python 3.2 which uses the Tcl/Tk 8.4 or to not try to do input() in a

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-04-15 Thread Ned Deily
Ned Deily added the comment: I agree that it is kind of odd behavior and, after a quick look back through open issues, I was a bit surprised to not find an open issue about it (although I may have overlooked one). "Thus it does not seem to be an os.system issue, but a failure of Idle to capt

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-15 Thread Robert Burke
Changes by Robert Burke : -- title: __or__, __and__, __sub__, and __xor__ instantiate subclass of set without calling __init__ -> __or__ et al instantiate subclass of set without calling __init__ ___ Python tracker

[issue11854] __or__, __and__, __sub__, and __xor__ instantiate subclass of set without calling __init__

2011-04-15 Thread Robert Burke
New submission from Robert Burke : If you create a subclass of set but do not override __or__, __and__, __xor__, and __sub__, calling these functions will yield a new instance of your subclass. The new instance will never have __init__ called on it. Depending on what you expect __init__ to d

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

2011-04-15 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the clarification, Éric -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11853] idle3.2 on mac unresponsive on input() called from a source file

2011-04-15 Thread John DeNero
New submission from John DeNero : idle3.2 becomes unresponsive if the input() function is called from a source file run via F5. To repeat: - Create a script file with the contents: "input()" - Press F5 to run - Idle is now unresponsive and ^C interrupt is not caught unless issued at the comman

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

2011-04-15 Thread kent
kent added the comment: I tried using subprocess.Popen and subprocess.call, both of which did the same behavior. Under the interpreter I get the desired string output: >>> subprocess.call('ls') bin Documents eclipse local Pictures tmp workspace Desktop Downloads hamlib Music

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Edzard Pasma
Edzard Pasma added the comment: Thanks a lot, especially for making clear what flushing an input stream means (or that it is meaningless). I hope it will be solved in APSW, there is an issue now: http://code.google.com/p/apsw/issues/detail?id=117 -- __

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

2011-04-15 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2011-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b700e6704b3 by Vinay Sajip in branch '3.2': Issue #11852: Add missing imports and update tests. http://hg.python.org/cpython/rev/3b700e6704b3 New changeset f5a6367e11e2 by Vinay Sajip in branch 'default': Issue #11852: Merge fix from 3.2. http://h

[issue9650] format codes in time.strptime docstrings

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- assignee: -> docs@python components: +Documentation -Library (Lib) versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 platforms

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

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 generates any output, it

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Antoine Pitrou
Antoine Pitrou 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 ___ __

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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 therefore it is not surprising that the

[issue11847] OSError importing antigravity module

2011-04-15 Thread ackounts
ackounts added the comment: You right, webbrowser.open fails too. It was a duplicate one, sorry guys. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

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

2011-04-15 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2011-04-15 Thread Nir Aides
Changes by Nir Aides : -- nosy: +nirai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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() Traceback (most recen

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 resource out of

[issue11803] Memory leak in sub-interpreters

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy 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 ___

[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 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 issue, and was told that it

[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 added the comment: Note: this seems to be fixed in RHEL6. (Sorry for the noise). -- ___ Python tracker ___ __

[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 : -- keywords: +patch Added file: http://bugs.python.org/file21678/thread_invalid_key.diff ___ Python tracker ___ _

[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 : Added file: http://bugs.python.org/file21677/test_specific.c ___ Python tracker ___ ___ Python-bugs-list

[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 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 -> _PyThreadState_Init -> _PyGILSt

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

2011-04-15 Thread Baptiste Lepilleur
Changes by Baptiste Lepilleur : -- title: New QueueListener is unusable due to threading and queue import -> New QueueListener is unusable due to missing threading and queue import ___ Python tracker _

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

2011-04-15 Thread Baptiste Lepilleur
Baptiste Lepilleur 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 __

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

2011-04-15 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur : How to reproduce: >>> from logging.handlers import QueueListener >>> from multiprocessing import Queue >>> q = Queue(100) >>> l = QueueListener(q) Traceback (most recent call last): File "", line 1, in File "C:\Python32\lib\logging\handlers.py", line

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Jesús Cea Avión
Jesús Cea Avión 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

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

2011-04-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 Adler-32 <7a54018b>

[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 : Removed file: http://bugs.python.org/file20838/issue11277.2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue11841] Bug in the verson comparison

2011-04-15 Thread Filip Gruszczyński
Filip Gruszczyński 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 _

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Apr 15, 2011 at 1:23 PM, Marc-Andre Lemburg 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' but that's too much of scaffolding. .. > I think

[issue11841] Bug in the verson comparison

2011-04-15 Thread Éric Araujo
Éric Araujo 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 elsewhere). I’l

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11841] Bug in the verson comparison

2011-04-15 Thread Filip Gruszczyński
Filip Gruszczyński 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 hit when I was mak

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Apr 15, 2011 at 1:10 PM, Marc-Andre Lemburg 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 on how to enter unicode characters in source reST.

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Ezio Melotti
Ezio Melotti 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 works nice with the PDF

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

2011-04-15 Thread Éric Araujo
Éric Araujo 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 though; is it possi

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

2011-04-15 Thread Éric Araujo
Éric Araujo 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 ___ __

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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 t

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

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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: http://tclab.kaist.ac.kr/ipe/pdftex_2.html I'll experiment with

[issue11841] Bug in the verson comparison

2011-04-15 Thread Éric Araujo
Éric Araujo added the comment: Thanks, looks great! Why does the code use both a string and a singleton tuple? -- ___ Python tracker ___ ___

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

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: IDLE: make interactive code runnable. -> IDLE: make interactive code savable as a runnable script ___ Python tracker ___ __

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11834] wrong module installation dir on Windows

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils, Distutils2 nosy: +alexis, eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

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

[issue11824] freeze.py broken due to ABI flags

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +barry, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-04-15 Thread Éric Araujo
Éric Araujo 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. You may no

[issue10665] Expand unicodedata module documentation

2011-04-15 Thread Ezio Melotti
Ezio Melotti 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]: http://docutils.sourceforge.net/docs/ref/rst/dir

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Apr 15, 2011 at 12:17 PM, Bob Ippolito 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 source. Can someone who can speak for PSF clarify the

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Bob Ippolito
Bob Ippolito 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 ___

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread higery
higery 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. -- _

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Éric Araujo
Éric Araujo 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 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 separator. OK, I'll try to

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Éric Araujo
Éric Araujo added the comment: Thanks Ezio. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11731] Simplify email API via 'policy' objects

2011-04-15 Thread R. David Murray
R. David Murray 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 ___

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

2011-04-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 11277.zsum32.c is a quick-and-dirty

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Ezio Melotti
Ezio Melotti 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

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Roundup Robot
Roundup Robot 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 duplicate line from tab

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

2011-04-15 Thread Éric Araujo
Éric Araujo 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) module.” I don’t u

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

2011-04-15 Thread Nick Coghlan
Nick Coghlan 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 automatically, since

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

2011-04-15 Thread Éric Araujo
Changes by Éric Araujo : -- hgrepos: +19 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue11844] Update json to upstream simplejson latest release

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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 one of the valid "initial licenses.

[issue11843] distutils doc: duplicate line in table

2011-04-15 Thread Éric Araujo
Éric Araujo 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

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

2011-04-15 Thread Éric Araujo
Éric Araujo 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 ___ Python tracker

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Éric Araujo
Éric Araujo 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 developpers’ environment.

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Edzard Pasma
Edzard Pasma 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 2.7.1 (r271:86882M, Nov

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

2011-04-15 Thread anatoly techtonik
anatoly techtonik 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 STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Alexander Belopolsky wrote: >> >> Alexander Belopolsky added the comment: >> >> Isn't this a duplicate of issue1726687? > > Could be, but that patch is not yet in Python 2.7, since

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

2011-04-15 Thread Ezio Melotti
Ezio Melotti 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

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

2011-04-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-04-15 Thread Roundup Robot
Roundup Robot 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]). http://hg.python.org/c

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

2011-04-15 Thread anatoly techtonik
anatoly techtonik 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. -

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Ezio Melotti
Ezio Melotti 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. -- _

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Nadeem Vawda
New submission from Nadeem Vawda : 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) -- nosy: +nade

[issue11851] Flushing the standard input causes an error

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

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Éric Araujo
Éric Araujo added the comment: LGTM. Is an automated test really needed, or just a manual run with a pydebug build? -- ___ Python tracker ___ _

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

2011-04-15 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-04-15 Thread STINNER Victor
STINNER Victor 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. -- nosy: +haypo reso

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

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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 components: +Extension Modules nos

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

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky 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 Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: JoeKuan wrote: > > JoeKuan 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 Her

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

2011-04-15 Thread Alexander Belopolsky
Alexander Belopolsky 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 - on very specific time

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

2011-04-15 Thread JoeKuan
JoeKuan 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 *argv[]) { struct

[issue11849] ElementTree memory leak

2011-04-15 Thread kaifeng
kaifeng 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 1 1316 53155 47

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

2011-04-15 Thread Ezio Melotti
Ezio Melotti added the comment: Yes. The original report was for 2.6. I will apply the patch on all the 4 branches then. -- ___ Python tracker ___ ___

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

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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: Unicode-width dependent optimizationleads

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

2011-04-15 Thread Ezio Melotti
Ezio Melotti added the comment: Do you think this should go in 3.1 too? -- versions: +Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue11849] ElementTree memory leak

2011-04-15 Thread Florent Xicluna
Florent Xicluna 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 -0 11,7 0,1

[issue11849] ElementTree memory leak

2011-04-15 Thread Florent Xicluna
Florent Xicluna 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: http://bugs.python.org/file21670/issue11849_tes

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

2011-04-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: JoeKuan wrote: > > New submission from JoeKuan : > 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) time.mktime(a) > Traceback

  1   2   >