Search Discussions
-
It seems a public outcry against @decorators has started. When I let Anthony check it in for 2.4a2, the plan was to see how it fares in a2 and a3, and possibly take it out in 2.4b1. If you don't want ...
Guido van Rossum
Aug 5, 2004 at 6:36 pm
Aug 13, 2004 at 7:03 pm -
But then why not just make that the default syntax, so that no migration is necessary, and only one syntax has to be learned/explained to people?
Phillip J. Eby
Aug 2, 2004 at 7:26 pm
Aug 11, 2004 at 1:24 pm -
I would like to urge caution before making this change. Despite what the PEP may say, I actually think that creating a 'baseint' type is the WRONG design choice for the long term. I envision an ...
Michael Chermside
Aug 11, 2004 at 11:01 pm
Aug 30, 2004 at 3:05 am -
Before it's too late and the API gets frozen, I would like to propose an alternate implementation for PEP292 that exposes two functions instead of two classes. Current way: print Template('Turn ...
Raymond Hettinger
Aug 26, 2004 at 11:38 pm
Sep 15, 2004 at 12:04 am -
Raymond and I had a chance to talk about PEP 292 on bug day, and we've exchanged a few private emails and implementations. I think we've finally knocked everything into shape for inclusion in Python ...
Barry Warsaw
Aug 11, 2004 at 12:42 am
Aug 24, 2004 at 7:39 pm -
The new "vertical bar" syntax was proposed recently, and has gotten almost unanimously positive feedback. In particular, of 17 responses to the syntax, only one has been negative (see table, below). ...
Edward Loper
Aug 7, 2004 at 6:34 am
Aug 10, 2004 at 11:30 pm -
Here's a cute one: """ import compiler, sys f = open('../Lib/test/test_parser.py') guts = f.read() f.close() def ouch(n): if n == 0: return compiler.compile(guts, "<string ", "exec") else: return ...
Tim Peters
Aug 10, 2004 at 12:39 am
Oct 1, 2004 at 4:44 am -
For what it's worth, I wrote the original PEP 318. I probably wasn't qualified, but I just wanted a nice simple way to declare class methods without having to repeat the function name. After ...
Kevin D.Smith
Aug 18, 2004 at 9:38 pm
Aug 23, 2004 at 1:08 pm -
Hello, people. I'm switching from ISO-8859-1 to UTF-8 in my locale, knowing it may take a while before everything gets fully adapted. Of course, I am prepared to do whatever it means. On my side at ...
François Pinard
Aug 3, 2004 at 4:53 pm
Aug 6, 2004 at 4:52 pm -
When I first announced Prothon, Tim Peters told me to feel free to post on Python lists because he considered Prothon a possible sandbox to learn from. So far I have interpreted this to mean c.l.p ...
Mark Hahn
Aug 8, 2004 at 12:55 am
Aug 12, 2004 at 3:39 pm -
So, I have been following Python-dev fairly closely ever since my company decided to rewrite everything in Python, and are now very interested in the future. Keeping track of the decorator debate has ...
IxokaI
Aug 5, 2004 at 9:24 pm
Aug 9, 2004 at 3:25 am -
[I posted this on comp.lang.python.general but I'm not sure how many of the folks here read that newsgroup, so my apologies if you're seeing this twice.] Thinking about decorators, and looking at ...
Paul Morrow
Aug 21, 2004 at 6:29 pm
Aug 23, 2004 at 1:49 am -
was always the plan but apparently not publicized). So I would like seriously to consider whether removing '@' might be a good idea. Note: my major concern with pep 318 has always been with syntax. I ...
Edward K. Ream
Aug 5, 2004 at 10:32 pm
Aug 6, 2004 at 8:58 pm -
I believe ActiveState's Trent Mick has released something along these lines. Does your proposed API match theirs? --Guido van Rossum (home page: http://www.python.org/~guido/)
Guido van Rossum
Aug 3, 2004 at 4:27 pm
Aug 5, 2004 at 8:30 pm -
I haven't seen anyone remark upon this yet, but the order of decorator application appears to be implemented backwards. According to the PEP: However, it seems the '@' form is really doing ...
James Y Knight
Aug 10, 2004 at 5:16 am
Aug 17, 2004 at 6:52 pm -
[Anthony] And nobody else has expressed their objections to it either? :-) Just look at it when either the list of decorators or the argument list doesn't fit on one line: class C(object): def ...
Guido van Rossum
Aug 6, 2004 at 4:45 pm
Aug 27, 2004 at 5:28 pm -
If you've ever been frustrated that there wasn't an easy way to parse a string or file, even though you could easily match it with re.match, then this PEP may be for you. If what's being proposed ...
Mike Coleman
Aug 6, 2004 at 4:46 am
Aug 23, 2004 at 1:39 pm -
I think we should take maximum advantage of prior art. Other languages have proven the efficacy of backwards spellings. Likewise, the reST module has proven the utility of ASCII markup. ...
Raymond Hettinger
Aug 13, 2004 at 8:11 pm
Aug 14, 2004 at 7:32 am -
[Barry Warsaw] Hi, people. The PEP was sent to python-list, but I'm replying to python-dev. As the PEP is "slated for inclusion in Python 2.4", I presume it was sent for information purposes, and not ...
François Pinard
Aug 23, 2004 at 3:20 pm
Aug 30, 2004 at 5:29 am -
Aahz had suggested that the threading section of the tutorial's Standard Library Tour Part II be re-written with the idea of making people smarter about what Python threading can and cannot do, and ...
Raymond Hettinger
Aug 16, 2004 at 2:09 am
Aug 23, 2004 at 1:57 am -
Hunting for deprecated modules. * Deprecated in 2.1: TERMIOS.py, whrandom.py. * Deprecated in 2.2: mpz module, statcache module. There are also various 2.2-deprecated methods in the email package; ...
A.M. Kuchling
Aug 7, 2004 at 10:57 pm
Aug 31, 2004 at 6:42 pm -
Hello. I've already thrown a few cents into this debate, and have read every post on it. I've used Ruby, so I love being able to make blocks for whatever I want - which is why Python's decorator ...
Martin Zarate
Aug 10, 2004 at 6:55 pm
Aug 13, 2004 at 4:11 pm -
'peak.events' uses "Task" objects that maintain a stack of active generators. The Task receives yields from the "innermost" generator directly, without them being passed through by intermediate ...
Phillip J. Eby
Aug 23, 2004 at 7:18 pm
Aug 26, 2004 at 3:01 am -
On pep 318 (like everything else here). Is it actually supposed to work for classes? like the pep title says. It doesn't seem to work, instead it issues a SyntaxError on the class keyword. Also, the ...
Simon Percivall
Aug 6, 2004 at 5:38 pm
Aug 12, 2004 at 7:56 pm -
Guido has stated he'll accept one community syntax proposal as an alternative to "@". He's also ruled out his own previous proposal (list-before-def), and a variety of new-keyword alternatives ...
Phillip J. Eby
Aug 5, 2004 at 10:44 pm
Aug 9, 2004 at 9:05 pm -
[Walter D?rwald] [Uncle Timmy] [Nephew Raymond] I needed a break from intractable database problems, and am almost done with PyUnicode_Join(). I'm not doing auto-unicode(), though, so there will ...
Tim Peters
Aug 27, 2004 at 12:20 am
Aug 31, 2004 at 11:00 pm -
There's a fair number of classes that claim they are defined in __builtin__, but do not actually appear there. For example: ... return clazz.__module__ + '.' + clazz.__name__ ... ...
James Y Knight
Aug 10, 2004 at 12:14 am
Aug 17, 2004 at 3:11 am -
Is there a plan for implementing a base class for int and long (like basestring for str and unicode): True ? -- Dmitry Vasiliev (dima at hlabs.spb.ru) http://hlabs.spb.ru
Dmitry Vasiliev
Aug 9, 2004 at 9:47 am
Aug 13, 2004 at 4:35 am -
Is there any reason why something like this would not be a good idea? You could then do things like this: ... - Dave -- http://www.object-craft.com.au
Dave Cole
Aug 3, 2004 at 8:44 am
Aug 8, 2004 at 11:31 pm -
I'm extremely averse to making the Python development process any heavier than it has to be, but the complaint that PEP 318 should have been updated to the state of play before the checkin is a fair ...
Anthony Baxter
Aug 6, 2004 at 3:21 am
Aug 6, 2004 at 6:11 pm -
After consultations with the relevant folks, I want to get 2.4a3 out the door on September 2nd. I'll be following up to this email with a list of things that are still pending. This _should_ be the ...
Anthony Baxter
Aug 19, 2004 at 5:50 pm
Aug 24, 2004 at 6:31 pm -
Patch / Bug Summary Patches : 276 open ( -3) / 2493 closed (+10) / 2769 total ( +7) Bugs : 766 open ( +4) / 4317 closed (+14) / 5083 total (+18) RFE : 146 open ( +1) / 130 closed ( +0) / 276 total ( ...
Kurt B. Kaiser
Aug 4, 2004 at 6:54 am
Aug 25, 2004 at 5:23 am -
The documentation for the atexit module (introduced in Py2.0) states: """Note: This module is unlikely to work correctly when used with other code that sets sys.exitfunc. In particular, other core ...
Raymond Hettinger
Aug 15, 2004 at 11:41 pm
Aug 17, 2004 at 11:50 pm -
I think I might have reported this previously (long time ago), but I don't recall if it was ever resolved. (Apparently not, since I'm still seeing it.) I'm seeing a test failure in test_tempfile on ...
Skip Montanaro
Aug 16, 2004 at 5:51 pm
Aug 17, 2004 at 12:09 am -
A recent patch makes asyncore.py's .set_reuse_addr method work on Windows, which needs a different socket option: if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: ...
A.M. Kuchling
Aug 7, 2004 at 4:23 pm
Aug 12, 2004 at 3:36 pm -
Hi, Ahem, oups, yes, I am to blame for this memory corruption bug. In the += string optimization I forgot that the string's ob_refcnt field is not always "correct". String interning messes with its ...
Armin Rigo
Aug 8, 2004 at 12:23 am
Aug 9, 2004 at 12:45 pm -
The thread about bytes() is about a Python 3.0 feature. Guido's presentations have mentioned various changes he'd like to make in 3.0, but there's no master list of things that would change. I think ...
A.M. Kuchling
Aug 17, 2004 at 7:16 pm
Sep 8, 2004 at 4:18 am -
With Python 2.4: ... def __str__(self): ... return u ... ... def __unicode__(self): ... return u ... u'\u263a' u'\u263a' With Python 2.3: Traceback (most recent call last): File "<stdin ", line 1, in ...
Neil Schemenauer
Aug 30, 2004 at 10:18 pm
Aug 31, 2004 at 8:58 pm -
The docstring for the decimal module says in part: This is a Py2.3 implementation of decimal floating point arithmetic based on the General Decimal Arithmetic Specification: Is it intended to remain ...
Skip Montanaro
Aug 19, 2004 at 10:40 pm
Aug 20, 2004 at 6:14 am -
The bug day on Saturday went well, as usual. 19 bugs and 12 patches were closed. That's not as good as the first bug day (30 bugs), but is competitive with the second (18 bugs, 21 patches). Lots of ...
A.M. Kuchling
Aug 9, 2004 at 11:38 pm
Aug 13, 2004 at 8:51 pm -
PLEASE IGNORE PREVIOUS MESSAGE. (I really ought to stop using a mailer which is one accidental click away from sending an unfinished email) Armin writes: IMHO, an implementation detail. Specifically, ...
Michael Chermside
Aug 3, 2004 at 2:32 pm
Aug 8, 2004 at 11:46 pm -
test__locale has been failing on OS X for quite a while now (I bet ever since we started compiling against the CoreFoundation framework since that is where the problem exists). I would like to deal ...
Brett C.
Aug 26, 2004 at 9:02 pm
Aug 27, 2004 at 8:28 am -
Hi, I suspect people are getting sick of the decorator discussion by now, so I'll try to be brief, and useful. Syntax option J2 from the wiki seems to have provoked an interesting discussion[1] at ...
Michael Sparks
Aug 14, 2004 at 1:11 am
Aug 17, 2004 at 1:15 am -
IMO, the most common uses of decorators will be to define properties, and class and static methods. IMO, these uses would be better served by a simpler syntax: def classmethod foo(cls, ...): ... This ...
Jim Fulton
Aug 4, 2004 at 4:52 pm
Aug 5, 2004 at 9:40 pm -
The re.split() method ignores zero-length pattern matches. Patch #988761 adds an emptyok flag to split that causes zero-length matches to trigger a split. For example: ['this is a sentence'] ['', ...
A.M. Kuchling
Aug 7, 2004 at 4:51 pm
Aug 23, 2004 at 12:53 am -
asyncore gives me a headache. Windows sockets give me a headache. Zope's ZEO gives me a headache. The ZEO test suite gives me nightmares. With that encouraging background, this ZEO test in ZODB 3.3 ...
Tim Peters
Aug 13, 2004 at 9:58 pm
Aug 16, 2004 at 3:44 am -
I disagree. The most important part of a function is the first def line. If you place other stuff before the def line, you make it harder to grep for the def line. Compare: ...
Barnesc
Aug 11, 2004 at 1:12 am
Aug 13, 2004 at 1:25 am -
Mike wrote: I wouldn't lose heart over the lack of response -- the current flood of decorator messages tends to drown out everything else. I like your idea in the abstract, but I have trouble ...
Edward Loper
Aug 7, 2004 at 3:00 am
Aug 12, 2004 at 12:29 am -
I propose to add the following function to the imp module: exists(module_name) Test whether the named module can be found. This method should be used when you want to perform alternate actions ...
Jim Fulton
Aug 2, 2004 at 6:32 pm
Aug 2, 2004 at 9:35 pm -
I was just reviewing the patch at http://python.org/sf/941486, which proposes adding a new 'lexists()' function to os.path. This function would return True for dangling symbolic links, unlike ...
Johannes Gijsbers
Aug 22, 2004 at 1:07 pm
Aug 30, 2004 at 12:22 pm
Group Overview
group | python-dev |
categories | python |
discussions | 186 |
posts | 1,937 |
users | 170 |
website | python.org |
170 users for August 2004
Archives
- September 2015 (170)
- August 2015 (315)
- July 2015 (472)
- June 2015 (209)
- May 2015 (680)
- April 2015 (772)
- March 2015 (360)
- February 2015 (600)
- January 2015 (129)
- December 2014 (287)
- November 2014 (425)
- October 2014 (334)
- September 2014 (409)
- August 2014 (463)
- July 2014 (330)
- June 2014 (578)
- May 2014 (239)
- April 2014 (676)
- March 2014 (862)
- February 2014 (644)
- January 2014 (1,338)
- December 2013 (181)
- November 2013 (668)
- October 2013 (788)
- September 2013 (840)
- August 2013 (504)
- July 2013 (533)
- June 2013 (475)
- May 2013 (872)
- April 2013 (719)
- March 2013 (537)
- February 2013 (596)
- January 2013 (366)
- December 2012 (481)
- November 2012 (394)
- October 2012 (573)
- September 2012 (302)
- August 2012 (343)
- July 2012 (344)
- June 2012 (1,071)
- May 2012 (629)
- April 2012 (782)
- March 2012 (1,241)
- February 2012 (1,071)
- January 2012 (878)
- December 2011 (465)
- November 2011 (423)
- October 2011 (527)
- September 2011 (341)
- August 2011 (700)
- July 2011 (555)
- June 2011 (431)
- May 2011 (582)
- April 2011 (841)
- March 2011 (1,830)
- February 2011 (653)
- January 2011 (662)
- December 2010 (947)
- November 2010 (1,074)
- October 2010 (755)
- September 2010 (976)
- August 2010 (760)
- July 2010 (1,336)
- June 2010 (770)
- May 2010 (608)
- April 2010 (835)
- March 2010 (981)
- February 2010 (629)
- January 2010 (398)
- December 2009 (355)
- November 2009 (885)
- October 2009 (1,071)
- September 2009 (914)
- August 2009 (583)
- July 2009 (674)
- June 2009 (460)
- May 2009 (491)
- April 2009 (1,309)
- March 2009 (1,411)
- February 2009 (770)
- January 2009 (1,095)
- December 2008 (877)
- November 2008 (539)
- October 2008 (534)
- September 2008 (601)
- August 2008 (489)
- July 2008 (753)
- June 2008 (904)
- May 2008 (961)
- April 2008 (639)
- March 2008 (1,001)
- February 2008 (651)
- January 2008 (853)
- December 2007 (299)
- November 2007 (403)
- October 2007 (266)
- September 2007 (431)
- August 2007 (326)
- July 2007 (305)
- June 2007 (204)
- May 2007 (649)
- April 2007 (469)
- March 2007 (988)
- February 2007 (571)
- January 2007 (423)
- December 2006 (311)
- November 2006 (403)
- October 2006 (611)
- September 2006 (538)
- August 2006 (688)
- July 2006 (991)
- June 2006 (1,377)
- May 2006 (842)
- April 2006 (1,393)
- March 2006 (1,333)
- February 2006 (1,642)
- January 2006 (930)
- December 2005 (912)
- November 2005 (607)
- October 2005 (929)
- September 2005 (965)
- August 2005 (861)
- July 2005 (526)
- June 2005 (498)
- May 2005 (848)
- April 2005 (694)
- March 2005 (675)
- February 2005 (436)
- January 2005 (807)
- December 2004 (409)
- November 2004 (442)
- October 2004 (567)
- September 2004 (635)
- August 2004 (1,937)
- July 2004 (783)
- June 2004 (722)
- May 2004 (441)
- April 2004 (751)
- March 2004 (1,027)
- February 2004 (472)
- January 2004 (831)
- December 2003 (1,005)
- November 2003 (671)
- October 2003 (1,410)
- September 2003 (573)
- August 2003 (480)
- July 2003 (1)
- June 2003 (2)
- May 2003 (1)
- April 2003 (1)
- March 2003 (1)
- February 2003 (1)
- January 2003 (1)
- December 2002 (1)
- November 2002 (1)
- October 2002 (1)
- September 2002 (1)
- July 2002 (2)
- June 2002 (1)
- May 2002 (1)
- April 2002 (1)
- March 2002 (1)
- February 2002 (1)
- January 2002 (1)
- December 2001 (1)
- November 2001 (1)
- October 2001 (1)
- August 2001 (1)
- July 2001 (2)
- June 2001 (1)
- May 2001 (1)
- April 2001 (1)
- March 2001 (1)
- February 2001 (1)
- January 2001 (1)
- December 2000 (1)
- November 2000 (1)
- October 2000 (1)
- August 2000 (1)
- July 2000 (1)
- June 2000 (2)
- May 2000 (1)
- April 2000 (1)
- March 2000 (1)
- February 2000 (1)
- January 2000 (1)
- December 1999 (1)
- November 1999 (1)
- October 1999 (1)
- September 1999 (1)
- August 1999 (1)
- July 1999 (1)
- June 1999 (1)
- May 1999 (1)
- April 1999 (1)
- March 1995 (1)