Re: [Tutor] Cantor pairing in three dimensions?

2013-12-25 Thread Brian van den Broek
On 24 December 2013 16:21, Brian van den Broek wrote: > On 23 December 2013 13:32, Danny Yoo wrote: >> >> I've got a puzzle: so there's a well-known function that maps the >> naturals N to N^2: it's called Cantor pairing: >> >> http://en.wikipedia.org/wiki/Pairing_function > Hi Danny, > >

Re: [Tutor] can't install

2013-12-25 Thread Lolo Lolo
>> On Wed, Dec 25, 2013 at 2:16 AM, Tobias M. wrote: >> Is this the error you get when executing distribute_setup.py? >> urllib.error.URLError: Thank you so much Tobias. And yes, that was the exact error message  >> On Tue, Dec 24, 2013 at 11:36 PM, Steven D'Aprano >>wrote: >> But the good n

Re: [Tutor] arrangement of datafile

2013-12-25 Thread Dave Angel
On Wed, 25 Dec 2013 16:17:27 +0800, Amrita Kumari wrote: I tried these and here is the code: f=open('filename') lines=f.readlines() new=lines.split() That line will throw an exception. number=int(new[0]) mylist=[i.split('=')[0] for i in new] one thing I don't understand is why you a

[Tutor] Help with pysvn

2013-12-25 Thread 巴郎
Hi, I am getting the error "pysvn._pysvn_2_7.ClientError: Can't convert string from 'UTF-8' to native encoding:" this is china . I would appreciate any help. Following is the code and error message. client = pysvn.Client() client.callback_get_login = get_login #print client.

[Tutor] arrangement of datafile

2013-12-25 Thread Amrita Kumari
Hi, On 17th Dec. I posted one question, how to arrange datafile in a particular fashion so that I can have only residue no. and chemical shift value of the atom as: 1 H=nil 2 H=8.8500 3 H=8.7530 4 H=7.9100 5 H=7.4450 Peter has replied to this mail but since I haven't subscribe to the