Re: [Python-Dev] __file__ is not always an absolute path

2010-02-17 Thread Dan Villiom Podlaski Christiansen
On 7 Feb 2010, at 05:27, exar...@twistedmatrix.com wrote: Do you know of a case where it's actually slow? If not, how convincing should this argument really be? Perhaps we can measure it on a few platforms before passing judgement. On Mac OS X at least, system calls are notoriously slow.

Re: [Python-Dev] embedding Python interpreter in non-console windows application

2010-02-17 Thread Stefan Behnel
stephen, 17.02.2010 06:49: THE PROBLEM: I am having a problem that I have seen asked quite a bit on the web, with little to no follow up. Note that this list is about developing the CPython core runtime, not about solving problems with Python code or Python usage. See the comp.lang.python

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Jeroen Ruigrok van der Werven
-On [20100217 03:19], Stuart Bishop (stu...@stuartbishop.net) wrote: The Debian, Ubuntu and I think Redhat packages all use the system zoneinfo database - there are hooks in there to support package maintainers that want to do this. This way the package can be included in the supported release

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Lennart Regebro
On Tue, Feb 16, 2010 at 13:42, Dirkjan Ochtman dirk...@ochtman.nl wrote: On Tue, Feb 16, 2010 at 13:05,  s...@pobox.com wrote:    Maybe an alternate sprint idea would be to incorporate dateutil into the    Python core: http://labix.org/python-dateutil Whoops...  (just waking up - still need

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Lennart Regebro
On Wed, Feb 17, 2010 at 12:32, Lennart Regebro rege...@gmail.com wrote: These kinds of wrappers exist in dateutils.tz. It would be great if that type of functionality could get into Pytz as well. A sprint to do this and fix the issues in the tracker should solve the issues, I think. There is

Re: [Python-Dev] math.hypot, complex.__abs__, and documentation

2010-02-17 Thread Steven D'Aprano
On Wed, 17 Feb 2010 10:06:01 am Mark Dickinson wrote: On Tue, Feb 16, 2010 at 10:46 PM, Steven D'Aprano st...@pearwood.info What's the justification for that convention? It seems wrong to me. It's difficult to do better than to point to Kahan's writings. See

Re: [Python-Dev] math.hypot, complex.__abs__, and documentation

2010-02-17 Thread Mark Dickinson
[With apologies for Steven for the duplicate email.] On Wed, Feb 17, 2010 at 12:22 PM, Steven D'Aprano st...@pearwood.info wrote: Well, who am I to question Kahan? Yes, there I go with the argument from authority. But while we shouldn't instantly accept Kahan's arguments just because he's

Re: [Python-Dev] __file__ is not always an absolute path

2010-02-17 Thread Baptiste Lepilleur
I did some quick measures out of curiosity. Performances seems clearly filesystem and O.S. dependent (and are likely deployment/configuration dependent). I did each test 3 times to ensure measure where consistent. Tests were done with ActivePython 2.6.3.7. * AIX 5.3: python26 -m timeit -s 'def

Re: [Python-Dev] embedding Python interpreter in non-console windows application

2010-02-17 Thread Amaury Forgeot d'Arc
Hi, 2010/2/17 stephen step...@blackroses.com Hello, THE PROBLEM: I am having a problem that I have seen asked quite a bit on the web, with little to no follow up. The problem is essentially this. When embedding (LoadLibraryA()) the python interpreter dll in a non-windows application

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Brett Cannon
Defaulting to UTC is not a good idea, which is why relevant methods take an argument to specify whether to be UTC (exact details are in the patch; don't remember exact details). On Feb 16, 2010 4:07 PM, Greg Ewing greg.ew...@canterbury.ac.nz wrote: Brett Cannon wrote: Issue 5094 already has a

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread skip
Lennart The timezone database is updated several times per year. You Lennart can *not* include it in the standard library. My guess is the data are updated several times per year, not the code. Can they not be separated? Skip ___ Python-Dev

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Lennart Regebro
On Wed, Feb 17, 2010 at 23:46, s...@pobox.com wrote:    Lennart The timezone database is updated several times per year. You    Lennart can *not* include it in the standard library. My guess is the data are updated several times per year, not the code.  Can they not be separated? Yes, but

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Ben Finney
s...@pobox.com writes: My guess is the data are updated several times per year, not the code. Can they not be separated? AIUI this discussion is about getting the ‘pytz’ library into the Python standard library. If the data is separate from the modules, the question then becomes how users on

Re: [Python-Dev] [issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-17 Thread MRAB
Vlastimil Brom wrote: Vlastimil Brom vlastimil.b...@gmail.com added the comment: I just tested the fix for unicode tracebacks and found some possibly weird results (not sure how/whether it should be fixed, as these inputs are indeed rather artificial...). (win XPp SP3 Czech, Python 2.6.4)

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-17 Thread Michael Foord
On 17 February 2010 23:01, Lennart Regebro rege...@gmail.com wrote: On Wed, Feb 17, 2010 at 23:46, s...@pobox.com wrote: Lennart The timezone database is updated several times per year. You Lennart can *not* include it in the standard library. My guess is the data are updated