[issue2702] pickling of large recursive structures crashes cPickle

2008-06-25 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: The tests pass on my machine (64 bit debian testing) with cpickle2.patch. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3167] math test fails on Solaris 10

2008-06-25 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Sorry, the flag *does* make a difference. Ignoring errno, the results for 32- and 64-bit do match. ___ Python tracker <[EMAIL PROTECTED]>

[issue3167] math test fails on Solaris 10

2008-06-25 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Unless I am doing something wrong, that flag does not fix the problem. #include #include #include int main(int argc, char *argv[]) { errno = 0; printf("%f %d\n", log(-HUGE_VAL), errno); errno = 0; printf("%f %d\n", log( HUG

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-06-25 Thread Phillip J. Eby
Phillip J. Eby <[EMAIL PROTECTED]> added the comment: I'm good with it; the issue with the comment in core.py was my only remaining objection. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Another version of the patch, that removes the self->nesting member and uses the Py_EnterRecursiveCall machinery. I prefer it because it takes into account the depth of the current python call stack. Added file: http://bugs.python.org/f

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: It seems that each self->nesting++ should be balanced with self->nesting--. Attached patch enables all tests and corrects the issue -- nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file10737/cpickle.patch ___

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Closing as "already resolved in the upcoming release" -- status: pending -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-25 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: +1 on removing the trailing L from the repr. +0 on trying to reduce the values to ints; that would be dead-end code since in 3.0 it's a non-issue. And it doesn't solve the problem with repr. ___ Python

[issue3203] sphinx - table of contents doesn't render correctly (html)

2008-06-25 Thread Gerard M. Flanagan
New submission from Gerard M. Flanagan <[EMAIL PROTECTED]>: A TOC tree should render in HTML as a single 'ul', but in certain circumstances it appears as multiple ul's. You can see the effect here: http://docs.python.org/dev/c-api/index.html and in fact in the Sphinx documentation itself:

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-06-25 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Formally, the beta deadline has passed, so no new features can be admitted. If pje is now happy with the code as it stands (not clear from the last message), I can ask for permission to commit it, anyway.

[issue3201] struct.Struct size attribute undocumented

2008-06-25 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: It's documented in the 2.6/3.0 docs: http://docs.python.org/dev/library/struct.html#id1. -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL

[issue3202] Wish: disable tests in unittest

2008-06-25 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: If you could convince Python-dev for something like this, I'd gladly implement it. In fact, I'm working implementing this for the Python test suite (It's called skipping). -- nosy: +benjamin.peterson priority: -> low versions: +Py

[issue3202] Wish: disable tests in unittest

2008-06-25 Thread Justin Mazzola Paluska
Changes by Justin Mazzola Paluska <[EMAIL PROTECTED]>: -- type: -> feature request ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pytho

[issue3202] Wish: disable tests in unittest

2008-06-25 Thread Justin Mazzola Paluska
Changes by Justin Mazzola Paluska <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10736/sample_tests.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3202] Wish: disable tests in unittest

2008-06-25 Thread Justin Mazzola Paluska
New submission from Justin Mazzola Paluska <[EMAIL PROTECTED]>: The attached patch (unittest-disable.patch) allows methods in unittest.TestCases to be "disabled". The patch is against Python2.5 from Debian: %python2.5 Python 2.5.2 (r252:60911, Apr 17 2008, 13:15:05) [GCC 4.2.3 (Debian 4.2.3-3)

[issue3087] Clean up Demos and Tools

2008-06-25 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Wed, Jun 25, 2008 at 2:08 PM, David <[EMAIL PROTECTED]> wrote: > > David <[EMAIL PROTECTED]> added the comment: > > I will take this one on. I'll download 3.x this weekend and begin. > What is the best way to proceed? Post each program

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-25 Thread Ori Avtalion
Ori Avtalion <[EMAIL PROTECTED]> added the comment: I think there's been a little misinterpretation of the standard in the comments above. It's important to note that RFC 2822 basically defines folding as "adding a CRLF before an existing whitespace in the original message". See http://tools.i

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Eric Sadit
Eric Sadit <[EMAIL PROTECTED]> added the comment: #!/usr/bin/python import sys import thread f = file("o.test","w") buff = " " * 1024 def run(): while 1: try: f.read(100) # f.write(buff) except Exception, e: print >>sys.stderr, "An except

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Eric Sadit
Eric Sadit <[EMAIL PROTECTED]> added the comment: The test script #!/usr/bin/python import sys import thread f = file("o.test","w") buff = " " * 1024 def run(): while 1: try: f.read(100) # f.write(buff) except Exception, e: print >>sys.s

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Eric Sadit
Eric Sadit <[EMAIL PROTECTED]> added the comment: Thanks Amaury I run a test script and Python 2.5.2 crashes, but 2.6b1 runs perfectly throwing a ValueError exception (Operation of closed file) in the reader/writer thread and "IOError: close() called during concurrent operation on the same file

[issue3179] cPickle is seriously broken

2008-06-25 Thread Facundo Batista
Changes by Facundo Batista <[EMAIL PROTECTED]>: -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3179] cPickle is seriously broken

2008-06-25 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: I reverted the patch, commented out the previous test, and included this one in the test suite, to never break it again, ;) I hope we now find a solution to the issue #2702. Thank you!! ___ Python tracke

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-25 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: I reverted the patch, because of #3179, so I'm reopening this. Note that I left the test in the suite, but commented out (if you find a patch that solves this, activate the test again). -- resolution: fixed -> status: closed -> ope

[issue3165] cPickle recursion problem

2008-06-25 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: I'm reverting this patch, see issue #3179. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3201] struct.Struct size attribute undocumented

2008-06-25 Thread Eric Vander Weele
New submission from Eric Vander Weele <[EMAIL PROTECTED]>: The .size attribute of struct.Struct is undocumented on http://docs.python.org/lib/struct-objects.html -- assignee: georg.brandl components: Documentation messages: 68743 nosy: ericvw, georg.brandl severity: normal status: open t

[issue3087] Clean up Demos and Tools

2008-06-25 Thread David
David <[EMAIL PROTECTED]> added the comment: I will take this one on. I'll download 3.x this weekend and begin. What is the best way to proceed? Post each program as it is changed or a note that no change is required? It can get lengthy if all of the programs are posted here. -- n

[issue3008] Let bin/oct/hex show floats

2008-06-25 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Attaching a patch that includes normalization to a leading 1. Added file: http://bugs.python.org/file10731/float8.diff ___ Python tracker <[EMAIL PROTECTED]> _

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Eric Sadit
Eric Sadit <[EMAIL PROTECTED]> added the comment: Ok, I will try to reproduce it in the python 2.6b1 version, and I report to you the result Saludos On Wed, Jun 25, 2008 at 12:44 PM, Amaury Forgeot d'Arc < [EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-06-25 Thread Peter Fein
Peter Fein <[EMAIL PROTECTED]> added the comment: Is this going to make the 2.6 release? The lack of this option causes grief on MacPorts. Just wondering if there's anything I could do to move this along, as a cursory reading shows everyone to be happy... -- nosy: +pfein ___

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This problem may be a duplicate of issue815646 and issue595601, and was probably corrected with r62195. Can you please check with the new python version 2.6b1 ? -- nosy: +amaury.forgeotdarc resolution: -> out of date status: o

[issue3008] Let bin/oct/hex show floats

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Well, here's some Python code to output C99-style hexadecimal representations of floats. It's not quite the same as Java's output, which also special cases IEEE 754 subnormals (writing them with a fixed exponent of -1022 and a '0' before t

[issue3200] Python's crash in heavy multithreading IO operations

2008-06-25 Thread Eric Sadit
New submission from Eric Sadit <[EMAIL PROTECTED]>: Hello, I found a rare bug in heavy multithreading IO operations. The bug arises under a stupid sequence of I/O operations. The sequence is not a normal one, but the real problem is that the Python's interpreter crashes. The correct behavior sho

[issue3192] exec(open(filename)) doesn't work

2008-06-25 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: issue 1762972 supercedes this. -- nosy: +brett.cannon superseder: -> 'exec' does not accept what 'open' returns ___ Python tracker <[EMAIL PROTECTED]>

[issue3197] Documentation for fractions module needs work

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's a proposed new draft of the fractions documentation for 2.6. Apart from wording changes, it: - removes documentation for __floor__, __ceil__ and __round__, since those no longer exist in 2.6 - describes construction from a deci

[issue3008] Let bin/oct/hex show floats

2008-06-25 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: How would the algorithm need to change to support leading-1 normalization? ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-25 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: +1 on removing the L. Also, it would be nice if reduced fractions were restored to ints after the gcd step: >>> Fraction(1*10**18, 3*10**18) Fraction(1L, 3L) ___ Python tracker <[EMAIL PROTECTED]>

[issue3199] 2.6b1 Build Fails On OSX 10.5

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Fixed in r64526. Thanks for the report! -- nosy: +marketdickinson resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3199] 2.6b1 Build Fails On OSX 10.5

2008-06-25 Thread John Abel
New submission from John Abel <[EMAIL PROTECTED]>: The build process on Leopard fails: cd Mac && make altinstallunixtools DESTDIR="" if [ ! -d "/usr/local/bin" ]; then \ /usr/bin/install -c -d -m 755 "/usr/local/bin" ;\ fi for fn in python2.6 pythonw2.6 idle2.6 \

[issue3198] strings don't seem to roundtrip with repr()

2008-06-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: repr() is supposed to round-trip with eval() for common types. str() is the function that round-trips with the original type: >>> x = 5 >>> x == int(str(x)) True >>> x = "Test Text" >>> x == str(str(x))# :-) True -- nosy:

[issue3198] strings don't seem to roundtrip with repr()

2008-06-25 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: With 2.5.2 and 30b1 strings don't round trip like numbers do. I guess it has been like this a long time so isn't a bug, but it does seem inconsistent. Both 2.5.2 and 30b1: >>> x = 5 >>> x == int(repr(x)) True >>> x = "Test Text" >>> x =

[issue678464] Docs don't define sequence-ness very well

2008-06-25 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: What is the bug actually? "for k in s" is defined to work on any iterable, not only on sequences. And "iterable" is clearly defined, it's sufficient to check whether s.__iter__ exists or whether iter(s) succeeds... -- nosy: +pitrou _

[issue3194] Demo/loop.c passing "char *" instead of "wchar_t *"

2008-06-25 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Martin, you made the changes. Could you look at this, please? -- assignee: -> loewis nosy: +benjamin.peterson, loewis ___ Python tracker <[EMAIL PROTECTED]> _

[issue3195] invalid conversion xml.etree.ElementTree.Element object to boolean

2008-06-25 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3196] Option in pydoc to show docs from private methods

2008-06-25 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- versions: +Python 2.7 -Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Py

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: I'm reopening this to propose a last-minute minor change: Can we remove the trailing 'L' from the numerator and denominator in the repr of a Fraction instance? E.g., >>> x = Fraction('9.876543210') >>> x Fraction(987654321L, 1L) >>>

[issue3197] Documentation for fractions module needs work

2008-06-25 Thread Mark Dickinson
New submission from Mark Dickinson <[EMAIL PROTECTED]>: The documentation for the fractions module needs some rewriting---it contains minor inaccuracies, outdated statements (e.g. the regex is incomplete), and there are places that could use some clarification (e.g. the description of __round_

[issue3195] invalid conversion xml.etree.ElementTree.Element object to boolean

2008-06-25 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Indeed, this is not a bug, although it can be misleading. Generally, if you test for None, it is better to write "if x is None", it is at the same time more accurate, more explicit for someone reading your code, and also executes faster than "

[issue3196] Option in pydoc to show docs from private methods

2008-06-25 Thread Morten Lied Johansen
New submission from Morten Lied Johansen <[EMAIL PROTECTED]>: Currently, running pydoc on a module will show you the documentation on all regular methods, and all special methods (starting and ending in double underscores). Private methods (starting with a single underscore) are not included.

[issue3195] invalid conversion xml.etree.ElementTree.Element object to boolean

2008-06-25 Thread Andrii V. Mishkovskyi
Andrii V. Mishkovskyi <[EMAIL PROTECTED]> added the comment: To quote Python Library Reference, paragraph 3.1: """Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below. The following values are considered false: [skipped] - i

[issue3195] invalid conversion xml.etree.ElementTree.Element object to boolean

2008-06-25 Thread Pavel Strashkin
New submission from Pavel Strashkin <[EMAIL PROTECTED]>: Python 2.5.2 (r252:60911, May 7 2008, 15:19:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.etree.ElementTree import Element >>> e = Element('Test', {'at

[issue3167] math test fails on Solaris 10

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Nice reply from zal. His conclusion: > The short answer to your question is to use the cc -xlibmieee > option (and not rely on errno in the case of log(-Inf)) if you > would like to see results in the spirit of IEEE 754. It sounds like usin

[issue3008] Let bin/oct/hex show floats

2008-06-25 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > -1 on Nick's suggestion to normalize hex output so that nearby floats > have nearby reprs. This unnecessarily complicates a simple, straight- > forward presentation. In the paper referenced by Terry Reedy, > normalized presentations were

[issue1524] os.system() fails for commands with multiple quoted file names

2008-06-25 Thread daniel.weyh
daniel.weyh <[EMAIL PROTECTED]> added the comment: Got similiar problem. Think it's a thing with the pipe '>'. Try calling the windows-shell (e.g. C:\WINDOWS\system32\cmd.exe) with '/C' and your comman dline after that (in quotes). > subprocess.call(r'C:\WINDOWS\system32\cmd.exe /C "YourCommand