Re: [Python-Dev] iterator API in Py3.0

2006-03-06 Thread Michael Hoffman
s that would break this into multiple statements. [inspired by a recent python-list question] -- Michael Hoffman <[EMAIL PROTECTED]> European Bioinformatics Institute ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Pre-PEP: The "bytes" object

2006-02-24 Thread Michael Hoffman
return self( > binascii.unhexlify(data))". Am I the only one who finds the use of "self" on a classmethod to be incredibly confusing? Can we please follow PEP 8 and use "cls" instead? -- Michael Hoffman <[EMAIL PROTECTED]> European Bioinformatics Institute ___

Re: [Python-Dev] The path module PEP

2006-01-26 Thread Michael Hoffman
[Thomas Wouters] >>> [Subclassing string] is my only problem with the PEP. It's all very nice >>> that subclassing from string makes it easier not to break things, but >>> subclassing implies a certain relationship. [Michael Hoffman] >> This is the

Re: [Python-Dev] The path module PEP

2006-01-26 Thread Michael Hoffman
s not use isinstance() or any of the string methods that are now gone. http://groups.google.com/group/comp.lang.python/browse_thread/thread/1f5bcb67c4c73f15 -- Michael Hoffman <[EMAIL PROTECTED]> European Bioinformatics Institute ___ Python-Dev

Re: [Python-Dev] The path module PEP

2006-01-25 Thread Michael Hoffman
ion is pretty comparable, despite it being in the interpreter rather than in the stdlib. And some of us have come to love that, too. -- Michael Hoffman <[EMAIL PROTECTED]> European Bioinformatics Institute ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] The path module PEP

2006-01-25 Thread Michael Hoffman
t; In particular the points about Path being able to be a drop-in replacement for str/unicode are useful ones, and explain the use of joinpath() etc. It is really useful that I can use a Path anywhere I might have used an str and not have to worry about the conversions. -- Michael Hoffman <[EM

Re: [Python-Dev] The path module PEP

2006-01-25 Thread Michael Hoffman
for concatenation and addition, > and these are far more ambiguous from context -- but still it doesn't > cause that many problems. I was initially -0 on / but I have found it quite useful and a lot simpler than a lot of joinpath()s over time. So +1 on / for me. -- Michael Hof

Re: [Python-Dev] PEP 8 updates/clarifications, function/method style

2005-12-14 Thread Michael Hoffman
[Wolfgang] > Or should we switch to camelCase with lowercase first letter ? > As most other Languages prefer this (Java, C#, C++, ...) They also use curly braces instead of indentation to indicate block structure. Maybe we should switch to that too. -- Michael Hoffman <[EMAIL

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

2005-12-13 Thread Michael Hoffman
[Jim Fulton] >>> Personally, I don't find the stdlib/external distinction to be useful. [Michael Hoffman] >> It's useful because it allows one to quickly see all the prerequisites >> need to be installed in one place. [Jim Fulton] > Sure, if you only have one

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

2005-12-13 Thread Michael Hoffman
be installed in one place. -- Michael Hoffman <[EMAIL PROTECTED]> European Bioinformatics Institute ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/op

[Python-Dev] Directory for packages maintained outside the core (was Re: ElementTree - Why not part of the core?)

2005-12-12 Thread Michael Hoffman
tions that are integrated into the core and > maintained as part of it. The same could be said of a lot of other projects that use the "contrib" convention. I have a much better idea of what "contrib" means than "kits" or "external." -- M

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

2005-09-02 Thread Michael Hoffman
ets, buffers? sure. stdout? Almost never. Almost every program I write produces its output mainly to stdout. And I probably use print half the time to produce this output (the rest is done mostly with csv). GUI widgets? Who needs 'em? -- Michael Hoffman <[E

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread Michael Hoffman
/lib/node114.html > http://docs.python.org/lib/re-objects.html Dare I ask whether the uncompiled versions should be considered for removal in Python 3.0? *puts on his asbestos jacket* -- Michael Hoffman <[EMAIL PROTECTED]> European Bio

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFEforreview)

2005-06-29 Thread Michael Hoffman
is? I e-mailed Jason earlier this week before submitting the RFE. He said that "I'd like to see path (or something like it) in the standard library." He also said he didn't have time to write a PEP at the moment, but that I should feel free to do so. As for me, I'm happy

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-06-27 Thread Michael Hoffman
On Mon, 27 Jun 2005, Phillip J. Eby wrote: > At 08:20 AM 6/27/2005 +0100, Michael Hoffman wrote: >> os.getcwd() returns a string, but path.getcwd() returns a new path >> object. > > In that case, I'd expect it to be 'path.fromcwd()' or 'path.cwd()'

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-06-27 Thread Michael Hoffman
On Sun, 26 Jun 2005, Phillip J. Eby wrote: > At 08:19 PM 6/26/2005 +0100, Michael Hoffman wrote: >> On Sun, 26 Jun 2005, Phillip J. Eby wrote: >> >>> * drop getcwd(); it makes no sense on a path instance >> >> Personally I use path.getcwd() as a class meth

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-06-26 Thread Michael Hoffman
e to use os.path anymore. Reinhold Birkenfeld wrote: > One more issue is open: the one of naming. As "path" is already the > name of a module, what would the new object be called to avoid > confusion? pathobj? objpath? Path? I would argue for Path. It fits with the recent

Re: [Python-Dev] Compiling Python with Intel compiler?

2005-06-15 Thread Michael Hoffman
he last three years and have loved almost every minute of it. I've written sequence alignment algorithms in Pyrex, glue to genome database APIs in Jython, and a whole lot of other stuff using CPython. We run Python on a 1145-CPU compute farm that consists of Alpha/Tru64 and Intel/Linux boxes. --