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

2008-02-13 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: r60785 speeds the benchmark up from 10.536s to 4.910s (on top of whatever my __instancecheck__ fix did). Here are the remaining interesting-looking calls: ncalls tottime percall cumtime percall filename:lineno(function) ... 10.2070.207

[issue2102] New style vs. old style classes __ror__() operator overloading

2008-02-13 Thread Wummel
Wummel added the comment: Ah yes, I did not realize the "different types" part. So it is indeed an old-style class problem, which should behave just like the new-style classes but they don't. However I would probably not fix this in the 2.x series of Python. Changing the behaviour would break co

[issue1571112] simple moves freeze IDLE

2008-02-13 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: backported 2.5.2c1 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2008-02-13 Thread Daniel Arbuckle
Changes by Daniel Arbuckle: Added file: http://bugs.python.org/file9428/asyn_py3k_restructured.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-li

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2008-02-13 Thread Daniel Arbuckle
Changes by Daniel Arbuckle: Added file: http://bugs.python.org/file9427/asyn_py3k.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1562716] Spurious Tabnanny error

2008-02-13 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: backported 2.5.2c1 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: I should have added: You can also check the in-development version of the documentation at docs.python.org/dev to see if it's already been fixed. __ Tracker <[EMAIL PROTECTED]> ___

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: I'm guessing that you used the 'search in open issues' box at the top right. Of course, the problem is that this issue was already closed. Instead, go to 'Search' on the left-hand side under 'Issues', enter 'property' and '__x' into the 'All text' box, select

[issue1647] IDLE messes around with sys.exitfunc

2008-02-13 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: backported 2.5.2c1 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1743] IDLE fails to launch

2008-02-13 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: backported 2.5.2c1 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer
bob gailer added the comment: I tried to search for a prior report with no success. How should I have done tha __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2008-02-13 Thread Bill Janssen
Changes by Bill Janssen: -- nosy: +janssen __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue2062] IDLE - autocompletion logic optimization

2008-02-13 Thread Tal Einat
Tal Einat added the comment: After fixing the aforementioned bug and testing as thoroughly as I can, here is a revised patch. Added file: http://bugs.python.org/file9426/IDLE_AutoComplete_complete_string_optimization.080214.patch __ Tracker <[EMAIL PROTECTED]> <

[issue1813] Codec lookup failing under turkish locale

2008-02-13 Thread Árni Már Jónsson
Changes by Árni Már Jónsson: -- components: +Library (Lib) -Interpreter Core __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1678380] 0.0 and -0.0 identified, with surprising results

2008-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: Closing. -- status: pending -> closed _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! It looks like this was previously reported in issue #1575746, and has been fixed in the 2.5 maintenance branch and the trunk. Python 2.5.2 should be out any day now; the fix should then hit docs.python.org. -- nosy: +marketdick

[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer
New submission from bob gailer: Library Reference 2.1 under property(): class C(object): def __init__(self): self.__x = None __x should be _x -- components: Documentation messages: 62368 nosy: bgailer severity: normal status: open title: __x should be _x in documentation of property

[issue1762] Inheriting from ABCs makes classes slower.

2008-02-13 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: I've committed the inlined option as r60762. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsu

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Mike Coleman
Mike Coleman added the comment: The other place I see the constant is in asyncore.py: class dispatcher_with_send(dispatcher): def __init__(self, sock=None, map=None): dispatcher.__init__(self, sock, map) self.out_buffer = '' def initiate_send(self): num_sent = 0

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > The value is used there, but this is not effective in causing larger > packets to be sent, which I noticed by watching with strace. I think > the reason for this is that 'refill_buffer' will only make at most one > call to simple_producer.more, and that cal

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Mike Coleman
Mike Coleman added the comment: The value is used there, but this is not effective in causing larger packets to be sent, which I noticed by watching with strace. I think the reason for this is that 'refill_buffer' will only make at most one call to simple_producer.more, and that call will produc

[issue2092] PEP-3100 should reflect removal of 'cmp' parameter in sort() and sorted()

2008-02-13 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r60759 -- assignee: rhettinger -> kbk resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2102] New style classes __ror__() operator overloading problem

2008-02-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Doc says: http://docs.python.org/dev/reference/datamodel.html#object.__ror__ """ These functions are only called if the left operand does not support the corresponding operation and the operands are of different types. For operands of the same type, it is

[issue2102] New style classes __ror__() operator overloading problem

2008-02-13 Thread Wummel
New submission from Wummel: Hi, the attached code in t.py fails to run: class C (object): def __ror__ (self, other): return 42 print C() | C() $ python t.py Traceback (most recent call last): File "t.py", line 5, in ? print C() | C() TypeError: unsupported operand type(s) for

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-02-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: ac_out_buffer_size value is already used when sending data. Look at initiate_send method: def initiate_send (self): obs = self.ac_out_buffer_size ... if self.ac_out_buffer and self.connected: try: num_se

[issue2101] xml.dom documentation doesn't match implementation

2008-02-13 Thread Stefan Seefeld
New submission from Stefan Seefeld: The docs at http://docs.python.org/lib/dom-element-objects.html claim that removeAttribute(name) silently ignores the attempt to remove an unknown attribute. However, the current implementation in the minidom module (part of _xmlplus) raises an xml.dom.NotFound

[issue2100] unit test UnicodeWarning

2008-02-13 Thread Joseph Armbruster
New submission from Joseph Armbruster: I receive the following warning when running the test_unicode_file unit tests out of the trunk (60758) python -E -tt ../../lib/test/regrtest.py -g "test_unicode_file" test_unicode_file D:\work\pytrunk\lib\test\test_unicode_file.py:103: UnicodeWarning: Unic

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >Which compiler are you using? And which errors did you get? VC6 + PSDK2003Feb. The error was same to http://svn.haxx.se/users/archive-2006-10/0557.shtml E:\Microsoft\PSDK\Include\ws2tcpip.h(593) : error C2632: 'int' followed by 'int' is illegal >causes an

[issue2097] typo in exception-handling tutorial

2008-02-13 Thread Facundo Batista
Facundo Batista added the comment: Already fixed: http://docs.python.org/dev/tutorial/errors.html -- nosy: +facundobatista resolution: -> out of date status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue2099] unclear error message on bug reporting

2008-02-13 Thread Facundo Batista
Facundo Batista added the comment: Moved this to the Meta Tracker (http://psf.upfronthosting.co.za/roundup/meta), issue 187. Thanks! -- nosy: +facundobatista resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2096] Reporting bugs page refers to old site

2008-02-13 Thread Facundo Batista
Facundo Batista added the comment: It's fixed in the trunk. If in doubt, always you can check in the state-of-the-art docs: http://docs.python.org/dev/ Thanks! -- nosy: +facundobatista resolution: -> out of date status: open -> closed __ Tracker <[E

[issue2065] trunk version does not compile with vs8 and vc6

2008-02-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Next, I tried to compile Modules/socketmodule.h's _MSC_VER >= 1300 > part but this didn't work. Which compiler are you using? And which errors did you get? __ Tracker <[EMAIL PROTECTED]>