Re: Organizing Code - Packages

2007-09-09 Thread GuillaumeC
On Sep 9, 1:04 am, xkenneth <[EMAIL PROTECTED]> wrote: > On Sep 8, 3:35 pm, David <[EMAIL PROTECTED]> wrote: > > > > How do import statements that are declared at the top of a python > > > module work? > > >http://docs.python.org/tut/node8.html > On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote:

Re: UnboundLocalError on global variable

2007-09-09 Thread GuillaumeC
> def processLogEntry(entry): # ADD THIS TO YOUR CODE global cmterID_ > >revision = int(entry.getRevision()) >commiter = str(entry.getAuthor()) >datetime = getTimeStamp(entry.getDate()) >message = str(entry.getMessage()) > >Commiter_[0] = cmterID_ //HERE's THE PROBLEM The r

Re: UnboundLocalError on global variable

2007-09-09 Thread GuillaumeC
> def processLogEntry(entry): # ADD THIS TO YOUR CODE global cmterID_ > >revision = int(entry.getRevision()) >commiter = str(entry.getAuthor()) >datetime = getTimeStamp(entry.getDate()) >message = str(entry.getMessage()) > >Commiter_[0] = cmterID_ //HERE's THE PROBLEM The r

Re: how to fill many data strings from socket.recvfrom()

2007-11-03 Thread GuillaumeC
> data[i] is illegal. > Any suggestion welcome! Either initialize data before: data=[0]*200 before "while" or (better): ... i=0 data=[] for i in range(200): d,addr= s.recvfrom(1024) data.append(d) -- http://mail.python.org/mailman/listinfo/python-list

Re: class='something' as kwarg

2007-11-17 Thread GuillaumeC
> But how can I use `class` as kwarg name? soup.findAll('div', **{'class':'g'}) -- http://mail.python.org/mailman/listinfo/python-list