[issue3049] Some 3k sizeof tests fail

2008-06-06 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r63985. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3098] sys.sizeof test fails with wide unicode

2008-06-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Are they any buildbots running with the "--enable-unicode=ucs4" option? Just curious. ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3048] getsizeof incorrect for Unicode strings

2008-06-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r64066. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3098] sys.sizeof test fails with wide unicode

2008-06-13 Thread Robert Schuppenies
Changes by Robert Schuppenies <[EMAIL PROTECTED]>: -- keywords: +patch Added file: http://bugs.python.org/file10623/maxunicode.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3098] sys.sizeof test fails with wide unicode

2008-06-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: sys.maxunicode is well defined to be either 0x for UCS-2 or 0x10 for UCS-4 (see PyUnicode_GetMax). Py_UNICODE_SIZE is set in pyconfig.h to be either 2 or 4 during configuration. When >= 4, Py_UNICODE_WIDE is set wh

[issue3098] sys.sizeof test fails with wide unicode

2008-06-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I think you're right that sizeof(Py_UNICODE) is the correct value to use. But could you please explain to me how PY_UNICODE_TYPE is set, I cannot find it. Also, len(u'\0'.encode('unicode-internal'

[issue3098] sys.sizeof test fails with wide unicode

2008-06-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Found it, thanks. Wrong use of grep :| ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3098] sys.sizeof test fails with wide unicode

2008-06-15 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: If I understand configure correctly, PY_UNICODE_TYPE is only set when a type matching the size of $unicode_size is found. And this is set to either 2 or 4. Thus, sizeof(Py_UNICODE) should always return 2 or 4. If you agree, I

[issue3098] sys.sizeof test fails with wide unicode

2008-06-15 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Correct is good, so here is a patch which exposes the size of Py_UNICODE via _testcapi. Added file: http://bugs.python.org/file10635/Py_UNICODE_SIZEOF.patch ___ Python tracker <[EMAIL

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-16 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: >>> import re >>> import sys >>> r = re.compile('') >>> sys.getsizeof(r) Traceback (most recent call last): File "", line 1, in AttributeError: __sizeof__ This applies t

[issue3130] In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4.

2008-06-17 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: This issue is a branch from issue3098. Below a summary of the discussion: Antoine Pitrou wrote: > It seems that in some UCS4 builds, sizeof(Py_UNICODE) could end > up being more than 4 if the native int type is itself la

[issue3098] sys.sizeof test fails with wide unicode

2008-06-17 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I followed Marc's advise and checked-in a corrected test. Besides, I opened a new issue to address the fallback solution for UCS4 and UCS2 (see issue3130). -- resolution: -> fixed status:

[issue2898] Add memory footprint query

2008-06-18 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Jean Brouwers wrote: > 1) In the first line of function dict_sizeof() > + res = sizeof(PyDictObject) + sizeof(mp->ma_table); > is the sizeof(mp->ma_table) counted twice? Yes, you are right. I'll fix th

[issue3151] elementtree serialization bug for weird namespace urls

2008-06-20 Thread robert forkel
New submission from robert forkel <[EMAIL PROTECTED]>: when serializing elementtrees with weird namespaces like {$stuff}, the generated xml is not valid: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 IDLE

[issue3147] tests for sys.getsizeof fail on win64

2008-06-26 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: The tests still do not pass on the AMD64 W2k8. Surprisingly, struct.calcsize behaves as expected, but sizeof() on the C level does not. The former seems to assumes long to be 4 byte in size, the latter 8! The tests pass until it co

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-26 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: What would be a good way to identify *all* possible types? When I started, I included all objects in /Objects, but obviously this is not sufficient. ___ Python tracker <[EMAIL PROTECTE

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-26 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: The attribute error is caused by pattern_getattr, which tries to find __sizeof__, fails and then sets the error message. I don't know if casting the error is the right thing to do. Actually, sys.getsizeof() should work

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: You are right, the rule is to not include referenced objects. But, and this has been rather informal up to now, I handled transparently cached information as something that is added to the memory used by an object (see unicode.

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I was refering to the fact that something on the C level is cached without the Python user ever noticing that it wasn't there before. Caching itself is no criteria, but allocating memory without giving the user a chance to find

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Okay, I get the point. With including unicode.defenc I already included a referenced object which was ruled out in the first place. And this for a good reason. What bugs me, though, is that this leaves out a potentially signi

[issue3147] tests for sys.getsizeof fail on win64

2008-06-29 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r64533. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-07-03 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Amaury, I was testing your patch and it turns out, that it will ignore any __sizeof__ attribute which may be available through getattr. I adapted it a bit, so now getsizeof will try to call the method on the passed object first, and

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-07-16 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r64842. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3391] Idle uses old showwarning signature

2008-07-17 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: Idle does not use the 'line' argument for its showwarning function. This results in the DeprecationWarning "functions overriding warnings.showwarning() must support the 'line' argument", or, whe

[issue3391] Idle uses old showwarning signature

2008-07-17 Thread Robert Schuppenies
Changes by Robert Schuppenies <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10927/verify.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-01 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: The problem does still exist (Python 2.6b2). I attached a patch for Tkinter.py which addresses this problem. It is the same as in the first proposed fix, but adds an additional check whether the menu item has a 'command'

[issue3498] mod_cls

2008-08-04 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: Using sphinx I get the following error if I want to document methods via automethod: reading sources... copyright glossary [..] refbrowser Exception occurred: File "[..]/doctools/sphinx/ext/autodoc.py", line 313,

[issue3528] TypeError when compiling with no translator

2008-08-08 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: I just ran 'make html' with the latest version and got this exception: loading translations [en]... Exception occurred: File "/home/bob/data/dvl/python/svn/doctools/sphinx/builder.py", line 184, in load_i1

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-10 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r65622. Backported to the release25-maint and merged into the py3k branch. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker <[EMAIL PR

[issue3546] Missing linebreak in ext.doctest output

2008-08-12 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: There is a linebreak missing in the doctest extension. See attached patch. -- assignee: georg.brandl components: Documentation tools (Sphinx) files: linebreak.patch keywords: patch messages: 71053 nosy: georg.

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-18 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: You are right. How about the attached patch, do you see any problems here? Tkinter seems to ignore any delete calls when either of the indices is None, so the deletion of commands may be ignored as well. But I couldn't find a

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-19 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I was thinking about returning in that new if statement, too, but decided not too. The reason is that I didn't want to anticipate _tkinter implementations, which may change (although not likely, still possible). Also, with the

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-21 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I am sry that you see it that way, I do not. I was given commit access solely for gsoc purposes and committing changes before a late release without review from a committer IMHO violates strict policies. I tried to get somebody to

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-22 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r65971. Backported to the release25-maint and merged into the py3k branch. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PR

[issue3669] sqlite3.Connection.iterdump docs pythonicity

2008-08-24 Thread Robert Lehmann
New submission from Robert Lehmann <[EMAIL PROTECTED]>: The `sqlite3` docs are a little unpythonic. When using `str.join` on `Connection.iterdump`, the example in the docs manually unpacks the generator using a LC. I propose this'd be improved. Patch attached. Same applies to th

[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: The dict, set, and deque iterators do not implement tp_traverse although they reference container objects. This can lead to reference cycles which will not be collected. The attached cycle.py script from Amaury demonstrates the p

[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
Changes by Robert Schuppenies <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11255/tp_traverse.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-08-26 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: sys.getsizeof returns wrong results for bool objects in Python 3000. Although bool objects use the same datatype as long objects, they are allocated differently. Thus, the inherited long_sizeof implementation is incorrect. The a

[issue3859] test_sys.Sizeof fails on win64

2008-09-13 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: You are right, it should be '3P'. When merging to py3k I changed the previous line, but not the one causing trouble. -- keywords: +patch Added file: http://bugs.python.org/file1148

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-14 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: As I understood the long object allocation it is implemented as "PyObject_MALLOC(sizeof(PyVarObject) + size*sizeof(digit))" to avoid this allocation of extra 2 bytes. So from my understanding, the number 0 allocate

[issue3680] Cycles with some iterator are leaking.

2008-09-14 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: > I think it's ok, since the underlying containers will get cleared, thus > breaking the cycle. What about the dictiter object which references a tuple (di_result)? Tuple does not implement tp_clear, but OTOH tuples

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-15 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: > What's the actual difference that this change makes? It would provide more accurate results, even in the light of being not perfect. > [..] each small_int takes a complete PyLongObject. If that was also > consi

[issue3859] test_sys.Sizeof fails on win64

2008-09-16 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r66480. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3943] IDLE won't start in 3.0rc1 "Subprocess didn't make connection...."

2008-09-22 Thread Robert Yodlowski
New submission from Robert Yodlowski <[EMAIL PROTECTED]>: I installed 3.0rc1 on a Win XP 2.4Gzh system with all current updates with no problems. Cmd line Python and docs work fine. Tried to start IDLE but got error message: "IDLE's subprocess didn't make connection. Ei

[issue3934] sphinx - building muppy docs fails on Linux

2008-09-23 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: This was fixed in r65489 (see issue3498). Using the current Sphinx trunk (http://svn.python.org/projects/doctools/trunk/sphinx) works for me. -- resolution: -> duplicate status: open

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-23 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Attached is a patch which takes the preallocation of small_ints into account. What do you think? Added file: http://bugs.python.org/file11568/smallints_sizeof.patch ___ Python tracker &

[issue3943] IDLE won't start in 3.0rc1 "Subprocess didn't make connection...."

2008-09-24 Thread Robert Yodlowski
Robert Yodlowski <[EMAIL PROTECTED]> added the comment: Amaury, I did as you suggested - running idle.py directly both from a command line and by clicking on it and the results were the same. Each time, I got the same error message window as before. In addition, several seconds before the

[issue3943] IDLE won't start in 3.0rc1 "Subprocess didn't make connection...."

2008-09-25 Thread Robert Yodlowski
Robert Yodlowski <[EMAIL PROTECTED]> added the comment: Amaury, my stupid! I must have forgotten to delete the run.pyc file before trying out the modified run.py as suggested in #3905 . It all works now and IDLE starts up just fine. Sorry and, thanks for the help.

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
New submission from Robert Yodlowski <[EMAIL PROTECTED]>: I just installed the 2.6 final release on my fully updated Win XP system. When I tried to run IDLE I got the same... "IDLE's subprocess didn't make connection. Either IDLE can't start subprocess or per

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
Robert Yodlowski <[EMAIL PROTECTED]> added the comment: Amaury, when I tried to run IDLE from the command line as you suggested I got: C:\>C:\python26\Lib\idlelib\idle.py IDLE Subprocess: socket error: An attempt was made to access a socket in a way forbidden by its access permissions,

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-05 Thread Robert Yodlowski
Robert Yodlowski <[EMAIL PROTECTED]> added the comment: Problem Solved. It was my firewall. When I ran IDLE from the command line (the RIGHT way this time), in addition to the error messages and popup windows that I got before, I also got a popup window from my firewall asking if I was w

[issue4058] markup in What's New in 2.6

2008-10-06 Thread Robert Lehmann
New submission from Robert Lehmann <[EMAIL PROTECTED]>: The markup in the Doc/whatsnew/2.6.rst document is somewhat messy in some places. I fixed indentation (spaces to tabs -- made some things readable in the docutils output but not in the source), code samples ("->" notati

[issue4059] sqlite3 docs incomplete

2008-10-06 Thread Robert Lehmann
New submission from Robert Lehmann <[EMAIL PROTECTED]>: The sqlite3 documentation misses Row and Cursor.description. Additionally it does not use the best markup in all places (missing links, basically, and forgotten .. class:: statements). A patch is attached. -- as

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-01-29 Thread Robert Buchholz
New submission from Robert Buchholz : Calling getresponse() on an httplib.HTTPConnection object returns a response object. Internally, the self.sock is handed over to the HTTPResponse object which transforms it into a file-like object. The response object is returned to the caller. If one

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-01-30 Thread Robert Xiao
Robert Xiao added the comment: It seems like this is actually a problem in Windows libc or something (tested using MinGW on Windows XP): #include main() { FILE *f = fopen("test", "wb"); fwrite("test", 1, 4, f); char buf[2048]; size_t k = frea

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-01 Thread Robert Buchholz
Robert Buchholz added the comment: An example cannot be constructed using the standard python socket class. As you point out, the response.will_close attribute is set correctly: The client is supposed to close to connect after completion of the request (as does the server). However, when the

[issue7501] python -m unittest path_to_suite_function errors

2010-02-05 Thread Robert Collins
Robert Collins added the comment: Its a common convention in zope.testing, trial, testtools, bzr, ... -- ___ Python tracker <http://bugs.python.org/issue7

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-21 Thread Robert Buchholz
Robert Buchholz added the comment: almost... HTTPConnection is calling close() on the socket object, but HTTPResponse still has an open file-like object from a previous makefile() call. That object still has an internal reference to the socket

[issue8221] 2to3 mishandles StringIO inside a package with an io.py module

2010-03-24 Thread Robert Kern
New submission from Robert Kern : When a module inside a package imports StringIO from cStringIO, it should change that to "from io import StringIO". However, if there is a module inside the package named io.py, 2to3 changes it to "from .io import StringIO". [bug23]

[issue8507] abc.abstractproperty does not copy docstring

2010-04-23 Thread Robert Escriva
New submission from Robert Escriva : Attached file shows interpreter session where the bug manifests. It was my expectation that abc.abstractproperty would copy the docstring just like property. Instead, the docstring is the one for abc.abstractproperty itself. -- components

[issue6312] httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

2010-04-27 Thread Robert Coup
Changes by Robert Coup : -- nosy: +rcoup ___ Python tracker <http://bugs.python.org/issue6312> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1533] Bug in range() function for large values

2010-05-01 Thread Robert Bradshaw
Robert Bradshaw added the comment: Thank you Alexander. Yes, there is still an issue for large operands, and the attached patch does fix it. Floats are explicitly checked for and rejected by PyArg_ParseTuple for the "l" format (as called by builtin_range) so to preserve this behav

[issue1533] Bug in range() function for large values

2007-11-30 Thread Robert Bradshaw
New submission from Robert Bradshaw: Range accepts arguments coerce-able into ints via __int__, but rejects arguments coerce-able into longs but to large to fit into an int. The problem is in handle_range_longs in bltinmodule.c:1527-1541. If they type is not an int or long, it should try to

[issue1533] Bug in range() function for large values

2007-11-30 Thread Robert Bradshaw
Robert Bradshaw added the comment: Yes, that is a workaround, but range(MyInt(n), MyInt(n+10)) should work for any valid value of n, not just some of them. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1758] Wrong link in documentation

2008-01-07 Thread Robert Lehmann
Robert Lehmann added the comment: This problem has been removed in the current version of the documentation (http://docs.python.org/dev/install/index.html) -- old docs aren't updated. It has an own section now (http://docs.python.org/dev/bugs.html). Issue can be closed. --

[issue1930] sys.maxint not found in Python 3.0a2

2008-01-24 Thread Robert Clark
Robert Clark added the comment: sys.maxint was changed to sys.maxsize, but this was not noted in the documentation. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1931] NameError: global name 'basestring' is not defined

2008-01-24 Thread Robert Clark
New submission from Robert Clark: File "/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py", line 1511, in __init__ if isinstance( expr, basestring ): NameError: global name 'basestring' is not defined -- messages: 61662 nosy: rclark severity:

[issue1930] sys.maxint not found in Python 3.0a2

2008-01-24 Thread Robert Clark
New submission from Robert Clark: File "/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py", line 971, in __init__ self.maxLen = sys.maxint AttributeError: 'module' object has no attribute 'maxint' -- messages: 61661 nosy: rclark sever

[issue1931] NameError: global name 'basestring' is not defined

2008-01-24 Thread Robert Clark
Robert Clark added the comment: basestring is in the builtins library for 2.5.1, but is not there in 3.0a2 Linux: RHEL40 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue2120] broken links in advocacy HOWTO

2008-02-14 Thread Robert Lehmann
Robert Lehmann added the comment: Aye, this patch removes the spaces and re-aligns the paragraph of the latter link. -- nosy: +lehmannro Added file: http://bugs.python.org/file9434/spaces.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue2120] broken links in advocacy HOWTO

2008-02-15 Thread Robert Lehmann
Robert Lehmann added the comment: Right, the second link requires a tilde -- I just tried the first one (which works without). You should change all lines to be 80 characters wide maximum, though (can quickly be done by any commiter, not worth a new patch IMO). The dash thing looks okay

[issue1533] Bug in range() function for large values

2008-02-21 Thread Robert Bradshaw
Robert Bradshaw added the comment: Yes, the error for xrange is more illustrative of the problem, but just shows that xrange has this a too. Why should xrange be invalid for non-word sized values (especially as range works)? Incidentally, just a week ago I had to write my own iterator for a

[issue1533] Bug in range() function for large values

2008-02-25 Thread Robert Bradshaw
Robert Bradshaw added the comment: Alexander Belopolsky's patch looks like the right fix for range() to me. The xrange limits still hold, but that should probably be a separate issue/ticket. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue2201] Documentation Section 4.4

2008-02-28 Thread Robert Lehmann
Robert Lehmann added the comment: In the example code from the tutorial you gave, there was still a comma separator between the string 'equals' and the reference `x`. This is missing when you entered the code, that's why Python is throwing an exception there. -- n

[issue687648] classic division in demos/ directory

2008-03-02 Thread Robert Schuppenies
Robert Schuppenies added the comment: The attached patch applies floor division to all classic divisions where only integer input was used, and true division where at least on input parameter was of non-integral type. In cmptree.py I replaced "int(size/dt)" with "size//dt"

[issue2227] time.strptime too strict? should it assume current year?

2008-03-20 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Applying the _strptime.diff patch broke the _strptime test("test_defaults"). Once you change the year, you also have to adapt the day of week, as this becomes dynamic, too. The rest remains the same, though. I attached

[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-03-21 Thread Robert E.
Robert E. <[EMAIL PROTECTED]> added the comment: >> FWIW, m2crypto already provides an FTP-TLS facility with an >> ftplib-compatible API. See http://chandlerproject.org/Projects/MeTooCrypto Right but m2crypto is not part of the standard library (and is not going to be any

[issue1731717] race condition in subprocess module

2008-03-28 Thread Robert Siemer
Robert Siemer <[EMAIL PROTECTED]> added the comment: Bad design stays bad design: the hope that pids don't get reused soon breaks two assumptions: 1) I don't have to wait() for a child process soon. It's the programs business. 2) Pids cycle: there are security patches t

[issue1731717] race condition in subprocess module

2008-03-29 Thread Robert Siemer
Robert Siemer <[EMAIL PROTECTED]> added the comment: Update for my comment: python2.5.2 does not show that problem. python2.4.5 did. I repeat, 2.5.2 does not clean up processes which are still referenced, but it does clean unreferenced ones. _ Tracker &

[issue2529] list/generator comprehension parser doesn't match spec

2008-04-01 Thread Robert Lehmann
Robert Lehmann <[EMAIL PROTECTED]> added the comment: Your example is parsed as [e for i in (j in ['a','b','c'])] and since `j` is not defined, you get a NameError. If it was defined, you would still be iterating a boolean (which is not defined). Grammatica

[issue1517495] memory leak threading or socketserver module

2008-04-04 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I can *not* confirm the leak. I tested using the provided scripts (with little modifications to log memory usage), using 1000 instead of 20 runs. I am running on Debian Linux and checked the reported Python 2.4.2 and the current

[issue1517495] memory leak threading or socketserver module

2008-04-04 Thread Robert Schuppenies
Changes by Robert Schuppenies <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file9942/memory2.6a2.csv _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue2688] Error when nesting many while loops

2008-04-25 Thread Robert Greimel
New submission from Robert Greimel <[EMAIL PROTECTED]>: nesting 20 while loops works OK. The 21st leads to the cryptic error message python: Python/compile.c:295: PyAST_Compile: Assertion `co || PyErr_Occurred()' failed. Abort when trying to execute the script. -- compo

[issue2688] Error when nesting many while loops

2008-04-25 Thread Robert Greimel
Robert Greimel <[EMAIL PROTECTED]> added the comment: Python 2.5 (r25:51908, Nov 6 2007, 15:55:44) from Fedora 7 (python-2.5-15.fc7) __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2816] Quote-type recognition bug

2008-05-11 Thread Robert Lehmann
Robert Lehmann <[EMAIL PROTECTED]> added the comment: It seems "single-quoted" doesn't mean the actual quotation sign used but rather how many you used. Compare the multiline triple quote syntax: $ cat foo.py """bar $ python foo.py File "foo.py",

[issue4435] Sphinx does not show failed doctests in quiet mode

2008-11-26 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: Sphinx does not show failed doctests when run in quiet mode. Any output from the tests seems to be suppressed. The same applies to the linkckeck builder. -- assignee: georg.brandl components: Documentation tools (

[issue4436] Sphinx latex writer crashes when encountering deep section levels

2008-11-26 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: The Sphinx latex writer crashes if a documentation has more than 7 levels in a section hierarchy. The LaTeXTranslator class defines 7 section names, each corresponding to a level. If a deeper level is encountered, no appropriate s

[issue1533] Bug in range() function for large values

2008-11-29 Thread Robert Bradshaw
Robert Bradshaw <[EMAIL PROTECTED]> added the comment: I think *both* behaviors are wrong, the 3.0 one is backwards incompatible, and the 2.7 one is inconsistent (accepting MyInt if it's < 32 bits, rejecting it for > 64 bits). For our particular use case, it is very annoying

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2008-12-09 Thread Robert Luce
New submission from Robert Luce <[EMAIL PROTECTED]>: Consider the library 'c_lib.so' consisting of a single function 'c_func' int c_func ( double *arg0, double *arg1, double *arg2, double *arg3, double *arg4, double *arg5, double *arg6) { printf(&qu

[issue4619] Invalid Behaviour When a Default Argument is a Mutable Object

2008-12-10 Thread Robert Hunger
New submission from Robert Hunger <[EMAIL PROTECTED]>: Reopening of issue 4181. Evaluating default parameter values when the function definition is executed is a design bug. Even the documentation of this behaviour (see http://docs.python.org/reference/compound_stmts.html#index-754) make

[issue4833] Explicit directories for zipfiles

2009-01-04 Thread Robert Schuppenies
New submission from Robert Schuppenies : We have an issue with the Python cheeseshop which is probably an issue with Python itself as well. When we create a zip file with standard linux tools ('zip os-zipped.zip *'), uploading it works fine. But if we use the zipfile module from Pyth

[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2009-01-21 Thread Robert Pyle
New submission from Robert Pyle : Seems like test_wav() could easily return the actual frame count by calling wave.py just as test_aifc() uses aifc.py. -- components: Library (Lib) messages: 80333 nosy: rpyle severity: normal status: open title: sndhdr.whathdr returns -1 for WAV file

[issue5034] itertools.fixlen

2009-01-22 Thread Robert Lehmann
New submission from Robert Lehmann : As raised recently on python-ideas [1]_, an itertools method fixing iterators to a certain length might be handy (where fixing is either cutting elements off or appending values). I appended a patch implementing this feature in Python/C, unit tests and

[issue4111] Add DTrace probes

2009-01-22 Thread Robert Kern
Changes by Robert Kern : -- nosy: +robert.kern ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5034] itertools.fixlen

2009-01-23 Thread Robert Lehmann
Robert Lehmann added the comment: When I started writing this patch this was actually what I intended. But having ``fixlen(range(3), 2)`` return 0 1 2 struck me as odd. Renaming the function to `pad` would help there indeed. It depends on which use case is more common: either fixing an

[issue5140] Some Built-in Functions entries in Library Manual are missing Permalinks

2009-02-02 Thread Robert Yodlowski
New submission from Robert Yodlowski : In http://docs.python.org/3.0/library/functions.html these function entries seem to be missing Permalinks. dict() frozenset() memoryview() set() Hope this helps. The Permalinks are a great idea. I hope you add lots more. ...Bob

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Robert Hancock
Robert Hancock added the comment: That's not really a meaningful difference, though.. if the application uses this code continuously then the conditions will pile up in memory until it fills up. -- nosy: +robhancock1 -robhancock ___ Python tr

[issue3976] pprint._safe_repr is not general enough in one instance

2009-02-04 Thread Robert Kern
Changes by Robert Kern : -- nosy: +robert.kern ___ Python tracker <http://bugs.python.org/issue3976> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-05 Thread Robert Xiao
Robert Xiao added the comment: In fact, it works for Python 2.4, 2.5, 2.6 and 3.0 from my rather limited testing. In Python 2.4: >>> u"\N{LATIN CAPITAL LETTER A}" u'A' >>> u"\N{MUSICAL SYMBOL DOUBLE SHARP}" u'\U0001d12a' In Python 3.0

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2019-08-22 Thread Robert Smallshire
Robert Smallshire added the comment: > * no forward movement for a year and half For most of that year and a half my pull-request was sitting in Github <https://github.com/python/cpython/pull/6121> awaiting review by two core devs, of which you Raymond, were one. I don't

<    1   2   3   4   5   6   7   8   9   10   >