Re: decouple copy of a list

2010-12-10 Thread Dirk Nachbar
On Dec 10, 1:56 pm, Wolfgang Rohdewald wrote: > On Freitag 10 Dezember 2010, Dirk Nachbar wrote: > > > I want to take a copy of a list a > > > b=a > > > and then do things with b which don't affect a. > > > How can I do this? > > > Dirk &

decouple copy of a list

2010-12-10 Thread Dirk Nachbar
I want to take a copy of a list a b=a and then do things with b which don't affect a. How can I do this? Dirk -- http://mail.python.org/mailman/listinfo/python-list

Re: using google app through python

2010-11-01 Thread Dirk Nachbar
Why don't you start here http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_python.html On 1 Nov, 09:05, charu gangal wrote: > Hey! Can anyone help me with python script for reading google > spreadsheets? what all packages do i need to import to make the code > run successfully a

Re: playful coding problems for 10 year olds

2010-11-01 Thread Dirk Nachbar
This is in JS but have a look here http://github.com/ryanmcgrath/splash On 1 Nov, 20:31, Daniel Fetchinson wrote: > Hi folks, > > My niece is interested in programming and python looks like a good > choice (she already wrote a couple of lines :)) She is 10 and I > thought it would be good to have

direct print to log file

2010-10-05 Thread Dirk Nachbar
How can I direct all print to a log file, eg some functions have their own print and I cannot put a f.write() in front of it. Dirk -- http://mail.python.org/mailman/listinfo/python-list

Numpy on 2.7

2010-09-20 Thread Dirk Nachbar
I am trying to install Numpy on Python 2.7 but it only looks for 2.6 folder, how can I change that? Dirk -- http://mail.python.org/mailman/listinfo/python-list

freq function

2010-08-22 Thread Dirk Nachbar
Here is a function which takes any list and creates a freq table, which can be printed unsorted, sorted by cases or items. It's supposed to mirror the proc freq in SAS. Dirk def freq(seq,order='unsorted',prin=True): #order can be unsorted, cases, items freq={} for s in seq: i

Re: Urrlib2 IncompleteRead error

2010-07-27 Thread Dirk Nachbar
Thanks, I don't think it's redirecting, how can I increase the timeout? On 27 July 2010 16:56, Nitin Pawar wrote: > Hi, > > Check if the webpage you are trying to access is redirecting the page to > some other page? > or the timeout is too less for the request to finish > > > Thanks, > Nitin > >

Re: Email in 2.6.4

2010-05-24 Thread Dirk Nachbar
Sorry guys, I had named my file email.py and hence the error. On 24 May 2010 15:22, Jean-Michel Pichavant wrote: > dirknbr wrote: > >> I have now easy_installled email and I still get errors. >> >> >> It doesn't error on 'import email' but does on call to MimeText. >> >> import email >> msg =