[Python-Dev] Floating point test_pow failure on the alpha Debian buildbot

2007-07-26 Thread Nick Coghlan
test_pow is failing on the alpha Debian buildbot, complaining that a negative number can't be raised to a fractional power. Now, to work around some bugs in platform implementations of math.fpow(), pow() does its own check to see if the exponent is an integer. The way pow() does that check is

[Python-Dev] test_asyncore fails intermittently on Darwin

2007-07-26 Thread Hasan Diwan
test_asyncore fails intermittently on Darwin in trunk rev 56558; it seems a matter of executing the test too fast and not waiting for the TCP_WAIT state to expire. I think somebody encountered this problem previously with another module (socket_server) and I'm unsure how that was sorted. --

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Greg Ewing
[EMAIL PROTECTED] wrote: Me, I find it easier to read code which is displayed or printed with monospaced fonts. Note, however, that I've been programming for 30 years. I started with IBM punch cards, so I might be a bit biased. I normally use monospaced fonts for Python, but in my Think

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Greg Ewing
Pete Forman wrote: Why do programming languages continue to assume use of a monospaced font? Programming *languages* don't -- I know of no (serious[1]) language that requires a monospaced font in order to work correctly. Even in Python, as long as you don't mix tabs and spaces, indentation

Re: [Python-Dev] test_asyncore fails intermittently on Darwin

2007-07-26 Thread Alan McIntyre
Thanks Hasan, I'll see if I can dig up what they did and make some changes to fix the asyncore tests. Regards, Alan On 7/26/07, Hasan Diwan [EMAIL PROTECTED] wrote: test_asyncore fails intermittently on Darwin in trunk rev 56558; it seems a matter of executing the test too fast and not waiting

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: Pete That points towards a way forward. Why do programming languages Pete continue to assume use of a monospaced font? It was natural when Pete we used punch cards and line printers, but now? Python relies on Pete the indentation but could be

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread skip
Pete That points towards a way forward. Why do programming languages Pete continue to assume use of a monospaced font? It was natural when Pete we used punch cards and line printers, but now? Python relies on Pete the indentation but could be flexible about other textual

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Stephen J. Turnbull
[EMAIL PROTECTED] writes: I started with IBM punch cards Definitely a character cell format. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Bill Janssen
The term French Spacing is used for two spaces after a period ending a sentence, for those wishing to do more research. I have not found any authoritative answer. This phrase sounded to me like one of the slurs the English invented during their various wars with the Dutch and the French (e.g.

Re: [Python-Dev] Floating point test_pow failure on the alpha Debian buildbot

2007-07-26 Thread Tim Peters
[Nick Coghlan] test_pow is failing on the alpha Debian buildbot, complaining that a negative number can't be raised to a fractional power. Now, to work around some bugs in platform implementations of math.fpow(), pow() does its own check to see if the exponent is an integer. The way pow()

[Python-Dev] [OT] Monospaced fonts

2007-07-26 Thread Georg Brandl
[EMAIL PROTECTED] schrieb: Pete That points towards a way forward. Why do programming languages Pete continue to assume use of a monospaced font? It was natural when Pete we used punch cards and line printers, but now? Python relies on Pete the indentation but could be

Re: [Python-Dev] Two spaces or one?

2007-07-26 Thread Pete Forman
The term French Spacing is used for two spaces after a period ending a sentence, for those wishing to do more research. I have not found any authoritative answer. The balance has been towards two spaces when using a monospaced font. That points towards a way forward. Why do programming

[Python-Dev] Weekly Python Patch/Bug Summary

2007-07-26 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 399 open ( +5) / 3836 closed ( +9) / 4235 total (+14) Bugs: 1056 open (+10) / 6776 closed ( +3) / 7832 total (+13) RFE : 263 open ( +1) / 294 closed ( +1) / 557 total ( +2) New / Reopened Patches __ utilize

[Python-Dev] interaction between locals, builtins and except clause

2007-07-26 Thread Lisandro Dalcin
Porting to Py3K, I modified a function like the followin, using a trick for it working in Py2.x . def __iter__(self): if self == _mpi.INFO_NULL: return try:range = xrange except: pass nkeys = _mpi.info_get_nkeys(self) for nthkey in

Re: [Python-Dev] interaction between locals, builtins and except clause

2007-07-26 Thread Georg Brandl
Lisandro Dalcin schrieb: Porting to Py3K, I modified a function like the followin, using a trick for it working in Py2.x . def __iter__(self): if self == _mpi.INFO_NULL: return try:range = xrange except: pass nkeys =