Re: [Tutor] Syntax for Simplest Way to Execute One Python Program Over 1000's of Datasets

2011-06-10 Thread Válas Péter
A few hints to make it more efficient: 2011/6/10 B G compbiocancerresearc...@gmail.com 1) Create a script that gives me a list of all the filenames in the folder: I managed to do the following: path = ...\\Leukemia_Project Use / in path instead of \\, it will work in all environments, not

[Tutor] Lists

2011-06-10 Thread Vincent Balmori
I'm stuck on two problems from the Absolute Beginners book. The first is simple. I am trying to print all the words in the list in random order without repeats, but it always shows None for some reason. #Program prints list of words in random order with no repeats import random #List of

Re: [Tutor] Lists

2011-06-10 Thread Steven D'Aprano
Vincent Balmori wrote: I'm stuck on two problems from the Absolute Beginners book. The first is simple. I am trying to print all the words in the list in random order without repeats, but it always shows None for some reason. #Program prints list of words in random order with no repeats

Re: [Tutor] telnet connection question

2011-06-10 Thread Steven D'Aprano
Rayon wrote: HI All, Is there any way that I can use python telnetlib to connect to a telnet session. It would be a pretty rubbish telnet library if it didn't let you make telnet connections. I don't understand why you are asking this question, since you have successfully made

Re: [Tutor] Syntax for Simplest Way to Execute One Python Program Over 1000's of Datasets

2011-06-10 Thread Válas Péter
2011/6/10 B G compbiocancerresearc...@gmail.com path = ...\\Leukemia_Project i = 0 for (files) in os.walk(path): print(files) print(\n) i += 1 Continuing my thoughts: I ran your loop, and got several tuples, each representing a directory. All the tuples have the same

[Tutor] Excited about python

2011-06-10 Thread Kaustubh Pratap chand
Hello, I just joined this mailing list so that i can boost up my learning of python.I come from a C background so python looks a little strange to me but it is easier to learn then any other languages around.Yet,i have not been able to find any cool books on python for peoples who are already

Re: [Tutor] Excited about python

2011-06-10 Thread Flynn, Stephen (L P - IT)
Python manuals from http://www.python.org/doc/ From: tutor-bounces+steve.flynn=capita.co...@python.org [mailto:tutor-bounces+steve.flynn=capita.co...@python.org] On Behalf Of Kaustubh Pratap chand Sent: Friday, June 10, 2011 1:41 PM To: tutor@python.org

Re: [Tutor] Excited about python

2011-06-10 Thread jon vs. python
Dive into Python: http://diveintopython.org/ is what you're looking for. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Syntax for Simplest Way to Execute One Python Program Over 1000's of Datasets

2011-06-10 Thread James Reynolds
3) Open the .txt file in Excel, remove the few lines I don't need (ie single quotes, etc) Regarding Excel, you can write your output directly to an Excel file from python using the Python-Excel module. Just install all three packages. I use them all the time. Here is something that I wrote

Re: [Tutor] Excited about python

2011-06-10 Thread Ashwini Oruganti
You can also try Learning Pythonhttp://www.google.com/products/catalog?hl=enq=learning+pythonbiw=1280bih=923um=1ie=UTF-8tbm=shopcid=6497107289960623578sa=Xei=LyHyTYydAs_NrQffnZH6Bwved=0CEcQ8wIwAw On Fri, Jun 10, 2011 at 6:11 PM, Kaustubh Pratap chand warr...@programmer.net wrote: Hello, I

Re: [Tutor] Excited about python

2011-06-10 Thread Patty
- Original Message - From: Kaustubh Pratap chand To: tutor@python.org Sent: Friday, June 10, 2011 5:41 AM Subject: [Tutor] Excited about python Hello, I just joined this mailing list so that i can boost up my learning of python.I come from a C background so python

Re: [Tutor] Excited about python

2011-06-10 Thread Michiel Overtoom
On Jun 10, 2011, at 15:53, Ashwini Oruganti wrote: You can also try Learning Python I also came from a C/C++ background, but I found the standard tutorial sufficient. http://docs.python.org/tutorial/ Greetings, On Fri, Jun 10, 2011 at 6:11 PM, Kaustubh Pratap chand

Re: [Tutor] Excited about python

2011-06-10 Thread Kaustubh Pratap chand
Thanks I liked the tutorial very much. - Original Message - From: Patty Sent: 06/10/11 10:21 AM To: Kaustubh Pratap chand, tutor@python.org Subject: Re: [Tutor] Excited about python - Original Message - *From:* warr...@programmer.net *To:* tutor@python.org *Sent:* Friday,

Re: [Tutor] Parsing an XML document using ElementTree

2011-06-10 Thread Sithembewena Lloyd Dube
Hi Stefan, Thanks for the code review :) Only just noticed this. On Wed, May 25, 2011 at 3:10 PM, Stefan Behnel stefan...@behnel.de wrote: Sithembewena Lloyd Dube, 25.05.2011 14:40: Thanks for all your suggestions. I read up on gzip and urllib and also learned in the process that I could

Re: [Tutor] Excited about python

2011-06-10 Thread Nikunj Badjatya
a byte of python http://www.swaroopch.com/notes/Python from Swaroop CH. On Fri, Jun 10, 2011 at 8:08 PM, Kaustubh Pratap chand warr...@programmer.net wrote: Thanks I liked the tutorial very much. - Original Message - From: Patty Sent: 06/10/11 10:21 AM To: Kaustubh

Re: [Tutor] telnet connection question

2011-06-10 Thread Alan Gauld
Rayon evosw...@hotmail.com wrote Is there any way that I can use python telnetlib to connect to a telnet session. Send commands and get back data without closing the connection. Yes, thats what it's for. I need the response to be faster and the login process is taking up too much time.

Re: [Tutor] Excited about python

2011-06-10 Thread Chris Fuller
For a handy reference, you can't beat Python Essential Reference by David Beazley (along with the online documentation, of course!). I think this book is obligatory if you are going to be working with Python a lot. I own all four editions :) But you wanted something more in depth with

Re: [Tutor] Excited about python

2011-06-10 Thread python
For a handy reference, you can't beat Python Essential Reference by David Beazley (along with the online documentation, of course!). I think this book is obligatory if you are going to be working with Python a lot. I own all four editions :) But you wanted something more in depth with

Re: [Tutor] Syntax for Simplest Way to Execute One Python Program Over 1000's of Datasets

2011-06-10 Thread Válas Péter
2011. június 10. 15:51 James Reynolds írta, eire1...@gmail.com: Regarding Excel, you can write your output directly to an Excel file from python using the Python-Excel module. Just install all three packages. I use them all the time. Do they work with Py3K?

Re: [Tutor] Lists

2011-06-10 Thread Piotr Kamiński
Dnia 10-06-2011 o 12:25:34 Steven D'Aprano st...@pearwood.info napisał(a): Vincent Balmori wrote: I'm stuck on two problems from the Absolute Beginners book. The first is simple. I am trying to print all the words in the list in random order without repeats, but it always shows None for

Re: [Tutor] Syntax for Simplest Way to Execute One Python Program Over 1000's of Datasets

2011-06-10 Thread James Reynolds
Honestly no idea. At work I use 2.6 / 2.7. At home it's 3.2 / 2.7. I've never actually tried doing this at home, so I don't know. They have a mail list though, I would post there to find out. 2011/6/10 Válas Péter suli...@postafiok.hu 2011. június 10. 15:51 James Reynolds írta,

Re: [Tutor] Lists

2011-06-10 Thread Corey Richardson
On 06/10/2011 03:12 PM, Piotr Kamiński wrote: Could you please refrain from presenting your *religious* convictions in this list: the notions you believe in as well as the ones that you believe are false? This is a *technical* list, as I understand it, solely dedicated to the technical side

Re: [Tutor] if statement

2011-06-10 Thread Jeremy G Clark
Sorry, jumping in on this thread a couple days late... Steven's suggestion is how I figured out a similar problem recently. If you're executing the code through a windows command line, you might be getting the carriage-return character returned to the program (this behavior doesn't happen in

[Tutor] Great List!!!mtu...@python.org

2011-06-10 Thread Larry Flynton
I just joined the list a little bit ago, and I must say while learning python it has proved to be a resource second to none. I myself am not from a traditional computer science background, more or less financial/economics, discrete mathematics.  I have had courses on MySQL, Visual Basic,

[Tutor] Printing RAW string

2011-06-10 Thread Kaustubh Pratap chand
How i can print the string in raw...as it is s=hello world\n print s Output: helloworld But i want it to be hello world\n I know it can be done by adding a 'r' prefix but is there any other way because the string will be taken in during input! Any help appreciated :D

Re: [Tutor] Great List!!!mtu...@python.org

2011-06-10 Thread Kaustubh Pratap chand
Great place this is.i am also new and i have started to love this place as it can help me in learning python fast - Original Message - From: Larry Flynton Sent: 06/10/11 04:44 PM To: tutor@python.org Subject: [Tutor] Great List!!!mtu...@python.org I just joined the list a little bit

Re: [Tutor] Printing RAW string

2011-06-10 Thread Jeremy G Clark
print(repr(s)) _ How i can print the string in raw...as it is s=hello world\n print s Output: helloworld But i want it to be hello world\n I know it can be done by adding a 'r' prefix but is there any other way because the string will be taken in during

Re: [Tutor] Lists

2011-06-10 Thread Piotr Kamiński
Dnia 10-06-2011 o 22:00:46 Corey Richardson kb1...@aim.com napisał(a): On 06/10/2011 03:12 PM, Piotr Kamiński wrote: Could you please refrain from presenting your *religious* convictions in this list: the notions you believe in as well as the ones that you believe are false? This is a

Re: [Tutor] Lists

2011-06-10 Thread Steven D'Aprano
Piotr Kamiński wrote: Could you please refrain from presenting your *religious* convictions in this list: the notions you believe in as well as the ones that you believe are false? This is a *technical* list, as I understand it, solely dedicated to the technical side of teaching the *Python*

Re: [Tutor] Lists

2011-06-10 Thread eizetov
Vincent, you should also try to avoid naming your lists a 'list'. There's a couple dozen words in Python that are reserved 'for system use': import keyword print(keyword.kwlist) ['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else',