Op 4/03/2022 om 1:43 schreef Chris Angelico:
Think of it like this:
for item in search_list:
if condition: pass
else:
print("Condition not true for this item")
for item in search_list:
if condition: break
else:
print("Condition not true for any item")
There's a par
Op 11/03/2022 om 3:50 schreef Chris Angelico:
On Fri, 11 Mar 2022 at 09:51, Cousin Stanley wrote:
> The following will display a list of lxqt packages
> that are in the repository and available to install
>
> apt-cache search lxqt | grep ^lxqt
>
Much faster:
apt-cache pkgnames lxqt
Op 10/03/2022 om 13:16 schreef Loris Bennett:
Hi,
I have a command which produces output like the
following:
Job ID: 9431211
Cluster: curta
User/Group: build/staff
State: COMPLETED (exit code 0)
Nodes: 1
Cores per node: 8
CPU Utilized: 01:30:53
CPU Efficiency: 83.63% of
Op 11/03/2022 om 10:11 schreef Roel Schroeven:
Op 10/03/2022 om 13:16 schreef Loris Bennett:
Hi,
I have a command which produces output like the
following:
Job ID: 9431211
Cluster: curta
User/Group: build/staff
State: COMPLETED (exit code 0)
Nodes: 1
Cores per node: 8
CPU
Lawrence D’Oliveiro schreef op 2016-08-10 03:45:
... so WACAH very much applies here.
Pardon my ignorance, but what is the WACAH Principle?
--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov
Roel Schroeven
than society gathers wisdom.
-- Isaac Asimov
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
eceive it using
simple NMEA 0183 serial sentences: see
https://en.wikipedia.org/w/index.php?title=NMEA_0183&oldid=828034316#Message_structure
--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov
Roel Schroeven
--
htt
e that this has been done:
https://bugs.python.org/issue34006
Fixed now!
To Terry Reedy and all others involved: thanks for quickly fixing this.
Best regards,
Roel
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
here, but I'm trying to let you all figure something
out for yourselves. I'm tired, and need a very long break.
> --
--Guido van Rossum (python.org/~guido)
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
one area where I feel Python 3 make
things a bit more difficult.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
did a bit more research than I had
apparently done the first time around, and discovered the right way to
create an email message from raw bytes.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. J
Chris Angelico schreef op 16/07/2018 23:57:
On Tue, Jul 17, 2018 at 7:50 AM, Roel Schroeven wrote:
Steven D'Aprano schreef op 16/07/2018 2:18:
On Sun, 15 Jul 2018 16:08:15 -0700, Jim Lee wrote:
Python3 is intrinsically tied to Unicode for string handling. Therefore,
the Python programm
Chris Angelico schreef op 17/07/2018 0:48:
On Tue, Jul 17, 2018 at 8:41 AM, Roel Schroeven wrote:
In any case, even though Python 3's byte strings are not quite unlike Python
2's strings, they're not exactly like them either. And I feel there are
cases where that makes things
m is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
Jon Ribbens schreef op 2/10/2018 om 1:20:
On 2018-10-01, Roel Schroeven wrote:
I'm not very active here, but I've been lurking for years. In my eyes
Steven has always been active and helpful. Now he has *once* been a
*tiny bit* rude, and he's banned for that?
It's not
ilobj defaults to None)."
Watch out for headers with duplicate keys (like multiple Received:
headers): use get_all() for those
(https://docs.python.org/3/library/email.message.html#email.message.EmailMessage.get_all).
--
"Honest criticism is hard to take, particularly from a relative,
aking all their legacy code.
"2016-03-31 23:40"
You're 20 minutes early :)
--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
Ethan Furman schreef op 2016-04-01 02:09:
On 03/31/2016 05:02 PM, Roel Schroeven wrote:
Victor Stinner schreef op 2016-03-31 23:40:
Python 3 becomes more and more popular and is close to a dangerous point
where it can become popular that Python 2. The PSF decided that it's
time to elab
om a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
Rhodri James schreef op 28/02/2019 om 13:09:
On 27/02/2019 21:39, Roel Schroeven wrote:
Rhodri James schreef op 27/02/2019 om 15:18:
Aren't we overthinking this?
I think it's pretty clear that a variable is never deleted before it
goes out of scope. A quick search in the documentat
ot;PRIVMSG " + " "+ channel + " " + mess + "\n",
"UTF-8"))
The recursive solution you used works at first but stops working with
RecursionError when the maximum recursion depth is exceeded.
--
"Honest criticism is hard to take, particularly
t. At least not for any production website or web service that
serves any real amount of traffic.
That is, for those who didn't know, the reason why CGI fell out of use
quite some time ago.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquainta
..
except envmod.PythonVersionError:
# Handle the exception
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
uot;Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
(*matrices):
print(len(matrices))
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
e like you. Don't correct them on things like this unless
you can cite chapter and verse.
You're doing yourselves a massive disservice by acting this way.
Best regards,
Roel
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a strange
re the file is properly
closed even in the case of exceptions:
def count_lines(filename):
with open(filename, 'r') as f:
return sum(1 for line in f)
HTH
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
an turn it off, in which cases
single quotes are for string literals and double quotes are for
identifiers (such as column names), as in standard SQL.
See
https://sqlite.org/quirks.html#double_quoted_string_literals_are_accepted
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a
about stuff that happens when comparing using identity. I would
like to know where that comes from ... are there tutorials that
encourage using identity checks?
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Fra
in about a function that converts an explicitly specified
directory into a file :-)
Again, a pathname is never inherently a directory or a file.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
e 3.2 IIRC).
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
use a trailing
/ on the source directory. It's confusing indeed.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
BlindAnagram schreef op 27/05/2020 om 22:55:
On 27/05/2020 18:42, Roel Schroeven wrote:
BlindAnagram schreef op 27/05/2020 om 18:53:
Its not my bug to fix - the semantics of what I send is very clear on
any Windows system.
That's the first time I see any mention of those semantics, and
iticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
BlindAnagram schreef op 28/05/2020 om 11:00:
On 27/05/2020 23:39, Roel Schroeven wrote:
I find no hints of adding a backslash at the end to indicate directories.
If you can point me to convincing evidence in the documentation I'll
change my mind.
And if you find a counterexample, I
criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
except KeyError:
return fnc(*args, **kwargs)
some_var = dict_get_lazily(d, 'spam', some_function, 31, 11)
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
--
https://mail.python.org/mailman/listinfo/python-list
#x27;
http://www.freesoft.org/CIE/
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
codecs.
Nitpick: ogg is not an audio codec, but the container format of
xiph.org. The lossy audio codec used in the project is called vorbis.
Besides vorbis and flac there's also speex, designed for speech data.
--
If I have been able to see further, it was only because I stood
on the shou
oing to take the obvious route. We'll do it
our own way, thank you very much :)
I'm not taking it so far to start using Perl though.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Larry Bates schreef:
> I've used jhead and wrapped it with os.system call.
>
> http://www.sentex.net/~mwandel/jhead/
Looks like it can do what I was looking for. Thanks a lot!
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaa
arnings.html
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Peter Decker wrote:
> On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote:
>
>
>>Indeed, and that's by design: http://www.unicom.com/pw/reply-to-harmful.html
>
>
> Of course, that's only one side of the argument:
>
> http://www.blackgate.net/c
Peter Decker wrote:
> On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote:
>
>
>>The default of this list is not to make conversations private; in fact
>>the list doesn't have any default. It's you who chooses to send replies
>>to the original auth
Mike Meyer wrote:
> Roel Schroeven <[EMAIL PROTECTED]> writes:
>
>>Peter Decker wrote:
>>
>>>Setting the default Reply-To: to the list means that 'Reply' sends
>>>just to the list (the desired behavior most of the time), and 'Reply
&
antage. On the contrary; one can easily learn something from
them.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
> Roel Schroeven <[EMAIL PROTECTED]> writes:
>
>>Is that really the desired behaviour? IMO the least you can do if you're
>>searching for help is subscribing to the mailing list on which you're
>>looking for help. Me and many others
honking great idea -- let's do more
of those!"
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
is not the default, in a
way that works on all platforms. But I don't see how that should work.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
27;Python vs. Alligator' on Slashdot, I thought it
was about some comparison between Python and an unknown-to-me
programming language Alligator.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
e possibility to track who opens their mails.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
ou make the point yourself now: if web based applications work with any
browser, people can freely choose their distribution based on their own
preferences.
- An application works in IE, Firefox, Konqueror, Safari, Lynx, Links,
Opera, ... -> users can use it with any browser on any OS
- An application only works in IE -> users are forced to use Windows (or
one of the other few OS's that IE exists on)
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
John Bokma wrote:
> Roel Schroeven <[EMAIL PROTECTED]> wrote:
>
>
>>John Bokma wrote:
>
>
>>>web based applications that work with any browser make OS irrelevant
>>>-> not true, since for OpenOffice it doesn't matter which Linux
>>
John Bokma wrote:
> Roel Schroeven <[EMAIL PROTECTED]> wrote:
>>But that's not the point; the point is that they have the choice.
>>If MS had it its way, they wouldn't have that choice.
>
>
> I doubt that. But even if you're right, do you really
John Bokma wrote:
> Roel Schroeven <[EMAIL PROTECTED]> wrote:
>
>
>>John Bokma wrote:
>>
>>>Roel Schroeven <[EMAIL PROTECTED]> wrote:
>>>
>>>>But that's not the point; the point is that they have the choice.
>>>>If
files that
contain some information about the file or directory they point to and
how to open it.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
For the other questions it asks you can just
use the default IIRC.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
an be any
permission) from a file. So he doesn't have the numerical value to begin
with.
BTW, I guess it's safer to do int(permission, 8) than int(permission,
0), since the first digit isn't guaranteed to be zero: it is used for
set user ID, set group ID and the sticky bit.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
nything, more or less analogue to functions returning void in C/C++.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
bviously.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
ou why it freightened me at first: it made me think of the
rigid formatting of Fortran 77 and to a lesser extent BASIC. But when I
started working my way trough the tutorial, that fear very rapidly vanished.
--
If I have been able to see further, it was only because I stood
on the shoulders of gia
have different terms. That's why there are
different licenses.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
Roel Schroeven <[EMAIL PROTECTED]> wrote:
Can you point to closed-source licenses that allow using the code *at
all*?
As I recall, for example, Microsoft Visual C++ came with sources for
various libraries; all that the (closed-source) license for those
libraries forba
Tim Daneliuk wrote:
Is there some pure Python/portable way to get a list
of all currently mounted filesystems?
Check out MtPython: http://bebop.bigasterisk.com/python/docs/MtPython
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
main"
is printed the first time, so I think the system needs all that time to
create all the threads. It would be normal for memory use to keep
increasing untill all threads are created, but I'm fairly certain memory
use is still increasing now.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Peter Hansen wrote:
Roel Schroeven wrote:
Peter Hansen wrote:
How have
you proven that it is not *that* program which is at fault?)
It would surprise me: even if it consumes much CPU-time, memory and
other resources, each instances returns all resources when it exits.
I agree with that
but no formal definition (maybe it's a European phrase so
searching for it in English is futile).
I'm from Belgium, and I've never heard it before either. Probably a
public secret, very carefully being kept hidden from us Belgians ;)
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
ed where an expression is expected.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
Op 2005-01-14, Roel Schroeven schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
IMO we have a: dogs are mamals kind of relationship in Python.
I see what you mean, but I don't think it's true.
Every expression can be used where a statement is expected.
(And th
n, or removes the # again. But not all
editors have such a feature, and even if they have it I still need to
select the block of code every time. Not that big a deal though.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
guess = (raw_input("Your guess is "))
The above line is incorrect: it should be
guess = int(raw_input("Your guess is "))
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
some kind of checksum perhaps?
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
d in the documentation for wxChoice itself;
it is described in the section for wxControlWithItems, which is
wxChoice's base class.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
erience is that I can find the needed
information much easier in man pages.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
What I've always done with MSDN: copy the whole thing from CD to HD, and
do a minimal install from there. Then the help application can find
everything without asking for the CDs.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
h).
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
; and
> everything just magically works ;)
Innosetup (http://www.jrsoftware.org/isinfo.php) is quite good, and it's
free (free as in beer, not free as in speech).
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Christophe schreef:
> Steve Holden a écrit :
>
>> Christophe wrote:
>>
>>> Serhiy Storchaka a écrit :
>>>
>>>> Roel Schroeven wrote:
>>
>>
>> [...]
>>
>>>>> or
>>>>>
>>>>> def dr
us in the computer world
who agree that 'kilo == 1024' is an abomination that should never have
existed and which we should get rid of as fast as possible.
As fast as possible is not very fast, unfortunately.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
Peter Hansen wrote:
Roel Schroeven wrote:
Peter Hansen wrote:
Scott David Daniels wrote:
Kind of fun exercise (no good for British English).
def units(value, units='bytes'):
magnitude = abs(value)
if magnitude >= 1000:
for prefix in ['kilo m
in mind that the comparisons are done case sensitive; are you sure
that there's no problem regarding uppercase/lowercase?
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
/25
>
> ...and so on?
http://pynms.sourceforge.net/ipv4.html
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
op you are giving n exactly the values you intended it to have
inside the lambda. Check what happens when you use a different loop
variable:
>>> for i in range(5): print adds[i](0)
9
9
9
9
9
I guess you could something like this instead:
>>> adds=[]
>>> for n in
ed is what's happening...
Your intent is to create lambda's that are equivalent to
adds[0] = lambda y: y + 0
adds[1] = lambda y: y + 1
etc.
but what actually happens is that you get lambda's that are equivalent to
adds[0] = lambda y: y + n
adds[1] = lambda y: y + n
etc.
which obv
, b)
Of course, you could just as well simply write
a+b
instead.
Most often the lambda is not used directly, but passed to a function. A
trivial example:
def f(fn, a, b):
return fn(a, b)
f(lambda x, y: x+y, 3, 42)
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
x27;2', '3', '4']
>>> fields[1], fields[2] = fields[2], fields[1]
>>> fields
['1', '3', '2', '4']
>>> newvar = ','.join(fields)
>>> newvar
'1,3,2,4'
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
algebra, but I haven't tried
> solving it.
It's because solutions involving non-integer numbers are invalid in this
context. And there are 12 unknowns but only 10 equations.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
M.N.A.Smadi wrote:
> hi;
>
> say i have the following variable
>
> data="""XYZ dflsjdfkl sdfsdhfl
> jdsflkdsjf
> sldjfsldjf
> """
>
> i need to make sure that the first part is actually XYZ, is there an
> easy way of doing that
hidethis already exists.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
7;: 2, 'b': 3}
>>> efg(*l)
(1, 2)
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
or example:
>>> add4 = addn(4)
>>> add10 = addn(10)
>>> add4(5)
9
>>> add10(7)
17
>>> add4(add10(28))
42
And so on. At least, I think that's what you mean.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
g over the whole
length of the list, which means after some time you're accessing
elements that no longer exist.
One way to solve it is to loop backwards: first delete the last element,
than the next to last, etc.
Apart from that, it's much easier and clearer to reset the list
mutable keys.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
e Quote Colors in Mozilla which is very nice
for reading mails or news posts with quotes, but it's very confusing
with Python's prompt.
Prepending every line with . is not an ideal solution though... I think
it gets tiresome very quickly.
--
"Codito ergo sum"
Roel Schroeven
--
http://mail.python.org/mailman/listinfo/python-list
7;s an old version). One odd thing
though: the Windows version doesn't react to clicking or dragging the
mouse, which seems to be the expected behavior. The GTK version can be
moved by dragging the mouse; even just clicking the mouse moves the
window somewhat down and to the left.
--
"C
101 - 200 of 456 matches
Mail list logo