[ python-Bugs-1416477 ] Inconsistency between StringIO and cStringIO
Bugs item #1416477, was opened at 2006-01-27 14:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416477&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Michael Kerrin (mkerrin) Assigned to: Nobody/Anonymous (nobody) Summary: Inconsistency between StringIO and cStringIO Initial Comment: The readline method for StringIO defalt argument for the size arguement is None while for all other file-like objects it is -1. So if we pass in -1 to the StringIO readline method, all lines are returned, again inconsistent with the other file-like objects, and if we pass in None to any other file-like object we get a TypeError, int required. The attached python script is a very simple example of what I mean. Note that this is causing me a lot of grief in trying to get tests to pass for a simple fix to an open source project. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416477&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1414697 ] inconsistency in help(set)
Bugs item #1414697, was opened at 2006-01-25 10:43 Message generated for change (Settings changed) made by rhettinger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1414697&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Gregory Petrosyan (gregory_p) >Assigned to: Raymond Hettinger (rhettinger) Summary: inconsistency in help(set) Initial Comment: >>> help(set) Help on class set in module __builtin__: class set(object) | set(iterable) --> set object | | Build an unordered collection. | | Methods defined here: | ... It would be better for docstring to be """Build an unordered collection with no duplicate elements.""" instead of """Build an unordered collection.""" -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1414697&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1416477 ] Inconsistency between StringIO and cStringIO
Bugs item #1416477, was opened at 2006-01-27 09:51 Message generated for change (Settings changed) made by rhettinger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416477&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Michael Kerrin (mkerrin) >Assigned to: Raymond Hettinger (rhettinger) Summary: Inconsistency between StringIO and cStringIO Initial Comment: The readline method for StringIO defalt argument for the size arguement is None while for all other file-like objects it is -1. So if we pass in -1 to the StringIO readline method, all lines are returned, again inconsistent with the other file-like objects, and if we pass in None to any other file-like object we get a TypeError, int required. The attached python script is a very simple example of what I mean. Note that this is causing me a lot of grief in trying to get tests to pass for a simple fix to an open source project. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416477&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1416544 ] Problem with SOAPpy on 64-bit systems
Bugs item #1416544, was opened at 2006-01-27 15:38 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416544&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Gustavo J. A. M. Carneiro (gustavo) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with SOAPpy on 64-bit systems Initial Comment: Python 2.4.2 (#2, Sep 30 2005, 22:19:27) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 I get a traceback in SOAPpy: File "/usr/lib/python2.4/site-packages/SOAPpy/Parser.py", line 852, in convertToBasicTypes if fpconst.isNaN(d): File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 90, in isNaN return (_exponent(value)==0x7ff and _mantissa(value)!=0) File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 72, in _exponent ll = _double_as_longs(dval) File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 51, in _double_as_longs tmp = struct.unpack('ll',struct.pack('d', dval)) error: unpack str size does not match format I'm on a AMD64 system. Thus 'l', which long, is 64-bits wide, that's why this fails. Changing 'll' to 'ii' seems to fix the problem, but I'm not expert on SOAP :) -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416544&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com