Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Alan Gauld
On 21/05/12 01:41, Steven D'Aprano wrote: That is insanity! There is only One True EDitor, ed! It is right there in the name, it's an EDitor! ed is the true unix editor: http://www.gnu.org/fun/jokes/ed.msg.html Having once had no alternative to ed and a 3500 line C program to write, I don't

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Alan Gauld
On 21/05/12 06:57, Modulok wrote: Learning to use a command line at first feels really clunky and primitive, but eventually it eclipses most GUI's and IDE's in terms of speed and the tools An old colleague of mine used to say: A GUI makes easy things trivial and hard things impossible :-)

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Steven D'Aprano
On Sun, May 20, 2012 at 11:57:14PM -0600, Modulok wrote: Learning to use a command line at first feels really clunky and primitive, but eventually it eclipses most GUI's and IDE's in terms of speed and the tools available. You can also ooze right into system administration without much

[Tutor] Is this possible and should it be done?

2012-05-21 Thread wolfrage8...@gmail.com
All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a file that is actually a folder that contains multiple files (Like an Archive format). The actual files are really un-important. What I want is for

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Joel Goldstick
On Mon, May 21, 2012 at 6:38 AM, wolfrage8...@gmail.com wolfrage8...@gmail.com wrote: All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a file that is actually a folder that contains multiple

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Steven D'Aprano
wolfrage8...@gmail.com wrote: All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a file that is actually a folder that contains multiple files (Like an Archive format). The actual files are really

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Joel Goldstick
On Mon, May 21, 2012 at 5:06 AM, Steven D'Aprano st...@pearwood.info wrote: On Sun, May 20, 2012 at 11:57:14PM -0600, Modulok wrote: Learning to use a command line at first feels really clunky and primitive, but eventually it eclipses most GUI's and IDE's in terms of speed and the tools

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Steven D'Aprano
Joel Goldstick wrote: I'm not sure if this is exactly what you are looking for, but python handles tar files (various compression formats) with this module: http://docs.python.org/library/tarfile.html. Technically, tar is not a compression format. It just combines multiple files into a

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Joel Goldstick
On Mon, May 21, 2012 at 7:38 AM, Steven D'Aprano st...@pearwood.info wrote: Joel Goldstick wrote: I'm not sure if this is exactly what you are looking for, but python handles tar files (various compression formats) with this module: http://docs.python.org/library/tarfile.html. Technically,

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Dave Angel
On 05/21/2012 06:38 AM, wolfrage8...@gmail.com wrote: All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a file that is actually a folder that contains multiple files (Like an Archive format). The

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread bob gailer
When I started learning Python I was pleased to discover Python For Windows. I probably would have given up if this tool were not available. Perhaps this is because I had spent many years working with other IDEs in other languages/applications. (VBA, FoxPro, Advanced Revelation to name

[Tutor] Fwd: Is this possible and should it be done?

2012-05-21 Thread wolfrage8...@gmail.com
-- Forwarded message -- From: wolfrage8...@gmail.com wolfrage8...@gmail.com Date: Mon, May 21, 2012 at 2:16 PM Subject: Re: [Tutor] Is this possible and should it be done? To: Steven D'Aprano st...@pearwood.info Thank you for the information. Sorry if I implied I wanted to

[Tutor] Is this possible and should it be done?

2012-05-21 Thread wolfrage8...@gmail.com
Forwarded because I did not reply to the list properly. Hopefully I did not forward wrong. -- Forwarded message -- From: wolfrage8...@gmail.com wolfrage8...@gmail.com Date: Mon, May 21, 2012 at 2:18 PM Subject: Re: [Tutor] Is this possible and should it be done? To: Joel Goldstick

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread wolfrage8...@gmail.com
On Mon, May 21, 2012 at 4:06 PM, William R. Wing (Bill Wing) w...@mac.com wrote: On May 21, 2012, at 6:38 AM, wolfrage8...@gmail.com wrote: All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a

[Tutor] Coding Challenges

2012-05-21 Thread Malcolm Newsome
Hey all, Being new to programming, I've found that my learning is accelerated when I've been asked to write scripts and deliver them in a specified time frame...Then, have those scripts critiqued. My question: Would the moderators of this list be interested in creating a monthly challenge of

Re: [Tutor] Coding Challenges

2012-05-21 Thread wolfrage8...@gmail.com
On Mon, May 21, 2012 at 4:47 PM, Malcolm Newsome malcolm.news...@gmail.com wrote: Hey all, Being new to programming, I've found that my learning is accelerated when I've been asked to write scripts and deliver them in a specified time frame...Then, have those scripts critiqued. My question:

Re: [Tutor] Coding Challenges

2012-05-21 Thread Martin A. Brown
Hello, : Being new to programming, I've found that my learning is : accelerated when I've been asked to write scripts and deliver : them in a specified time frame...Then, have those scripts : critiqued. : : My question: Would the moderators of this list be interested in : creating a

[Tutor] [OT] Re: While learning Py: To IDE or not to IDE?

2012-05-21 Thread Brian van den Broek
On 21 May 2012 03:39, Steven Dapos;Aprano st...@pearwood.info wrote: boB Stepp wrote: snip now on learning an IDE if it will save me time overall. IF it would be beneficial now to learn an IDE, then it begs the question No it doesn't. It RAISES the question -- begging the question means

[Tutor] Datetime Integers

2012-05-21 Thread Jeremy Traurig
Hello, Is there a module available for python to convert datetime into an array of integers. For example, I have date where the first column is a datetime string (i.e. '2010-10-10 01:10:00') and I would like to convert that into an array with 5 columns corresponding to the integer values of

Re: [Tutor] Coding Challenges

2012-05-21 Thread Chris Fuller
On Monday 21 May 2012, Martin A. Brown wrote: Hello, : Being new to programming, I've found that my learning is : accelerated when I've been asked to write scripts and deliver : them in a specified time frame...Then, have those scripts : critiqued. : : My question: Would the

Re: [Tutor] Datetime Integers

2012-05-21 Thread Vince Spicer
This should do what you want. import time timestring = '2010-10-10 01:10:00' time_format = '%Y-%m-%d %H:%M:%S' timestruct = time.strptime(timestring, time_format) print [x for x in timestruct] For complex date parsing I would recommend checking out the dateutil.parser

Re: [Tutor] Is this possible and should it be done?

2012-05-21 Thread Emile van Sebille
On 5/21/2012 3:38 AM wolfrage8...@gmail.com said... All, I have had a curious idea for awhile, and was wondering the best way to implement it in Python and if it is even possible. The concept is this, a file that is actually a folder that contains multiple files (Like an Archive format). The

Re: [Tutor] Datetime Integers

2012-05-21 Thread Joel Goldstick
On Mon, May 21, 2012 at 11:47 AM, Jeremy Traurig jeremy.trau...@gmail.com wrote: Hello, Is there a module available for python to convert datetime into an array of integers. For example, I have date where the first column is a datetime string (i.e. '2010-10-10 01:10:00') and I would like to

Re: [Tutor] Datetime Integers

2012-05-21 Thread Walter Prins
Hi Jeremy, On 21 May 2012 16:47, Jeremy Traurig jeremy.trau...@gmail.com wrote: Is there a module available for python to convert datetime into an I presume you mean, convert a datetime *string* into an array of integers? array of integers. For example, I have date where the first column is

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Brian van den Broek
On 21 May 2012 01:19, boB Stepp robertvst...@gmail.com wrote: On Sun, May 20, 2012 at 4:44 PM, Brian van den Broek brian.van.den.br...@gmail.com wrote: snip With you polyglot agenda, I would say you would be much better off to learn a powerful multipurpose editor well than to try to find

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread delegbede
In my humble opinion, I think what is important is to get familiar with python for now. The free version of Komodo is what I have been using and its been cool. When you're comfortable with the language and you want to start writing some apps and all of that, you would be matured and

Re: [Tutor] Fwd: Is this possible and should it be done?

2012-05-21 Thread Alan Gauld
On 21/05/12 15:23, wolfrage8...@gmail.com wrote: if any of these formats offer file locking with in them, ;et me say that better. Can I open a, as example, tar file and lock a file with in it, with out locking the entire tar archive? No and you probably shouldn't. If two users are accessing

Re: [Tutor] Coding Challenges

2012-05-21 Thread Bod Soutar
Pop onto http://ubuntuforums.org and find the programming talk sub-forum. One of the stickies there is an index of beginner programming challenges. It's a rolling process where the winner of the previous challenge posts a new one and then picks a winning entry who goes on to post the next

[Tutor] Datetime Integer Array

2012-05-21 Thread Jeremy Traurig
Hello, I am reading a data file with a string time stamp as the first column, example below: '03/10/2010 02:00:00' '03/10/2010 02:10:00' '03/10/2010 02:20:00' '03/10/2010 02:30:00' etc to n number of rows. I'm using the numpy function genfromtxt to read this data: import numpy as np

Re: [Tutor] Fwd: Is this possible and should it be done?

2012-05-21 Thread Jordan
On 05/21/2012 07:24 PM, Alan Gauld wrote: On 21/05/12 15:23, wolfrage8...@gmail.com wrote: if any of these formats offer file locking with in them, ;et me say that better. Can I open a, as example, tar file and lock a file with in it, with out locking the entire tar archive? No and you

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread Walter Prins
Hi, On 21 May 2012 15:17, bob gailer bgai...@gmail.com wrote: There are numerous IDES for Python that run on Linux systems (most are free). I'd like to add that if/when you do decide to pick up an IDE, I suggest you try Eclipse. For one it will allow you to use it for other languages also

Re: [Tutor] Datetime Integer Array

2012-05-21 Thread Emile van Sebille
On 5/21/2012 1:04 PM Jeremy Traurig said... Hello, I am reading a data file with a string time stamp as the first column, example below: '03/10/2010 02:00:00' '03/10/2010 02:10:00' '03/10/2010 02:20:00' '03/10/2010 02:30:00' etc to n number of rows. I'm using the numpy function genfromtxt to

[Tutor] Optimally configuring Emacs for W7-64bit and Python

2012-05-21 Thread boB Stepp
Many thanks for all of the helpful input to my original questions. The deciding factors came down to the fact that GNU Emacs, vintage year 2001, is available on the Sun Blade at work, I already own the book Learning GNU Emacs and it would be nice to have my fingers trained the same way for both