RELEASED: Pymacs 0.25

2012-05-07 Thread François Pinard
, and handle Emacs Lisp objects kept in Emacs Lisp space. For more information, see http://pymacs.progiciels-bpi.ca/ . You may fetch the distribution as one of: - https://github.com/pinard/Pymacs/tarball/v0.25 - https://github.com/pinard/Pymacs/zipball/v0.25 -- François Pinard http

RELEASED: Pymacs 0.23

2008-02-14 Thread François Pinard
://pymacs.progiciels-bpi.ca/', and you may fetch `http://pymacs.progiciels-bpi.ca/archives/Pymacs.tar.gz'. Report problems and suggestions to `mailto:[EMAIL PROTECTED]'. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing dictionaries, is this valid Python?

2005-12-13 Thread François Pinard
[Peter Hansen] >> it only says "Comparison operations are supported by all objects" >> [...] >I'm not checking the 2.3.5 version, but that latest one is fairly clear >on what comparisons on mappings do: >http://docs.python.org/ref/comparisons.html Yes,

Comparing dictionaries, is this valid Python?

2005-12-13 Thread François Pinard
t not be fully up-to-date, at least regarding dictionaries. Would someone know where I could find a confirmation that comparing dictionaries with `==' has the meaning one would expect (even this is debatable!), that is, same set of keys, and for each key, same values? -- François Pinard http://p

Re: Bitching about the documentation...

2005-12-06 Thread François Pinard
[A.M. Kuchling] >On Tue, 6 Dec 2005 00:05:38 -0500, > François Pinard <[EMAIL PROTECTED]> wrote: >> It's a relatively recent phenomenon that maintainers go berzerk, foaming >> at the mouth over forms, borders, colors, and various other mania! :-) > It&#x

Re: Bitching about the documentation...

2005-12-05 Thread François Pinard
obarated with maybe a hundred of maintainers, and corresponded with surely many thousands of users. No doubt it was a lot of work overall, but at least, communication was easy going (usually). It's a relatively recent phenomenon that maintainers go berzerk, foaming at the mouth over forms, b

Re: Bitching about the documentation...

2005-12-05 Thread François Pinard
, why one would ought to stand with such guys? As the room is full of other interesting people, you happily move on towards them. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect character encoding

2005-12-04 Thread François Pinard
et, but this requires work and time, and is far from fully automated as one might dream. While some charsets could be guessed almost correctly by automatic means, most are difficult to recognise. The whole problem is not easy. -- François Pinard http://pinard.progiciels-bpi

Re: Setting PYTHONPATH from Makefile

2005-12-02 Thread François Pinard
ly. This is a useful feature of the shell. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Estimating memory use?

2005-11-27 Thread François Pinard
th the trouble. It might be worth a note in the documentation, somewhere appropriate. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: 3-dimensional plot in Python?

2005-11-16 Thread François Pinard
t may appear as a drawback is the need to become acquainted with R, the system and the language. But if you happen to do scientific works, this really is a worth investment. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: modify dictionary while iterating

2005-11-11 Thread François Pinard
tering its keys, this is explicitly forbidden in Python. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Recompile AST?

2005-11-10 Thread François Pinard
s-bpi.ca/pynits.html -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim IS a capable IDE [was Re: Vim capable IDE?]

2005-10-19 Thread François Pinard
ew Vim commands to your liking (presuming you know how to program), writing them in Python. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuous system simulation in Python

2005-10-07 Thread François Pinard
imulation system, to tie the advancement control of the various active ODE solvers within the main loop of the discrete event scheduler. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Does python support the expression "a = b | 1"???

2005-10-05 Thread François Pinard
[Wenhua Zhao] > a = b | 1 > a = b if b != nil > else a =1 > Is there such expression in python? Hi. Merely write: a = b or 1 In Python, there is no `nil'. `a' will receive 1 instead of the value of `b' only if `b' is either zero, None, False, or empty i

Re: PEP 350: Codetags

2005-09-30 Thread François Pinard
remember having retained the 8601 standard in that study. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser suggestion

2005-09-30 Thread François Pinard
is (or at least once was) fairly fuzzy. But this is theoretical. In practice, FORTRAN programmers almost never resort to insane use of whitespace. So you may probably resort to easier, standard two-level analysis, rather than FORTRAN as formally defined, and still be winning! -- François Pinard

Re: PEP 350: Codetags

2005-09-30 Thread François Pinard
`T`` you mention is for only one of them, meant for those cases where embedded spaces are not acceptable. Other ISO 8601 writings accept embedded spaces, and this is how ISO 8601 is generally used by people, so far that I can see. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread François Pinard
`body', and that's it. Emails are later deleted on entry. The keybinding is known to the window manager (Openbox here), which launches a small Python script to update tables for the mail fetcher (another Python script), and the mail reader (Mutt in my case). All of this is very conveni

Re: Parser suggestion

2005-09-29 Thread François Pinard
does not really need to be further developed, and does not have much to gain from recent Python releases, I do not see why it should be released once in a while merely to entertain the crowd. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest setup

2005-09-25 Thread François Pinard
the copyright conditions are. This file also delegates copyright issues to individual files, which are usually silent on the matter. Could this whole issue be clarified? Or did I miss something I should not have? -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mail

Let's enjoy this list! [Re: "Re: cElementTree clear semantics"]

2005-09-25 Thread François Pinard
eeding flames, rather ignore or merely learn to "killfile" the (happily few) abusers we got. Enough said for now! Keep happy, all of you. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: NaN Vs None

2005-09-23 Thread François Pinard
comparisons and logical operators on missing values. My usual convention is that missing values propagate within booleans and behave like False when tested. Sometimes, I also need "missing" strings. That's more difficult to implement, because of the numerous string me

Re: Software bugs aren't inevitable

2005-09-15 Thread François Pinard
ers at taking recursion any seriously. This is handicapping somehow, as recursion could be so useful when properly understood and applied. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread François Pinard
have been coined later, but the concepts were already there. In computer science, I often saw old concepts resurrecting with new names, and then mistaken for recent inventions. New ideas are not so frequent... -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman

Re: using % operator to print possibly unitialized data attributes

2005-09-09 Thread François Pinard
titem__' method the way you want. If I remember well, one of the niceties is that whenever `%(EXPR)s' is used in a format string, EXPR may be a string (well balanced with regard to parentheses) which you may then choose to "evaluate", for any definition of "evaluate" which is fruitful for your application. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Decrypting GPG/PGP email messages

2005-09-02 Thread François Pinard
now what they > are doing). Neither with a digital signature. Protection against replay is easily guaranteed by sequencing requests, that is, including a sequence number within the message, each originator his sequence. A digital signature prevents someone from tampering with the sequence number with

Re: Fighting Spam with Python

2005-08-26 Thread François Pinard
ght be useful, for someone involved like you are (thanks for all of us!), that you make a survey of those others, trying to understand why they failed to acquire popularity, not repeating the same errors if any. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/m

Re: Fighting Spam with Python

2005-08-25 Thread François Pinard
od reputation. Eventually, > all reputable senders will join the 15%, and the 5% will shrink to > where we can ignore it. It's fun to read statistics about a vision! :-) > >You might find www.spambayes.org of interest, in several ways. Spambayes is surprisingly good as it

Re: Binary Trees in Python

2005-08-21 Thread François Pinard
erience, it all goes pretty easily, while staying simple. However, things related to balancing, finding paths between nodes, or searching for patterns, etc. may require more work. There are surely a flurry of tree algorithms out there. What are the actual needs you have, and would want to see

How to devise run-time pluggable classes? (MRO problem)

2005-08-20 Thread François Pinard
deally, a work schema may not be altered (in a non-reentrant way) for a particular plugin. This is a lesser constraint, because it occurs only occasionally, and I presume that we could afford unusual stunts whenever necessary. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: creating/modifying sparse files on linux

2005-08-17 Thread François Pinard
way to read read them either.) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendations for CVS systems

2005-08-10 Thread François Pinard
[Aahz] > For anything mission-critical, I wouldn't want to rely on a free license. For anything mission-critical, I wouldn't want to rely on closed sources... Could the best be open source and non-free license? :-) -- François Pinard http://pinard.progiciels-bp

Re: Recommendations for CVS systems

2005-08-09 Thread François Pinard
ead any definite assertion against Subversion. Having Perforce better does not necessarily makes Subversion bad. So my question. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] pylint 0.7

2005-08-04 Thread François Pinard
de Python 2.3, qui ne me satisfait plutôt bien, mais pas tout-à-fait, avec le module `astng' de Logilab. Donc, en bref, survole: http://fp-etc.progiciels-bpi.ca/showfile.html?name=pynits/pynits.txt&mode=vim pour "sentir" si nos approches ont quelques atomes crochus! :-) Si oui,

Re: keylogger in Python

2005-07-31 Thread François Pinard
get a working solution. Agreed, this is not all evident, and probably too much of a challenge for a beginner. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: keylogger in Python

2005-07-31 Thread François Pinard
owed the port to be done quickly. While debugging such a thing, you often loose the keyboard and with it, the capability of switching terminals, so you have to devise some extra machinery for restoring the keyboard into a usable state. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between " and '

2005-07-22 Thread François Pinard
[Terry Hancock] > On Friday 22 July 2005 08:09 am, François Pinard wrote: > > > [Robert Kern] > > > > > One habit that seems to crop up, though, is that I will use '' for > > > internal strings and "" for strings that will eventually get

Re: Difference between " and '

2005-07-22 Thread François Pinard
nalise a Python program. Not that it occurs that often! :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between " and '

2005-07-22 Thread François Pinard
on, which is the usual case. If doc strings are used for BNF snippets, like with SPARK, or any other machine data, triple-single quotes are mandatory by my own convention. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: automatically assigning names to indexes

2005-07-12 Thread François Pinard
+ wz2, zx2 - wy2, xy2 - wz2, 1. - xx2 - zz2, yz2 + wx2, zx2 + wy2, yz2 - wx2, 1. - xx2 - yy2) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: computer algebra packages

2005-07-10 Thread François Pinard
[Robert Kern] > François Pinard wrote: > > [Florian Diesch] > >> Mascyma is (trying to be) a user-friendly graphical frontend for > >> the Computer Algebra System GNU MAXIMA. It is written in Python > >> and provides two GUIs, one of which based on PyGTK, the

Re: computer algebra packages

2005-07-10 Thread François Pinard
> > Mascyma is (trying to be) a user-friendly graphical frontend for > > the Computer Algebra System GNU MAXIMA. > I was not successful googling for this one. Would you have an URL handy? Oops, OK! Found it at http://cens.ioc.ee/~pearu/misc/maxima/ . -- Françoi

Re: computer algebra packages

2005-07-10 Thread François Pinard
ed on wxPython. I was not successful googling for this one. Would you have an URL handy? -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils is able to handle...

2005-07-08 Thread François Pinard
ploring with some pleasure Bram Moolenaar's A-A-P tool (see http://www.a-a-p.org). This is implemented in Python, but does not force people into Python syntax for Makefiles. It might be a nicer compromise. As usual from Bram, documentation is abundant and useful. -- François Pinard http://pi

Compiler error recovery [was: Re: f*cking re module]

2005-07-08 Thread François Pinard
[Rocco Moretti] > François Pinard wrote: > > I once worked with a PL/I compiler (on a big IBM mainframe), which was > > trying to be helpful by spitting pages of: > > Error SUCH AND SUCH, assuming that THIS AND THIS was meant. > > and continuing compilation nev

Re: f*cking re module

2005-07-08 Thread François Pinard
iler (on a big IBM mainframe), which was trying to be helpful by spitting pages of: Error SUCH AND SUCH, assuming that THIS AND THIS was meant. and continuing compilation nevertheless. It was a common joke to say that PL/I would compile some random valid program out of any garbage! -- François

Re: Lisp development with macros faster than Python development?..

2005-07-06 Thread François Pinard
e and comprehensive library, and an interesting community of users. These probably make most of the difference. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-06 Thread François Pinard
en the goal is to cut the reference being held in x. Both statements do it, yet the intent is expressed more legibly by the second. > (most other languages manage without it). Hardly an excuse against some good ideas Python has on its own! :-) -- François Pinard http://pinard.progiciels-bpi.c

Re: f*cking re module

2005-07-05 Thread François Pinard
t; and arrogant, which is deemed QOTW. :) Hey! The "question", not the "person"! One might say "the subject", but then, it has to be the subject of the message, of course! :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Assigning to None

2005-07-01 Thread François Pinard
ms. It so seems that `_' is in great demand! :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Assigning to None

2005-07-01 Thread François Pinard
oo, bar = gen_tuple(stuff)[:2] would work better. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Assigning to None (was Re: Question about Python)

2005-07-01 Thread François Pinard
ake a local copy of the reference, which was then accessed faster than the global thing. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: map/filter/reduce/lambda opinions and background

2005-07-01 Thread François Pinard
ze, my .emacs worked on a lot of systems, Windows included. > Personally, I find that Lisp & its derivatives put your head in a very > weird place. Lisp / Scheme are very OK! Usable for a wide range of applications, including system' -- with the proper choices, they can be fairly

Re: staticmethod and classmethod

2005-05-26 Thread François Pinard
e of the class. That's seemingly all. -- [1] I already found out a good while ago, in many other cases unrelated to this one, but notably in metaclasses, that `self' is often (not always) clearer than `cls'. Classes are objects, too! :-) -- François Pinard http:/

German spam event [was: Re: Schily ueber Deutschland]

2005-05-15 Thread François Pinard
German. At the same time, I noticed an increase of German-written spam filtering through a few lists I'm subscribed to, and the Python list among others. Such forged From appears all the time as far as I am concerned, and had for years now. But something significant happened this weekend. --

Re: pyvm -- faster python

2005-05-12 Thread François Pinard
[Paul Rubin] > François Pinard <[EMAIL PROTECTED]> writes: > > > Deep down, why or how not having a [traditional, to-native-code] > > compiler is a deficiency for CPython? We already know that such a > > beast would not increase speed so significantly, while usin

Re: How "return" no return ?

2005-05-12 Thread François Pinard
s implicitely returned. A function always have a value. I do not understand the need of "not returning anything". What do you mean? What is the real need? > [...] pass don't run too. `pass' surely runs. However, `pass' is not a `return' statement. --

Re: pyvm -- faster python

2005-05-12 Thread François Pinard
bloat size unboudedly. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: pyvm -- faster python

2005-05-10 Thread François Pinard
airs. Your project is very likely to die if you keep your sources closed, and yourself loose interest in the project. Opening your sources is no guarantee either that the community will adopt your project. But this might give your project a better chance. -- François Pinard http://pinard

Re: Q: The `print' statement over Unicode

2005-05-07 Thread François Pinard
[Martin von Löwis] > François Pinard wrote: > > > Am I looking in the wrong places, or else, should not the standard > > documentation more handily explain such things? > It should, but, alas, it doesn't. Contributions are welcome. My contributions are not that welcom

Re: Q: The `print' statement over Unicode

2005-05-07 Thread François Pinard
[Thomas Heller] > François Pinard <[EMAIL PROTECTED]> writes: > > [...] given file `question.py' with this contents: > ># -*- coding: UTF-8 -*- > >texte = unicode("Fran\xe7ois", 'latin1') > >print type(texte), repr(text

Q: The `print' statement over Unicode

2005-05-04 Thread François Pinard
icode string to a 8-bit string for output, if not through `str()'? What is missing to the documentation, or to my way of understanding it? -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: How To Reply

2005-05-04 Thread François Pinard
or over Emacs) knows about digests. (Moreover, with not so much trickery, it is Python extensible. I vaguely remember having written one or two Python backends for Gnus.) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: WordPress Python Library 1.0

2005-05-02 Thread François Pinard
ion. If you want to raise our appetite, maybe a few words of introduction or explanation would be welcome. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: compare two voices

2005-05-01 Thread François Pinard
core. But the result is not good. Oh, absolutely no chance that such a simple thing would ever work. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Rudeness on this list [Re: rudeness was: Python licence again]

2005-04-24 Thread François Pinard
even institutional flamers were getting discouraged by the lack of fuel, eventually leaving for elswehere. Nice times indeed! :-). -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: def a((b,c,d),e):

2005-04-19 Thread François Pinard
. But who knows! :-) > [...] and even worse, [bindings] would have to be computed for each > call, as the prologLikeSum example shows. Yet, already, as it stands, argument passing in Python is not innocuous. A bit more, a bit less, nobody would notice! :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: def a((b,c,d),e):

2005-04-19 Thread François Pinard
[George Sakkis] > François Pinard wrote: > > The most useful place for implicit tuple unpacking, in my > > experience, is likely at the left of the `in' keyword in `for' > > statements (and it is even nicer when one avoids extraneous > > parentheses). >

Re: def a((b,c,d),e):

2005-04-18 Thread François Pinard
ikely at the left of the `in' keyword in `for' statements (and it is even nicer when one avoids extraneous parentheses). -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-14 Thread François Pinard
[Bengt Richter] > It might also be interesting to keep a running sum of the base 12 > values and use sum % 88 to select piano keys, to let it walk intervals > outside of a single octave ;-) The generated would then run from the low octaves to high octaves monotically, then start over again and ag

Re: Compute pi to base 12 using Python?

2005-04-14 Thread François Pinard
n somehow! :-) Easy, as I have a few Python programs doing various scale computations -- I should try to bundle these together somewhere in my personal Web site, some day... -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread François Pinard
ot;Python has only one way to do it", rather say "Python will eventually have only one way to do it", and with such a wording, nobody will not be mislead. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread François Pinard
[John J. Lee] > François Pinard <[EMAIL PROTECTED]> writes: > [...] > > Overall, Vim is also cleaner than Emacs, and this pleases me. > [...] > Is this still true when comparing XEmacs vs. vim? (rather than > GNU Emacs vs. vim) I've always used GNU Emacs, but

Re: Best editor?

2005-04-06 Thread François Pinard
the editing session. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread François Pinard
all seem more natural to them. If I compare Python to FORTRAN, COBOL or Assembler, the change is impressive. If I only could have had something like Python when I started, years ago, and considering all the work invested, where would I be today! :-) -- François Pinard http://pinard.progiciel

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread François Pinard
ue using 1.5.2. [...] Sure, of course. Yet, our friendly argument is sliding away from was it originally was. The point was about not asserting in this forum that Python "has only one way to do it", because this is not true anymore. The principle has been, it may be back in some distan

Re: Best editor?

2005-04-05 Thread François Pinard
of added power and flexibility for almost free, assuming and given that you already are a Python lover. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: sparse sets of integers?

2005-04-04 Thread François Pinard
sets could be represented as sorted files of numbers. Slower, but set operations would also be easy to write. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread François Pinard
ment of the ideal? Many of us are using Python today, week after week, year long. So let's be pragmatic. Python is what it became and now is. Let's not define it as a memory from the past nor as a futuristic dream. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread François Pinard
of the Python's ideals. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Specifying __slots__ in a dynamically generated type

2005-03-27 Thread François Pinard
the dict you give to `type'. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

[Tutor] Re: What is object()

2005-03-24 Thread François Pinard
[Hameed Khan] > and what are new style classes?. http://www.python.org/2.2.3/descrintro.html is a good read on this subject. -- François Pinard http://www.iro.umontreal.ca/~pinard ___ Tutor maillist - Tutor@python.org http://mail.python.

Re: intrusive posts

2005-03-23 Thread François Pinard
t members should filter the list contents on his/her own. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: a program to delete duplicate files

2005-03-12 Thread François Pinard
the confidence we may have in probabilistic algorithms for the determination of number primality. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: shuffle the lines of a large file

2005-03-07 Thread François Pinard
[Heiko Wundram] > Replying to oneself is bad, [...] Not necessarily. :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: shuffle the lines of a large file

2005-03-07 Thread François Pinard
on Sorting methods (volume 3). That's long ago, but if I remember well, Knuth did not consider this as an easy exercise. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: Trees

2005-02-25 Thread François Pinard
, look at the suite of `xml...' modules. > cheers, Alex. P.S. - Your signature and company disclaimer use more than 30 lines. That's really a lot. I hope you can bring them down to reason! :-) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Python 2.4 Quick Reference available

2005-02-20 Thread François Pinard
ons will change, but until such changes are announced, I've no reason to doubt them :-). All in all, `file' is now probably to be considered safer than `open', despite Guido advises to prefer `open'. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Python 2.4 Quick Reference available

2005-02-20 Thread François Pinard
he times, we know we are opening a file. `open' is opened (sic!) for some future magic. I prefer to protect my programs against future magic, until this magic is precisely specified. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: A great Alan Kay quote

2005-02-09 Thread François Pinard
for practical reasons. We got rather far from the "There is only one way to do it!" that once was Python motto. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong with `is not None`?

2005-02-09 Thread François Pinard
x27; test is especially appropriate. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: finding/replacing a long binary pattern in a .bin file

2005-01-13 Thread François Pinard
is not a problem! People sometimes like writing long Python programs. Here is about the same, a bit shorter: :-) buffer = file('mybinfile', 'rb').read().replace(oldbinstring, newbinstring) file('mybinfile', 'wb').write(buffer) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: a new Perl/Python a day

2005-01-10 Thread François Pinard
but Python not being there, Perl would be quite useful to me. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: A rational proposal

2004-12-20 Thread François Pinard
oat representation on that machine. -- François Pinard http://pinard.progiciels-bpi.ca #!/usr/bin/env python # Copyright ï 2000 Progiciels Bourbeau-Pinard inc. # Franïois Pinard <[EMAIL PROTECTED]>, 2000. def Fraction(num, den=1, tolerance=0): """\ Return the _simplest

Re: Sorting in huge files

2004-12-09 Thread François Pinard
from within Python. My guess is that it could very reasonably work, despite requiring almost no development time. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP generic objects

2004-11-30 Thread François Pinard
[Scott David Daniels] > You can simplify this: > class Hash(object): > def __init__(self, **kwargs): > for key,value in kwargs.items(): > setattr(self, key, value) Might it be: def __init__(self, **kwargs): self.__dict__.update(kwargs) --

Re: Closing files

2004-11-30 Thread François Pinard
Here, the `if' sole-purpose is to indent the "with" block, and so, to make the whole construct more legible. -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list