New submission from François Pinard:
Within http://docs.python.org/3/library/heapq.html#theory, a sentence begins
with When an event schedule while it should be spelled When an event
schedules. The same may be observed in Python 2 documentation.
--
assignee: docs@python
components
, 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
, 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
://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-announce-list
://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
.
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://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman
[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, indeed. Thanks a lot!
--
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's largely to ensure that the ideas aren't
, you happily move on towards them.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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, borders, colors, and various other mania! :-)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org
, 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.ca
--
http://mail.python.org
of the shell.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
.
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
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
, either:
for k in a.keys():
if a[k] == 2:
del a[k]
or:
for k in set(a):
if a[k] == 2:
del a[k]
But in no way, you may directly iterate over the original dictionary
while altering its keys, this is explicitly forbidden in Python.
--
François
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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
, 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
[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 in some way.
--
François Pinard http
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.python.org/mailman
. 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 http://pinard.progiciels-bpi.ca
the 8601 standard in that study.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
,
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
. 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 convenient.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http
, 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
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/mailman
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 methods and ramifications.
--
François Pinard http://pinard.progiciels
properly understood and applied.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
, 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/listinfo/python-list
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
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 without being detected.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python
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/mailman/listinfo
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 already stands.
--
François Pinard http://pinard.progiciels
.
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 covered by a library?
--
François Pinard http
(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
either.)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
[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-bpi.ca
--
http://mail.python.org
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
nos approches ont quelques atomes crochus! :-) Si oui,
cela peut ouvrir la porte à quelques bonnes discussions sur l'art et
la manière, en Python. Ma mère disait parfois: Des goûts et des
couleurs, on ne discute pas. Mais il y en a de meilleurs que d'autres.
--
François Pinard http
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
, 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
, 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
. Not that it occurs that often! :-)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
[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 seen
by the user. Don't ask me why.
One sure thing
- yy2)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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
[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 other based
on wxPython.
I
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 Pinard http://pinard.progiciels-bpi.ca
--
http
[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 nevertheless. It was a common joke to say
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://pinard.progiciels-bpi.ca
, 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
. :)
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
/ Scheme are very OK! Usable for a wide range of applications,
including system' -- with the proper choices, they can be fairly speedy
as well. Yet, for ubiquitous and day-to-day work, Python is nicer! :-)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman
, 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
)[:2]
would work better.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
! :-)
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
.
--
[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://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman
. 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.
--
François Pinard
.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
.
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.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http
[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 using much
more memory.
I'd say
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.progiciels-bpi.ca
[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(texte), texte
print type(texte), repr(texte), str(texte)
doing `python
[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 welcome. If they were, the core team
) 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
, or to my way of understanding it?
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
. 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
reluctant at sharing advanced
algorithms, as these give them industrial advantage over competitors.
I try to use the value returned from rms(add(a, mul(b, -findfactor(a,
b as the score. But the result is not good.
Oh, absolutely no chance that such a simple thing would ever work. :-)
--
François
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
[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).
... and would be nicest (IMO) if default arguments
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
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
! :-) 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
[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
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
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 distant future, but now
it is not.
--
François Pinard http
session.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
[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 I have got the
impression that XEmacs
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
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
ideals.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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
to `type'.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
[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.org
contents on his/her own.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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
). 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
[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
...' 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
, 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
.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
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
useful to me.
--
François Pinard http://pinard.progiciels-bpi.ca
--
http://mail.python.org/mailman/listinfo/python-list
on that machine.
--
François Pinard http://pinard.progiciels-bpi.ca
#!/usr/bin/env python
# Copyright 2000 Progiciels Bourbeau-Pinard inc.
# Franois Pinard [EMAIL PROTECTED], 2000.
def Fraction(num, den=1, tolerance=0):
\
Return the _simplest_ fraction approximating NUM/DEN, given
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
95 matches
Mail list logo