Re: [Python-Dev] [Python-checkins] peps: Note that ImportError will no longer be raised due to a missing __init__.py

2012-04-25 Thread Nick Coghlan
On Wed, Apr 25, 2012 at 2:56 AM, Jim Jewett jimjjew...@gmail.com wrote: On Thu, Apr 19, 2012 at 18:56, eric.smith wrote: +Note that an ImportError will no longer be raised for a directory +lacking an ``__init__.py`` file. Such a directory will now be imported +as a namespace package, whereas

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Georg Brandl
On 24.04.2012 19:48, sandro.tosi wrote: http://hg.python.org/cpython/rev/e0e421133d0f changeset: 76532:e0e421133d0f branch: 2.7 parent: 76527:22767284de99 user:Sandro Tosi sandro.t...@gmail.com date:Tue Apr 24 19:43:33 2012 +0200 summary: Issue #14448: mention

Re: [Python-Dev] [Python-checkins] Daily reference leaks (a2cf07135e4f): sum=6

2012-04-25 Thread Mark Shannon
solip...@pitrou.net wrote: results for a2cf07135e4f on branch default test_tempfile leaked [2, 2, 2] references, sum=6 These leaks are due to 6e5855854a2e: “Implement PEP 412: Key-sharing dictionaries (closes #13903)”. They both occur in tests

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Sandro Tosi
Hi Georg, thanks for the review! On Wed, Apr 25, 2012 at 09:37, Georg Brandl g.bra...@gmx.net wrote: On 24.04.2012 19:48, sandro.tosi wrote: http://hg.python.org/cpython/rev/e0e421133d0f changeset:   76532:e0e421133d0f branch:      2.7 parent:      76527:22767284de99 user:        Sandro

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-25 Thread Kristján Valur Jónsson
-Original Message- From: python-dev-bounces+kristjan=ccpgames@python.org [mailto:python-dev-bounces+kristjan=ccpgames@python.org] On Behalf Of mar...@v.loewis.de Sent: 24. apríl 2012 17:44 To: python-dev@python.org Subject: Re: [Python-Dev] cpython: Implement PEP 412:

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-25 Thread Mark Shannon
Kristján Valur Jónsson wrote: -Original Message- From: python-dev-bounces+kristjan=ccpgames@python.org [mailto:python-dev-bounces+kristjan=ccpgames@python.org] On Behalf Of mar...@v.loewis.de Sent: 24. apríl 2012 17:44 To: python-dev@python.org Subject: Re: [Python-Dev]

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Nick Coghlan
On Wed, Apr 25, 2012 at 6:21 PM, Sandro Tosi sandro.t...@gmail.com wrote: On Wed, Apr 25, 2012 at 09:37, Georg Brandl g.bra...@gmx.net wrote: Also, I'm not sure everybody knows what the Olson database is, so maybe that should be explained too. I had considered that, but then I found another

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-25 Thread Kristján Valur Jónsson
-Original Message- Take a look at the benchmark suite at http://hg.python.org/benchmarks/ The test runner has an -m option that profiles memory usage, you could take a look at how that is implemented Yes, out of process monitoring of memory as reported by the OS. We do gather

Re: [Python-Dev] [Python-checkins] cpython: Fix #3561. Add an option to place the Python installation into the Windows Path

2012-04-25 Thread Brian Curtin
On Wed, Apr 25, 2012 at 08:13, brian.curtin python-check...@python.org wrote: http://hg.python.org/cpython/rev/4e9f1017355f changeset:   76556:4e9f1017355f user:        Brian Curtin br...@python.org date:        Wed Apr 25 08:12:37 2012 -0500 summary:  Fix #3561. Add an option to place the

[Python-Dev] Building against system expat

2012-04-25 Thread Bohuslav Kabrda
Hi, I'm trying to build Python 3.2.3 against system expat library, that lies out of the ordinary directory structure (under /opt). I also have an older version of expat library in the system. No matter what shell variables or options I pass to configure and make, pyexpat gets linked against the

[Python-Dev] Building against system expat

2012-04-25 Thread Bohuslav Kabrda
Hi, I'm trying to build Python 3.2.3 against system expat library, that lies out of the ordinary directory structure (under /opt). I also have an older version of expat library in the system. No matter what shell variables or options I pass to configure and make, pyexpat gets linked against the

Re: [Python-Dev] netiquette on py-dev

2012-04-25 Thread Barry Warsaw
On Apr 25, 2012, at 12:44 PM, Stephen J. Turnbull wrote: Note that people who are really annoyed by the duplicates can set their Mailman accounts to no-dupes, and Mailman won't send the post to that person. (This has its disadvantages in principle -- no List-* headers and other list-specific

Re: [Python-Dev] netiquette on py-dev

2012-04-25 Thread Barry Warsaw
On Apr 25, 2012, at 01:58 PM, Chris Angelico wrote: I go the other way: hit Reply, and then replace the author's address with the list's. I'd much rather have a Reply List though. Unfortunately no decent webmail seems to have it, and I'm still looking for a decent non-web-mail client too. It's a

Re: [Python-Dev] (time) PEP 418 glossary V2

2012-04-25 Thread Steven D'Aprano
Stephen J. Turnbull wrote: On Wed, Apr 25, 2012 at 1:19 AM, Jim Jewett jimjjew...@gmail.com wrote: I'm still a little fuzzy on *why* it shouldn't count as a monotonic clock. So are the people who say it shouldn't count (unless you're speaking of the specific implementation on Unix systems,

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Sandro Tosi
On Wed, Apr 25, 2012 at 11:55, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Apr 25, 2012 at 6:21 PM, Sandro Tosi sandro.t...@gmail.com wrote: On Wed, Apr 25, 2012 at 09:37, Georg Brandl g.bra...@gmx.net wrote: Also, I'm not sure everybody knows what the Olson database is, so maybe that

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Georg Brandl
On 25.04.2012 19:21, Sandro Tosi wrote: On Wed, Apr 25, 2012 at 11:55, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Apr 25, 2012 at 6:21 PM, Sandro Tosi sandro.t...@gmail.com wrote: On Wed, Apr 25, 2012 at 09:37, Georg Brandl g.bra...@gmx.net wrote: Also, I'm not sure everybody knows what

[Python-Dev] Python 2.7.3 shared library, like _socket.pyd, cannot be loaded

2012-04-25 Thread Terry Tang
Hi There, I am integrating Python 2.7.3 into our system on Windows. We embedded Python 2.7.3 interpreter to our system. The problem we met is, our extended Python interpreter cannot load _socket.pyd when import socket is executed, for example. Here is the error: Traceback (most recent call

Re: [Python-Dev] Building against system expat

2012-04-25 Thread Georg Brandl
On 25.04.2012 15:42, Bohuslav Kabrda wrote: Hi, I'm trying to build Python 3.2.3 against system expat library, that lies out of the ordinary directory structure (under /opt). I also have an older version of expat library in the system. No matter what shell variables or options I pass to

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-25 Thread Martin v. Löwis
Benchmarks should measure memory usage too, of course. Sadly that is not possible in standard cPython. It's actually very easy in standard CPython, using sys.getsizeof. Yes, you can query each python object about how big it thinks it is. What I'm speaking of is more like: start_allocs,

[Python-Dev] [help wanted] - IrDA sockets support

2012-04-25 Thread Charles-François Natali
Hi, Issue #1522400 (http://bugs.python.org/issue1522400) has a patch adding IrDA socket support. It builds under Linux and Windows, however it cannot go any further because no developer involved in the issue has access to IrDA capable devices, which makes testing impossible. So, if you have

Re: [Python-Dev] Building against system expat

2012-04-25 Thread Georg Brandl
On 25.04.2012 20:44, Georg Brandl wrote: On 25.04.2012 15:42, Bohuslav Kabrda wrote: Hi, I'm trying to build Python 3.2.3 against system expat library, that lies out of the ordinary directory structure (under /opt). I also have an older version of expat library in the system. No matter what

[Python-Dev] Python 3 porting

2012-04-25 Thread Barry Warsaw
I want to take this opportunity to make folks aware of several Python 3 porting initiatives and resources. In Ubuntu 12.10, we are going to be making a big push to target all the applications and libraries on the desktop CDs to Python 3. While this is a goal of Ubuntu, the intent really is to

[Python-Dev] Assigning copyright...

2012-04-25 Thread stefan brunthaler
Hi, I only had little time to spend for my open sourcing efforts, which is why I could not get back to python-dev any time earlier... Yesterday I forward-ported my patches to revision 76549 (13c30fe3f427), which only took 25mins or so (primarly due to the small changes necessary to Python itself

Re: [Python-Dev] cpython (2.7): Issue #14448: mention pytz; patch by Andrew Svetlov

2012-04-25 Thread Nick Coghlan
On Thu, Apr 26, 2012 at 4:40 AM, Georg Brandl g.bra...@gmx.net wrote: Maybe it's useful to mention that that database is the one used on Linux (is it on other Unices?) and Windows has its own? pytz always uses the Olson/IANA database. I don't think we need to confuse matters further by

Re: [Python-Dev] netiquette on py-dev

2012-04-25 Thread Ben Finney
Stephen J. Turnbull step...@xemacs.org writes: I don't know of any webmail implementations that provide reply-to-list, so a lot of us end up using reply-to-all. Right, that puts the responsibility in the right place: the webmail software vendor needs to add a reply-to-list command, as has been

Re: [Python-Dev] Assigning copyright...

2012-04-25 Thread Éric Araujo
Hi Stefan, The PSF does not require copyright assignment (ugh!), only a contributor agreement. http://www.python.org/psf/contrib/contrib-form/ should give you all you need. Regards ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Building against system expat

2012-04-25 Thread Bohuslav Kabrda
- Original Message - On 25.04.2012 15:42, Bohuslav Kabrda wrote: Hi, I'm trying to build Python 3.2.3 against system expat library, that lies out of the ordinary directory structure (under /opt). I also have an older version of expat library in the system. No matter what shell

[Python-Dev] sys.implementation

2012-04-25 Thread Eric Snow
The proposal of adding sys.implementation has come up a couple times over the last few years. [1][2] While the reaction has been overwhelmingly positive, nothing has come of it. I've created a tracker issue and a patch: http://bugs.python.org/issue14673 The patch adds a struct sequence