Re: [Python-Dev] 2.5 status

2006-09-05 Thread Brett Cannon
On 9/5/06, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: Brett Cannon wrote:> On 9/4/06, Neal Norwitz <[EMAIL PROTECTED]> wrote:>>>> There are 3 bugs currently listed in PEP 356 as blocking:>> http://python.org/sf/1551432 - __unicode__ breaks on exception&

Re: [Python-Dev] 2.5 status

2006-09-07 Thread Brett Cannon
On 9/7/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: On 9/5/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>> > [MAL]> > The proper fix would be to introduce a tp_unicode slot and let> > this decide what to do, ie. call .__unicode__() methods on instances > > and u

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

2006-09-07 Thread Brett Cannon
On 9/6/06, Ka-Ping Yee <[EMAIL PROTECTED] > wrote: Hi Brett,Here are some comments on your proposal.  Sorry this took so long.I apologize if any of these comments are out of date (but also lookforward to your answers to some of the questions, as they'll help me understand some more of the details o

Re: [Python-Dev] 2.5 status

2006-09-09 Thread Brett Cannon
On 9/7/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: On 9/5/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>> > [MAL]> > The proper fix would be to introduce a tp_unicode slot and let> > this decide what to do, ie. call .__unicode__() methods on instances > > and u

Re: [Python-Dev] IronPython and AST branch

2006-09-16 Thread Brett Cannon
On 9/13/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote: CPython 2.5, which will be released Real Soon Now, is the firstversion to ship with new "AST branch", which have been in developmentfor a long time.AST branch uses ASDL, Abstract Syntax Description Language http://asdl.sourceforge.net/ to describ

Re: [Python-Dev] Grammar change in classdef

2006-09-16 Thread Brett Cannon
On 9/16/06, Talin <[EMAIL PROTECTED]> wrote: Lawrence Oluyede wrote:>>   That was my first thought as well.  Unfortunately a quick test shows>> that class Foo(): creates an old style class instead :(>> I think that's because until it'll be safe to break things we will > stick with classic by defaul

Re: [Python-Dev] New relative import issue

2006-09-18 Thread Brett Cannon
On 9/18/06, Greg Ewing <[EMAIL PROTECTED]> wrote: Armin Rigo wrote:> My (limited) understanding of the motivation for relative imports is> that they are only here as a transitional feature.  Fully-absolute> imports are the official future. Guido does seem to have a dislike for relative imports,but

Re: [Python-Dev] Exceptions and slicing

2006-09-20 Thread Brett Cannon
On 9/20/06, Thomas Heller <[EMAIL PROTECTED]> wrote: Is it an oversight that exception instances do no longer supportslicing in Python 2.5?This code works in 2.4, but no longer in 2.5:try:open("", "r")except IOError, details: print details[:]Technically, yes.  There is no entry in the sq_sl

Re: [Python-Dev] Exceptions and slicing

2006-09-20 Thread Brett Cannon
On 9/20/06, Thomas Heller <[EMAIL PROTECTED]> wrote: Brett Cannon schrieb:> On 9/20/06, Thomas Heller <[EMAIL PROTECTED]> wrote:>>>> Is it an oversight that exception instances do no longer support >> slicing in Python 2.5?>>>> This code works in 2

Re: [Python-Dev] win32 - results from Lib/test - 2.5 release-maint

2006-09-21 Thread Brett Cannon
On 9/21/06, Grzegorz Makarewicz <[EMAIL PROTECTED]> wrote: Hi,- *.txt files for unicode tests are downloaded from internet - I don'tlike this.Then don't use the urlfetch resource when running regrtest.py (which you did specify when you ran with ``-uall``). - __db.004 isn't removed after tests- init

Re: [Python-Dev] New relative import issue

2006-09-21 Thread Brett Cannon
luded a reimplementation of the built in import mechanism as> hooks. Is there any interest in this actually happening? I've been> looking for an interesting coding project for a while (although I > never have any free time...)There's a general desire to reimplement import entirely in

Re: [Python-Dev] Suggestion for a new built-in - flatten

2006-09-22 Thread Brett Cannon
On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Michael> There are several different possible approaches in pure Python,Michael> but is this an idea that has legs ?Why not add it to itertools?  Then, if you need a true list, just calllist() on the returned iterator. Yeah, this is a

Re: [Python-Dev] AST structure and maintenance branches

2006-09-23 Thread Brett Cannon
On 9/23/06, Anthony Baxter <[EMAIL PROTECTED]> wrote: I'd like to propose that the AST format returned by passing PyCF_ONLY_AST tocompile() get the same guarantee in maintenance branches as the bytecodeformat - that is, unless it's absolutely necessary, we'll keep it the same. Otherwise anyone tryi

[Python-Dev] difficulty of implementing phase 2 of PEP 302 in Python source

2006-09-27 Thread Brett Cannon
I am at the point with my security work that I need to consider how I am going to restrict importing modules.  My current plan is to basically implement phase 2 of PEP 302 and control imports through what importer objects are provided.  This work should lead to a meta_path importer for built-ins an

Re: [Python-Dev] difficulty of implementing phase 2 of PEP 302 in Python source

2006-09-27 Thread Brett Cannon
On 9/27/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: At 02:11 PM 9/27/2006 -0700, Brett Cannon wrote:>But it has been suggested here that the import machinery be rewritten in>Python.  Now I have never touched the import code since it has always had>the reputation of being less t

Re: [Python-Dev] difficulty of implementing phase 2 of PEP 302 in Python source

2006-09-27 Thread Brett Cannon
On 9/27/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: At 04:11 PM 9/27/2006 -0700, Brett Cannon wrote:>On 9/27/06, Phillip J. Eby><[EMAIL PROTECTED]>[EMAIL PROTECTED] > wrote:>>At 02:11 PM 9/27/2006 -0700, Brett Cannon wrote:>> >But it has been suggested here th

Re: [Python-Dev] difficulty of implementing phase 2 of PEP 302 in Python source

2006-09-28 Thread Brett Cannon
On 9/27/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: At 05:26 PM 9/27/2006 -0700, Brett Cannon wrote:>Ah, OK.  So for importing 'email', the zipimporter would call the .pyc>importer and it would ask the zipimporter, "can you get me email.pyc?" and >if it said no

Re: [Python-Dev] Python Doc problems

2006-09-29 Thread Brett Cannon
On 9/29/06, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > If there are "rampant criticisms" of the Python docs, then those that> are complaining should take specific examples of their complaints to the> sourceforge bug tracker and submit documentation patches for the > relevant sections.  And person

[Python-Dev] Possible semantic changes for PEP 352 in 2.6

2006-09-30 Thread Brett Cannon
I am working on PEP 352 stuff for 2.6 and there are two changes that I think should be made that are not explicitly laid out in the PEP.First, and most dramatic, involves what is legal to list in an 'except' clause.  Right now you can listing *anything*.  This means ``except 42`` is totally legal e

[Python-Dev] Created branch for PEP 302 phase 2 work (in C)

2006-10-02 Thread Brett Cannon
In the interest of time I have decided to go ahead and do the PEP 302 phase 2 work in C.  I fully expect to tackle rewriting import in Python in my spare time after I finish this work since I will be much more familiar with how the whole import machinery works and it sounds like a fun challenge. Th

Re: [Python-Dev] Created branch for PEP 302 phase 2 work (in C)

2006-10-02 Thread Brett Cannon
On 10/2/06, Paul Moore <[EMAIL PROTECTED]> wrote: On 10/2/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote:[SNIP]> I'm surprised, however, that you think working on this in C is going to be> *less* time than it would take to simply replace __import__ with a Python > function that reimplements PEP 302..

[Python-Dev] PSF Infrastructure Committee's recommendation for a new issue tracker

2006-10-02 Thread Brett Cannon
On behalf of the PSF Infrastructure committee, I am happy to report that we have reached a recommendation for a new issue tracker for Python!But first, I want to extend our thanks to all who stepped forward to provide the committee with a test installation of an issue tracker to use as a basis of o

Re: [Python-Dev] Created branch for PEP 302 phase 2 work (in C)

2006-10-04 Thread Brett Cannon
On 10/3/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: On 10/2/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>> This is why I asked for input from people on which would take less time.> Almost all the answers I got was that the the C code was delicate but that > it was workab

Re: [Python-Dev] PSF Infrastructure Committee's recommendation for anew issue tracker

2006-10-08 Thread Brett Cannon
The email didn't bounce; it was just held for moderator approval (and it made it through).  Just sit tight and we will be getting back to all of the volunteers in the near future (probably next week, no later than after this upcoming week). -BrettOn 10/6/06, Chuzo Okuda <[EMAIL PROTECTED]> wrote: I

Re: [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

2006-10-11 Thread Brett Cannon
On 10/11/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Martin v. Löwis wrote:> Of course, if everybody would always recompile all extension modules> for a new Python feature release, those flags weren't necessary.a dynamic registration approach would be even better, with a single entry point used to

Re: [Python-Dev] 2.3.6 for the unicode buffer overrun

2006-10-12 Thread Brett Cannon
On 10/12/06, Anthony Baxter <[EMAIL PROTECTED]> wrote: On Friday 13 October 2006 05:30, Georg Brandl wrote:> I'm I the only one who feels that the website is a big workflow problem?Assuming you meant "Am I", then I absolutely agree with you. I have touched the web site since the Pyramid switch and

[Python-Dev] who is interested on being on a python-dev panel at PyCon?

2006-10-17 Thread Brett Cannon
For the past couple years there has been the suggestion of having a panel discussion made up of core developers at PyCon.  Basically it would provide a way for the community to find how we do things, where we are going, our views, etc. I have finally decided to step forward and try to organize such

Re: [Python-Dev] state of the maintenance branches

2006-10-19 Thread Brett Cannon
On 10/19/06, Paul Moore <[EMAIL PROTECTED]> wrote: On 10/19/06, Anthony Baxter <[EMAIL PROTECTED]> wrote:> Anyway, all of the above is open to disagreement or other opinions - if you> have them, let me know. My only thought is that you've done a fantastic job pushing throughall the recent releases.

Re: [Python-Dev] Python unit tests failing on Pybots farm

2006-10-19 Thread Brett Cannon
On 10/19/06, Grig Gheorghiu <[EMAIL PROTECTED] > wrote: The latest trunk checkin caused almost all Pybots to fail when runningthe Python unit tests.273 tests OK.12 tests failed:test___all__ test_calendar test_capi test_datetime test_emailtest_email_renamed test_imaplib test_mailbox test_str

Re: [Python-Dev] Python unit tests failing on Pybots farm

2006-10-19 Thread Brett Cannon
On 10/19/06, Grig Gheorghiu <[EMAIL PROTECTED]> wrote: On 10/19/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>> Possibly.  If you look at the reason those tests failed it is because> time.strftime is missing for some odd reason.  But none of recent checkins > seem to have

Re: [Python-Dev] Python unit tests failing on Pybots farm

2006-10-19 Thread Brett Cannon
On 10/19/06, Grig Gheorghiu <[EMAIL PROTECTED]> wrote: On 10/19/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>>> On 10/19/06, Grig Gheorghiu <[EMAIL PROTECTED] > wrote:> > On 10/19/06, Brett Cannon <[EMAIL PROTECTED]> wrote:> > >> > > Poss

[Python-Dev] PSF Infrastructure has chosen Roundup as the issue tracker for Python development

2006-10-22 Thread Brett Cannon
Forgot to send this to python-dev.  =)-- Forwarded message --From: Brett Cannon <[EMAIL PROTECTED] >Date: Oct 20, 2006 1:35 PMSubject: PSF Infrastructure has chosen Roundup as the issue tracker for Python developmentTo: python-list@python.orgAt the beginning of the month t

[Python-Dev] Status of new issue tracker

2006-10-29 Thread Brett Cannon
The initial admins for the Roundup installation have been chosen: Paul DuBois, Michael Twomey, Stefan Seefeld, and Erik Forsberg.  The offer from Upfront Systems (http://www.upfrontsystems.co.za/ ) has been accepted for professional Roundup hosting.Discussion of how to handle the new tracker (inclu

Re: [Python-Dev] PEP: Extending the buffer protocol to share array information.

2006-10-31 Thread Brett Cannon
On 10/30/06, Travis E. Oliphant <[EMAIL PROTECTED]> wrote:> > Attached is my PEP for extending the buffer protocol to allow array data> to be shared. You might want to reference this thread (http://mail.python.org/pipermail/python-3000/2006-August/003309.html) as Guido mentions that extending the b

Re: [Python-Dev] [Tracker-discuss] Getting Started

2006-11-01 Thread Brett Cannon
On 11/1/06, Stefan Seefeld <[EMAIL PROTECTED]> wrote: Brett Cannon wrote:> On 11/1/06, Stefan Seefeld <[EMAIL PROTECTED]> wrote:>> Right. Brett, do we need accounts on python.org for this ?>>> Yep.  It just requires SSH 2 keys from each of you.  You can then email&g

Re: [Python-Dev] [Tracker-discuss] Getting Started

2006-11-01 Thread Brett Cannon
On 11/1/06, Erik Forsberg <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1"Brett Cannon" <[EMAIL PROTECTED]> writes:> On 11/1/06, Stefan Seefeld < [EMAIL PROTECTED]> wrote:>>>> Brett Cannon wrote:>> > On 11/1/06, Stefan Se

Re: [Python-Dev] Feature Request: Py_NewInterpreter to create separate GIL (branch)

2006-11-03 Thread Brett Cannon
On 11/3/06, Robert <[EMAIL PROTECTED]> wrote: repeated from c.l.p : "Feature Request: Py_NewInterpreter to createseparate GIL (branch)"Daniel Dittmar wrote: > robert wrote: >> I'd like to use multiple CPU cores for selected time consuming Python >> computations (incl. numpy/scipy) in a frictionles

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-04 Thread Brett Cannon
On 11/4/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: Fredrik Lundh schrieb:>> However, I find the proposed behaviour reasonable: Python already>> automatically imports the .pyc file if .py is not given and vice>> versa. So why not look for .pyo if the .pyc file is not present? >> well, from a p

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-04 Thread Brett Cannon
On 11/4/06, Osvaldo Santana <[EMAIL PROTECTED]> wrote: Hi,I'm the author of this patch and we are already using it in Pythonport for Maemo platform.We are using .pyo modules mainly to remove docstrings from themodules. We've discussed about this patch here[1] before. Now, I agree that the zipimport

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-04 Thread Brett Cannon
On 11/4/06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: On Sun, 05 Nov 2006 14:21:34 +1300, Greg Ewing <[EMAIL PROTECTED]> wrote:>Fredrik Lundh wrote:>>> well, from a performance perspective, it would be nice if Python looked >> for *fewer* things, not more things.>>Instead of searching for thin

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-05 Thread Brett Cannon
On 11/5/06, Steve Holden <[EMAIL PROTECTED]> wrote: [Off-list]Brett Cannon wrote:[...]>> Hopefully my import rewrite is flexible enough that people will be able> to plug in their own importer/loader for the filesystem so that they can> tune how things like this are handled (

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-06 Thread Brett Cannon
On 11/6/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote: Martin v. Löwis wrote:>> Why not only import *.pyc files and no longer use *.pyo files. It is simpler to have one compiled python file extension.>> PYC files can contain optimized python byte code and normal byte >> code.>> So what would you

Re: [Python-Dev] Results of the SOC projects

2006-11-16 Thread Brett Cannon
On 11/15/06, Georg Brandl <[EMAIL PROTECTED]> wrote: Hi, this might seem a bit late, and perhaps I was just blind, but I miss something like a summary how the Python summer of code projects went, and what the status of the ones that were meant to improve the standard library, e.g. the C decimal

[Python-Dev] discussion of schema for new issue tracker starting

2006-11-18 Thread Brett Cannon
Discussion of what we want in terms of the schema for the new issue tracker has begun. If you wish to give feedback on what you would like each issue to have in terms of data then please file an issue in the meta tracker at http://psf.upfronthosting.co.za/roundup/meta/ . You can see the current

Re: [Python-Dev] LSB: pyc stability

2006-12-04 Thread Brett Cannon
On 12/4/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: Some people (Robert Schweikert) requested byte-code stability at the LSB meeting: LSB should standardize a certain version of the byte code, and then future versions of Python should continue to support this byte code version. Did they

Re: [Python-Dev] LSB: pyc stability

2006-12-04 Thread Brett Cannon
On 12/4/06, Neil Toronto <[EMAIL PROTECTED]> wrote: Martin v. Löwis wrote: > Brett Cannon schrieb: > >> Did they say why they wanted to distribute bytecode files? I assume it >> is either for space considerations or they think it will help to protect >> th

Re: [Python-Dev] LSB: Binary compatibility

2006-12-05 Thread Brett Cannon
On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > "Martin" == Martin v Löwis <[EMAIL PROTECTED]> writes: Martin> [EMAIL PROTECTED] schrieb: >> >> All in all, I think providing binary compatibility would be feasible, >> >> and should be attempted. What do you think?

Re: [Python-Dev] fileinput module tests

2006-12-09 Thread Brett Cannon
On 12/8/06, Anthony Roy <[EMAIL PROTECTED]> wrote: Hi all, I have a patch for the fileinput.FileInput class, adding a parameter to the __init__ method called write_mode in order to specify the write mode when using the class with the inplace parameter set to True. Before I submit the patch, I'

Re: [Python-Dev] Open CPython VM for type information

2006-12-13 Thread Brett Cannon
On 12/12/06, Kay Schluehr <[EMAIL PROTECTED]> wrote: Dear Python developers, while the JVM is opened to support dynamically typed languages [1] I wonder if the CPyVM could not show more openness to statically typed languages? Hereby I don't think that much about arbitrary languages for the CPyV

Re: [Python-Dev] About dictionary lookup caching

2006-12-19 Thread Brett Cannon
On 12/19/06, Andrea Griffini <[EMAIL PROTECTED]> wrote: I'm experimenting with a patch for dictionary lookup caching, the main idea being avoiding the lookup of a constant (co_names) in a dictionary if the dictionary didn't change since last lookup. Currently the cache is held in a structure th

[Python-Dev] New Python-Ideas mailing list

2006-12-20 Thread Brett Cannon
At Guido's suggestion, a new mailing list has been created named Python-Ideas (http://mail.python.org/mailman/listinfo/python-ideas). This list is meant as a place for speculative, pie-in-the-sky language design ideas to be discussed and honed to the point of practically being a PEP before being

[Python-Dev] Listing of PEP 328 status and possible minor oversight

2006-12-20 Thread Brett Cannon
I just noticed that PEP 328 (relative imports) is listed as an accepted PEP, but not completed. Is this because there is still things to do for 2.6 and 2.7? Or did someone just forget to move it to the completed PEPs section of the PEP index? If it is the former then PEP 362 will need to be mov

Re: [Python-Dev] Listing of PEP 328 status and possible minor oversight

2006-12-20 Thread Brett Cannon
On 12/20/06, Thomas Wouters <[EMAIL PROTECTED]> wrote: On 12/20/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > > I just noticed that PEP 328 (relative imports) is listed as an accepted > PEP, but not completed. Is this because there is still things to do for > 2.6

[Python-Dev] Possible platforms to drop in 2.6

2006-12-22 Thread Brett Cannon
I originally posted this list to python-3000 since I figured we could be more aggressive with Py3K, but Guido said I should move it over here and just be aggressive in 2.6. So, here are the platforms I figured we should drop: * AtheOS * BeOS * FreeBSD 2 (maybe more?) * IRIX * NeXT * OS/2 * UnixWa

Re: [Python-Dev] PEP 8: mention bare 'except:'

2006-12-22 Thread Brett Cannon
On 12/22/06, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > http://www.python.org/sf/411881 is a bug about removing use > of 'except:' in stdlib code. In many cases the intent is to catch > one particular exception such as ImportError or AttributeError, > but catching all exceptions can disguise othte

Re: [Python-Dev] Possible platforms to drop in 2.6

2006-12-29 Thread Brett Cannon
On 12/29/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: Brett Cannon schrieb: > I originally posted this list to python-3000 since I figured we could > be more aggressive with Py3K, but Guido said I should move it over > here and just be aggressive in 2.6. Please

Re: [Python-Dev] pep-3108.txt

2007-01-02 Thread Brett Cannon
On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2007-01-02 01:02, brett.cannon wrote: > Author: brett.cannon > Date: Tue Jan 2 01:02:41 2007 > New Revision: 53204 > > Added: >peps/trunk/pep-3108.txt (contents, props changed) > Modified: >peps/trunk/pep-.txt > Log: > Add PEP

Re: [Python-Dev] pep-3108.txt

2007-01-02 Thread Brett Cannon
On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2007-01-02 23:54, Brett Cannon wrote: > On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> >> On 2007-01-02 01:02, brett.cannon wrote: >> > Author: brett.cannon >> > Date: Tue

Re: [Python-Dev] pep-3108.txt

2007-01-02 Thread Brett Cannon
On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2007-01-02 23:54, Brett Cannon wrote: > On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> >> On 2007-01-02 01:02, brett.cannon wrote: >> > Author: brett.cannon >> > Date: Tue

Re: [Python-Dev] Renaming Include/object.h

2007-01-03 Thread Brett Cannon
On 1/3/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: Guido van Rossum schrieb: > Maybe this should be done in a more systematic fashion? E.g. by giving > all "internal" header files a "py_" prefix? Yet another alternative would be to move all such header files into a py/ directory, so you wo

Re: [Python-Dev] pep-3108.txt

2007-01-04 Thread Brett Cannon
On 1/4/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2007-01-03 01:42, Brett Cannon wrote: > On 1/2/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> >> > +Open Issues >> >> > +=== >> >> > + >> >> > +C

[Python-Dev] Rewrite of import in Python source (sans docs) is complete

2007-01-05 Thread Brett Cannon
Finally, after a few months worth of work, I have finally gotten far enough in my import rewrite that I am willing to stick my neck out and say it is semantically complete! You can find it in the sandbox under import_in_py. So, details of this implementation. I implemented PEP 302 importers/loa

Re: [Python-Dev] [Python-3000-checkins] r53335 - in python/branches/p3yk: Doc/Makefile.deps Doc/lib/lib.tex Doc/lib/libsets.tex Doc/lib/libstdtypes.tex Lib/msilib/__init__.py Lib/sets.py Lib/test/test

2007-01-10 Thread Brett Cannon
On 1/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > Should we bother with deprecating 'sets' in the 2.x series? > > I'd say so, yes. > OK, I work on

Re: [Python-Dev] python-ideas on gmane

2007-01-10 Thread Brett Cannon
On 1/10/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Hi, > > is there any objection against making python-ideas available on gmane? > Should I just suggest it myself, or has someone to do extra admin work > on the mailing list side? > Just email me personally the email address to subscribe. -Bre

Re: [Python-Dev] file(file)

2007-01-12 Thread Brett Cannon
On 1/12/07, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > Forwarded for discussion from http://www.python.org/sf/1633665. > > --amk > > [forwarded from http://bugs.debian.org/327060] > > Many types in Python are idempotent, so that int(1) works > as expected, float(2.34)==2.34, ''.join('hello')=='hell

Re: [Python-Dev] file(file)

2007-01-12 Thread Brett Cannon
On 1/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 12:37 am, [EMAIL PROTECTED] wrote: > > >For security reasons I might be asking for file's constructor to be > >removed from the type for Python source code at some point (it can be > >relocated to an extension module if desired). By for

Re: [Python-Dev] pydoc - revised

2007-01-14 Thread Brett Cannon
On 1/14/07, Laurent Gautier <[EMAIL PROTECTED]> wrote: > Hi all, > > This is a somehow an update to the thread on pydoc started by Ron. > > Since the last entry we took the bull by the horns (so to speak), and > are seriously aiming at delivering something that can qualify as: > - a revision of the

Re: [Python-Dev] Rewrite of import in Python source (sans docs) is complete

2007-01-14 Thread Brett Cannon
tside of my Ph.D. thesis and thus I won't be actively working on it (heck, this current work isn't either but I have put so much time in at this point that my supervisor and I want to get a published paper out of it eventually). -Brett > On 1/5/07, Brett Cannon <[EMAIL PROTECTED]&

[Python-Dev] Problem between deallocation of modules and func_globals

2007-01-18 Thread Brett Cannon
I have discovered an issue relating to func_globals for functions and the deallocation of the module it is contained within. Let's say you store a reference to the function encodings.search_function from the 'encodings' module (this came up in C code, but I don't see why it couldn't happen in Pyth

Re: [Python-Dev] Problem between deallocation of modules and func_globals

2007-01-19 Thread Brett Cannon
On 1/19/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2007-01-18 20:53, Brett Cannon wrote: > > I have discovered an issue relating to func_globals for functions and > > the deallocation of the module it is contained within. Let's say you > > s

Re: [Python-Dev] Problem between deallocation of modules and func_globals

2007-01-19 Thread Brett Cannon
On 1/18/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Brett Cannon schrieb: > > Anybody have any ideas on how to deal with this short of rewriting > > some codecs stuff so that they don't depend on global state in the > > module or just telling me

Re: [Python-Dev] Problem between deallocation of modules and func_globals

2007-01-19 Thread Brett Cannon
On 1/19/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2007-01-19 22:33, Brett Cannon wrote: > >> That's a typical error situation you get in __del__ methods at > >> the time the interpreter is shut down. > >> > > > > Yeah, but in th

Re: [Python-Dev] Problem between deallocation of modules and func_globals

2007-01-20 Thread Brett Cannon
On 1/20/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > On 2007-01-20 00:01, Brett Cannon wrote: > > On 1/19/07, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > >> On 2007-01-19 22:33, Brett Cannon wrote: > >>>> That's a typical error situation

Re: [Python-Dev] Eliminating f_tstate

2007-01-22 Thread Brett Cannon
On 1/22/07, Michael Hudson <[EMAIL PROTECTED]> wrote: > "Martin v. Löwis" <[EMAIL PROTECTED]> writes: > > > Bug #1579370 reports a crash when accessing the thread state of > > a terminated thread, when releasing a generator object. > > > > In analysing the problem, I found that f_tstate doesn't hav

[Python-Dev] Having trouble committing

2007-01-25 Thread Brett Cannon
I am trying to commit to the 2.5 branch and I am getting an error: svn: Commit failed (details follow): svn: Can't create directory '/data/repos/projects/db/transactions/53566-1.txn': Permission denied Anyone know what is going on? -Brett ___ Python-De

Re: [Python-Dev] Having trouble committing

2007-01-25 Thread Brett Cannon
On 1/25/07, Tim Peters <[EMAIL PROTECTED]> wrote: > [Brett Cannon] > > I am trying to commit to the 2.5 branch and I am getting an error: > > > > svn: Commit failed (details follow): > > svn: Can't create directory > > '/data/repos/project

Re: [Python-Dev] Why is nb_inplace_power ternary?

2007-02-08 Thread Brett Cannon
On 2/8/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > #1653736 reports that slot_nb_inplace_power has the wrong > type: it should be a ternary function, but only is a binary. > The proposed change is to make it ternary, and to invoke __ipow__ > with three arguments. > > In researching this, I c

Re: [Python-Dev] Why is nb_inplace_power ternary?

2007-02-09 Thread Brett Cannon
On 2/9/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Brett Cannon schrieb: > > Seems reasonable to me. Is the argument of None passed in > > automatically somewhere? > > There are few callers of nb_inplace_power at all (AFAICT, only > PyNumber_InPlaceP

Re: [Python-Dev] Adding timeout option to httplib...connect()

2007-02-10 Thread Brett Cannon
On 2/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Guido> I'm not going to change ftplib.py and all the others. > > >> Also understood. This has, as far as I know, been the response of > >> everybody who has encountered this problem before. > > Martin> You should read you

Re: [Python-Dev] Adding timeout option to httplib...connect()

2007-02-10 Thread Brett Cannon
On 2/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Guido> I'm not going to change ftplib.py and all the others. > > >> Also understood. This has, as far as I know, been the response of > >> everybody who has encountered this problem before. > > Martin> You should read you

Re: [Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-10 Thread Brett Cannon
On 2/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Mostly for my own curiosity, I'm working on a PEP-342-based > microthreading library with a similar api to threads and threading > (coalesced into a single module). It uses coroutines and a trampoline > scheduler, and provides basic async

Re: [Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-11 Thread Brett Cannon
On 2/10/07, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sun, Feb 11, 2007 at 03:35:29AM +0200, Yotam Rubin wrote: > >> Why don't you use Stackless? It's very simple, stable, and solves > >> quite completely the problems in writing concurrect code. > > > > That's a grea

Re: [Python-Dev] Does Python/Python-ast.c need to be checked in?

2007-02-11 Thread Brett Cannon
On 2/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Someone checked in Parser/Python.asdl. After rebuilding Subversion tells me > that Python/Python-ast.c has been modified. I assume the two are related. > Did whoever checked in the former need to check in the latter Yeah, sorry about tha

Re: [Python-Dev] Does Python/Python-ast.c need to be checked in?

2007-02-11 Thread Brett Cannon
On 2/11/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 2/11/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Actually, the regenerating should happen immediately after commit, > > as this bumps the revision number of the asdl file. This means > > you have to make two commits per AST gramm

Re: [Python-Dev] Does Python/Python-ast.c need to be checked in?

2007-02-11 Thread Brett Cannon
On 2/11/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Brett Cannon schrieb: > > On 2/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Someone checked in Parser/Python.asdl. After rebuilding Subversion tells > >> me > >> tha

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-11 Thread Brett Cannon
On 2/11/07, Ben North <[EMAIL PROTECTED]> wrote: [SNIP] > * The draft currently allows a two-argument form, to supply a default > value if the object has no attribute of that name. This mimics the > behaviour of the three-argument form of getattr, but looks a bit wrong: > > s = obj.(attr_

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Brett Cannon
On 2/12/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [Jack Jansen] > > I like the functionality, but I don't like the syntax, to me it looks > > too much like a method call. > > > > To me self.[method_name] = self.metadata.[method_name] looks better: > > what we're doing here is more like dic

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Brett Cannon
On 2/12/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [Raymond Hettinger] > >> Rather than munge existing syntaxes, an altogether new one would be > >> more clear: > >> > >>self->name = self.metadata->name > > [Ben North] > > One thing which comes to mind about this one is that, for C/C++

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Brett Cannon
On 2/12/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > FWIW, I'm strongly -1 on the "->" notation. As a C programmer it's got > too many neurons committed to it. > > I recommend that you do some experiments with the readability of the > .[...] notation, e.g. write a program that randomly generat

Re: [Python-Dev] Recent experience with the _ast module

2007-02-12 Thread Brett Cannon
On 2/12/07, Collin Winter <[EMAIL PROTECTED]> wrote: > I've been working this past week at converting the stdlib's compiler > package to use 2.5's new _ast module instead of the package's own AST. > Overall, _ast was a joy to work with, save for the following nitpicks: > > 1) There are times when t

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-13 Thread Brett Cannon
On 2/13/07, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Taking a step back a bit... the basic issue is that we have an attribute > namespace (compile time key determination) that we want to access in a > dictionary style (runtime key determination). > > This is currently done by switching from syntac

Re: [Python-Dev] Recent experience with the _ast module

2007-02-13 Thread Brett Cannon
On 2/13/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Brett Cannon wrote: > > On 2/12/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > > 2) {BinOp,AugAssign,BoolOp,etc}.op > > > > I can't think of a reason, off the top of my head, why they can

Re: [Python-Dev] Lack of sequential decompression in the zipfile module

2007-02-16 Thread Brett Cannon
On 2/16/07, Derek Shockey <[EMAIL PROTECTED]> wrote: > Though I am an avid Python programmer, I've never forayed into the area of > developing Python itself, so I'm not exactly sure how all this works. > > I was confused (and somewhat disturbed) to discover recently that the > zipfile module offers

Re: [Python-Dev] Alternative Python VM

2007-02-16 Thread Brett Cannon
On 2/14/07, Sokolov Yura <[EMAIL PROTECTED]> wrote: > It could be interesting. > > """ > - pyvm is * 2 times * faster than Python 2.4. In the source code there > is a collection of benchmarks which includes 65 python scripts collected > from the internet. At average if Python 2.4 needs 24 hours t

Re: [Python-Dev] Recent experience with the _ast module

2007-02-16 Thread Brett Cannon
On 2/16/07, Collin Winter <[EMAIL PROTECTED]> wrote: > On 2/14/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Collin Winter schrieb: > > > What's inconsistent about it? That classes are being used for the > > > _ast.{Add,Sub,Mult,etc} names? > > > > Exactly. These aren't names - they are node

Re: [Python-Dev] Welcome to the "Python-Dev" mailing list

2007-02-21 Thread Brett Cannon
As Steve said, this is the wrong place to be asking for help about this. We have *nothing* to do with mailing lists or Mailman. Please read Steve's email again and follow the link in it. The people on this list cannot help you with what you are asking for. -Brett On 2/21/07, Juan Carlos Suarez

Re: [Python-Dev] Bug in PyErr_WriteUnraisable ?

2007-02-25 Thread Brett Cannon
On 2/22/07, Gabriel Becedillas <[EMAIL PROTECTED]> wrote: > I'd hit an access violation inside PyErr_WriteUnraisable when a > non-exception instance was raised. The call to PyExceptionClass_Name > with a non-exception instance is yielding an invalid pointer. > We are embedding Python 2.5 and a stri

[Python-Dev] status of switch to Roundup off of SF

2007-02-25 Thread Brett Cannon
When I gave the PSF members an update on the work to move the python-dev tracker over to Roundup Andrew Kuchling asked me to also send an email to python-dev since October/November. As of right now the biggest thing holding up the transition is documentation. A doc needs to get written explaining

Re: [Python-Dev] Bug in PyErr_WriteUnraisable ?

2007-02-26 Thread Brett Cannon
Thanks! Hopefully someone will be able to get to it in the near future. -Brett On 2/26/07, Gabriel Becedillas <[EMAIL PROTECTED]> wrote: > Brett Cannon wrote: > > On 2/22/07, Gabriel Becedillas <[EMAIL PROTECTED]> wrote: > >> I'd hit an access violation

Re: [Python-Dev] except Exception as err, tb [was: with_traceback]

2007-03-02 Thread Brett Cannon
On 3/2/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > Since this can conceivably be going on in parallel in multiple > > threads, we really don't ever want to be sharing whatever object > > contains the head of the chain of tracebacks since it mutates at every > > frame b

<    16   17   18   19   20   21   22   23   24   25   >