Re: [Python-3000] Support for PEP 3131

2007-06-12 Thread Baptiste Carvello
Guillaume Proux a écrit : > Hello, > > On 6/12/07, Baptiste Carvello <[EMAIL PROTECTED]> wrote: >> context. By contrast, with chineses identifiers, I will not recognise them >> from >> one another. So I won't be able to make any sense from the code withou

Re: [Python-3000] Support for PEP 3131

2007-06-12 Thread Baptiste Carvello
Martin v. Löwis a écrit : > Baptiste Carvello schrieb: >> Martin v. Löwis a écrit : >>> I cannot imagine this scenario as realistic. It is certain >>> realistic that you want to keep your own code base ASCII-only - >>> what I don't understand why such a

Re: [Python-3000] Support for PEP 3131

2007-06-12 Thread Baptiste Carvello
Michael Urman a écrit : > As I am not going to be interested in trying to > understand code written in Chinese, Russian, etc., I'm not bothered by > the idea that someone might write code I will have a strong > disincentive to read. > The question is: is it worth it. Will the new feature allow mo

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Baptiste Carvello
Martin v. Löwis a écrit : > I cannot imagine this scenario as realistic. It is certain realistic > that you want to keep your own code base ASCII-only - what I don't > understand why such a policy would extend to libraries that you use. > If the interfaces of the library are non-ASCII, you will aut

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Baptiste Carvello
Michael Urman a écrit : > On 6/11/07, Ka-Ping Yee <[EMAIL PROTECTED]> wrote: >> Because the existence of these library modules does not make it >> impossible to reliably read source code. We're talking about >> changing the definition of the language here, which is deeper >> than adding or removin

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Baptiste Carvello
Martin v. Löwis a écrit : >>> Indeed, PEP 3131 gives a predictable identifier character set. >>> Adding per-site options to change the set of allowable characters >>> makes it less predictable. >>> >> true. However, this will only matter if you distribute code with non-ASCII >> identifiers to the w

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Baptiste Carvello
James Y Knight a écrit : > If another developer is planning to write code in English, this whole > debate is moot. So, let's take as a given that he is going to write a > program in his own non-English language. Now, will he write in a > asciified form of his language, or using the proper cha

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Baptiste Carvello
Leonardo Santagada a écrit : > I don't. It is a bad idea to distribute non-ASCII code for libraries > that are supposed to be used by the world as a whole. But > distributing a chinese code for doing something like taxes using > chinese rules is ok and should be encouraged (now, I don't know

Re: [Python-3000] Support for PEP 3131

2007-06-10 Thread Baptiste Carvello
Martin v. Löwis a écrit : >> Here is what I have to say (to everyone in this discussion, not >> specifically to you, Stephen) in response to said labelling: > > Interestingly enough, we agree on the principles, and just > judge the PEP differently wrt. these principles > >> Many of us value a *pr

Re: [Python-3000] Conservative Defaults (was: Re: Support for PEP 3131)

2007-06-06 Thread Baptiste Carvello
BJörn Lindqvist a écrit : >> Those most eager for unicode identifiers are afraid that people >> (particularly beginning students) won't be able to use local-script >> identifiers, unless it is the default. My feeling is that the teacher >> (or the person who pointed them to python) can change the

Re: [Python-3000] Support for PEP 3131

2007-05-26 Thread Baptiste Carvello
James Y Knight a écrit : > there will be a "second class" of python modules that won't work on > some systems without extra pain. > modules using unicode identifier *will be* second class anyway, because most people won't be able to debug them in case of need. However, this does not matter for

Re: [Python-3000] Support for PEP 3131

2007-05-25 Thread Baptiste Carvello
Guillaume Proux a écrit : > (I mistakenly replied in private. here is a copy for the py3000 mailing list.) > > > Good evening! > > On 5/26/07, Jim Jewett <[EMAIL PROTECTED]> wrote: >> You're missing "here is this neat code from sourceforge", or "Here is >> something I cut-and-pasted from ASPN".

Re: [Python-3000] Support for PEP 3131

2007-05-25 Thread Baptiste Carvello
Guillaume Proux a écrit : > I think Martin's and my point is that to get people to level E) there > is no reason to put any charset restriction on level A ->D. And when > you are at level E), it is difficult to argue that making a one-time > test at source code checkin time is a bad practice. > yo

Re: [Python-3000] Support for PEP 3131

2007-05-25 Thread Baptiste Carvello
Guido van Rossum a écrit : > > If there's a security argument to be made for restricting the alphabet > used by code contributions (even by co-workers at the same company), I > don't see why ASCII-only projects should have it easier than projects > in other cultures. > there is only one valid re

Re: [Python-3000] Support for PEP 3131

2007-05-25 Thread Baptiste Carvello
Martin v. Löwis a écrit : > > I don't think there is precedence in Python for such an informational > error message. It is not pythonic to give an error in the case > "I know what you want, and I could easily do it, but I don't feel > like doing it, read these ten pages of text to learn more about

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

2007-05-20 Thread Baptiste Carvello
Georg Brandl a écrit : > Baptiste Carvello schrieb: >> Guido van Rossum a écrit : >>> Do people think it would be too radical if the built-in open() >>> function was removed altogether, requiring all code that opens files >>> to import the io module first? T

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

2007-05-20 Thread Baptiste Carvello
Guido van Rossum a écrit : > On 5/18/07, Baptiste Carvello <[EMAIL PROTECTED]> wrote: >> Guido van Rossum a écrit : >>> Do people think it would be too radical if the built-in open() >>> function was removed altogether, requiring all code that opens files >&g

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

2007-05-18 Thread Baptiste Carvello
Guido van Rossum a écrit : > Do people think it would be too radical if the built-in open() > function was removed altogether, requiring all code that opens files > to import the io module first? This would make it easier to identify > modules that engage in I/O. > -1 Will someone think of the i

Re: [Python-3000] Support for PEP 3131

2007-05-13 Thread Baptiste Carvello
Jason Orendorff a écrit : > > Python should allow foreign-language identifiers because (1) it's a > gesture of good will to people everywhere who don't speak English > fluently; (2) some students will benefit; (3) some people writing code > that no one else will ever see will benefit. > As I sa

Re: [Python-3000] PEP: Supporting Non-ASCII Identifiers

2007-05-06 Thread Baptiste Carvello
Martin v. Löwis a écrit : >> If this is to ever happen, it should be only accessible through a >> command-line >> option to python. That way we make sure people are aware that they are making >> their code incompatible with the larger world. > > In what way will the source code be incompatible wi

Re: [Python-3000] PEP: Supporting Non-ASCII Identifiers

2007-05-04 Thread Baptiste Carvello
Martin v. Löwis a écrit : > PEP: 31xx > Title: Supporting Non-ASCII Identifiers > Version: $Revision$ > Last-Modified: $Date$ > Author: Martin v. Löwis <[EMAIL PROTECTED]> > Status: Draft > Type: Standards Track > Content-Type: text/x-rst > Created: 1-May-2007 > Python-Version: 3.0 > Post-History:

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Baptiste Carvello
Bill Janssen a écrit : >> Jeffrey, is there any way you can drop the top of the tree and going >> straight from Number to Complex -> Real -> Rational -> Integer? These >> are the things that everyone with high school math will know. > > I think knowledge of the concepts of group, ring, and field i

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

2007-03-23 Thread Baptiste Carvello
Aahz a écrit : > 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? please no. Singl

Re: [Python-3000] String literal representation of integers (octal/binary discussion)

2007-03-19 Thread Baptiste Carvello
Patrick Maupin a écrit : > A string > replace on a data file is actually much easier than on a code file, > and it really is a one-liner, so the potential existence of upper case > 'X' in the data file does not seem like reason enough to make these > different. > you don't analyse data files for

Re: [Python-3000] Fwd: Re: Fwd: Re: Fwd: Re: Octal

2007-03-17 Thread Baptiste Carvello
Guido van Rossum a écrit : > I'd say the same rule -- lowercase only. > > On 3/17/07, Patrick Maupin <[EMAIL PROTECTED]> wrote: >> What about 'e' for exponentiation? >> > I guess it's already implied, but just for the record: capital E is very popular in data files, so it has to still work with

Re: [Python-3000] Py3k release schedule worries

2006-12-21 Thread Baptiste Carvello
Brett Cannon a écrit : > But compile (along wth exec, but I don't think you wanted to move that) > are just plain different. Dynamic code execution is its own thing that > I do not directly associate with the specifics of the interpreter. > Maybe a module named 'dynamic' or 'execution'? > bt

Re: [Python-3000] iostack and Oh Oh

2006-12-07 Thread Baptiste Carvello
Tim Hochberg a écrit : > > Here goes: to the extent that the semantics aren't clear from the > methods it is sufficient, and preferable, to attach the semantic > information to the methods rather their associated class. > which imho is the whole of the question: which level of granularity is d

Re: [Python-3000] Abilities / Interfaces

2006-11-22 Thread Baptiste Carvello
Bill Janssen a écrit : > > I see nothing wrong with defining "empty" ABCs to indicate abilities > rather than interfaces. > >class WellTested (Ability): > """Indicates that the type has passed the QA process""" > pass > >class TestedNumber (Number, WellTested): > ... > An

Re: [Python-3000] callable()

2006-07-17 Thread Baptiste Carvello
> If 'callable' is to stay, then in order to pull its weight it needs to > grow to provide a way to check "callable with the following signature" > -- at the very least in terms of numbers and names of arguments, > though (if py3k does gain some syntax for specifying argument types) > it might do m

Re: [Python-3000] PEP 3102 comments

2006-05-25 Thread Baptiste Carvello
> > Here's a related but more complicated wish: define a function in such > > a way that certain parameters *must* be passed as keywords, *without* > > using *args or **kwds. This may require a new syntactic crutch. > > While a number of people have submitted possible use cases for this > feat

Re: [Python-3000] my take on "typeclasses"

2006-05-09 Thread Baptiste Carvello
Oleg Broytmann a écrit : > On Tue, May 09, 2006 at 10:31:02PM +0200, tomer filiba wrote: > >>i.e., "is the object addable?" == "hasattr(obj, '__add__')". > > >Even this is meaningless: '1'+1. So duck typing is: > > try: >return a+b > except TypeError: >return "Oops..." > > Well, w

Re: [Python-3000] sets in P3K?

2006-04-27 Thread Baptiste Carvello
Ron Adam a écrit : > Raymond Hettinger wrote: >>I forsee {} vs {/} as being a prominent entry on everyone's list of Python >>pitfalls, faqs, and common errors. Maybe PyLint or PyChecker will be able to >>scan to see how the object is used and determine whether the two were >>mixed-up. >> > > I

Re: [Python-3000] Pronouncement on parameter lists

2006-04-23 Thread Baptiste Carvello
Greg Ewing a écrit : > Jim Jewett wrote: > > >>It has not yet been specified what would happen to additional >>positional arguments that get passed in anyway. (Swallow or raise an >>Exception?) > > > I've always intended that there would be an exception. > If so, why not replace the lone star

Re: [Python-3000] iter_flatten was: Making strings non-iterable

2006-04-18 Thread Baptiste Carvello
Raymond Hettinger a écrit : > [Brian Harring] > >>The issue I'm seeing is that the wart you're pointing at is a >> general issue not limited to strings- everyone sooner or later >> has flattening code that hits the "recursively iterate over >> this container, except for instances of these classes