Re: [Python-Dev] a quit that actually quits

2005-12-28 Thread François Pinard
. It is desirable, in my opinion, that interactive behaviour be as identical as possible as script behaviour: the automatic printing of interactive mode is already much magic that newcomers need to sort out. -- François Pinard http://pinard.progiciels-bpi.ca __

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-15 Thread François Pinard
. Programmers not being in the first two sets do not require so much protection: for the clever ones, because the probability of clashes between neologisms is much smaller than the probability of clashes with usual natural language words; for the randomising programmers, well, because they do no

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-14 Thread François Pinard
[Guido van Rossum] >On 12/14/05, François Pinard <[EMAIL PROTECTED]> wrote: >> I would like that PEP 0008 add some cement around this idea that common >> English words, properly spelled, which are likely to be user variable >> names, be avoided whenever reasonabl

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-14 Thread François Pinard
, args)" with "func(*args)". - Replacing "for line in file.readlines():" with "for line in file:". - Replacing "for key in dict.keys():" with "for key in dict:". - Replacing "if has_key(dict

Re: [Python-Dev] Deprecate __ private (was Re: PEP 8 updates/clarifications)

2005-12-14 Thread François Pinard
[Phillip J. Eby] >At 09:53 AM 12/13/2005 -0500, François Pinard wrote: >>Everybody here agrees that this style makes the code much less legible. >I hope you mean, "here at your company or organization", as I disagree. :) Yes, of course! Sorry for the ambiguity. --

Re: [Python-Dev] Deprecate __ private (was Re: PEP 8 updates/clarifications)

2005-12-14 Thread François Pinard
of the form "from HELL import *". :-) But this gets a bit far from the original topic. Let's drop the matter here as not being much more of general interest, or else, let's switch to private email.

Re: [Python-Dev] Deprecate __ private (was Re: PEP 8 updates/clarifications)

2005-12-13 Thread François Pinard
ut it only goes a little bit at a time. We should probably suffer taking the time, dive in it all, and get rid of this style once and for all... -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] PEP 8 updates/clarifications

2005-12-10 Thread François Pinard
[Ian Bicking] >Barry Warsaw wrote: >Just like I wouldn't like someone using "self" outside of the first >argument of instance methods. A tiny nit. Within __new__(cls, ...), I find quite legible writing: self = BASECLASSE.__new__(cls, ...) and using it afterwar

Re: [Python-Dev] PEP 352 Transition Plan

2005-11-05 Thread François Pinard
simple and clean meaning, like the real base of the exception hierarchy. Second, as a bare "except:" is not considered good practice on average, it would be counter-productive trying to figure out ways to make it more frequently _usable_. -- François Pinard http://pinard.pro

Re: [Python-Dev] No more problems with new SVN repository

2005-11-04 Thread François Pinard
ok log -t ARG2 ARG1", where ARG1 and ARG2 are arguments given to the pre-commit script. -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

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

2005-10-31 Thread François Pinard
this world would love being as comfortable as possible using Python, while naming identifiers naturally. It is not so unreasonable that we keep some _hope_ that Guido will soon choose to help us all, not only me. -- François Pinard http://pinard.progiciels-bpi.ca __

Re: [Python-Dev] Freezing the CVS on Oct 26 for SVN switchover

2005-10-31 Thread François Pinard
or the file where you want substitutions. That property is named "svn:keywords" and its value decides which kind of substitution you want to allow. This is all theory for me, I never used them. -- François Pinard http://pinard.progiciels-bpi.ca _

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

2005-10-30 Thread François Pinard
[Martin von Löwis] > My canonical example is François Pinard, who keeps requesting it, > saying that local people where surprised they couldn't use accented > characters in Python. Perhaps that's because he actually is Quebecian > :-) I presume I should comment a bit

Re: [Python-Dev] [Python-checkins] commit of r41352 - in python/trunk: . Lib Lib/distutils Lib/distutils/command Lib/encodings

2005-10-29 Thread François Pinard
[Martin von Löwis] >Without a file, I wouldn't know how to edit the property, so I would >probably do >svn propget svn:ignore . > ignores >vim ignores >svn propset svn:ignore -F ignores . >rm ignores You can use `svn propedit' (or `svn pe'). -- Franço

Re: [Python-Dev] Simplify lnotab? (AST branch update)

2005-10-14 Thread François Pinard
[Raymond Hettinger] > > >> > Even better if the lines for a particular piece of code don't > > >> > have to all come from the same file. > YAGNI I surely needed it, more than once. Don't be so assertive. :-) -- Franço

Re: [Python-Dev] Simplify lnotab? (AST branch update)

2005-10-14 Thread François Pinard
s generated from more than one original source file (referring to the `#line' directive message, a little earlier this week). For example, think include files. -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Simplify lnotab? (AST branch update)

2005-10-13 Thread François Pinard
through generated Python for finding the real source as referenced by comments. Yet, granted also that the need has not been frequent, for me. -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] "and" and "or" operators in Py3.0

2005-09-19 Thread François Pinard
s other language norms, and > simplifies/speeds-up the generated code. The summary reduces to: "Returning only Booleans would speed-up the generated code, once in a while." Now, could we evaluate that speed up on the average code, like on the Python library say? It might not be worth

Re: [Python-Dev] removing nested tuple function parameters

2005-09-18 Thread François Pinard
ments, and faster argument processing, the latter would win instantly. > > ditching them thanks to the pain they caused in the AST branch. > Changing the grammar for the convenience of a particular AST > implementation carries zero weight with me -- that is the tail wagging > the dog. A v

Re: [Python-Dev] string formatting and i18n

2005-09-05 Thread François Pinard
ng full i18n for Template strings. Yet, "The file %(filename)s in directory %(dir)s is read only" % vars() is already usable. The need being already filled without Template strings, it could hardly be presented as a motivation for them. :-) -- François Pinar

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-04 Thread François Pinard
Let me correct two typos (I had to leave in a rush). [François Pinard] > [...] Let's consider that `print' (or whatever) is a Python function, > not negotiable. It should likely be. The "It" refers to `print' being a Python function, not the negotiability. &g

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-04 Thread François Pinard
which could be seen as similarly encompassing. Logo and a few others also have parentheses-less function calls, yet they may be week at handling functions as first-class objects. (And besides, I'm far from overly liking them! :-). -- François Pinard http://pinard.progiciels-bpi.ca _

Re: [Python-Dev] empty string api for files

2005-08-28 Thread François Pinard
could emulate a Turing Machine, but it at least addressed the Halting Problem! One-who-happily-forgot-all-bout-this-ly yours... P.S. - How is this related to Python? Luckily! -- that is: *not*! :-) -- François Pinard http://pinard.progiciels-bpi.ca

Re: [Python-Dev] Python 3.0 blocks?

2005-08-28 Thread François Pinard
ractices in this particular case, even if this might hurt good coders once in a while. But I'm not sure! -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

Re: [Python-Dev] Generalised String Coercion

2005-08-08 Thread François Pinard
we almost never need it in practice. "type" is annoying as a name (yet very nice as a concept), as if it was free to use, it would often serve to label our own things. The fact is we often need the built-in. Python should not choose common Engli

Re: [Python-Dev] PEP: Migrating the Python CVS to Subversion

2005-08-02 Thread François Pinard
[Donovan Baarda] > It is true that some well designed/developed software becomes reliable > very quicky. However, it still takes heavy use over time to prove that. There is wisdom in your say! :-) -- François Pinard http://pinard.progiciels-

Re: [Python-Dev] PEP: Migrating the Python CVS to Subversion

2005-08-02 Thread François Pinard
eases, to be qualified as good. While it might be true on average, this is not necessarily true: some packages need not so many steps for becoming very usable, mature or stable. (Note that I'm not asserting anything about Monotone, here.) We should merely keep an open mind. -- Franç

Re: [Python-Dev] PEP: Migrating the Python CVS to Subversion

2005-08-02 Thread François Pinard
ut at first glance, Monotone does not seduce me. On the other hand, the two guys saying good about Monotone are well informed (and also well known), so I would not dismiss their opinion so lightly. So, it might be worth at least a quick look? :-) -- François Pinard http://pinard

Re: [Python-Dev] Chaining try statements: eltry?

2005-07-07 Thread François Pinard
elcome. Some priests do not know sex! :-) -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Chaining try statements: eltry?

2005-07-07 Thread François Pinard
[Guido van Rossum] > On 7/7/05, François Pinard <[EMAIL PROTECTED]> wrote: > > [Guido van Rossum] > > > I even wonder if else-clauses on for/while were a good idea. > > I surely find them useful, and see them as a Python originality (a > > welcome one). &

Re: [Python-Dev] Chaining try statements: eltry?

2005-07-07 Thread François Pinard
[Guido van Rossum] > I even wonder if else-clauses on for/while were a good idea. I surely find them useful, and see them as a Python originality (a welcome one). -- François Pinard http://pinard.progiciels-bpi.ca ___ Python-Dev mailing list Pyt