Re: [Python-Dev] properties and block statement

2005-10-18 Thread Antoine Pitrou
Le mardi 18 octobre 2005 à 19:17 +0200, Antoine Pitrou a écrit : > > What would this mythical block statement look like that would make > > properties easier to write than the above late-binding or the subclass > > Property recipe? > > I suppose something like: >

Re: [Python-Dev] properties and block statement

2005-10-18 Thread Antoine Pitrou
Le mardi 18 octobre 2005 à 12:56 -0700, Josiah Carlson a écrit : > You are saving 3 lines over the decorator/function approach [...] Well, obviously, the point of a block statement or construct is that it can be applied to many other things than properties. Otherwise it is overkill as you imply.

Re: [Python-Dev] Definining properties - a use case for class decorators?

2005-10-19 Thread Antoine Pitrou
Hi Michele, > Property p(): > "I am a property" > def fget(self): > pass > def fset(self): > pass > def fdel(self): > pass In effect this is quite similar to the proposal I've done (except that you've reversed the traditional assignment order from "p = Pro

Re: [Python-Dev] Divorcing str and unicode (no more implicit conversions).

2005-10-24 Thread Antoine Pitrou
> There are many design alternatives: one option would be to support > *three* internal representations in a single type, generating the > others from the one operation existing as needed. The default, initial > representation might be UTF-8, with UCS-4 only being generated when > indexing occurs,

Re: [Python-Dev] Divorcing str and unicode (no more implicitconversions).

2005-10-29 Thread Antoine Pitrou
> Thanks for these data. This mostly reflects my experience with German > and French users: some people would like to use non-ASCII identifiers > if they could, other argue they never would as a matter of principle. > Of course, transliteration is more straight-forward. FWIW, being French, I don'

Re: [Python-Dev] svn:ignore

2005-10-29 Thread Antoine Pitrou
Hi, FWIW, I opened a bug report on Subversion some time ago so that patterns like "*.pyc" and "*.pyo" are ignored by default in Subversion. Feel free to add comments or vote for the bug: http://subversion.tigris.org/issues/show_bug.cgi?id=2415 Regards Antoine.

Re: [Python-Dev] PEP 351, the freeze protocol

2005-10-30 Thread Antoine Pitrou
> It allows everything in Python to be both mutable and hashable, I don't understand, since it's already the case. Any user-defined object is at the same time mutable and hashable. And if you want the hash value to follow the changes in attribute values, just define an appropriate __hash__ method

Re: [Python-Dev] svn checksum error

2005-10-30 Thread Antoine Pitrou
Le dimanche 30 octobre 2005 à 19:08 -0600, [EMAIL PROTECTED] a écrit : > Sorry, wasn't thinking in terms of svn bugs. I was anticipating some sort > of obvious pilot error. I am on Mac OSX 10.3.9, running svn 1.1.3 I built > from source back in the May timeframe. Should I upgrade to 1.2.3 as a >

Re: [Python-Dev] str.dedent

2005-11-13 Thread Antoine Pitrou
> You are missing a point here: string methods were introduced > to make switching from plain 8-bit strings to Unicode easier. Is it the only purpose ? I agree with the OP that using string methods is much nicer and more convenient than having to import separate modules. Especially, it is nice to

<    45   46   47   48   49   50