Re: [Tutor] Python 2 Vs python 3

2014-07-16 Thread Cameron Simpson
On 13Jul2014 20:33, Alan Gauld alan.ga...@btinternet.com wrote: I've been using python 3 almost exclusively for the last 4 months and the differences are much more significant than the headlines suggest. In particular the module structure and naming is very different - enough to confuse a

[Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-16 Thread jarod...@libero.it
Hi there!!! I have a file with this data ['uc002uvo.3 ', 'uc001mae.1'] ['uc010dya.2 ', 'uc001kko.2'] ['uc003ejx.2 ', 'uc010yfr.1'] ['uc001bhk.2 ', 'uc003eib.2'] ['uc001znc.2 ', 'uc001efn.2'] ['uc002ycq.2 ', 'uc001vnh.2'] ['uc001odf.1 ', 'uc002mwd.2'] ['uc010jkn.1 ', 'uc010luk.1'] ['uc003uhf.3 ',

Re: [Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-16 Thread Danny Yoo
Hi Jarod, Ah. Note the extra space on the first column elements. For example, one of your inputs that you've split on tabs: ['uc011lyh.1 ', 'uc003jvb.2'] If you look really closely, you'll see the whitespace at the end of uc011lyh.1. That's why the regex isn't matching. Good luck!

Re: [Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-16 Thread Danny Yoo
By the way, those look like gene locus names. Reminds me of the ones I saw when I worked at arabidopsis.org. e.g.: http://www.arabidopsis.org/servlets/TairObject?id=1000638674type=gene ___ Tutor maillist - Tutor@python.org To unsubscribe or

[Tutor] Question about style

2014-07-16 Thread Jose Amoreira
Hello I wrote a function that, given a list of numbers, finds clusters of values by proximity and returns a reduced list containing the centers of these clusters. However, I find it rather unclear. I would appreciate any comments on how pythonic my function is and suggestions to improve its

Re: [Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-16 Thread Joel Goldstick
2014-07-16 4:04 GMT-04:00 jarod...@libero.it jarod...@libero.it: Hi there!!! I have a file with this data ['uc002uvo.3 ', 'uc001mae.1'] ['uc010dya.2 ', 'uc001kko.2'] I want to replace of the things after the dots, so I want to have a file with this output: ['uc002uvo ', 'uc001mae']

Re: [Tutor] R: Tutor Digest, Vol 125, Issue 49

2014-07-16 Thread Wolfgang Maier
On 16.07.2014 10:04, jarod...@libero.it wrote: Hi there!!! I have a file with this data ['uc002uvo.3 ', 'uc001mae.1'] ['uc010dya.2 ', 'uc001kko.2'] ['uc003ejx.2 ', 'uc010yfr.1'] ['uc001bhk.2 ', 'uc003eib.2'] ['uc001znc.2 ', 'uc001efn.2'] ['uc002ycq.2 ', 'uc001vnh.2'] ['uc001odf.1 ',

Re: [Tutor] Question about style

2014-07-16 Thread Jose Amoreira
Hi! On 07/16/2014 10:14 PM, Wolfgang Maier wrote: careful here: you just stored a tuple instead of a list; doesn't matter for your current implementation, but may bite you at some point. Oh, you're right. Silly mistake, even if harmless for the application I have in mind. else:

Re: [Tutor] Question about style

2014-07-16 Thread Alan Gauld
On 16/07/14 12:49, Jose Amoreira wrote: Hello I wrote a function that, given a list of numbers, finds clusters of values by proximity and returns a reduced list containing the centers of these clusters. However, I find it rather unclear. I would appreciate any comments on how pythonic my

Re: [Tutor] Question about style

2014-07-16 Thread Wolfgang Maier
On 16.07.2014 13:49, Jose Amoreira wrote: Hello I wrote a function that, given a list of numbers, finds clusters of values by proximity and returns a reduced list containing the centers of these clusters. However, I find it rather unclear. I would appreciate any comments on how pythonic my

[Tutor] Python open source for beginners

2014-07-16 Thread Mitesh H. Budhabhatti
I am learning Python 3 for fun and as hobby. I am experienced in C#, ASP.Net. I want to gain more knowledge in Python. Can somebody please suggest open source projects/sites? Thanks Warm Regards, Mitesh H. Budhabhatti ___ Tutor maillist -

Re: [Tutor] Python open source for beginners

2014-07-16 Thread wesley chun
I am learning Python 3 for fun and as hobby. I am experienced in C#, ASP.Net. I want to gain more knowledge in Python. Can somebody please suggest open source projects/sites? Greetings Mitesh, and welcome to Python! Others will have more advice to give on specific projects, but I would