Danny Yoo said unto the world upon 2005-12-18 15:19:
>> > This is caused by the line: print adder(). Obviously
>> > if adder() doesn't receive any arguments, it can't
>> > build the lists resulting in an IndexError.
>>
>>Right.
>
>
> Hello!
>
> Just wanted to clarify the situation: argsList end
Hi Kent,
I apologise for the not overly helpful initial post.
I had six possible uris to deal with -
/thread/28742/
/thread/28742/?s=1291819247219837219837129
/thread/28742/5/
/thread/28742/5/?s=1291819247219837219837129
/thread/28742/?goto=lastpost
/thread/28742/?s=1291819247219837219837129&got
On 18/12/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Ed Singleton wrote:
> > Is it possible to access the next and previous items during an iteration?
>
> This just came up on c.l.python. Bengt Richter has a nice generator-based
> solution.
> http://groups.google.com/group/comp.lang.python/brows
Liam Clarke wrote:
> Hi Kent,
>
> I apologise for the not overly helpful initial post.
>
> I had six possible uris to deal with -
>
> /thread/28742/
> /thread/28742/?s=1291819247219837219837129
> /thread/28742/5/
> /thread/28742/5/?s=1291819247219837219837129
> /thread/28742/?goto=lastpost
> /th
I have one function that finds some values. Then I want that function to
find new values based on the values it found first. However, by just
looping, it starts on an eternal job.
As illustrated in:
>>> list = [1,2,3]
>>> list2 = list
>>> list2
[1, 2, 3]
>>> for i in list:
... print i
...
On 19/12/05, Øyvind <[EMAIL PROTECTED]> wrote:
> I have one function that finds some values. Then I want that function to
> find new values based on the values it found first. However, by just
> looping, it starts on an eternal job.
>
> As illustrated in:
> >>> list = [1,2,3]
> >>> list2 = list
> >
On 19/12/05, Ed Singleton <[EMAIL PROTECTED]> wrote:
> On 19/12/05, Øyvind <[EMAIL PROTECTED]> wrote:
> > I have one function that finds some values. Then I want that function to
> > find new values based on the values it found first. However, by just
> > looping, it starts on an eternal job.
> >
>
Bernard Lebel wrote:
> Hello,
>
> I have a few theoric questions regarding name tables. I wish to better
> understand a few things about this aspect of Python, in particular how
> module names and the import statements fit into the picture of name
> tables.
>
> - First of all, I understand each s
On Mon, 19 Dec 2005, Ed Singleton wrote:
> On 19/12/05, Ed Singleton <[EMAIL PROTECTED]> wrote:
> >
> > list2 = list.copy()
> >
> > Slices create a copy, so a shortcut is:
> >
> > list2 = list[:]
>
> Sorry, you need to:
>
> from copy import copy
>
> before you can use copy.
It should also be,
>>> mystring = 'laLA'
>>> mystring.upper()
'LALA'
>>> mystring.lower()
'lala'
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
How can I remove and add record ( dictionary type) to a file. This is the program that I'm working on: the program should create a text file, print the contents of the text file, read the file after it's been created, add a record and print the contents of the file, remove a record(s) from the
what does 2 mean in %2.4f ?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Kent wrote:
| Take a look at this thread on c.l.py for some discussion and
| possibilities. The part you
| are interested in starts around message 14.
|
http://groups.google.com/group/comp.lang.python/browse_frm/thread/ab1658dca4023e2b?hl=en&;
|
After looking at that I found something on python-d
13 matches
Mail list logo