Re: [Python-3000] C style guide (was: C API changes?)

2006-03-22 Thread Neal Norwitz
On 3/22/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > I would love it if PEP 3007 standardised on 4-space indents, the same as the > standard for Python code in the standard lib. I'd love it even more if > reindent.py cleaned up C whitespace as well as Python whitespace. Wait! I thought we were

Re: [Python-3000] pre-PEP: Procedure for PEPs with Backwards-Incompatible Changes

2006-03-28 Thread Neal Norwitz
On 3/28/06, Ian Bicking <[EMAIL PROTECTED]> wrote: > > There seems to be a danger that Py3K is seen as a more friendly place to > suggest changes than Python 2.x (or maybe that the python-3000 list is > more friendly to these suggestions than py-dev), and so changes are > brought up here even thoug

Re: [Python-3000] Iterators for dict keys, values, and items == annoying :)

2006-03-30 Thread Neal Norwitz
On 3/30/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Aahz" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > What do we want to tell people who have code like this: > > > > keys = d.keys() > > keys.sort() > > Could a good-enough code analyzer detect such, even if separated by > i

Re: [Python-3000] Adaptation [was:Re: Iterators for dict keys, values, and items == annoying :)]

2006-04-01 Thread Neal Norwitz
On 3/31/06, Alex Martelli <[EMAIL PROTECTED]> wrote: > > So, the fact that (say) Eby or Martelli or the Twisted folks or the > Zope folks like adaptation, and Ewing or Bicking or (etc ec) dislike > it, is really a side show. The point that matters, instead, is > whether GvR likes it or not. From my

Re: [Python-3000] StringIO vs cStringIO, pickle vs cPickle

2006-04-04 Thread Neal Norwitz
On 4/4/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I'm in agreement with the sentiment of keeping the Python code though > -- it's incredibly useful for example in Jython and IronPython. > Perhaps we should switch to a naming scheme where we have a "pickle" > module that you're supposed to

Re: [Python-3000] Will we have a true restricted exec environment for python-3000?

2006-04-08 Thread Neal Norwitz
On 4/7/06, Vineet Jain <[EMAIL PROTECTED]> wrote: > to have a python restricted exec mode which allows for: > > 1. Limit the memory consumed by the script > 2. Limit access to file system and other system resources > 3. Limit cpu time that the script will take > 4. Be able to specify which modules

[Python-3000] drop vars() builtin?

2006-04-08 Thread Neal Norwitz
Is there a benefit to keeping vars()? "vars([object]) -> dictionary\n\ \n\ Without arguments, equivalent to locals().\n\ With an argument, equivalent to object.__dict__."); n ___ Python-3000 mailing list [email protected] http://mail.python.org/mai

Re: [Python-3000] Adaptation vs. Generic Functions

2006-04-09 Thread Neal Norwitz
On 4/9/06, Tim Hochberg <[EMAIL PROTECTED]> wrote: > > Let me add this cautionary note -- this primarily intended as for > illustrative purposes. There's a good chance it has bugs. It does, > however, pass > test_pprint except for test_subclassing, which it can't really be > expected to pass. Py3k

Re: [Python-3000] Will we have a true restricted exec environmentfor python-3000?

2006-04-09 Thread Neal Norwitz
On 4/9/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > #3 is easy to do a simple, naive implementation. I don't know what > > your needs are. If you just want to say "exit this script if it ran > > more tha

Re: [Python-3000] Will we have a true restricted exec environment for python-3000?

2006-04-10 Thread Neal Norwitz
On 4/10/06, Chaz. <[EMAIL PROTECTED]> wrote: > > I have thought the approach would work to make a plug-in for Firefox, > though lacking the time and the knowledge has stopped me from experimenting. Knowledge should not be an impediment, many of us would be interested in helping you learn what you

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-16 Thread Neal Norwitz
On 4/16/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Some of the coding projects I've recently been proposing as challenges > to certain wild feature proposals might make good topics for the > Google Summer of Code (see http://code.google.com/soc/ ). > > (I can't volunteer to be a mentor mysel

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-16 Thread Neal Norwitz
On 4/16/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > > again, if my host at Google wants me to spend my working hours being a > good mentor I could possibly be convinced to make sure I get assigned > one student (two turned out to be too much). =) I heard your host is a slave driver and an assho

[Python-3000] Summer of Code preparation

2006-04-17 Thread Neal Norwitz
We've only got a short time to get setup for Google's Summer of Code. We need to start identifying mentors and collecting ideas for students to implement. We have the SimpleTodo list (http://wiki.python.org/moin/SimpleTodo), but nothing on the SoC page yet (http://wiki.python.org/moin/SummerOfCod

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-17 Thread Neal Norwitz
On 4/17/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > The PyPy group also has a few prospective mentors, projects, and mentees. > On the presumption that PSF coordinating sponsership is not limited to > CPython only projects, I forwarded Neal's SoC py-dev post to their list. Excellent. I was thi

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-17 Thread Neal Norwitz
rences that are known on python-dev to vouch for them. Terry are you interested in being a mentor? n (*) Unknown to me I guess, since I'm currently the only approver of mentors. -- On 4/17/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 4/17/06, Terry Reedy <[EMAIL PROTECTED]>

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-17 Thread Neal Norwitz
On 4/17/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > Your next post answered my question as to mentor eligibility: known of by > you or two references therefrom. But back to project eligibility: how far > beyond direct implementation-related projects? How about progammer support > like pylint/p

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-18 Thread Neal Norwitz
entations, > programmer utilitilies, libraries, packages, or frameworks. Project ideas ... or frameworks related to Python > People interested in mentoring a student though PSF are encouraged to > contact Neal Norwitz at [EMAIL PROTECTED] People unknown to Neal or > Guido should find a coupl

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-19 Thread Neal Norwitz
s > currently requesting mentors, not students. Perhaps > >Subject: Python Software Foundation looking for mentors for the > Google Summer of Code > > would work? > > How widely are you sending this? I'd say c.l.py.a, c.l.py, python-dev, > IronPython, Jython,

Re: [Python-3000] Function call speed (Was: Cleaning up argument listparsing)

2006-04-19 Thread Neal Norwitz
On 4/19/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I recommend profiling. I seem to recall that last time we did this, we > found that creating the frame object is a significant cost factor. That's part of it. Plus there's a tuple allocation (and copy). n ___

Re: [Python-3000] Python 3000 and the Google Summer of Code

2006-04-20 Thread Neal Norwitz
On 4/19/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > My revision is both pasted below and attached as a text file. I am not > posting because I prefer you send the original after one more check and Thanks Terry. I sent it. Everyone feel free to spread the word. n

Re: [Python-3000] Make it easier to port to small devices.

2006-04-27 Thread Neal Norwitz
Blake, What problems did you have? There is a patch or two up on SF that address some of the issues. I know of some problems, but we don't have a volunteer to work on these issues. So if you could be that volunteer, maybe we could solve this problem. Not for 3.0 in the future, but for 2.5 toda

[Python-3000] Summer of Code mailing list

2006-04-28 Thread Neal Norwitz
There's a new SoC mailing list. [EMAIL PROTECTED] You can sign up here: http://mail.python.org/mailman/listinfo/soc2006 This list is for any SoC discussion: mentors, students, idea, etc. Student can submit applications starting May 1, so now is the time to get students interested in your

Re: [Python-3000] suggestion for a new socket io stack

2006-04-28 Thread Neal Norwitz
If you move forward with this, please review (learn from and steal the best parts of) the ACE APIs. http://cs.wustl.edu/~schmidt/ACE.html They've done a lot of work in this area and have a lot of experience. It would also be good to talk to the twisted guys. We should also support epoll beyond

Re: [Python-3000] PyGUI in Py3K stdlib, more details

2006-04-30 Thread Neal Norwitz
On 4/30/06, Bill Janssen <[EMAIL PROTECTED]> wrote: > I've looked over the PyGUI code a bit more carefully. > > It still looks good to me as a Py3K standard portable GUI candidate. > In particular, it doesn't look like it would be hard to port to Java > Swing (for Jython) and Windows.Forms (for Iro

Re: [Python-3000] sets in P3K?

2006-05-02 Thread Neal Norwitz
On 5/2/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > I think Guido had the best solution. Use set() for empty sets, use {} > for empty dicts, use {genexp} for set comprehensions/displays, use > {1,2,3} for explicit set literals, and use {k1:v1, k2:v2} for dict > literals. We can always add

[Python-3000] Seeking students for the Summer of Code

2006-05-03 Thread Neal Norwitz
There is less than a week left before students must submit a final application. There are a bunch of ideas up on the wiki: http://wiki.python.org/moin/SummerOfCode/ The wiki has instructions for how to submit a proposal. There are many different areas including: core language features, lib

Re: [Python-3000] Questions on optional type annotations

2006-05-10 Thread Neal Norwitz
On 5/10/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Regarding the question what to do if something un-annotated is passed, > you could have a strict and a lenient mode, sort of the equivalents of > guilty-unless-proven-innocent and innocent-unless-proven-guilty. I > guess the latter is more

Re: [Python-3000] PEP 3102 feedback

2006-05-24 Thread Neal Norwitz
On 5/23/06, Talin <[EMAIL PROTECTED]> wrote: > Well, c.l.p was strangely quiet in response to my posting PEP 3102 a few > days ago. Only two comments, one of a general "ick" variety that seems > mainly based on personal bias, and another which likes the idea but > votes a -1 on the 'naked star' syn

Re: [Python-3000] Using a list for *args (was: Type annotations: annotating generators)

2006-05-31 Thread Neal Norwitz
On 5/31/06, Collin Winter <[EMAIL PROTECTED]> wrote: > > All in all, the tuple->list change was minimally invasive. > > Overall, I've chosen to keep the external interfaces of the changed > modules/packages the same; if there's a desire to change them later, > this SVN commit can be used to figure

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Neal Norwitz
On 8/20/06, Osvaldo Santana <[EMAIL PROTECTED]> wrote: > On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Excellent! I'm adding Brett to the CC's. > > Cool. Has Brett planned something to this rewrite? I'm not sure exactly what you are asking. It's mostly planned to be a re-implementat

Re: [Python-3000] Droping find/rfind?

2006-08-24 Thread Neal Norwitz
On 8/24/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > (which reminds me that speeding up handling of optional arguments to C > functions > would be an even better use of this energy) If this patch: http://python.org/sf/1107887 is integrated with some of my current work, it should do the job n

Re: [Python-3000] string C API

2006-09-01 Thread Neal Norwitz
On 9/1/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > just noticed that PEP 3100 says that PyString_AsEncodedString and > PyString_AsDecodedString is to be removed, but it doesn't mention > any other PyString (or PyUnicode) functions. > > how large changes can we make here, really ? I don't know i

Re: [Python-3000] educational aspects of Python 3000

2006-09-12 Thread Neal Norwitz
On 9/12/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > We could always rename raw_input() to input(). Just a thought. . . > > D'oh. Guido already said he doesn't like that idea :) > > FWIW, I think it is a good idea. If there is a little 2.x vs 3.0 > confusion, so be it. The use of inpu

Re: [Python-3000] Draft PEP for outer scopes

2006-11-03 Thread Neal Norwitz
On 11/3/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Greg Ewing wrote: > > > Besides, the BDFL is going to do whatever he wants > > anyway, so let's just leave him to get on with it. :-) > > but where is he? has anyone seen him lately ? Sure, he's been busy at work and sick recently. He'll pro

[Python-3000] requiring parens around singleton tuples

2006-12-03 Thread Neal Norwitz
In looking at this and some other stuff, I thought about this code: x = 1, How about requiring parens around (1,)? It kinda sucks to make it inconsistent by only requiring parens for singleton tuples. But it might prevent more errors and make it much harder to miss the comma. I got this idea w

[Python-3000] versionadded/versionchanged in doc

2006-12-19 Thread Neal Norwitz
What do we want to do with the current versionadded/versionchanged markups in the doc for 3k? Should we remove all references to 1.x changes? all 2.x changes? Keep them? all of them? Given we are trying to clean things up, I think I'd prefer to remove all the old references to 1.x/2.x changes.

Re: [Python-3000] PEP 3106: Revamping dict.keys(), .values() and .items()

2006-12-19 Thread Neal Norwitz
On 12/19/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I've written a quick version of PEP 3106, which expresses my ideas > about how the dict methods to access keys, values and items should be > redone. > > The text is in svn: > http://svn.python.org/view/peps/trunk/pep-3106.txt?rev=53096&view

Re: [Python-3000] Py3k release schedule worries

2006-12-20 Thread Neal Norwitz
On 12/19/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 12/19/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Okay, I updated the patch at SF. While you're at it, in PEP 3100 there's > > "compile(): put in sys (or perhaps in a module of its own)". I guess that > > isn't really necessary eithe

Re: [Python-3000] Py3k release schedule worries

2006-12-20 Thread Neal Norwitz
On 12/19/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 12/18/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > [me] > > > Well, what do you think of my pronouncement in response to Thomas's > > > mail (just rename a bunch of things that don't conform to our own > > > naming standard)? That shoul

Re: [Python-3000] PEP 3107 - Function Annotations

2006-12-27 Thread Neal Norwitz
Some of these have already been fixed in a version sent to me. I need to check that version in. I haven't reviewed it, but I believe it addresses the __signature__ issue. I should have time to get this in tonight. n -- On 12/27/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I just noticed t

Re: [Python-3000] PEP 3107 - Function Annotations

2006-12-27 Thread Neal Norwitz
On 12/27/06, Tony Lownds <[EMAIL PROTECTED]> wrote: > > On Dec 27, 2006, at 5:31 PM, Guido van Rossum wrote: > > > I just noticed that PEP 3107 has quietly been checked in. Thanks > > Collin and Tony! > > Ok, updated (and sent to Neal for checkin, thanks Neal!) I just checked in a slightly modifie

Re: [Python-3000] PEP 3107 - Function Annotations

2006-12-27 Thread Neal Norwitz
ings like Grammar, obsolete APIs, etc. n On 12/27/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 12/27/06, Tony Lownds <[EMAIL PROTECTED]> wrote: > > > > On Dec 27, 2006, at 5:31 PM, Guido van Rossum wrote: > > > > > I just noticed that PEP 3107 has quiet

[Python-3000] plistlib module and test

2008-01-26 Thread Neal Norwitz
I remember seeing a change which moved the plistlib module from Lib/plat-mac to Lib so all platforms can use it. This change causes *all* the builds fail because the test has several problems. For example, the test references functions/methods that don't exist (see below). Can someone fix this?

Re: [Python-3000] Python 2.6 and 3.0

2008-02-23 Thread Neal Norwitz
+1 to everything -- n On Fri, Feb 22, 2008 at 3:45 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > I've volunteered to be the release manager for Python 2.6 and 3.0. > It's been several years since I've RM'd a Python release, a

Re: [Python-3000] removing destructuring del

2008-02-24 Thread Neal Norwitz
On Fri, Feb 22, 2008 at 7:44 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: [... del (tuple, of, variables), etc deleted] > > > I also think > > > >del a, > > > > should not be legal ("SyntaxError: trailing comma not allowed without > > surrounding parentheses"?), but that's getting

[Python-3000] adding json to stdlib (was: Re: [Python-Dev] PEP 361: Python 2.6/3.0 release schedule)

2008-03-18 Thread Neal Norwitz
On Tue, Mar 18, 2008 at 11:17 AM, John Millikin <[EMAIL PROTECTED]> wrote: > > Possible features for 2.6 > > New modules in the standard library: > > - JSON implementation > > > Have there been any plans made for which one? All of the No. This was something I added as a nice to ha

Re: [Python-3000] from .foo import *

2008-03-18 Thread Neal Norwitz
On Tue, Mar 18, 2008 at 11:59 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > > > On Tue, Mar 18, 2008 at 10:49 AM, Aahz <[EMAIL PROTECTED]> wrote: > > > > On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: > > > > > > When I do a relative star import, I current get > > > > > > SyntaxError: 'impor

[Python-3000] changing regrtest to handle import errors

2008-03-18 Thread Neal Norwitz
[changing to: and subject: ] On Tue, Mar 18, 2008 at 4:09 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008 at 3:58 PM, neal.norwitz > <[EMAIL PROTECTED]> wrote: > > Get this test to pass (UserList/UserDict no longer exist and caused a > skip). > > I think the automatic s

Re: [Python-3000] PyLong_Check() behaviour clarification (test_getargs2 failing on Windows x64)

2008-03-20 Thread Neal Norwitz
On Thu, Mar 20, 2008 at 2:13 AM, Trent Nelson <[EMAIL PROTECTED]> wrote: > test_getargs2 is failing on Windows x64: > test test_getargs2 failed -- Traceback (most recent call last): > File > "S:\buildbots\python.x64\3.0.nelson-win64\build\lib\test\test_getargs2.py", > line 190, in test_n >

Re: [Python-3000] Enough with the u"string" already!

2008-03-24 Thread Neal Norwitz
On Mon, Mar 24, 2008 at 8:10 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Martin v. Löwis schrieb: > > >> Since 2.4 Python uses the AST tree to access the future flags. But the > >> string unicode literals require the information before the AST tree is > >> created. > > > > "We" should ha

[Python-3000] the release gods are angry at python

2008-03-25 Thread Neal Norwitz
The next releases of 2.6/3.0 are planned for April 2, just over a week from now. There is much work that needs to be done. The buildbots are in a pretty sad state and the gods are seeing too much red. http://www.python.org/dev/buildbot/stable/ http://www.python.org/dev/buildbot/all/ See my

[Python-3000] stable buildbots

2008-03-25 Thread Neal Norwitz
We need to get the tests for Python to be more stable so we can push out solid releases. In order to achieve this result, we need tests that are *100% reliable* and fail _only when there is a problem with Python_. While we aren't nearly as close to that goal as we need to be, we have to work towa

Re: [Python-3000] [Python-Dev] stable buildbots

2008-03-26 Thread Neal Norwitz
On Wed, Mar 26, 2008 at 9:04 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On Mar 26, 2008, at 8:14 AM, Facundo Batista wrote: > > 2008/3/26, Neal Norwitz <[EMAIL PROTECTED]>: > > > >> We ne

Re: [Python-3000] the release gods are angry at python

2008-03-27 Thread Neal Norwitz
On Wed, Mar 26, 2008 at 5:52 PM, <[EMAIL PROTECTED]> wrote: > >> The next releases of 2.6/3.0 are planned for April 2, just over a > >> week from now. There is much work that needs to be done. The > >> buildbots are in a pretty sad state and the gods are seeing too much > >> red.

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Neal Norwitz
On Thu, Mar 27, 2008 at 3:52 AM, Lennart Regebro <[EMAIL PROTECTED]> wrote: > On Thu, Mar 27, 2008 at 5:33 AM, Talin <[EMAIL PROTECTED]> wrote: > > -- A document describing the "common subset", and how to write programs > > in it. This doesn't have to be a complete standalone manual, just an >

Re: [Python-3000] the release gods are angry at python

2008-03-27 Thread Neal Norwitz
On Thu, Mar 27, 2008 at 11:31 AM, Bill Janssen <[EMAIL PROTECTED]> wrote: > > There > > have been other tests that have also been flaky like test_asynchat, > > test_smtplib, test_ssl, test_urllib2net, test_urllibnet, > > test_xmlrpc_net and some of the tests that use networking. > > Some of t

Re: [Python-3000] [Python-Dev] the release gods are angry at python

2008-03-28 Thread Neal Norwitz
On Fri, Mar 28, 2008 at 3:31 AM, <[EMAIL PROTECTED]> wrote: > > Neal> Anything that connects to a remote host is definitely flaky. > > Would it maybe help to set up a dedicated host (or virtual host) to serve as > the sole target of all network tests? It would help, but not fix the problem.

Re: [Python-3000] Dict literal bytecode

2008-03-28 Thread Neal Norwitz
On Fri, Mar 28, 2008 at 9:46 AM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 27-03-2008, Cz o godzinie 11:48 +1200, Greg Ewing pisze: > > > > Tuples are created batchwise because, being immutable, > > that's the only way to do it. But if set literals are > > to produce mutable ob

[Python-3000] refleaks

2008-03-31 Thread Neal Norwitz
The current refleaks for 3k are: test_compile leaked [10, 10, 10] references, sum=30 test_io leaked [21, 21, 21] references, sum=63 test_itertools leaked [4, 4, 4] references, sum=12 test_queue leaked [995, 996, 996] references, sum=2987 When running the refleak hunter, 4 tests failed: test_c

Re: [Python-3000] refleaks

2008-04-01 Thread Neal Norwitz
I fixed the itertools refleak. test_compile leaks due to code like this: class J: def foo(): class Bar: pass I thought Amaury fixed that problem already? n On Mon, Mar 31, 2008 at 9:25 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > The current refleaks for 3k are: > >

Re: [Python-3000] refleaks

2008-04-01 Thread Neal Norwitz
On Tue, Apr 1, 2008 at 12:58 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 9:41 AM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > I fixed the itertools refleak. > > > > test_compile leaks due to code like this: > > >

[Python-3000] raw strings and \u

2008-04-04 Thread Neal Norwitz
I just checked in r62163 with this change: -rc = os.system(r"ml64 -c -Foms\uptable.obj ms\uptable.asm") +rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm") What should happen with raw unicode strings that contain a \u? The old code above was generating: SyntaxE

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Neal Norwitz
> > > > > > > > > > > > > > > > > > On Sat, Apr 5, 2008 at 7:50 AM, Benjamin Peterson > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > &g

Re: [Python-3000] [Python-Dev] Need help for SWIG's Python 3.0 backend

2008-04-14 Thread Neal Norwitz
On Sun, Apr 13, 2008 at 6:48 AM, Haoyu Bai <[EMAIL PROTECTED]> wrote: > Gregory P. Smith wrote: > > -cc: python-dev > > +cc: python-3000 > > Thanks for Gregory to point out my mistake and forward this mail to > python-3000. I really feel sorry for my mistake. Don't worry about it. > I have a

Re: [Python-3000] MemoryError oddities

2008-07-31 Thread Neal Norwitz
On Wed, Jul 30, 2008 at 9:36 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Jul 29, 2008 at 10:07 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >>> +1 OverflowErrors should probably by reserved for numeric overflows. >> >> In a sense, passing sys.maxsize as a string size *is* a numeri

[Python-3000] what version of bsddb to use/accept for 2.6/3.0

2008-08-24 Thread Neal Norwitz
Many buildbots are running bsddb 4.7, particularly the debian/ubuntu ones (4.7.25 which seems to be the latest). Some of them are crashing, others are not. The max version we support in both 2.6 and 3.0 is 4.7. Should we allow this version or should we use a lower maximum that is more likely to

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-03 Thread Neal Norwitz
On 1/3/07, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > On 2 Jan, 2007, at 1:14, Brett Cannon wrote: > > > * Mac > >+ applesingle > >- Undocumented. > >* AppleSingle is a binary file format for A/UX. > >+ A/UX no longer distributed. > > No problems here. I

Re: [Python-3000] PEP 3107 - Function Annotations

2007-01-05 Thread Neal Norwitz
On 12/28/06, Tony Lownds <[EMAIL PROTECTED]> wrote: > > > * With the modification of MAKE_FUNCTION to be a 32-bit value, this > > means that EXTENDED_ARG is now used. This means that the peephole > > optimizer won't work for the outer function. I think we should > > correct this. > > Ok. Somethi

Re: [Python-3000] Warning for 2.6 and greater

2007-01-07 Thread Neal Norwitz
On 1/7/07, Anthony Baxter <[EMAIL PROTECTED]> wrote: > I've been thinking a little about how and where we'd add warnings to > 2.6 and later for things that will break in 3.0. My first idea is > to add a command line option '-3' (or maybe '-warn3') implemented > as "from __future__ import py3k". We

Re: [Python-3000] Warning for 2.6 and greater

2007-01-08 Thread Neal Norwitz
On 1/8/07, Anthony Baxter <[EMAIL PROTECTED]> wrote: > > Do we also want to warn about use of sq_slice and sq_ass_slice with > C-code objects? (And yes, my inner 12 year old still giggles about > sq_ass_slice) Sometimes it's nice to know you aren't alone. :-) > My concern is that having to dive i

Re: [Python-3000] test_hotshot failing -- what's up?

2007-01-10 Thread Neal Norwitz
Did the import magic number get changed? That was the cause of my last crash in test_hotshot (not related to this though). n On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Hm, then maybe it started failing after I applied Collin Winter's > 'except' patches. Collin, does test_hotshot p

[Python-3000] __special__ attrs looked up on the type, not instance

2007-03-13 Thread Neal Norwitz
-- Forwarded message from python-3000-checkins -- Neal Norwitz schrieb: > I assume this is not the desired behaviour? > >>>> class F: > ... def __dir__(self): > ... return [5] > ... >>>> dir(F()) > [5] >>>> f

Re: [Python-3000] Automated py3k doc builds

2007-03-20 Thread Neal Norwitz
http://docs.python.org/dev/3.x/ will be updated every hour. http://docs.python.org/dev/3.x/results/ contains the results of the last build. n -- On 3/20/07, Collin Winter <[EMAIL PROTECTED]> wrote: > I just discovered that the p3yk/ branch can't do a docs build because > almost none of the cod

[Python-3000] refleaks and other errors

2007-03-20 Thread Neal Norwitz
regrtest.py -R 4:3: # on 64-bit, but that might only affect the xpickle error test_grammar leaked [14, 14, 14] references test_doctest leaked [84, 84, 84] references test_ctypes leaked [13, 13, 13] references test_descrtut leaked [417, 417, 417] references test_generators leaked [227, 227, 227] r

Re: [Python-3000] refleaks and other errors

2007-03-20 Thread Neal Norwitz
CTED]> wrote: > I'm pretty sure I introduced leaks with the new metaclass code; it was > a bit of a rush job and there's plenty of new C code. I need a hint on > how to reproduce this myself for a single test... > > On 3/20/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: &

[Python-3000] removing functions from string module

2007-04-16 Thread Neal Norwitz
Can we remove all the functions from the string module that are also existing methods on string? Then we can figure out what to do with what's left over? I'm tempted to ask the same thing about the types module. TOOWTDI. n ___ Python-3000 mailing list

[Python-3000] some test failures on 64-bit

2007-04-17 Thread Neal Norwitz
test_cpickle (probably all the same issue here): test_xpickle, too == FAIL: test_ints (test.test_cpickle.cPickleTests) -- Traceback (most recent call last): Fil

[Python-3000] string module trimming

2007-04-17 Thread Neal Norwitz
I whacked almost everything in the string (and strop) module. Here are some things left to do: * capwords is defined and used only in one place: ./idlelib/testcode.py ISTM, this can go. * maketrans remains (also implemented in stropmodule.c). It is used 11 times. * ascii_letters is

Re: [Python-3000] string module trimming

2007-04-17 Thread Neal Norwitz
On 4/17/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Apr 17, 2007, at 5:03 AM, Neal Norwitz wrote: > > > * maketrans remains (also implemented in stropmodule.c). It is > > used 11 times. >

Re: [Python-3000] PEP to change how the main module is delineated

2007-04-22 Thread Neal Norwitz
Can you add refs to all the PEPs? Will this go into 2.6 also? If so, you should send to python-dev too. If this is accepted, can you update the 2.6 PEP 361. On 4/22/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > Implementation > == > > When the ``-m`` option is used, ``sys.main`` wi

Re: [Python-3000] Two proposals for a new list-like type: one modest, one radical

2007-04-23 Thread Neal Norwitz
On 4/23/07, Daniel Stutzbach <[EMAIL PROTECTED]> wrote: > > The Radical Proposal > --- > > Replace list() with the BList. I looked over this patch and have various questions/comments. In rough priority order: I'm concerned about the moderately heavy use of macros wrt

Re: [Python-3000] An introduction to ABC's

2007-04-24 Thread Neal Norwitz
On 4/24/07, Emin.shopper Martinian.shopper <[EMAIL PROTECTED]> wrote: > > Below are links to the ABC implementation based on meta-classes and > decorators which I have been using for quite a while. Emin, You can get similar functionality by using tools such as pychecker. PyLint and pyflakes may a

Re: [Python-3000] Dealing with timestamp issues for rebuiling AST using Parser/asdl_c.py

2007-05-06 Thread Neal Norwitz
On 5/6/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > File "./Parser/asdl_c.py", line 744 > > print(auto_gen_msg, file=f) > > I think asdl_c.py should be formulated in a way > that is compatible with 2.x. It already uses > f.write in many places; the few remaining ones > should be updat

Re: [Python-3000] Can someone please make py3k* checkins go to the python-3000-checkins mailing list?

2007-05-07 Thread Neal Norwitz
On 5/4/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I don't know how the filters for checkin emails are set up, but this > seems wrong: mail related to the p3yk branch goes to > python-3000-checkins, but mail related to the py3k-unistr branch goes > to python-checkins. There are a bunch of bra

[Python-3000] failing tests

2007-05-07 Thread Neal Norwitz
There are 3* failing tests: test_compiler test_doctest test_transformer * plus a few more when running on a 64-bit platform These failures occurred before and after xrange checkin. Do other people see these failures? Any ideas when they started? The doctest failures are due to no space at t

[Python-3000] ref counts

2007-05-07 Thread Neal Norwitz
I'm starting up a continuous build of sorts on the PSF machine for the 3k branch. Right now the failures will only go to me. I've excluded the two tests that are known to currently fail. This will help us find new failures (including ref leaks). Probably in a week or so I'll send the results to

Re: [Python-3000] failing tests

2007-05-08 Thread Neal Norwitz
'/dev/tty' This seems to only happen when there is no tty associated with a terminal which happens when run from cron (among other situations). n -- On 5/7/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > There are 3* failing tests: > test_compiler test_doctest test_tran

Re: [Python-3000] Build is broken (r55196)

2007-05-08 Thread Neal Norwitz
I had this problem. make clean solved it. -- n On 5/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > As of r55196 (and possibly earlier), the p3yk branch does not make > when configured with --with-pydebug. setup.py triggers this assertion > failure: > > python: Objects/object.c:64: _Py_AddToAllO

Re: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

2007-05-11 Thread Neal Norwitz
On 5/11/07, Paul Moore <[EMAIL PROTECTED]> wrote: > On 11/05/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > > I'm now even more of the opinion that this is too > > complicated for Python's first generic function system. > > "If it's hard to explain, it's probably a bad idea." > > Hmm. My view is that

Re: [Python-3000] [Python-Dev] Introduction and request for commit access to the sandbox.

2007-05-22 Thread Neal Norwitz
On 5/22/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > > As you see, cStringIO's code also needs a good cleanup to make it, > at least, conforms to PEP-7. Alexandre, It would be great if you could break up unrelated changes into separate patches. Some of these can go in sooner rather than

Re: [Python-3000] please keep open() as a builtin, and general concerns about Py3k complexity

2007-05-22 Thread Neal Norwitz
On 5/22/07, Steve Howell <[EMAIL PROTECTED]> wrote: > > In the system I've worked on for the last three years, > we have at least 200 calls to the builtin open() > method. This number is meaningless by itself. 200 calls in how many lines of code? How many files total and how many files use open?

Re: [Python-3000] please keep open() as a builtin, and general concerns about Py3k complexity

2007-05-22 Thread Neal Norwitz
On 5/22/07, Guillaume Proux <[EMAIL PROTECTED]> wrote: > On 5/23/07, Steve Howell <[EMAIL PROTECTED]> wrote: > > 17.7% of the files I searched have calls to open(). > > My understand is that the mythical "python 2.x -> 3.0" tool will > automatically migrate your code by using the AST to find all >

Re: [Python-3000] please keep open() as a builtin, and general concerns about Py3k complexity

2007-05-22 Thread Neal Norwitz
On 5/22/07, Steve Howell <[EMAIL PROTECTED]> wrote: > > But since you mentioned conversion, our system is a > good example of a shop that will be running multiple > versions of Python side by side for many years. We'll > cut over new components to Py3k, and then we'll > gradually upgrade legacy co

Re: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?

2007-05-25 Thread Neal Norwitz
On 5/25/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > > > Is that OK, because "not not X" should now be spelled "bool(x)", and > > you haven't allowed the overriding of __bool__? > > Yes, I would say that 'not not x' should indeed be spelled > bool(x), if that's what you intend it to mean. > > Whethe

Re: [Python-3000] Lines breaking

2007-05-28 Thread Neal Norwitz
On 5/28/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Well, I would have complained about that too, except I was too busy > when splitlines() was snuck into the language behind my back. :-) I Heh, just today I was wondering if we should kill splitlines: $ grep splitlines `find Lib -name '*.

Re: [Python-3000] Buffer objects and StringIO

2007-05-31 Thread Neal Norwitz
On 5/31/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > Hello, > > I finished yesterday the implementations of BytesIO and StringIO > objects in C. They are both fully working. (The code is available in > my cpy_merge branch in the svn tree.) There is only one thing that is > bothering me wit

Re: [Python-3000] setup.py fails in the py3k-struni branch

2007-06-06 Thread Neal Norwitz
On 6/5/07, Ron Adam <[EMAIL PROTECTED]> wrote: > Alexandre Vassalotti wrote: > > On 6/5/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > >> If "make clean" makes the problem go away, it's usually because there > >> were old .pyc files with incompatible byte code. We don't change the > >> .pyc magi

[Python-3000] problem with checking whitespace in svn pre-commit hook

2007-06-07 Thread Neal Norwitz
When I originally tried to check in rev 55797, I got this exception: Traceback (most recent call last): File "/data/repos/projects/hooks/checkwhitespace.py", line 50, in ? run_app(main) File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app return apply(func, (pool,)

Re: [Python-3000] problem with checking whitespace in svn pre-commit hook

2007-06-07 Thread Neal Norwitz
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > tokenize.TokenError: ('EOF in multi-line statement', (315, 0)) > > I analyzed that a bit further, and found that > Lib/distutils/unixccompiler.py:214 reads > > if not isinstance(output_dir, (str, type(None)): > > This is a syntax error; a

Re: [Python-3000] Invalid \U escape in source code give hard-to-trace error

2007-07-15 Thread Neal Norwitz
On 7/15/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > When a source file contains a string literal with an out-of-range \U > escape (e.g. "\U12345678"), instead of a syntax error pointing to the > offending literal, I get this, without any indication of the file or > line: > > UnicodeDecodeErro

  1   2   >