#x27;re
> posted this on purpose, you really need to grow up.'''.
>
> The problem was I did post it on purpose, but not with the intent to
> mess anyone up over it.
His statement was a conditional. Since you're saying that the
conditional does not apply, then
n-line.
It's a file. You read strings from it and write strings to it. It
isn't a string itself. Given that what you're trying to do doesn't make
any sense, it's hard to know where to begin to identify what's confusing
you.
--
Erik Max Francis && [EMAIL
[EMAIL PROTECTED] wrote:
> Erik, I am going to be displaying sections of text in the Terminal Window on
> OS X.
> I wanted to format the text in a specific way and thought it might be quicker
> to
> output all the text to a temporary file that I could quickly read sections
he best bet so far.
If you want to make sure something is always done in a particular
situation, then solution is to have a function or method that does that,
and then just call that function or method. That's true in any language
-- any one that has functions, anyway.
--
Erik Max Francis
s? Any help will be appreciated :)
What you're looking for is a templating system for Python. There are
already many with varying degrees of complexity and emphasis, including
one I've put together, EmPy:
http://www.alcyone.com/software/empy/
For more, google around for Py
class for elegance, but it's not required to get
the proper functionality.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Life is a gamble so I should / Live life more carefully
-- TLC
--
http://mail.python.org/mailman/listinfo/python-list
Any after-the-fact
explanation of why the error was present (but not corrected or pointed
out in the movie) is just so much rationalization.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AI
Jeff Schwab wrote:
> Erik Max Francis wrote:
>> Robert Bossy wrote:
>>> I'm pretty sure we can still hear educated people say that free fall
>>> speed depends on the weight of the object without realizing it's a
>>> double mistake.
>>
>&
Modern physics can get
weird and spooky and counterintuitive, but any real connection made with
Eastern philosophy is only in the eye of the beholder.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W &&
wavicals,
> it's just that the wave-like fuzziness is usually too small to notice.
It's usually spelled _wavicle_, by the way.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikm
s out of impetus, then falls straight down --
is clearly contrary to everyday experience of watching two people throw
a ball back and forth from a distance, since the path of the ball is
clearly curved.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.co
27;s only when you're dealing with objects falling through vacuum that
all objects fall at the same rate, and that's because the gravitational
and inertial masses are identical.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, C
Jeff Schwab wrote:
> Erik Max Francis wrote:
>> Grant Edwards wrote:
>>
>>> On 2008-02-12, Jeff Schwab <[EMAIL PROTECTED]> wrote:
>>>> Fair enough!
>>>
>>> Dear me, what's Usenet coming to these days...
>>
>> I know, rea
Grant Edwards wrote:
> On 2008-02-12, Jeff Schwab <[EMAIL PROTECTED]> wrote:
>> Fair enough!
>
> Dear me, what's Usenet coming to these days...
I know, really. Sheesh! Jeff, I won't stand for that! Argue with me! :-)
--
Erik Max Francis && [EMAIL P
even
reasonable people into demonstrating technical ignorance have precisely
the same problem: The desired technical context is not made clear and
so that the supposedly-wrong answer is not only unsurprising, but often
arguably correct. This kind of stuff is little more than a s
ach physics than
this, because these misunderstanding are not wrong in any meaningfully
useful way.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
It isn't importa
Dennis Lee Bieber wrote:
> On Tue, 12 Feb 2008 00:18:38 -0800, Erik Max Francis <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> equivalence for everyday usage and make no requirement of using the
>> "proper" units for mass (kg) vs.
ethod.
> Go ahead and implement your protocol using attributes with plain
> names. What makes it a protocol is that it's likely to be generally
> applicable, and the names are chosen to apply to other classes equally
> well.
Agreed.
--
Erik Max Francis && [EMAIL PROTECTED]
greg wrote:
> Erik Max Francis wrote:
>> My point was, and still is, that if this question without further
>> context is posed to a generally educated laymen, the supposedly wrong
>> answer that was given is actually _correct_.
>
> Except that they probably don
systems for
dealing with the pound and its brethren, and different people are taught
different things and are perpetually confused. And not much good comes
of it.
And the rest of us just use SI. (And if you bring up the
_kilogram-force_, I'll just cry.)
--
Erik Max Francis &
Dotan Cohen wrote:
> On 13/02/2008, Erik Max Francis <[EMAIL PROTECTED]> wrote:
>> And the rest of us just use SI. (And if you bring up the
>> _kilogram-force_, I'll just cry.)
>
> Don't cry, I just want to say that I've hated the kilogram-force
&
I V wrote:
> On Mon, 11 Feb 2008 14:07:49 -0800, Erik Max Francis wrote:
>> experience. The notion of impetus -- where an object throw moves in a
>> straight line until it runs out of impetus, then falls straight down --
>> is clearly contrary to everyday experience of watc
ecific impulse) is measured in
seconds, as it's the ratio of the the thrust (force) to rate of fuel
usage (would be mass divided by time, but weight on Earth is used
instead of mass).
Basically, physics rationalizations of Imperial/English/American
(whatever you choose to call
on due to gravity is a
pound. The acceleration due to gravity is only approximately 32 ft/s^2,
so you were just remembering the short-hand approximation for 1 gee.
Let's hear it for incoherent unit systems ...
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/m
for it) zepto-. The electron-volt is about 160 zJ (zeptojoules).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
You are the lovers rock / The rock that I cling to
-- Sade
--
http://mail.python.org/mailman/listinfo/python-list
Tobiah wrote:
>>>> print float(3.0) is float(3.0)
> True
>>>> print float(3.0 * 1.0) is float(3.0)
> False
>>>>
It's implementation dependent what values these expressions will take.
If you're trying to test equality, use `==`, not `is`
or
something?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
One cannot always be a hero, but one can always be a man.
-- Goethe
--
http://mail.python.org/mailman/listinfo/python-list
ed on for my own amusement a while back but never got
far enough to do anything useful at all, given the size of the task.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
then C is a
> good choice. More portable than assembler but nearly as close to the
> metal.
>
> To the OP: If you try C++, don't hold that crappy language against C#, D,
> or Java. ;-)
He was talking about C++, not C. Jeff has quite a good point; teaching
C++ as C is not terribly
ther programs to not work
> (which don't have bugs) would be "worse than worthless".
All programs have bugs, which means that in some circumstances, they
won't work. Therefore, by your reasoning, all programs are worse than
useless.
> I'm not hard to please at al
Mensanator wrote:
> On Mar 3, 11:58 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
>> Mensanator wrote:
>>> I'm not hard to please at all.
>> No, of course not, since logically you must think all software is useless.
>
> Somehow, I expected bet
>>> print em.expand(myOutput, globals())
The total cost is $123.45.
This order will be shipped to Jack McCoy at the following
address:
1 Police Plaza
New York City, NY
This order was generated at Thu Mar 6 18:41:58 2008
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
There's a reason why we / Keep chasing morning
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
Chris wrote:
> No output because x is a NoneType...
That's behavior of the interactive interpreter when printing results of
expressions, not of print. It will print None.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
re not doing a useful test here.
In Python, bound methods are dynamically generated.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
There is no present or future; only the pa
[EMAIL PROTECTED] wrote:
> 'join' in the wrong word for the method in class Thread.
That's the standard term in threading. If it's not familiar to you,
well, bummer, but there's not much more that can be done about that than
for you to read the literature.
--
> if i want to do an array of PIL image data i can use
> img=Image.open("myimg.jpg") .convert("L")
> pixelarray=img.getdata()
>
convert("L") is a good way to make images grayscale. An option to using
getdata() is to try numpy's array:
pixelarray = numpy.array(img)
this gives lots of possibiliti
ional
programming language syntax. In the big picture I don't think it helps
much. After all, there's a reason that most modern programming
languages don't look like COBOL or AppleScript.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
S
alex23 wrote:
On Jan 16, 5:39 pm, Erik Max Francis wrote:
Inform 7 has some
interesting ideas, but I think the general problem with English-like
programming language systems is that once you get into the nitty gritty
details, you end up having to know exactly the right things to type,
This
x27;t require parentheses at all, since functions
("procedures") take a fixed number of arguments. Parentheses are only
required when you're adding optional arguments.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA &
have been nice to be able to do that.
Look up the function call syntaxes with * and **:
>>> def foo(*args): print args
...
>>> def bar(**keywords): print keywords
...
>>> foo(1, 2, 3)
(1, 2, 3)
>>> bar(a=1, b=2, c=3)
{'a': 1, 'c'
there
is some keyword that I don't know about.
No. The assignment operator with a bare name on the left hand side is
not overridable.
You can override attribute access, however, with
.__getattr__/.__getattribute__.
--
Erik Max Francis && m...@alcyone.com && http://www.
element is apparently
being promoted to "bytes" as soon as it comes out of the array.
There's no distinction byte type. A single character of a bytes type is
also a bytes.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Did you ever love somebody / Did you ever really care
-- Cassandra Wilson
--
http://mail.python.org/mailman/listinfo/python-list
ime for the same reason. It isn't going to happen.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
There are not fifty ways of fighting, there is only one: to be the
7;t.
Is "@" a "speaking identifier? How about "#" and "!="? Last I heard,
they were all part of Python.
None of these are identifiers at all. You might want to read up on the
language reference to see what an identifier actually is.
--
Erik Max Francis
Filip Gruszczyński wrote:
I would like to iterate over a sequence nad ignore all None objects.
The most obvious way is explicitly checking if element is not None,
but it takes too much space.
That doesn't make much sense; why would iterating over the sequence take
more _space_?
--
Eri
that matter.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
God grant me to contend with those that understand me.
-- Thomas Fuller
--
http://mail.python.org/mailman/listinfo/python-list
nature, but why the interpreter
refused to do that ?
Because, as in most languages, it's not even clear what you might mean
by this syntax. It doesn't have any meaning; assignments are made to
variables, not the results of function calls.
--
Erik Max Francis && m...@al
iously doesn't say anything
about which "objects" are the same as each other.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Scars are like memories. We d
Derek Martin wrote:
On Fri, Jan 02, 2009 at 12:50:44PM -0800, Erik Max Francis wrote:
Identity isn't defined on math objects, only on Python objects; there
is no notion of 'is' in math.
This is also false, it even has its own operator (which requires
Unicode to display): ≡
dentity and the computer scientific ones (especially since
the term _identity_ isn't even used in remotely the same way) is simply
ignoring the fact that other people either won't know what you mean or
will presume you're misunderstanding something. Because, based on your
ed, and it's not useful anyway;
what you care about is whether two objects are equal or not, not whether
they're the same object through some optimization behind the scenes.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
All delays are dangerous in war.
-- John Dryden, 1631-1700
--
http://mail.python.org/mailman/listinfo/python-list
make two widgets, how
many widgets can five men make in two weeks?").
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Those who forget the past are condemned to repeat
not so good one. People like
Python because of his simplicity in comparison with c++. Maybe People
would like him even more it would be a bit more simple but the same
powerfull.
The problem is your suggestion would make Python a worse tool, not a
better one.
--
Erik Max Francis && [EMA
Lawrence D'Oliveiro wrote:
gavino wrote:
which is nicer?
If I were to lock you and INTERCAL in a room until only one is left alive, who
do you think would survive?
The rest of us.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, C
Hi all -
I have succeeded in building Python 2.6.1 from source under Windows XP
by running Visual C++ 2008 Express on the PCbuild/pcbuild.sln file
both from the Visual C++ application as well as from the commandline
using :
vcbuild pcbuild.sln 'Release|Win32'
This builds fine (allowing for error
I suppose that what I am looking for is the Windows version of "make
install" as we know it after running configure with --
prefix=custom_location --exec-prefix=custom_location flags and make on
the Linux platform.
Dan
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 6, 11:21 am, Christian Heimes wrote:
> dan.erik.peter...@gmail.com schrieb:
>
> > I suppose that what I am looking for is the Windows version of "make
> > install" as we know it after running configure with --
> > prefix=custom_location --exec-prefix=custom_location flags and make on
> > th
(non-spam) posts is steadily dropping
over time.
If you look at http://mail.python.org/pipermail/python-list/ it doesn't
make it clear that there is any sort of decline.
...
And made all purdy-like:
http://www.alcyone.com/tmp/python-list%20traffic.pdf
--
Erik Max Francis &
rating over a single object, so successive
calls to .next give you success iteration values like you intended.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
We must all
python.org describes their functionality in detail.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M, Skype erikmaxfrancis
The hour which gives us life begins to take it away.
-- Seneca
--
http://mail.python.org/mailman/listinfo/python-list
erics Manual, 2nd Edition, published in 1988? It's
such a classic piece that I think it should be posted somewhere...
I only see used versions of it available for purchase. Care to hum a
few bars?
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose,
c.
Even if you restrict yourself to base-b expansions (for which the
statement is true for integer bases), you can cheat there too: e is 1
in base e.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W &&a
perator tests identity.
If you don't specifically intend to test for identity, use `==`. If you
don't know what identity tests are for (with the exception of testing
for None-ness), then you don't need it.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyon
rence books but I could not find the answer to (1). I hope to
find a better Python reference!)
It's unpacking a 1-tuple:
(x,) = y
The parentheses here are not necessary and are sometimes left out.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max
...whereas
REAL WORLD programmers who want to be generally useful go and learn
C#.
Psst. What language do you think the primary implementations of C# is
written in?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W
ush or PushGP. These are in effect a stack-based form
of Lisp, but which use different data stacks for different types.
Producing human-readable code from my genetic programming search would
be a great bonus -- and for me, at this moment, this seems to mean
Algol-style syntax. (Sigh.) But it
lackjack1.jpg
http://wps.com/projects/LGP-21/Software/LGP30-Blackjack2.jpg
and here's a scan of a printout of some "source code" (machine language):
http://wps.com/projects/LGP-21/Software/CrapGame.tiff
--
Erik Max Francis && [EMAIL PROTECTED] &&
nd code written to deal with sequences using duck typing (which
is typically nearly all Python code) don't have to know anything special
about your custom sequence class.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18
and zip. The use of
islice and izip is better, particularly if the list that's being
iterated over is large.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfranc
[EMAIL PROTECTED] wrote:
Whoops, I misread the original post. That would be:
for x, y in zip(a[::2], a[1::2]):
frob(x, y)
... which I don't use a lot.
Sorry, posted before I saw your reply. Still, you're building three
sublists in order to just iterate over them.
-
un drawing
imaginary lines in the sand.
Once again, I'm invoking the contraint against simply using x in a
boolean context, or passing x to a function expecting a boolean
doesn't count, since in those cases x can be set to the result of the
explicit test.
Next answer you
st. Simpler, in fact, than the ones you were advocating.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
An ounce of hypocrisy is worth a pound of ambition.
-- Michael Korda
--
http://mail.python.org/mailman/listinfo/python-list
you're thinking of (numeric types vs.
container types), there aren't any good examples. But who cares?
Polymorphism applies in more than just this one special case. You're
setting up a challenge that isn't very interesting, and which is rigged
so that no one can win because
or a list.
Having said that, it would sure be nice to be able to write
if myList is not empty:
I sure hope that's a joke. `x is not y` means something quite different.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 1
that would be an exceptionally bad way to test for None-ness,
since None is false. The test would never succeed.
Having said that, it would sure be nice to be able to write
if myList is not empty:
instead of
if len(myList) != 0:
I can agree with this.
I'm getting this sneakin
plenty of other sequence types: such as tuples,
strings, or even arbitrary custom types. Emptiness is a test for the
value of an object, not a test for whether it is identical to another
object, so this is a very misleading of the `is` operator, bordering on
abuse.
This syntax would make far less
Russ P. wrote:
On Jul 29, 11:09 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
I'm getting this sneaking suspicion that you guys are all putting us on.
As I said in an earlier post, I realize that this would only work if
there were only one copy of "empty" (as ther
Russ P. wrote:
Come to think of it, shouldn't the list type have an "isempty" method?
Or does it?
Yes. It's written:
if not aList:
...
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA,
Russ P. wrote:
On Jul 29, 11:36 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
Russ P. wrote:
Come to think of it, shouldn't the list type have an "isempty" method?
Or does it?
Yes. It's written:
if not aList:
...
As you know, that is not qu
Carl Banks wrote:
I mean in general. I wouldn't spell it like that. I would prefer if
empty(x), with an __empty__ method. (And support __nonzero__ aka
__bool__ dropped completely.)
So your argument is purely about style, then. You just wish it were
written differently.
--
Eri
hing like the
modulus operator. In dynamic languages, the effect of operations depend
on their types. There's really no way around that, and Boolean testing
if an object as in `if x: ...` is no different. It means different
things depending on what `x` is.
--
Erik Max Francis && [
Russ P. wrote:
On Jul 30, 1:07 am, Erik Max Francis <[EMAIL PROTECTED]> wrote:
Russ P. wrote:
Oh, Lordy. I understand perfectly well how boolean tests, __len__, and
__nonzero__ work in Python. It's very basic stuff. You can quit
patronizing me (and Carl too, I'm sure).
You su
Y TO DO IT! Let
me repeat that for you: I DID NOT CLAIM THAT THIS IS THE WAY TO DO IT!
Did you get that, idiot?
So people who can read words but not minds are idiots. Go get 'em, tiger!
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, US
your words. Which, by the way, includes at least three people
other than myself.
But I'll bet the mindless namecalling is really working out for you.
Go, team, go!
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 1
Russ P. wrote:
On Jul 30, 9:27 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
You're sure going on about a distinction without a difference for a guy
who childishly likes to call other people names. A reasonable person
would have long ago moved on instead of blaming oth
fundamentals of Python, so you're just trying to make up controversy here.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
We all breathe the same air. We all cherish our
polymorphism. It's more confusing, if that's a benefit.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
In a cosmic setting, vast and old, beyond ordinary human
unde
It probably means that your text editor is saving as UTF-16 and it's
seeing part of a byte order marker (0xFE 0xFF or 0xFF 0xFE depending on
endianness) -- either that or you've accidentally injected some extra
garbage into the file. Save as ASCII instead.
--
Erik Max F
have a single `solve` function that accomplishes it.
Therefore, the general point about polymorphism still stands.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
It is
dule or two (so that code not using Psycho is absolutely
unaffected)?
That's correct. Hi, David!
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Longevity has its plac
o. `range`
creates a list which is not really what you need.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
You and I / We've seen it all / Chasing our hearts' de
nt to transfer and for what purpose.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
In the final choice a solider's pack is not so heavy a burden as a
prisoner's
or a very conscious reason. Which is why the PATH exists in the
first place, and why invoking the script with env is preferable.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
--
http://mail.python.org/mailman/listinfo/python-list
templating system,
where most of the text is unmodified and you only set out the specific
areas where you want to insert logic.
EmPy is one:
http://www.alcyone.com/software/empy/
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
list; then, to
find the index of that object. That's pointless wasteful.
The Pythonic idiom is to catch the exception and then deal with it as
desired.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
--
http://mail.python.org/mailman/listinfo/python-list
string, which is nonsensical. You add
strings to strings, or lists to lists, but mixing them up doesn't make
sense. Python can't guess what you mean when you write something like
['abc', 'def'] + '' -- which is the functional equivalent of your call
to s
Torsten Bronger wrote:
No, the above expression should yield ''+'abc'+'efg', look for the
signature of sum in the docs.
You're absolutely right, I misread it. Sorry about that.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcy
, so silently
returning a completely invalid comparison is a tremendously bad idea.
It's a bug.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Can I walk with you /
tical equation, this means (translated to Python)
-(x**2), not (-x)**2.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
I sleep and dream that life is / All beauty
-- La
because that tends to be what you're usually more interested in, and is
more efficient. For another thing, if you're doing a lot of testing for
containment in values, then it's likely you're not using the right data
structure, or combination of data structures. That's n
801 - 900 of 988 matches
Mail list logo