Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread Neal Norwitz
On Jan 10, 2008 8:01 AM, Joseph Armbruster <[EMAIL PROTECTED]> wrote: > I am not a developer but i'm interested in browsing it. Is it > possible to be added? Yes, I've added you to the list. I'll probably send the list off tomorrow, so let me know if you would like to be added. n -- > > > On Ja

Re: [Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

2008-01-10 Thread Scott David Daniels
Reed O'Brien wrote: > On Jan 9, 2008, at 1:48 AM, Jeroen Ruigrok van der Werven wrote: >> -On [20080108 17:07], Christian Heimes ([EMAIL PROTECTED]) wrote: >>> Python's _winreg module and pywin32 expose several functions to >>> get the paths from the registry but I don't think it has a simple >>>

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Phillip J. Eby
At 12:08 AM 1/11/2008 +0100, Christian Heimes wrote: >Phillip J. Eby wrote: > > Yes, that's the general idea. But what happens if you are in the middle > > of firing hooks for 'a', and a new hook for 'a.b.c' is added? What > > about a new hook for 'a'? > >If 'a' registers a new hook for a child o

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Phillip J. Eby
At 01:47 AM 1/11/2008 +0100, Christian Heimes wrote: >Phillip J. Eby wrote: > > At 11:45 PM 1/10/2008 +0100, Christian Heimes wrote: > >> In my version a hook is immediately called when the the registry value > >> is set to None. When a hook is registered for a module during the > >> execution of t

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Christian Heimes
Phillip J. Eby wrote: > At 11:45 PM 1/10/2008 +0100, Christian Heimes wrote: >> In my version a hook is immediately called when the the registry value >> is set to None. When a hook is registered for a module during the >> execution of the callback then the hook is fired directly and not after >> t

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Phillip J. Eby
At 11:45 PM 1/10/2008 +0100, Christian Heimes wrote: >In my version a hook is immediately called when the the registry value >is set to None. When a hook is registered for a module during the >execution of the callback then the hook is fired directly and not after >the existing hooks are called. Is

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Christian Heimes
Phillip J. Eby wrote: > Yes, that's the general idea. But what happens if you are in the middle > of firing hooks for 'a', and a new hook for 'a.b.c' is added? What > about a new hook for 'a'? If 'a' registers a new hook for a child of 'a' (e.g. 'a.b.c' or 'a.f') then the new hooks are called wi

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Christian Heimes
Phillip J. Eby wrote: >> I'm not setting the hooks to Py_None before the hook are called. Err, make that NOW, not NOT ... stupid typo. I'm NOW setting the hooks to Py_None before the hooks are called. > That's fine, but here's a different catch: are you iterating over the > hooks by taking the

[Python-Dev] distutils.cygwinccompiler: invalid executable for interpreters

2008-01-10 Thread Alexey Borzenkov
Hi everyone, Some time ago I've stumbled upon a problem with compiling py2exe with mingw: it resulted in invalid executable run.exe. At first I dismissed it as some very strange problem, but recently I decided to look into it again and found that the reason for this is a .def file, supplied during

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Phillip J. Eby
At 09:40 PM 1/10/2008 +0100, Christian Heimes wrote: >Phillip J. Eby wrote: >[...] > > > There's also one twist that I haven't sorted out yet: "Importing" > > guarantees that a parent module 'foo' will have a 'bar' attribute for > > the 'foo.bar' module, if 'foo.bar' is lazy. It does this by > > r

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Christian Heimes
Phillip J. Eby wrote: [...] > There's also one twist that I haven't sorted out yet: "Importing" > guarantees that a parent module 'foo' will have a 'bar' attribute for > the 'foo.bar' module, if 'foo.bar' is lazy. It does this by > registering a callback, ideally *before* any other callback is

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Eric Smith
Guido van Rossum wrote: > On Jan 10, 2008 9:57 AM, Eric Smith <[EMAIL PROTECTED]> wrote: >> Eric Smith wrote: >>> 1: How should the builtin format() work? It takes 2 parameters, an >>> object o and a string s, and returns o.__format__(s). If s is None, it >>> returns o.__format__(empty_string).

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Guido van Rossum
On Jan 10, 2008 9:57 AM, Eric Smith <[EMAIL PROTECTED]> wrote: > Eric Smith wrote: > > (I'm posting to python-dev, because this isn't strictly 3.0 related. > > Hopefully most people read it in addition to python-3000). > > > > I'm working on backporting the changes I made for PEP 3101 (Advanced > >

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Eric Smith
Eric Smith wrote: > (I'm posting to python-dev, because this isn't strictly 3.0 related. > Hopefully most people read it in addition to python-3000). > > I'm working on backporting the changes I made for PEP 3101 (Advanced > String Formatting) to the trunk, in order to meet the pre-PyCon release >

Re: [Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

2008-01-10 Thread Phillip J. Eby
At 10:47 AM 1/10/2008 +, Paul Moore wrote: >On 09/01/2008, Steve Holden <[EMAIL PROTECTED]> wrote: > > The idea that users would /program their own computers/ was totally > > alien to the Windows mindset. > >Actually, the alien idea is that more than one person would use the >same (Windows) com

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Phillip J. Eby
At 07:22 PM 1/10/2008 +1000, Nick Coghlan wrote: >Christian Heimes wrote: > > A module is successfully loaded > > ''' > > > > The import machinery checks if sys.post_import_hooks contains post import > > hooks for the newly loaded module. If hooks are found then the hook

Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread Joseph Armbruster
I am not a developer but i'm interested in browsing it. Is it possible to be added? On Jan 10, 2008 10:57 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Neal Norwitz wrote: > > I think only Coverity can add people. You can send them a message if > > you would like to be added: [EMAIL PROTECTE

Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread Christian Heimes
Neal Norwitz wrote: > I think only Coverity can add people. You can send them a message if > you would like to be added: [EMAIL PROTECTED] Or you can send > mail to me and I can forward along all the people that would like to > be added. > > I'll wait a few days to collect names so I can batch u

Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread Christian Heimes
Neal Norwitz wrote: > For traceback.c, namebuf defined on line 155 should be moved out one > block since filename is an alias to namebuf and it is used outside the > current scope. I think this is unlikely to be a problem in practice, > but is technically wrong and should be fixed. Agreed, the ea

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Eric Smith
M.-A. Lemburg wrote: > On 2008-01-10 14:31, Eric Smith wrote: >> (I'm posting to python-dev, because this isn't strictly 3.0 related. >> Hopefully most people read it in addition to python-3000). >> >> I'm working on backporting the changes I made for PEP 3101 (Advanced >> String Formatting) to the

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 10, 2008, at 9:07 AM, M.-A. Lemburg wrote: > On 2008-01-10 14:31, Eric Smith wrote: >> (I'm posting to python-dev, because this isn't strictly 3.0 related. >> Hopefully most people read it in addition to python-3000). >> >> I'm working on backp

Re: [Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread M.-A. Lemburg
On 2008-01-10 14:31, Eric Smith wrote: > (I'm posting to python-dev, because this isn't strictly 3.0 related. > Hopefully most people read it in addition to python-3000). > > I'm working on backporting the changes I made for PEP 3101 (Advanced > String Formatting) to the trunk, in order to meet th

[Python-Dev] Backporting PEP 3101 to 2.6

2008-01-10 Thread Eric Smith
(I'm posting to python-dev, because this isn't strictly 3.0 related. Hopefully most people read it in addition to python-3000). I'm working on backporting the changes I made for PEP 3101 (Advanced String Formatting) to the trunk, in order to meet the pre-PyCon release date for 2.6a1. I have a few

Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread A.M. Kuchling
On Wed, Jan 09, 2008 at 09:11:21PM -0800, Neal Norwitz wrote: > For mmapmodule.c, fd should be checked for -1 before calling stat on line > 1064. On looking at this, it doesn't seem like an actual problem. fstat(-1, ...) returns a -1 and errno is set to EBADF, 'bad file descriptor'. /*

Re: [Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-10 Thread A.M. Kuchling
On Wed, Jan 09, 2008 at 09:11:21PM -0800, Neal Norwitz wrote: > For mmapmodule.c, fd should be checked for -1 before calling stat on line > 1064. I'll fix the mmap problem. --amk ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

2008-01-10 Thread Paul Moore
On 09/01/2008, Steve Holden <[EMAIL PROTECTED]> wrote: > The idea that users would /program their own computers/ was totally > alien to the Windows mindset. Actually, the alien idea is that more than one person would use the same (Windows) computer. Not surprising as these were *personal* computer

Re: [Python-Dev] PEP: Post import hooks

2008-01-10 Thread Nick Coghlan
Christian Heimes wrote: > A module is successfully loaded > ''' > > The import machinery checks if sys.post_import_hooks contains post import > hooks for the newly loaded module. If hooks are found then the hooks are > called in the order they were registered with the m

Re: [Python-Dev] some bugs that need attention

2008-01-10 Thread Nick Coghlan
Ralf Schmitt wrote: > Hi, > > I've taken a look at some bugs in the bugtracker. I think these should > be closed: > > http://bugs.python.org/issue1720992 is about automatic imports. > > http://bugs.python.org/issue1448325 > and > http://bugs.python.org/issue1566086 > > is about the regular exp