Re: [Python-3000] Assert syntax change...

2008-06-24 Thread Charles Merriam
raise_assert(message_expr)". No one was too interested. Did I miss anything? I like problems to have accurate final solutions. Thanks for the time, Charles On Thu, Apr 24, 2008 at 9:13 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Charles Merriam wrote: >> >> On Thu,

Re: [Python-3000] Assert syntax change...

2008-04-24 Thread Charles Merriam
On Thu, Apr 24, 2008 at 2:01 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Thu, Apr 24, 2008 at 1:51 PM, Mikhail Glushenkov > > Why not make ``assert`` a built-in function then? > Because then it can't be disabled by the compiler in -O mode. A reasonable conclusion, but needs better reaso

[Python-3000] Assert syntax change...

2008-04-24 Thread Charles Merriam
look like. I do not know if the implementation details of parenthesized tuples make this difficult. I should have noticed it a year ago. Charles Merriam ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Charles Merriam
On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> wrote: ... > For new code, however, there is an alternative strategy that doesn't > involve 2to3 at all, which is to write code in the "greatest common > subset" of 2.6 and 3.0. > > As Lennart Regbro pointed out earlier, this common sub

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

2008-03-24 Thread Charles Merriam
OK. 54 long messages into it, the argument is stuck at: 1. But 3.0 code is different. 2. But 3.0 shouldn't gratuitously break 2.6 code. So make u"sting" a deprecated structure with a warning and kill it in 3.1. Why write a novel about it? Just make what programmers expect to happen happen.

[Python-3000] (PEP 3000) Rethinking 2to3, __future__, and the migration path.

2008-03-21 Thread Charles Merriam
I hate bringing up something that has been hashed over so many times, but I'm a bear of little brain and am not understanding the migration path. The whole use of the "2to3" tools seems like an abrupt hack. It is workable, but causes a serious plan for near term 2.x to 3.x migration. I'd like t

Re: [Python-3000] u'text' as an alias for 'text'?

2008-03-20 Thread Charles Merriam
e? On Thu, Mar 20, 2008 at 8:40 AM, Charles Merriam <[EMAIL PROTECTED]> wrote: > Hello Lennart, > > As you can see by the growing conversation, the matter is a bit old > and, with age, smells > bad. I'd like to convince you that it is a bad idea anyway. > > Th

Re: [Python-3000] u'text' as an alias for 'text'?

2008-03-20 Thread Charles Merriam
Hello Lennart, As you can see by the growing conversation, the matter is a bit old and, with age, smells bad. I'd like to convince you that it is a bad idea anyway. The problem is not the gratuitous removal of the leading 'u', but the subtle problems when the code looks nearly identical. The mo

Re: [Python-3000] Using *a for packing in lists and other places

2008-03-19 Thread Charles Merriam
On Mon, Mar 17, 2008 at 3:37 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > ... > Can you give another rule that you prefer and that I can comprehend and > that I can explain to Python newcomers? The OP only gave a few examples of > * usage and (initially) no rule that I saw. Really, it is as c

Re: [Python-3000] Using *a for packing in lists and other places

2008-03-15 Thread Charles Merriam
-1. While the syntax has a basic beauty, it requires too much odd explanation. "*" and "**" are already binary operators. The '*' unary operator can confuse migrating programmers already. It makes puzzles too easy, e.g., yield **[2**3*i, for i in range(2*3**4)] On Sat, Mar 15, 2008 at 6:55 PM

Re: [Python-3000] pickle, cPickle, and the standard library (was Re: [Python-Dev] inst_persistent_id)

2008-02-05 Thread Charles Merriam
I agree. A wiki page for "leaving just the head of the snake" would be the correct solution. On Feb 4, 2008 4:34 PM, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 2/4/08, Charles Merriam <[EMAIL PROTECTED]> wrote: > > What about a formal dependency plan instead? >

Re: [Python-3000] pickle, cPickle, and the standard library (was Re: [Python-Dev] inst_persistent_id)

2008-02-04 Thread Charles Merriam
his a poor idea? "Hard drive space is expensive" is not an acceptable argument. Charles - Charles Merriam e: [EMAIL PROTECTED] u: http://charlesmerriam.com q: "Toolboxes have more tools than just a hammer." On Feb 4, 2008 1:28 AM, Nick Coghlan <[EMAIL PROTECTED]&

Re: [Python-3000] [Python-ideas] Namespaces are one honking great idea -- let's do more of those!

2008-02-04 Thread Charles Merriam
uring the early transition period: ...# Require python 3.x print ("I'm Pythonic!") The idiom would disappear with time, not add special cruft to the language, and would give a reasonable compile-time error message. Just a thought, Charles --- Charles Merriam e: [EMAIL PROTECTED] u: htt

Re: [Python-3000] Set literal

2008-01-25 Thread Charles Merriam
> There are also « and », << and >> for those w/o UTF-8 support in their > mail client. On my keyboard the characters are available under [alt gr] > + y and x. Not elegant. It should look pretty. Code should look the same in all character encodings unless alternate codings for used for identifie

Re: [Python-3000] Ellipsis

2008-01-24 Thread Charles Merriam
OK, I'll admit this is confusing to me. Is "..." == pass? So, does a line with tokens after the "..." get an error like "characters after an elipses (...). Did you cut and paste from IDLE?" On Jan 24, 2008 12:04 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Some folks thought it would b

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

2008-01-14 Thread Charles Merriam
Not to be pedantic, but the major concern others are voicing is that is that queue size is not reliable and is therefore a potential source of hard to find threading bugs by naive users. Why not just rename q.size() to the unweildy name of q.est_size()? On Jan 14, 2008 11:59 AM, Guido van Rossu

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2008-01-13 Thread Charles Merriam
t; At 10:55 AM 1/13/2008 -0800, Charles Merriam wrote: > >You have a legitimate counter-argument that grouping the > >implementations of __add__ in the metaclass is cleaner than having > >them stand alone and be referenced in. > > You've misunderstood Michele's

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2008-01-13 Thread Charles Merriam
implementations of __add__ in the metaclass is cleaner than having them stand alone and be referenced in. Is this your argument? Lost, Charles On Jan 13, 2008 9:58 AM, Michele Simionato <[EMAIL PROTECTED]> wrote: > > On Jan 13, 2008 9:37 AM, Charles Merriam <[EMAIL PROTECTED]> wrot

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2008-01-13 Thread Charles Merriam
sorry, I meant __new__() not __init__(). For this crowd, I thought I'd put in the obvious correction. :) On Jan 13, 2008 9:37 AM, Charles Merriam <[EMAIL PROTECTED]> wrote: > Well, I'm explicitly dropping this. So far no one has pointed out > any use cases that

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2008-01-13 Thread Charles Merriam
Well, I'm explicitly dropping this. So far no one has pointed out any use cases that are not equivalent to intercepting an array of the namespace in the __init__() of a subclass of type, then calling type's __init__() on the modified namespace. Still, I do get a level of snarky insults that le

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Charles Merriam
Could you provide some more information? One can define behavior as simply as wrapping an indirection around each method of a class. I'd welcome pointers to the additional cases. Thank you, Charles On Dec 22, 2007 4:57 AM, Christian Tanzer <[EMAIL PROTECTED]> wrote: > >

Re: [Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-22 Thread Charles Merriam
> > Yes, several. You haven't been reading the previous discussion > threads, in which I've repeatedly posted other use cases for PEP > 3115, every time someone else who hasn't read the previous posting of > those use cases, and tries to "simplify" the PEP. Other people have > posted a few as wel

[Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

2007-12-21 Thread Charles Merriam
s really late to party. I would love to see use cases for which this solution does not work. Is this a matter of writing a PEP?, writing a sample cpython patch?, learning to live without? Charles Merriam --- Refs: The PEP http://www.python.org/dev/peps/pep-3115/ David Mertz's Metaclass