Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Georg Brandl
Raymond Hettinger wrote: Aahz wrote: On Tue, Jul 18, 2006, Raymond Hettinger wrote: P.S. The dictionary approach to context objects should likely be abandoned for the C version. If the API has to change a bit, then so be it. Why do you say that? The rest I agree with; seems to

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Nick Coghlan
Georg Brandl wrote: Raymond Hettinger wrote: If the current approach gets in their way, the C implementers should feel free to make an alternate design choice. +1. (cDecimal is an ugly name, but a sound concept) I don't know what progress Mateusz' work has made until now, but he wrote

Re: [Python-Dev] [Python-checkins] r50708 - in python/trunk: Lib/test/test_sys.py Misc/NEWS Python/pystate.c

2006-07-19 Thread Matt Fleming
On 19/07/06, Thomas Heller [EMAIL PROTECTED] wrote: Neal Norwitz schrieb: On 7/18/06, Jack Diederich [EMAIL PROTECTED] wrote: were pre-2003 and talking about mod_python. HURD and FreeBSD came up a couple times. Do we need to add more *BSD buildbots? Yes. We only have OpenBSD now.

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Raymond Hettinger
I think it was tripping-up the folks working on the C implementation. Georg can speak to it more directly. IIRC, the issue was that the context object exposed a dictionary which a user could update directly and there was no notification back to the surrounding object so it could

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Nick Maclaren
Georg Brandl [EMAIL PROTECTED] wrote: Even then, we need to drop the concept of having the flags as counters rather than booleans. Yes. Given that even Tim couldn't imagine a use case for counting the exceptions, I think it's sensible. Well, I can. There is a traditional, important use -

Re: [Python-Dev] logging module broken because of locale

2006-07-19 Thread Mihai Ibanescu
On Tue, Jul 18, 2006 at 02:55:56PM -0400, Fred L. Drake, Jr. wrote: On Tuesday 18 July 2006 14:52, Mihai Ibanescu wrote: Unicode might be a perfectly acceptable suggestion for others too. Are we still supporting builds that don't include Unicode? If so, that needs to be considered in a

[Python-Dev] Python sprint in NY and CA, Aug. 21-24

2006-07-19 Thread Jeremy Hylton
I'd like to repeat my invitation to spend a week at Google in California or New York for a Python sprint. We are hosting sprints at our offices in Mountain View and New York City the week of Aug. 21, Monday through Thursday. We're planning to work broadly on Python 2.6 and Python 3000. If

[Python-Dev] new security doc using object-capabilities

2006-07-19 Thread Brett Cannon
After various people suggesting object-capabilities, takling with Mark S. Miller of the E programming language, and the people Mark works with at HP Labs (who have been giving talks every week during this month here at Google on object-capabilities), I have decided to go with object-capabilities

Re: [Python-Dev] new security doc using object-capabilities

2006-07-19 Thread Ka-Ping Yee
On Wed, 19 Jul 2006, Brett Cannon wrote: I have decided to go with object-capabilities for securing interpreters. I have rewritten my design doc from scratch and deleted the old one. The new doc is named securing_python.txt and can be found through the svn web interface at

Re: [Python-Dev] new security doc using object-capabilities

2006-07-19 Thread Michael Foord
Brett Cannon wrote: After various people suggesting object-capabilities, takling with Mark S. Miller of the E programming language, and the people Mark works with at HP Labs (who have been giving talks every week during this month here at Google on object-capabilities), I have decided to go

Re: [Python-Dev] new security doc using object-capabilities

2006-07-19 Thread Michael Foord
Michael Foord wrote: Brett Cannon wrote: After various people suggesting object-capabilities, takling with Mark S. Miller of the E programming language, and the people Mark works with at HP Labs (who have been giving talks every week during this month here at Google on

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Tim Peters
... [Raymond] Even then, we need to drop the concept of having the flags as counters rather than booleans. [Georg Brandl] Yes. Given that even Tim couldn't imagine a use case for counting the exceptions, I think it's sensible. That's not it -- someone will find a use for anything. It's

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Greg Ewing
Nick Maclaren wrote: When such arithmetic is implemented in hardware, it is normal for exceptional cases to be handled by interrupt, and that is VERY expensive ... It then becomes important to know how many of the things you got, to know whether it is worth putting code in to avoid them or

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-19 Thread Raymond Hettinger
Tim Peters wrote: ... [Raymond] Even then, we need to drop the concept of having the flags as counters rather than booleans. [Georg Brandl] Yes. Given that even Tim couldn't imagine a use case for counting the exceptions, I think it's sensible.

Re: [Python-Dev] Pickling objects that return string from reduce

2006-07-19 Thread Bruce Christensen
Martin v. Löwis wrote: If obj has no __module__ attribute (or if it is None), pickle (didn't check cPickle) also does for n, module in sys.module.items(): if module-ignored: continue if getattr(module, result, None) is obj: break # use n as module name If obj does have a

[Python-Dev] Weekly Python Patch/Bug Summary

2006-07-19 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 398 open ( +5) / 3334 closed (+19) / 3732 total (+24) Bugs: 904 open ( -4) / 6011 closed (+36) / 6915 total (+32) RFE : 222 open ( -1) / 231 closed ( +2) / 453 total ( +1) New / Reopened Patches __ Fix for