here. The math module? Python,
or the IEEE specifications?
--
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 21 Oct 2009 22:47:24 -0700 (PDT), Carl Banks
pavlovevide...@gmail.com wrote:
On Oct 21, 12:46 pm, David C Ullrich dullr...@sprynet.com wrote:
On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote:
On Oct 20, 1:51 pm, David C Ullrich dullr...@sprynet.com wrote:
I'm not saying either
On Wed, 21 Oct 2009 14:43:48 -0700 (PDT), Mensanator
mensana...@aol.com wrote:
On Oct 21, 2:46 pm, David C Ullrich dullr...@sprynet.com wrote:
On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote:
On Oct 20, 1:51 pm, David C Ullrich dullr...@sprynet.com wrote:
On Thu, 15 Oct 2009 18:18:09
On Wed, 21 Oct 2009 14:43:48 -0700 (PDT), Mensanator
mensana...@aol.com wrote:
On Oct 21, 2:46 pm, David C Ullrich dullr...@sprynet.com wrote:
On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote:
On Oct 20, 1:51 pm, David C Ullrich dullr...@sprynet.com wrote:
On Thu, 15 Oct 2009 18:18:09
On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote:
On Oct 20, 1:51 pm, David C Ullrich dullr...@sprynet.com wrote:
On Thu, 15 Oct 2009 18:18:09 -0700, Mensanator wrote:
All I wanted to do is split a binary number into two lists, a list of
blocks of consecutive ones and another list
On Sun, 18 Oct 2009 14:33:17 +1100, Ben Finney wrote:
Jabba Laci jabba.l...@gmail.com writes:
Hi,
I have some difficulties with list - tuple conversion:
t = ('a', 'b')
li = list(t) # tuple - list, works print li # ['a', 'b']
tu = tuple(li) # list - tuple, error print tu # what
On Thu, 15 Oct 2009 18:18:09 -0700, Mensanator wrote:
All I wanted to do is split a binary number into two lists, a list of
blocks of consecutive ones and another list of blocks of consecutive
zeroes.
But no, you can't do that.
c = '001110'
c.split('0')
['', '', '1', '', '', '',
On Wed, 14 Oct 2009 01:54:44 -0700 (PDT), Mark Dickinson
dicki...@gmail.com wrote:
On Oct 13, 10:39 pm, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Tue, 13 Oct 2009 16:17:58 -0500, Peng Yu wrote:
Hi,
The following code does not run because range() does not accept a big
On Tue, 22 Sep 2009 02:34:53 +, Steven D'Aprano wrote:
On Mon, 21 Sep 2009 13:50:23 -0500, David C Ullrich wrote:
But you actually want to return twice the value. I don't see how to do
that.
What?
Seriously?
You're saying it _can_ be done in Python? They must have added
something
On Tue, 15 Sep 2009 14:31:26 +0200, Ulrich Eckhardt wrote:
Hi!
'abc'.split('') gives me a ValueError: empty separator. However,
''.join(['a', 'b', 'c']) gives me 'abc'.
Why this asymmetry?
The docs say
If sep is given, consecutive delimiters are not grouped together and are
deemed to
to worry about whether UseResource() failed
_except_ in situations where you're certain that
that's the right level to catch the error.
MRAB wrote:
You should've used raw strings. :-)
rats!, you got me on that one :-)
David C. Ullrich
Understanding Godel isn't about following his formal proof
On Sat, 05 Sep 2009 23:41:08 +, Steven D'Aprano wrote:
On Sat, 05 Sep 2009 16:14:02 +, kj wrote:
Finally, I was under the impression that Python closed filehandles
automatically when they were garbage-collected.
[...]
(3) For quick and dirty scripts, or programs that only use one
Not at all important, just for fun (at least for me):
It seems to me, looking at various docs, that wxWidgets
includes a media control that can play video files, but
it's not included in wxPython. (There's something in
wxPython with a promising name but it seems to be just audio.)
Is that
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 24 Aug 2009 22:22:20 -0700, sturlamolden wrote:
On 25 Aug, 05:56, Peter Decker pydec...@gmail.com wrote:
I use the Dabo Class Designer to visually design my forms. So what's
you're point? :)
Nothing, except lobbying for wxFormBuilder for anyone who still doesn't
know of it. :)
On Thu, 20 Aug 2009 17:45:11 -0700, John Machin wrote:
On Aug 21, 5:33 am, David C Ullrich dullr...@sprynet.com wrote:
So I'm slow, fine. (There were several times when I was using 1.5.3 and
wished they were there - transposing matrices, etc.)
1.5.THREE ??
Not sure. 1.SOMETHING. Sorry
On Thu, 20 Aug 2009 16:51:00 -0700, Aahz wrote:
In article mailman.143.1250793404.2854.python-l...@python.org,
Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Thu, Aug 20, 2009 at 2:13 PM, David C Ullrichdullr...@sprynet.com
wrot= e:
I just noticed that
sequence[i:j:k]
Well, I got some
On Fri, 21 Aug 2009 14:40:30 -0500, David C Ullrich wrote:
On Thu, 20 Aug 2009 16:51:00 -0700, Aahz wrote:
In article mailman.143.1250793404.2854.python-l...@python.org,
Benjamin Kaplan benjamin.kap...@case.edu wrote:
On Thu, Aug 20, 2009 at 2:13 PM, David C Ullrichdullr...@sprynet.com
wrot
On Fri, 21 Aug 2009 14:45:55 -0500, David C Ullrich
dullr...@sprynet.com wrote:
[...]
Oops. Should have tested that a little more carefully
before posting. No time to fix it right now, customer just
got here. Let's just say we're looking for the primes
between sqrt(n) and n...
from math import
I just noticed that
sequence[i:j:k]
syntax in a post here. When did this happen?
(I'm just curious whether it existed in 1.5.x or not.
If so I'm stupid - otoh if it was introduced in 2.x
I'm just slow...)
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 20 Aug 2009 18:41:34 +, Duncan Booth wrote:
David C Ullrich dullr...@sprynet.com wrote:
I just noticed that
sequence[i:j:k]
syntax in a post here. When did this happen?
(I'm just curious whether it existed in 1.5.x or not. If so I'm stupid
- otoh if it was introduced
On Thu, 20 Aug 2009 14:36:35 -0400, Benjamin Kaplan wrote:
On Thu, Aug 20, 2009 at 2:13 PM, David C Ullrichdullr...@sprynet.com
wrote:
I just noticed that
sequence[i:j:k]
syntax in a post here. When did this happen?
(I'm just curious whether it existed in 1.5.x or not. If so I'm stupid
Probably this isn't news to anyone but me, but just in case:
Last I heard Komodo was a very highly regarded IDE that unfortunately
cost money. Yesterday I discovered that they now have an editor
available for free.
Doesn't contain all the features of the IDE, but just having glanced
at it it
On Thu, 13 Aug 2009 12:05:26 -0700, Dr. Phillip M. Feldman wrote:
According to the Python documentation, 'reload' reloads a previously
imported module (so that changes made via an external editor will be
effective). But, when I try to use this command, I get the following
error message:
On Tue, 11 Aug 2009 21:29:40 +0300, Dotan Cohen wrote:
Wikipedia has an API for computer access. See
http://www.mediawiki.org/wiki/API
Yes, I am aware of this as well. Does anyone know of a python class for
easily interacting with it, or do I need to roll my own.
Try reading a
What you're trying to do and what's not working isn't
entirely clear to me.
But if I had a wxPython application and I wanted to
execute user input (note the _if_) I'd just pop up a window
(I forget how ShowModal is spelled in wx right now)
with a text box and an Execute button and a Cancel
On Mon, 22 Jun 2009 05:46:55 -0700 (PDT), pdpi pdpinhe...@gmail.com
wrote:
On Jun 19, 8:13 pm, Charles Yeomans char...@declaresub.com wrote:
On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote:
Evidently my posts are appearing, since I see replies.
I guess the question of why I don't
On Mon, 22 Jun 2009 10:31:26 -0400, Charles Yeomans
char...@declaresub.com wrote:
On Jun 22, 2009, at 8:46 AM, pdpi wrote:
On Jun 19, 8:13 pm, Charles Yeomans char...@declaresub.com wrote:
On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote:
snick
Hmm. You left out a bit in the first
On Fri, 19 Jun 2009 12:40:36 -0700 (PDT), Mark Dickinson
dicki...@gmail.com wrote:
On Jun 19, 7:43 pm, David C. Ullrich ullr...@math.okstate.edu wrote:
Evidently my posts are appearing, since I see replies.
I guess the question of why I don't see the posts themselves
\is ot here...
Judging
Evidently my posts are appearing, since I see replies.
I guess the question of why I don't see the posts themselves
\is ot here...
On Thu, 18 Jun 2009 17:01:12 -0700 (PDT), Mark Dickinson
dicki...@gmail.com wrote:
On Jun 18, 7:26 pm, David C. Ullrich ullr...@math.okstate.edu wrote:
On Wed, 17
On Wed, 17 Jun 2009 05:46:22 -0700 (PDT), Mark Dickinson
dicki...@gmail.com wrote:
On Jun 17, 1:26 pm, Jaime Fernandez del Rio jaime.f...@gmail.com
wrote:
On Wed, Jun 17, 2009 at 1:52 PM, Mark Dickinsondicki...@gmail.com wrote:
Maybe James is thinking of the standard theorem
that says that
On Wed, 17 Jun 2009 14:50:28 +1200, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message 7x63ew3uo9@ruckus.brouhaha.com, wrote:
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
I don't think any countable set, even a countably-infinite set, can have
a
On Wed, 17 Jun 2009 14:50:28 +1200, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message 7x63ew3uo9@ruckus.brouhaha.com, wrote:
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
I don't think any countable set, even a countably-infinite set, can have
a
On Wed, 17 Jun 2009 14:50:28 +1200, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message 7x63ew3uo9@ruckus.brouhaha.com, wrote:
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
I don't think any countable set, even a countably-infinite set, can have
a
On Wed, 17 Jun 2009 07:35:35 +0200, Jaime Fernandez del Rio
jaime.f...@gmail.com wrote:
On Wed, Jun 17, 2009 at 4:50 AM, Lawrence
D'Oliveirol...@geek-central.gen.new_zealand wrote:
In message 7x63ew3uo9@ruckus.brouhaha.com, wrote:
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand
On Wed, 17 Jun 2009 07:37:32 -0400, Charles Yeomans
char...@declaresub.com wrote:
On Jun 17, 2009, at 2:04 AM, Paul Rubin wrote:
Jaime Fernandez del Rio jaime.f...@gmail.com writes:
I am pretty sure that a continuous sequence of
curves that converges to a continuous curve, will do so
On Wed, 17 Jun 2009 08:18:52 -0700 (PDT), Mark Dickinson
dicki...@gmail.com wrote:
On Jun 17, 3:46 pm, Paul Rubin http://phr...@nospam.invalid wrote:
Mark Dickinson dicki...@gmail.com writes:
It looks as though you're treating (a portion of?) the Koch curve as
the graph of a function f from
On 15 Jun 2009 04:55:03 GMT, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 14 Jun 2009 14:29:04 -0700, Kay Schluehr wrote:
On 14 Jun., 16:00, Steven D'Aprano
st...@removethis.cybersource.com.au wrote:
Incorrect. Koch's snowflake, for example, has a fractal dimension
see it...
DU.
In article dullrich-5ea218.10405607042...@text.giganews.com,
David C. Ullrich dullr...@sprynet.com wrote:
Just curious - has anyone else bought the printed
Python 3 Reference Manual published by SoHo Books?
Talking about what they call Part 2 of their Python
Documentation. I
even _glanced_
at what was coming out of the press. So I'm curious whether
anyone else has a copy.
(I know it's all online. Some people like _books_...)
DU.
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article mailman.3007.1238515574.11746.python-l...@python.org,
andrew cooke and...@acooke.org wrote:
David C. Ullrich wrote:
In article tm6dnzxrviq0qfbunz2dnuvz_rmdn...@pdx.net,
Scott David Daniels scott.dani...@acm.org wrote:
[...]
class Vector(list):
def __add__
In article
039360fb-a29c-4f43-b6e0-ba97fb598...@z23g2000prd.googlegroups.com,
Mensanator mensana...@aol.com wrote:
On Mar 26, 11:42 am, andrew cooke and...@acooke.org wrote:
David C. Ullrich wrote:
In article mailman.2701.1238060157.11746.python-l...@python.org,
Paddy O'Loughlin
Daniels
scott.dani...@acm.org
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
used), or something else?
Any other suggestions for a possible wow reaction from an audience like
that?
Thanks,
Paddy
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
to the right thing.
Thanks !
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
the in N is implicit in prime.
Anyway, list comprehensions in programming languages got their
name because of their resemblance to set-builder notation that
invoked the axiom of comprehension.
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article
[EMAIL PROTECTED],
Paul McGuire [EMAIL PROTECTED] wrote:
On Oct 14, 1:36 pm, David C. Ullrich [EMAIL PROTECTED] wrote:
[...]
In particular default parameters should work the way the user
expects! The fact that different users will expect different
things here is no excuse
In article [EMAIL PROTECTED],
Bruno Desthuilliers [EMAIL PROTECTED] wrote:
David C. Ullrich a écrit :
In article [EMAIL PROTECTED],
Bruno Desthuilliers [EMAIL PROTECTED]
wrote:
David C. Ullrich a écrit :
(snip)
Seems to me that people often site the important warning
In article [EMAIL PROTECTED],
Bruno Desthuilliers [EMAIL PROTECTED]
wrote:
David C. Ullrich a écrit :
In article
[EMAIL PROTECTED],
kenneth [EMAIL PROTECTED] wrote:
On Oct 9, 10:14 am, Christian Heimes [EMAIL PROTECTED] wrote:
kenneth wrote:
the 'd' variable already contains
In article [EMAIL PROTECTED],
Aditi Meher [EMAIL PROTECTED] wrote:
Hello
How to write code to store data into buffer using python?
buffer = data
Please reply.
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
really explain
this aspect of the language's behavior to people who don't read
the formal definition and also don't work through the tutorial.
Paolo
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
David C. Ullrich:
I didn't mention what's below because it doesn't seem
likely that saying max([]) = -infinity and
min([]) = +infinity is going to make the OP happy...
Well, it sounds cute having Neginfinite and Infinite as built
In article [EMAIL PROTECTED],
Steven D'Aprano [EMAIL PROTECTED] wrote:
On Fri, 05 Sep 2008 10:22:22 -0500, David C. Ullrich wrote about why max
and min shouldn't accept a default argument:
Think about all the previously elected female or black presidents of the
US. Which one
In article [EMAIL PROTECTED],
Ken Starks [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
I don't see why you feel the two should act the same.
At least in mathematics, the sum of the elements of
the empty set _is_ 0, while the maximum element of the
empty set is undefined
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
David C. Ullrich:
At least in mathematics, the sum of the elements of
the empty set _is_ 0, while the maximum element of the
empty set is undefined.
What do you think about my idea of adding that 'default' argument to
the max
,
Aigars-
[Image]
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
,
and the current implementation is very good, if not the best.
Best,
Laszlo
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
.
A possible alternative is to add a default to max(), like the next()
built-in of Python 2.6:
max((fun(x) for x in iterable if predicate(x)), default=smallvalue)
This returns smallvalue if there are no items to compute the max of.
Bye,
bearophile
--
David C. Ullrich
--
http
python 2.5.2. if that matters.
Please, any help, constructive advice and ideas are very much
appreciated.
Best regards
Ivan Reborin
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
follow his complaint about not feeling
at home with the interactive mode, but it's funny to read about
how he uses Lisp but realizes he's not going to talk people
into that...)
Bye,
bearophile
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
http://wiki.contextgarden.net/User:Luigi.scarso#Luatex_examples
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
and Perl ?
Thanks in advance,
P4|1ndr0m
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
it...
(I wonder how much work it would be to make something
like Psyco that only accepts a small subset of the language.)
Bye,
bearophile
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Delaney, Timothy (Tim) [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
f: 0.0158488750458
g: 0.000610113143921
h: 0.00200295448303
f: 0.0184948444366
g: 0.000257015228271
h: 0.00116610527039
I suspect you're hitting the point of diminishing
In article [EMAIL PROTECTED],
Erik Max Francis [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Thanks. I would have guessed that I'd want low-level style code;
that's the sort of thing I have in mind. In fact the only thing
that seems likely to come up right now is looping through
In article
[EMAIL PROTECTED],
MRAB [EMAIL PROTECTED] wrote:
On Aug 6, 8:52 pm, David C. Ullrich [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
David C. Ullrich:
Thanks. If I can get it installed and it works as advertised
this means I can
In article [EMAIL PROTECTED],
Erik Max Francis [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Just heard about Psycho. I've often wondered why someone
doesn't make something that does exactly what Psycho does - keen.
Silly question: It's correct, is it not, that Psycho doesn't
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
David C. Ullrich:
Thanks. If I can get it installed and it works as advertised
this means I can finally (eventually) finish the process of
dumping MS Windows: the only reason I need it right now is for
the small number of Delphi
In article [EMAIL PROTECTED],
David C. Ullrich [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
David C. Ullrich:
Thanks. If I can get it installed and it works as advertised
this means I can finally (eventually) finish the process of
dumping MS
In article [EMAIL PROTECTED],
Kevin Walzer [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Just as well that the message sent earlier today
seems to have been lost...
Ok. Read your instructions on libjpeg. Read some
of the install.doc. ./configure, fine. make, fine.
make test
In article [EMAIL PROTECTED],
Irmen de Jong [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Just as well that the message sent earlier today
seems to have been lost...
Ok. Read your instructions on libjpeg. Read some
of the install.doc. ./configure, fine. make, fine.
make test
In article [EMAIL PROTECTED],
David C. Ullrich [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],
Irmen de Jong [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Decided to try to install PIL on my Mac (OS X.5).
I know nothing about installing programs on Linux,
nothing
-
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
is absolutely
unaffected)?
Thanks,
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the hand-holding.
DU.
In article [EMAIL PROTECTED],
Kevin Walzer [EMAIL PROTECTED] wrote:
[more about installing libjpeg...]
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
like it didn't install any such file.
Maybe jpeg should be the name of one of those files
that did get installed?
This _is_ fun. Eech.
DU.
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Irmen de Jong [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Decided to try to install PIL on my Mac (OS X.5).
I know nothing about installing programs on Linux,
nothing about building C programs, nothing about
installing libraries, nothing about fink
to a hard
drive... that wasn't the only thing I learned that day.
(Probably won't get back to this til Monday, btw, in
case you say something and I don't seem interested.)
DU.
In article [EMAIL PROTECTED],
Kevin Walzer [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
Decided to try
(self.mode, d, a, self.decoderconfig)
File PIL/Image.py, line 375, in _getdecoder
raise IOError(decoder %s not available % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
1 of 57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.
--
David C
()
f.dispatch_as_string('hello1', 'world')
Many TIA and apologies if this is a FAQ, I googled and couldn't
find the answer.
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
':
return 2
return super(B, self).__getattr__(name)
class C(A, B):
pass
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
(self, name)
except AttributeError:
return B.__getattr__(self, name)
c=C()
c.a
A.__getattr__
1
c.b
A.__getattr__
B.__getattr__
1
A better solution is welcome.
Many thanks, Enrico
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article
[EMAIL PROTECTED],
MRAB [EMAIL PROTECTED] wrote:
On Jul 23, 4:04 pm, David C. Ullrich [EMAIL PROTECTED] wrote:
I've been saving data in a file with one line per field.
Now some of the fields may become multi-line strings...
I was about to start escaping and unescaping
In article [EMAIL PROTECTED],
Fredrik Lundh [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
I've been saving data in a file with one line per field.
Now some of the fields may become multi-line strings...
I was about to start escaping and unescaping linefeeds
by hand, when I
In article [EMAIL PROTECTED],
Fredrik Lundh [EMAIL PROTECTED] wrote:
David C. Ullrich skrev:
just keep in mind that using eval() on untrusted data isn't a very good
idea.
Right. This data comes from me, gets put into a file and then
read by me. Someone _could_ corrupt that file
In article [EMAIL PROTECTED],
Peter Otten [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
In article [EMAIL PROTECTED],
Fredrik Lundh [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
I've been saving data in a file with one line per field.
Now some of the fields may become
not to contain line breaks?
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
it in a wxPython-based
shell - it worked fine.
Try running it from the command
line and I'll bet you won't get that error.
Also, there's a great wxPython user's group you can join from the
official website:
www.wxpython.org
Mike
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo
In article [EMAIL PROTECTED],
Terry Reedy [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
In article
[EMAIL PROTECTED],
ssecorp [EMAIL PROTECTED] wrote:
I am never redefining the or reassigning the list when using validate
but since it spits the modified list back out
(a) you're saying
return None, which explains the rest of it. You
noticed that the second line of
l = mod(k,4)
l
didn't print anything? That's because the first line
set l to None. If you'd typed print l instead of just l
you would have seen
l = mod(k,4)
l
None
--
David C. Ullrich
--
http
, 262.0, 234.0, 74.0, 325.0])
g = lambda x:val(x)
l=[]
for x in range(1,10):
g(l)
183.0
33.0
315.0
244.0
308.0
168.0
146.0
378.0
297.0
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Terry Reedy [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
In article [EMAIL PROTECTED],
Terry Reedy [EMAIL PROTECTED] wrote:
Is there a reason for the inconsistency? I would
have thought in would check for elements of a
sequence, regardless of what
In article [EMAIL PROTECTED], Mel [EMAIL PROTECTED] wrote:
Ben Finney wrote:
David C. Ullrich [EMAIL PROTECTED] writes:
'ab' in 'abc'
True
[1,2] in [1,2,3]
False
URL:http://www.python.org/doc/ref/comparisons.html
Is there a reason for the inconsistency?
Probably
],[2,3]]
Thanks. I understand how it works for lists and why - I was
wondering why it's not the same for strings.
David C. Ullrich wrote:
Luckily I tried it before saying no, that's
not how in works:
'ab' in 'abc'
True
[1,2] in [1,2,3]
False
Is there a reason
In article [EMAIL PROTECTED],
Terry Reedy [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
'ab' in 'abc'
True
'a' in 'abc' works according to the standard meaning of o in collection.
'ab' in 'abc' could not work by that standard meaning because strings,
as virtual sequences, only
? Do you want to see {'name':'new value'}
or {'name':'new value', 'Name': 'newvalue'}?
TIA,
Senthil
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
argument?
--
David C. Ullrich
--
http://mail.python.org/mailman/listinfo/python-list
Luckily I tried it before saying no, that's
not how in works:
'ab' in 'abc'
True
[1,2] in [1,2,3]
False
Is there a reason for the inconsistency? I would
have thought in would check for elements of a
sequence, regardless of what sort of sequence it was...
--
David C. Ullrich
--
http
In article
[EMAIL PROTECTED],
Jonathan Gardner [EMAIL PROTECTED] wrote:
On Jun 27, 10:32 am, David C. Ullrich [EMAIL PROTECTED] wrote:
(ii) The regexes in languages like Python and Perl include
features that are not part of the formal CS notion of
regular expression. Do they include
In article
[EMAIL PROTECTED],
Dan [EMAIL PROTECTED] wrote:
On Jun 27, 1:32 pm, David C. Ullrich [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
Jonathan Gardner [EMAIL PROTECTED] wrote:
On Jun 26, 3:22 pm, MRAB [EMAIL PROTECTED] wrote:
Try something like
1 - 100 of 157 matches
Mail list logo