generates a ValueError.
Did you want to only split once at most? Then it's s.split('|', 1).
Did you want to assign the first element to the first variable and the
rest to the next? Then it's x = s.split('|'); a, b = x[0], x[1:].
--
Erik Max Francis && [EMAIL
executed in it would have no effect on
the state of another.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Success and failure are equally disastrous.
-- Tennessee Wi
Help on function index in module string:
index(s, *args)
index(s, sub [,start [,end]]) -> int
Like find but raises ValueError when the substring is not found.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 2
terminals respond by beeping. Since, when you're logged into a remote
machine, it's your terminal that's displaying the output of your remote
session, that's why you hear the beep on your local machine.
--
Erik Max Francis && [EMAIL PROTECTED] && http://
is. Look up XML DOM.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
An ounce of hypocrisy is worth a pound of ambition.
-- Michael Korda
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> This is my learning notes on Haskell. I call it a-Haskell-a-day.
Another day, another community to completely piss of, huh, Xah?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&
s can't handle these, of course).
If it's a relatively straightforward class where the entire state is
exposed through the constructor, then a friendly repr is possible.
Otherwise, it's not, and trying to otherwise do so may just be confusing.
--
Erik Max Francis &&
on the circumstances. There is no uniform solution here.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
We must all hang together, or, most assuredly, we will all hang
sepa
aum wrote:
> The Vaults of Parnassus site:
> http://www.vex.net/parnassus/
> has been down for several days, with no resolution available for the
> vex.net domain.
It's working fine here.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
pically, in C or C++, I would use an enum for that:
> enum OBJECT_STATE
> {
> opened, closed, error
> }
OPENED, CLOSED, ERROR = range(3)
object.state = OPENED
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &a
now why it's doing this as I'm trying to
> open a JPEG, and not a tiff. I tried with a .bmp with similar results.
> Any ideas? Thanks!
Install libtiff.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121
David T wrote:
> Individuals, and perhaps groups of individuals are the creators of
> works.
When someone pays you to create a work, then they own the copyright, not
you. It's called work for hire.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone
Mike Meyer wrote:
> Further, recent evidence is that this is no longer true in that
> country, assuming it ever was.
Oh, please. Take the political crap elsewhere.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
Bruno Desthuilliers wrote:
> Depends on the country's laws and the exact agreement.
Work for hire is part of the Berne convention.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erik
ame. Often, in fact, they are not.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Life is painting a picture, not doing a sum.
-- Oliver Wendell Holmes, Jr.
--
http://mail.python.org/mailman/listinfo/python-list
s already easy enough to do this
within the language, by just assigning it a value, even if it's an
integer from range/xrange or a new sentinel like object().
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121
have paid you if you didn't (implicitly) transfer the
copyright to them. So copyright is just as relevant whether it's a work
for hire or not.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM er
Micah Elliott wrote:
> On Nov 21, David Isaac wrote:
>
>> What's the good way to produce a cumulative sum?
>
>>>> import operator
>>>> x = 1,2,3
>>>> reduce(operator.add, x)
> 6
Or just sum(x).
--
Erik Max Francis && [EMAIL P
ltin method. The usual way is to just wrap a class
around two dictionaries, one for mapping keys to values and the other
for mapping values back to keys.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&a
* taken seriously
> using names that aren't what you'd call a "real name".
The fact that it obviously isn't always true without exception doesn't
mean it's never true. Or did that not occur to you?
--
Erik Max Francis && [EMAIL PROTECTED] &
ut it looks like only
genetic algorithms are supported, not full genetic programming. Is this
not the case?
I've been planning on releasing my stack-based genetic programming
system Psi (implemented in Python) at some point in the future, FYI.
--
Erik Max Francis && [EMAIL PROTE
d in. You can't teach all things
simultaneously; I'm not sure creating a genetic programming (or genetic
algorithms) system that's useful to "newbies" (whatever that means) is
even a useful goal in and of itself.
--
Erik Max Francis && [EMAIL PROTECTED] &a
tic algorithm system, not genetic a programming
system, hence his response. It was only my interpretation of his
introductory comment that led anyone to believe otherwise.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 1
enetic algorithm).
Recent developments, with stack-based languages like those used by
Spector, have allowed the introduction of types naturally into genetic
programming, which has a great deal of promise for allowing even more
involves solutions to complex problems.
--
Erik Max Francis
iquette. ;-)
His "points" have about the same legitimacy as banging on the keyboard
until it breaks and then crying for an hour. At least if he did that,
we'd have to hear from him less.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
Sa
rea. Thanks again for the comments.
Sure thing. Obviously I'll post an announcement here when it's ready.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Heaven and
ts), but beyond intermixing ideas they really aren't related.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
I never could have predicted / That I'd feel this way
malv wrote:
> Thank you kindly, Erik.
Sure thing.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
It is only the poor who are forbidden to beg.
-- Anatole France
dead on arrival.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
There's a reason why we / Keep chasing morning
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
and edit your settings to select just the 'peps' topic.
Maybe someone could roll this into an RSS feed?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
There'
back of my mind that languages that can easily support massive
(especially automatic) parallelization will have their day in the sun,
at least someday.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AI
Peter Hansen wrote:
So why duplicate the posts by posting them to the newsgroups?
Because he's a well-known pest.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Yes I
[since 0.2]
- 0.3, 2005 Jan 15. Separate transfers from maneuvers; support
Oberth maneuvers.
- 0.2.1, 2005 Jan 8. Various collected modifications.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&
he need to post it here for?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Make it come down / Like molasses rain
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
Python has iteritems() and enumerate() to be used in for loops.
can anyone tell me what these are by themselves, if anything?
are they just for idiom?
thanks.
You would be funnier if you weren't so incompetent.
--
Erik Max Francis && [EMAIL PROTECTED] && http:
memory at once.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Can I lay with you / As your wife
-- India Arie
--
http://mail.python.org/mailman/listinfo/python-list
;= 0: ...
If you want to keep a running count, you can use .count, which will
count the number of substrings in the line.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
I would have liked to have seen Montana.
-- Capt. Vasily Borodin
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
Would there, I wonder, be any enthusiasm for a "Best Xah Lee impression"
prize at PyCon?
I imagine standing in a corner, facing the wall, and screaming
incoherently at the top of your lungs would be guaranteed at least
second place.
--
Erik Max Francis &&
someone finding his posts
and not seeing the related discussion and refutations is a big risk.
For the rest of us, we can just killfile the threads easily enough.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W
already being handled, at low levels of annoyance that
can be avoided by anyone with a killfile or mail filter.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Divorces are made
.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
War is like love, it always finds a way.
-- Bertolt Brecht
--
http://mail.python.org/mailman/listinfo/python-list
, I thought of using shelve, but looking at
> the restrictions (record size + potential collisions) I feel I should study
> my options a bit further before I get started.
Why not just use native Python data structures and pickle them?
--
Erik Max Francis && [EMAIL PROTECTED] &&a
Philippe C. Martin wrote:
> Well that would be shelve I guess ... with the restrictions I mentioned.
I was talking about pickle, not shelve.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && A
Philippe C. Martin wrote:
> You mean pickling a dictionnary of 5000/16K objects ?
Yes. You said speed was not an issue; pickling only 5000 objects, each
no more than 16 kB, is easily handled by any remotely modern machine
(and even plenty which are not very modern).
--
Erik Max Fran
ost recent call last):
File "/home/max/tmp/hash.py", line 25, in ?
d = pickle.loads(data)
File "/usr/local/lib/python2.4/pickle.py", line 1394, in loads
return Unpickler(file).load()
File "/usr/local/lib/python2.4/pickle.py", line 872, in loa
bruno modulix wrote:
> Err... don't you spot any useless code here ?-)
>
> (tip: dict.items() already returns a list of (k,v) tuples...)
But it doesn't return a tuple of them. Which is what the tuple call
there does.
--
Erik Max Francis && [EMAIL PROTECTED] &a
same sort of thing which Brits try and imitate when
> they want to suggest a snake-oil salesman.
And due to overcorrection, typically do a really bad job of it :-).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53
s, so you shouldn't have any
problem finding something both you and the kids can use, like UCBLogo
for Unix or MSWLogo for Windows (based on UCBLogo). If you want to go
that route, there's even a set of computer science texts based on Logo,
called _Computer Science Logo Style_ by Bria
ncf wrote:
> Eh, just figured it'd be worth noting...map, filter, and reduce should
> be possible with the extended list syntaxes. Well, filter I know is,
> but hte others /should/ be possible.
>
> filter(lambda: <>, <>)
> [some_var for some_var in <> if
before I found Python. I
definitely use lambda, map, filter, and reduce, and will miss them when
they're gone.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Heaven
The distinction is rhotic vs. non-rhotic accents, by the way; non-rhotic
accents drop the _r_s. The latter example is usually an example of
overcorrection.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &a
ul projects got approved.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Heaven ne'er helps the man who will not act.
-- Sophocles
--
http://mail.python.org/mailman/listinfo/python-list
Sean McIlroy wrote:
> if that's the case then list
> comprehensions and/or "first class functions" are likely to be the next
> target.
Slippery slope arguments are logical fallacies, you know.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyo
in fact
it's quite clear). So at least there's something to that, but I don't
follow it the whole way. But removing reduce is just removing
functionality for no other reason, it seems, than spite.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/
nce)
vs.
[str(x) for x in sequence]
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
In Heaven all the interesting people are missing.
-- Friedrich Nietzsche
--
http://mail.python.org/mailman/listinfo/python-list
g the reasons for
removing them as builtins, I really can't understand the motivation for
removing them entirely, not even as a standard library module.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 5
oduct fulfill 90% (estimate of course) of reduces
> use cases. It may actually be as high as 99% for all I know. Or it may
> be less. Anyone care to try and put a real measurement on it?
Well, reduce covers 100% of them, and it's one function, and it's
already there.
--
t handles all the required use cases and replacing it with _two_
functions that don't. Since it's doubling the footprint of the reduce
functionality, arguments about avoiding pollution are red herrings.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/
l last):
> File "", line 1, in ?
> AttributeError: 'NoneType' object has no attribute 'group'
>
> the only thing I want are the number of places blabla, Re modules
> sucks! and blabla are.
Your question is still not clear. What you're searching
Steven Bethard wrote:
> And it's almost two times slower:
That's because you're not using operator.add.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfranci
tantrum look
foolish in public is to treat them with dignity and respect while they
continue rambling and ranting.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Sometim
al form is explicitly called an "n-tuple" or "tuple" in
mathematics.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Death to all fanatics!
-- Malaclypse the Younger
--
http://mail.python.org/mailman/listinfo/python-list
", line 1
(,)
^
SyntaxError: invalid syntax
You've wandered way off into the woods now.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
But since when can wounded eyes see / If we weren't who we were
-- Joi
--
http://mail.python.org/mailman/listinfo/python-list
Ron Adam wrote:
> Well in my previous explanation I *mean* it to be empty parenthesis.
>
> Does that help?
Maybe it might be beneficial to learn a little more of the language
before proposing such wide-reaching (and un-Pythonic) reforms?
--
Erik Max Francis && [EMAIL P
o
memory at once, which can obviously be expensive if the file is large.
A for loop with .readline, of course, will work, but modern versions of
Python allow iteration over a file, which will read it line by line:
for line in aFile:
...
--
Erik Max Francis &&
Randy Howard wrote:
> Out of curiosity, does anyone remember who 'jgs' refers to
> above?
A Google search for "ascii art jgs" shows it's Joan Stark.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
William Park wrote:
> Since you're doing cross product (ie. 3*3*3*3), manual loop of 4 level
> deep would be the fastest in terms of algorithm.
That's a Cartesian product, actually :-).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San
[EMAIL PROTECTED] wrote:
> Can someone tell me the difference between single quote and double
> quote?
One has double the fun.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfran
turn statement with an argument,
and if I intend a method that returns a useful value to return one that
might be None, I do so expliclitly, rather than having the logic fall
off the end of the function, making it unclear what was intended in the
first place.
--
Erik Max Francis && [EMAIL
;a-simple-python-example')
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
If the sky should fall, hold up your hands.
-- (a Spanish proverb)
--
http://mail.python.org/mailman/listinfo/python-list
to OpenGL?)
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
I will always remember / This moment
-- Sade
--
http://mail.python.org/mailman/listinfo/python-list
ic ordering with sort order.
Python doesn't have a distinction between these two, so yes, you're
sorting with comparison operators.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM e
on, which, like the
OpenGL documentation, talks about it returning the number of hits. I
didn't look carefully enough at the Python return value :-).
Thanks, Mike!
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 2
raise NotImplementedError
...
def bar(self):
raise NotImplementedError
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Everything
if it's just a typo, and not
severe negligence, that helps the problem get fixed sooner, rather than
later.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Morality is a wea
Daniel Schüle wrote:
> what do you think about it?
> maybe there exists some proposals aiming this goal?
Derive your own subclass of complex and define those methods.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
gradians, which aren't the
same thing; gradians are defined so that there are 400 gradians in a
circle (so 100 gradians in a right angle).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM
Erik Max Francis wrote:
> I've come across a limitation in unpickling certain types of complex
> data structures which involve instances that override __hash__, and was
> wondering if it was known (basic searches didn't seem to come up with
> anything similar) and if the
Richie Hindle wrote:
> http://google.com/search?q=site:docs.python.org%20pth
>
> The first hit explains how .pth files work (although it's the sort of
> documentation that makes Xah Lee explode with fury).
That just makes it all the more delicious.
--
Erik Max Francis &a
ike search
> your sources or build tags files, Perforce doesn't leave turds in your
> development tree.
It also is free for personal use (up to 2 clients, 2 users) and open
soruce projects can get free licenses. Or at least it was so the last I
checked.
--
Erik Max Francis
They can't force
upgrades, so even if they changed that policy in the future, they can't
take that away from you.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
A fa
and vice
versa. They are not completely unrelated entities.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Make it come down / Like molasses rain
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> Jargons of Info Tech industry
>
> (A Love of Jargons)
>
> Xah Lee, 2002 Feb
Congratulations, this time you managed to get to your second paragraph
before your Tourette's kicked in.
--
Erik Max Francis && [EMAIL PROTECTED] && http://ww
ame; Cheese Shop is just a silly name for no purpose.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
We learn from history that we do not learn from history.
-- Georg Friedrich
new pip wrote:
> I'm using Windows os. If the current system date time is '28 Jun 2001
> 14:17:15 +0700', how can I obtain the value '+0700' using python?
time.timezone gives you the timezone offset in minutes.
--
Erik Max Francis && [EMAIL PROTECTED]
Bengt Richter wrote:
> > time.timezone gives you the timezone offset in minutes.
>
> ITYM seconds?
I sure did. But at least minutes is a more entertaining answer.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, US
d telecommuting,
either ... :-)
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
There is no present or future; only the past, happening over and over
again, now. -- Eugene O'Neill
--
http://mail.python.org/mailman/listinfo/python-list
when you ran the first test, but not the second test, resulting in the
discrepancy. In other words, the speed change had nothing to do with
your dummy lines.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &
eal effect given the other sightings. I don't
see any speed difference, myself (Pentium IV 3.0 GHz running Slackware
Linux).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM er
d by the European Union:
Cool. I just tested EmPy's regression suite with PyPy 0.7.0, and it ran
fine (though obviously it was very slow). Nice job so far, guys!
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121
Dumbkiwi wrote:
> Can anyone help me to work through this issue? I'm a bit lost as to where
> to start.
If you want to convert it to UTF-8, then do so with
u.decode('utf-8')
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
ng though.
That means one of the other things you're trying to print with %s is
also a Unicode string, and it contains non-ASCII characters. Try
printing their types to see which one it is.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, C
en realize you're having this conversation over the Python
mailing list/newsgroup, rather than by private email?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Defeat is a
ist itself). One could modify the above statement
about consistency to say that methods which modify an object and do not
return a directed value do not return the object which was mutated, but
rather return None. So list.append returns None, but list.pop returns
the element popped.
--
Erik
>
> (II)
> class TestResult:
> pass = "pass"
> fail = "fail"
> exception = "exception"
>
>Thanks for your help.
There's nothing per se different between a variable named 'x' and one
named '_x_
varaible named `_passxxx_', the
other defines one named `passsxxx'.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Experience is the name everyone gives to their mistakes.
-- Oscar Wilde
--
http://mail.python.org/mailman/listinfo/python-list
Johnny Lee wrote:
> I mean besides the difference of name...
You're going to have to be more clear; I don't understand your question.
What's the difference between
a = 1
and
b = 1
besides the difference of name?
--
Erik Max Francis &&
', '__module__']
>>> c = C()
>>> dir(c)
['_C__x', '__doc__', '__module__']
>>> c._C__x
1
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
What is now prov'd was once only imagin'd.
-- William Blake
--
http://mail.python.org/mailman/listinfo/python-list
() in
between your prints.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Substance is one of the greatest of our illusions.
-- Sir Arthur Eddington
--
http://mail.python.org/mailman/listinfo/python-list
Samuel wrote:
> How can I print a word without appending a newline character? Appending
> a "," to the print statement only substitutes the newline for a space,
> which is not what I am looking for.
Use sys.stdout.write directly.
--
Erik Max Francis &&
501 - 600 of 1012 matches
Mail list logo