Re: [Python-3000] Catching HTTP requests and serving for it

2008-11-27 Thread Aahz
list is for discussion of new versions of Python. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "It is easier to optimize correct code than to correct optimized code." --Bill Harlan ___ Python-3000 mailing list

Re: [Python-3000] bytearray incompatible with bytes

2008-08-29 Thread Aahz
e a report on bugs.python.org -- that's the only way we have to track things. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Adopt A Process -- stop killing all your children! ___ Python-3000 mailing list Python

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-09 Thread Aahz
x for x in range(100) if not f(x)) > [0, 1, 2, 3, 4, 5] > > Certainly, it's an inconsistency compared to generator expressions, > but is it a bug? Dunno whether it's a bug, but please file a bug report to track this -- Aahz ([EMAIL PROTECTED]) <*> h

Re: [Python-3000] Question to _users_ -- about over all perceptions/feelings

2008-06-21 Thread Aahz
On Sat, Jun 21, 2008, Linda W. wrote: > > This isn't meant to stir controversy -- I'm more curious than anything else. This is the wrong place for this discussion. Please use comp.lang.python (gateway of python-list). -- Aahz ([EMAIL PROTECTED]) <*> http

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-04 Thread Aahz
~/Erlang and a $PATH as long as >>my arm just so I can run a few applications without system- >>installing them. > > I hate to send a "me too" messages, but I have to say Glyph is exactly > right here. +1 -- Aahz ([EMAIL PROTECTED]) <*> http

Re: [Python-3000] Removal of os.path.walk

2008-05-01 Thread Aahz
On Thu, May 01, 2008, Guido van Rossum wrote: > On Thu, May 1, 2008 at 7:25 AM, Aahz <[EMAIL PROTECTED]> wrote: >> >> Actually, the primary application I'm thinking of is a CGI that displays >> part of a directory listing (paged) for manual processing of individ

Re: [Python-3000] Removal of os.path.walk

2008-05-01 Thread Aahz
f individual files. > So the question really is whether it is a problem to keep all file > names in memory simultaneously. As Aahz says, the total memory > consumption for a large directory is still comparatively low, for > today's machines. Only for a single process. Throw t

Re: [Python-3000] Removal of os.path.walk

2008-04-30 Thread Aahz
s some directories with several hundred thousand entries, so using an iterator would be appreciated (although by the time we upgrade to Python 3.x, we probably will have fixed that architecture). But even then, we're talking tens of megabytes at worst, so it's not a killer -- just painful

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

2008-03-18 Thread Aahz
On Tue, Mar 18, 2008, Ronald Oussoren wrote: > On 18 Mar, 2008, at 16:49, Aahz wrote: >>On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: >>> >>>When I do a relative star import, I current get >>> >>>SyntaxError: 'import *' not al

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

2008-03-18 Thread Aahz
to use "from *" at all. I don't have time right now to find the discussion, but I can do that later if you want. > Is it ok to remove it? As always, that's up to Guido. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ &qu

Re: [Python-3000] Putting pdb.set_trace() in builtins?

2008-02-21 Thread Aahz
7;t particularly like your suggestions for modifying the result of breakpoint() (note that Facundo wants to use gdb). Why not simply inject set_trace() into the builtins in your startup code? You can control whether it gets injected with a DEBUG env var or something. -- Aahz ([EMAIL PROTECTED])

Re: [Python-3000] Nix dict.copy()

2008-02-10 Thread Aahz
On Mon, Feb 11, 2008, Greg Ewing wrote: > Aahz wrote: >> >> Let's suppose you have an object that represents an order. And let's >> suppose that this object needs to be copied to create a re-order (letting >> the customer preserve the information from the

Re: [Python-3000] Nix dict.copy()

2008-02-10 Thread Aahz
rder be created without copy(), and especially deepcopy()? What if an attribute of orders can be a list or dict? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "All problems in computer science can be solved by another level of indirection."

Re: [Python-3000] ABC method mismatch

2008-02-06 Thread Aahz
recently, your argument has revolved around the fact that you don't want tuples used as a "poor man's list" -- they are intended to be used for heterogeneous data. (Assuming I'm rephrasing you correctly.) (My purpose in poking you is to get better at channeling you rather

[Python-3000] DEADLINE Feb 4: OSCON 2008 Call for Proposals

2008-01-31 Thread Aahz
The O'Reilly Open Source Convention (OSCON) is accepting proposals for tutorials and presentations. The submission period ends Feb 4. OSCON 2008 will be in Portland, Oregon July 21-25. For more information and to submit a proposal, see http://conferences.oreilly.com/oscon/ -- Aahz ([

Re: [Python-3000] [Python-3000-checkins] r60376 - in python/branches/py3k: Lib/test/test_float.py Lib/test/test_long.py Objects/stringlib/formatter.h

2008-01-27 Thread Aahz
4567890)) '1.2345678901234567e+69' Overall, I could care less what decision gets made, but I think it's unfair to make the decision on an incorrect argument. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "All problems in computer sc

Re: [Python-3000] Set literal

2008-01-25 Thread Aahz
ed out, there are trade-offs with every breakage, and some changes are deemed just too radical. More to the point: the focus on breakage is removing old idioms that are considered language cruft even in Python 2.x. {} as a dict literal is not cruft. -- Aahz ([EMAIL PROTECTED]) <*>

Re: [Python-3000] [Python-Dev] inst_persistent_id

2008-01-24 Thread Aahz
o include pickle or cPickle. While it's easy enough to work around, my company would be unhappy if pickle were removed, and so would my previous company. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "All problems in computer science can be solv

[Python-3000] REMINDER: OSCON 2008 Call for Proposals

2008-01-23 Thread Aahz
The O'Reilly Open Source Convention (OSCON) is accepting proposals for tutorials and presentations. The submission period ends Feb 4. OSCON 2008 will be in Portland, Oregon July 21-25. For more information and to submit a proposal, see http://conferences.oreilly.com/oscon/ -- Aahz ([

[Python-3000] OSCON 2008 Call for Proposals

2008-01-12 Thread Aahz
The O'Reilly Open Source Convention (OSCON) is accepting proposals for tutorials and presentations. The submission period ends Feb 4. OSCON 2008 will be in Portland, Oregon July 21-25. For more information and to submit a proposal, see http://conferences.oreilly.com/oscon/ -- Aahz ([

Re: [Python-3000] Useless methods in Queue module

2008-01-11 Thread Aahz
g to advocate for retaining them, I see them as mildly useful for logging purposes (especially qsize()). -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the firs

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-07 Thread Aahz
should handle that? (Although I still like the idea of a .round() method for decimals, I think that round(Decimal()) is probably sufficient enough that I won't insist on it.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraf

Re: [Python-3000] python3000 C and C++ style coments

2007-12-23 Thread Aahz
On Sun, Dec 23, 2007, Tomy novella wrote: > > I think it would be great if C style(/* */) and C++ style(//) > comments appeared in python3000. This kind of discussion would be better on python-ideas. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ &

Re: [Python-3000] need help fixing broken tests in py3k-pep3137 branch

2007-11-04 Thread Aahz
best name would be for such an ABC but I don't remember the conclusion > reached. Guido said ByteSequence for the bytes, so MutableByteSequence? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Sm

Re: [Python-3000] Please re-add __cmp__ to python 3000

2007-10-17 Thread Aahz
t;less than", then why define a cmp() function at all? >From my perspective, the real use case for cmp() is when you want to do a three-way comparison of a "large" object (for example, a Decimal instance). You can store the result of cmp() and then do a

Re: [Python-3000] Extension: mpf for GNU MP floating point

2007-09-30 Thread Aahz
rary, so it probably should exist as a standalone extension first. This mailing list is probably not the right place for discussion, either. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ The best way to get information on Usenet is not to ask a question,

Re: [Python-3000] Unicode and OS strings

2007-09-15 Thread Aahz
e... That's why people keep arguing for an immutable bytes types. I keep seeing long discussions that end up with a tortured mechanism for making the keys unicode. Why don't we just bite the bullet and make things easier and have the immutable bytes type? -- Aahz ([EMAIL PROTECTED])

Re: [Python-3000] Unicode and OS strings

2007-09-15 Thread Aahz
They can easily roundtrip that then to the encoding that it should have: > > good_string = sys.argv[bad_string_index].\ >encode(sys.argv_encoding, "pua-replace").decode(real_encoding) That doesn't count as "easily" in my book. What about a sys._argv_orig cont

Re: [Python-3000] pep-0362?

2007-09-06 Thread Aahz
out what the thread is about. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices i

Re: [Python-3000] Merging between trunk and py3k?

2007-09-03 Thread Aahz
On Tue, Sep 04, 2007, Thomas Wouters wrote: > > Merging is sometimes hard, but always fun. Well, challenging. A > Chinese kind of interesting time. Not so Chinese, actually: http://www.noblenet.org/reference/inter.htm -- Aahz ([EMAIL PROTECTED]) <*> http://www.

Re: [Python-3000] Removing email package until it's fixed

2007-08-27 Thread Aahz
On Sun, Aug 26, 2007, Neil Schemenauer wrote: > Aahz <[EMAIL PROTECTED]> wrote: >> >> -0 on the idea of making "batteries included" include PyPI packages. >> Anything part of "batteries included" IMO should just be part of the >> standard insta

Re: [Python-3000] Removing email package until it's fixed

2007-08-26 Thread Aahz
On Sun, Aug 26, 2007, [EMAIL PROTECTED] wrote: > > aahz> Please don't interpret a missing chorus of opposition as support. > aahz> I'm only -0, but I definitely am negative on the idea based on my > aahz> guess about the likelihood of problems. > >

Re: [Python-3000] Limitations of "batteries included"

2007-08-25 Thread Aahz
quot; and does not move closer to a "sumo" philosophy. I do think a separate sumo distribution might make sense if someone wants to drive it. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is suppose

Re: [Python-3000] Removing email package until it's fixed

2007-08-25 Thread Aahz
e likelihood of problems. (OTOH, I have no opinion about temporarily removing the email package for a1 -- though I'm tempted to suggest we call it a0 instead.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ &quo

Re: [Python-3000] Is __cmp__ deprecated?

2007-08-24 Thread Aahz
in terms of, say, __lt__ > and __eq__? No! The whole point of cmp() is to be able to make *one* call; this is especially important for things like Decimal and NumPy. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your prog

Re: [Python-3000] [PATCH] Fix math.ceil() behaviour for PEP3141

2007-08-23 Thread Aahz
patch there. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd better not start writing it." --Dijkstra ___ Python-3000 ma

Re: [Python-3000] Please don't kill the % operator...

2007-08-18 Thread Aahz
. Even when you exclude them, going through and finding the non-literals will cause much pain, because we do use "%" for numeric purposes and because our homebrew templating language uses "%" to indicate a variable. -- Aahz ([EMAIL PROTECTED]) <*> http://w

Re: [Python-3000] map() Returns Iterator

2007-08-07 Thread Aahz
plit(). Keep in mind that because split() generates a new string for each line, that really does eat lots of memory, even if you switch to 10**6 instead of 10**9, which seems like a very common use case. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ This is

Re: [Python-3000] Support for PEP 3131

2007-05-29 Thread Aahz
ven as an argument in favor of Unicode identifiers, I think Ivan's vote should be given extra weight. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Look, it's your affair if you want to play with five people, but don't go c

Re: [Python-3000] Lines breaking

2007-05-29 Thread Aahz
On Tue, May 29, 2007, Ivan Krsti?? wrote: > > Perl bypasses the issue by having split > (http://perldoc.perl.org/functions/split.html) take a regex; I've only > rarely used this for complex matches, though. Then perhaps we should just point people at re.split()... -- Aahz

Re: [Python-3000] Radical idea: remove built-in open (require import io)

2007-05-17 Thread Aahz
/O. My initial take was -1, but now that I see that the existing tutorial introduces modules before it discusses files, I'm only -0. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Look, it's your affair if you want to play with five people, but d

[Python-3000] Whither string? (was Re: python/branches/py3k-struni/Lib/test/test_strop.py)

2007-05-17 Thread Aahz
I'm +1 on that idea. I can see arguments in favor of leaving string, but that name just has too much baggage. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Look, it's your affair if you want to play with five people, but d

Re: [Python-3000] Support for PEP 3131

2007-05-13 Thread Aahz
On Sun, May 13, 2007, "Martin v. L?wis" wrote: > > There are other, more serious cases of presentation ambiguity > (e.g. tabs vs. spaces), yet nobody suggests to ban tabs from the > language for that reason. Well, I do. ;-) -- Aahz ([EMAIL PROTECTED])

Re: [Python-3000] the future of the GIL

2007-05-09 Thread Aahz
ts. ...which is why this discussion belongs on python-ideas. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Look, it's your affair if you want to play with five people, but don't go calling it doubles." --John Cleese anticipates Usenet ___

Re: [Python-3000] Fixing super anyone?

2007-04-22 Thread Aahz
other keyword. > > But it's inconsistent with the way every other method is called. But we also don't have any keywords with methods "attached". I don't strongly favor Michele's approach, but it doesn't seem to me that there are any stro

Re: [Python-3000] Proposed changes to PEP3101 advanced string formatting -- please discuss and vote!

2007-04-03 Thread Aahz
rgs, +1 for **kwargs While I understand your reasoning, I still think that mismatched strings and arguments is likely to be a significant problem; instead I favor allowing this feature to be turned off. > Feature: Exception raised if attribute with leading unders

Re: [Python-3000] Proposed changes to PEP3101 advanced string formatting -- please discuss and vote!

2007-04-03 Thread Aahz
rmat a >> flag! > > I don't like it that much myself, either. I considered > "extended_format" and a few others, but wasn't happy with any of them. > Name suggestions are certainly welcome. Why not just string.format()? There's precedence for module-le

Re: [Python-3000] Ordered mapping type for Python 3000?

2007-03-27 Thread Aahz
On Tue, Mar 27, 2007, Frank Benkstein wrote: > > Comments? Should I try to wrap this up as a PEP? You should try to start a discussion on either comp.lang.python or python-ideas. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Need a book? Use

Re: [Python-3000] Draft PEP for New IO system

2007-03-25 Thread Aahz
f.raw.read(200) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Typing is cheap. Thinking is expensive." --Roy Smith ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/l

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Aahz
On Fri, Mar 23, 2007, Guido van Rossum wrote: > > I know this was in my early lists of "clean up the language" plans for > Py3k, but I think it's not worth the hassle. Should it be added to PEP 3099? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pyth

[Python-3000] Single-line blocks?

2007-03-23 Thread Aahz
IIRC, there was some discussion about removing single-line blocks like this one in 3.0: if foo: bar() However, I can't find any discussion about making it happen, and it's not in PEP 3099. Guido, does this need a PEP? Do you want it to happen? -- Aahz ([EMAIL

Re: [Python-3000] PEP: rename it.next() to it.__next__(), add a next() built-in

2007-03-05 Thread Aahz
rt of a language-level protocol, and that a built-in function named > ``next`` be introduced to invoke ``__next__`` method, consistent with > the manner in which other protocols are explicitly invoked. +1 -- I was always against next() in the first place. I'm +0 on operator.next() relativ

Re: [Python-3000] Thoughts on dictionary views

2007-02-20 Thread Aahz
ion proves itself as enormously popular, useful, understandable, > and without a good equivalent, then it can ask for a promotion. +1, and thank you for cogently writing up the unease that I was feeling -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.c

Re: [Python-3000] Poll: Lazy Unicode Strings For Py3k

2007-02-01 Thread Aahz
On Thu, Feb 01, 2007, Larry Hastings wrote: > Aahz wrote: >> >> While I don't have an opinion about the patch itself, I do have an >> opinion about other people's opinions. ;-) That is, my opinion is that >> unless you get a +1 from at least one of Fredrik,

Re: [Python-3000] Poll: Lazy Unicode Strings For Py3k

2007-01-31 Thread Aahz
er, though you should be focused on people with commits in unicodeobject.c, and I'd recommend that Fredrik or MvL be on that list regardless.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I disrespectfully agree." --SJM _

Re: [Python-3000] new pickle semantics/API

2007-01-25 Thread Aahz
* 2.x and 3.x to make it easier to figure out where features should go without cross-posting. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Help a hearing-impaired person: http://rule6.info/hearing.html ___ Python

Re: [Python-3000] new pickle semantics/API

2007-01-24 Thread Aahz
patching, which "uncovers" the object is actually a proxy, rather > than a real object. This should go to python-ideas, I think -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Help a hearing-impaired person: http://rule6.info/hearing.html __

Re: [Python-3000] PEP 3108 and modules to be removed (current list)

2007-01-11 Thread Aahz
know if PyPy or IronPython use it for their set > implementation. > > What do other people think? I'm generally a fan of providing Python versions of C modules. It makes Python more accesible to someone ramping up. -- Aahz ([EMAIL PROTECTED]) <*> http

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

2007-01-10 Thread Aahz
On Tue, Jan 09, 2007, Thomas Wouters wrote: > On 1/9/07, Aahz <[EMAIL PROTECTED]> wrote: >> >>Hey! What's this about __cmp__?! > > Python 3.0x (p3yk:53295, Jan 8 2007, 09:32:17) > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 > Type &quo

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

2007-01-08 Thread Aahz
object code to warn when they're defined? > I guess the latter would be more proactive. Or we could do both. Hey! What's this about __cmp__?! -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Plus ca change, plus c'est la meme chose." _

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

2006-12-28 Thread Aahz
good opportunity to remind people where the action is. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I support family values -- Addams family values" --www.nancybuttons.com ___ Python-3000 maili

[Python-3000] Lazy strings (was Re: Py3k release schedule worries)

2006-12-23 Thread Aahz
ble to build on top of that? My recollection is that Larry said he could make it work with Unicode with little difficulty -- I suspect he's either on vacation or ignoring this thread, so I'm renaming and cc'ing him. -- Aahz ([EMAIL PROTECTED]) <*> http://www.py

Re: [Python-3000] versionadded/versionchanged in doc

2006-12-20 Thread Aahz
gt;> of the docs: a Python x.y set and a Python forever set. > > Hmm. I think a little bit of JavaScript would go a long way. ;-) After > looking at the code for the HTML generation, I don't think that would be > difficult to do at all. Die, evil scum. Signed, Lynx user. -

Re: [Python-3000] Low-hanging fruit: change interpreter prompt?

2006-11-29 Thread Aahz
t, intepreter > sessions might look funky when copy & pasted inside mails. While I feel your pain, I loathe the idea of updating all my doctests... -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Usenet is not a democracy. It is a

Re: [Python-3000] Special methods and interface-based type system

2006-11-23 Thread Aahz
n the current > discussion. But the whole point of making Guido BDFL was to codify his intuition WRT language decisions. There's a reason why we here are using Python instead of other languages, and as Guido himself has noted, often he knows what the right decisions is

Re: [Python-3000] Proposal: No more standard library additions

2006-10-16 Thread Aahz
good mechanism for resolving the deadlock? We have the primary maintainer (and some other users) claiming that distutils is a mess that needs rewriting. You think it doesn't, but based on other comments you've made, I believe you don't have available time. I hav

Re: [Python-3000] Alternatives to 'outer'

2006-10-13 Thread Aahz
Did anyone else think "outies" and "innies" when reading the Subject: line? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd

Re: [Python-3000] Removing __del__

2006-09-22 Thread Aahz
less-than-wizard programmers -- to warrant keeping __del__ around. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" -- www.nancybuttons.com ___ Python-3000 mailing list Python-3000@

Re: [Python-3000] The future of exceptions

2006-09-08 Thread Aahz
= str(msg) >logError(msg) >raise msg This code is guaranteed to fail in Python 3.0, of course, because string exceptions aren't allowed. But your point is taken, I think. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com

Re: [Python-3000] encoding hell

2006-09-04 Thread Aahz
On Mon, Sep 04, 2006, Oleg Broytmann wrote: > On Sun, Sep 03, 2006 at 01:45:28PM -0700, Aahz wrote: >> >> You want to be able to read the file and write data to it. That argues >> in favor of seek(0) and seek(-1) being the only supported behaviors, >> though. > >

Re: [Python-3000] encoding hell

2006-09-03 Thread Aahz
ite data to it. That argues in favor of seek(0) and seek(-1) being the only supported behaviors, though. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB ___ Python-3000 mailing list Python-3000@p

Re: [Python-3000] Making more effective use of slice objects in Py3k

2006-08-29 Thread Aahz
he values of the dict >> alive as well as the keys, unlike the existing keys() method. > > Right; but I don't expect that such a keys() view will typically have > a lifetime longer than the dict. That's true only for newer code that correctly uses sets instead of dicts -- but

Re: [Python-3000] PEP3102 Keyword-Only Arguments

2006-08-14 Thread Aahz
gt; with an underscore. > > Hm... and perhaps we could forbid keyword arguments starting with an > underscore in the call syntax? Do you mean forbid by convention or syntactically? I'm -1 on the latter; that would be far too much gratuitous code breakage. -- Aahz ([EMAIL PROTECTE

Re: [Python-3000] threading, part 2

2006-08-12 Thread Aahz
eone else said that already, but I think it needs emphasis.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definiti

[Python-3000] Python 2.5 release schedule (was: threading, part 2)

2006-08-12 Thread Aahz
xt week is rc1. We are right now in complete feature lockdown; even documenting an existing API IMO requires approval from the Release Manager. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Debugging is twice as hard as writing the code in the first

Re: [Python-3000] No Container Literals

2006-07-08 Thread Aahz
I feel they seem much more > readable, and allow better addition of more literal compilations (set > literals are fixed then, for example). I know no one will like this, > but I have to make the idea known anyway. Could someone add this to the rejected proposals PEP? -- Aahz ([EMAIL PR

Re: [Python-3000] August Google sprint

2006-07-05 Thread Aahz
g to be at Worldcon instead -- dunno how many other people are in that boat. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I saw `cout' being shifted "Hello world" times to the left and stopped right there." --Steve Gonedes __

Re: [Python-3000] Instinctive interfaces (was proposal: disambiguating type)

2006-05-23 Thread Aahz
t is off-topic, but here's a Google search in case anyone wants proof ;-) "learning breastfeeding" Your previous comments that the critical characteristics are how easy an interface is to remember and how easy it is to make appropriate guesses about other uses of an interface

Re: [Python-3000] stdlib reorganization

2006-05-22 Thread Aahz
consistencies in casing > ("StringIO, "cPickle", etc.), unnecessary distinctions ("thread" vs. > "threading")... So that you can use "http" as a name, of course. Some of the others you list are historical accidents that probably will get fixed for Py3K. --

Re: [Python-3000] Type annotations: annotating generators

2006-05-21 Thread Aahz
this mindset as well. The fact that Python 2.x uses a tuple for > *varargs has caused me to jump through a number of hoops in my own > typecheck package. This is a guideline, not a rule, and the speed and size of tuples make them more appropriate for varargs. -- Aahz ([EMAIL PROTECTED])

Re: [Python-3000] back with more GUI planning in a few days...

2006-05-09 Thread Aahz
"better" is mostly defined in terms of ease of creating a decent GUI application *in* *Python*. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Argue for your limitations, and sure enough they're yours." --Richard Bach _

Re: [Python-3000] What do do about IDLE?

2006-05-08 Thread Aahz
On Mon, May 08, 2006, Antoine Pitrou wrote: > Le lundi 08 mai 2006 ? 07:13 -0700, Aahz a ?crit : >> >> Aside from Java and Swing (which has its own set of problems), is there >> any readily-available GUI that includes a significant number of platforms >> other than

Re: [Python-3000] What do do about IDLE?

2006-05-08 Thread Aahz
d library. Aside from Java and Swing (which has its own set of problems), is there any readily-available GUI that includes a significant number of platforms other than the Big Three? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/

Re: [Python-3000] What do do about IDLE?

2006-05-07 Thread Aahz
t Tk automatically. Secondly, your argument sounds like a variant of the argument against adding pysqlite to the core, which I think has some technical merit but little actual merit. A library can certainly be part of the core distribution even if it has dependencies on external libraries

Re: [Python-3000] bug in modulus?

2006-05-03 Thread Aahz
Timmy is jumping up and down and screaming for a change. Granted, I think we should show respect for our numerical elders, but I think Michael also has a point about the importance of making floats and ints behave the same, especially given that division will auto-promote floats from ints. --

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

2006-05-01 Thread Aahz
I think it is entirely reasonable to expect that a GUI toolkit will at least make it straightforward to implement keyboard-based commands. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Argue for your limitations, and sure enough they're yours."

Re: [Python-3000] Speeding up function calls

2006-04-29 Thread Aahz
ary bottleneck for slow function calls. Would you mind doing that before pushing a radical API change? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Argue for your limitations, and sure enough they're yours." --Richard Bach ___

Re: [Python-3000] Automatically invoking str() in str.join()

2006-04-27 Thread Aahz
be fixed. >> >>+1 on this; I've thought this for a long time. > > Strong +1. > This fixes a long-standing micro-wart. -0 While I hate the way it looks, I never have gotten mixed up about the order of arguments since switching to ''.join(l). -- Aahz ([EMAIL PROTECTED]

Re: [Python-3000] sets in P3K?

2006-04-25 Thread Aahz
at removing dict literals (or list literals) counts as gratuitous breakage. Losing listcomps won't be a big problem because they can be automatically fixed and they aren't much loss. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Argue for y

Re: [Python-3000] Special object to return from functions that return only None

2006-04-25 Thread Aahz
ject() The biggest problem from my POV with widespread adoption of this technique is that it doesn't play well with pickle. Perhaps someone wants to take a whack at defining a more generic mechanism for sentinels? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.

[Python-3000] PEP3100 update: chained exceptions

2006-04-24 Thread Aahz
The recent discussion about the with statement on python-dev reminded me that at one point we talked about making chained exceptions automatic. Could someone update PEP3100 to list chained exceptions as one of the features that needs discussion? -- Aahz ([EMAIL PROTECTED

Re: [Python-3000] Type Expressions

2006-04-21 Thread Aahz
it's currently a syntax error. > > To prevent more abominations like this, let me pronounce that I now > like the single-star syntax: > > def foo(a, b, *, x=1, y=2): ... So the way to get you to pronounce in favor of an abomination is to suggest a worse abomination? ;-) -- Aa

Re: [Python-3000] Type Comparisons with Godel Numbers

2006-04-21 Thread Aahz
r y in a: blah blah How do we handle the cost of doing the typecheck in the second loop? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Argue for your limitations, and sure enough they're yours." --Richard Bach

Re: [Python-3000] [Python-Dev] Raising objections

2006-04-19 Thread Aahz
isely, we should probably just rename urllib2 to urllib and copy the utility functions from urllib. Any other modules that need similar treatment? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" __

Re: [Python-3000] Futures in Python 3000

2006-04-19 Thread Aahz
t; And there are deep implementation reasons for that. > > Does this mean that Py3K intends to reuse major portions of > Python 2.x's implementation? Absolutely! In fact, the major push in Py3K is to remove portions of code (such as classic classes). -- Aahz ([EMAIL PROTECTED])

Re: [Python-3000] A super() idea - no _getframe() involved

2006-04-19 Thread Aahz
e can't be the only ones. I shan't argue too forcefully, though; it wouldn't be that hard to rename it. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" ___ Python-3000

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

2006-04-19 Thread Aahz
il clients can understand that, and people using text e-mail clients can more easily copy/paste the URL. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" ___ Python-3000 mailing list Py

Re: [Python-3000] auto-super()

2006-04-18 Thread Aahz
s inherently diamond inheritance -- how do you propose to deal with that? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" ___ Python-3000 mailing list Python-3000@python.org http://mail.

Re: [Python-3000] auto-super()

2006-04-18 Thread Aahz
On Tue, Apr 18, 2006, Ian Bicking wrote: > Aahz wrote: >>On Tue, Apr 18, 2006, Thomas Wouters wrote: >> >>>- Compiler hackery involving a magical variable name, say '__class__' >>>or '__CLASS__'. The compiler would treat this specially, proba

Re: [Python-3000] auto-super()

2006-04-18 Thread Aahz
ns, > although I'm not sure if they're bad. +1 Of course, we will still have name problems, but they won't be clashes. I don't know that this is needed for the super() issue, but there are other problems with the current mangling system. -- Aahz ([EMAIL PROTECTED])

  1   2   >