Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Sacha Rook
Hi as much as I like chrome books My opinion so I would rather give him a laptop either with Linux or windows with free virtualisation software on to run either so and program on both especially if he will be offline. Alternative if you have wifi/network constant connection then just a browse

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Dave Angel
Steven D'Aprano Wrote in message: > > > > > But still complex. And you're limited by the (lack of) stability of > Windows. > > If you don't *need* Windows, there is no point in running Linux on top > of Windows in a virtual machine. It just means you're using twice as > much memory, and you

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Danny Yoo
On Wed, Feb 5, 2014 at 10:34 AM, Colin Chinsammy < colin.chinsa...@erickson.com> wrote: > I am considering purchasing the Acer c720 chromebook for my 13yo to > begin learning Python for Kids. Obviously I am on a budget. > > Is this a good choice for a complete beginner? Any particular challenges

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Danny Yoo
... reading through the rest of this thread... I'm surprised no one has mentioned: http://www.codecademy.com/tracks/python Depending on your child's level, you might even look at Scratch: http://scratch.mit.edu/ which is not Python at all, but it is programming, and it is very much focu

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Danny Yoo
Hi everyone, > * I would vote against a Chrome OS based device for a number of practical > reasons when considering a computer for learning how to do anything, but > especially coding. I'm not quite sure what to make of the above statement: it seems a bit broad. Anyway, there seems to be an

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Kodiak Firesmith
In response to the OP with considerations for budget and the target learner: * At this stage in operating systems and python setups, I posit that the easiest and most meritorious path is to use a "beginner's Linux" that is easy to install and focuses on a good desktop experience. The best offering

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Steven D'Aprano
On Wed, Feb 05, 2014 at 06:34:49PM +, Colin Chinsammy wrote: > I am considering purchasing the Acer c720 chromebook for my 13yo to > begin learning Python for Kids. Obviously I am on a budget. Is this a > good choice for a complete beginner? Any particular challenges that > she might encoun

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Devin Jeanpierre
On Wed, Feb 5, 2014 at 4:35 PM, David Abbott wrote: > Linux runs great on older Laptops that were the top of the line in > their day, two nice examples with great keyboards are dell e6400 and > ibm T61's. Linux is easy to install and set up now a days :) FWIW linux does, but firefox and chrome do

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Steven D'Aprano
On Wed, Feb 05, 2014 at 07:51:51PM -0600, Tim Krupinski wrote: > I would agree with David and others. For programming, a chromebook would > not be a good choice because you can't install any type of development > environment onto the machine itself. Get something with a big screen and, > preferab

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Tim Krupinski
I would agree with David and others. For programming, a chromebook would not be a good choice because you can't install any type of development environment onto the machine itself. Get something with a big screen and, preferably a full keyboard - I'm talking full size in the sense that you have t

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread David Abbott
On Wed, Feb 5, 2014 at 7:23 PM, Marc Tompkins wrote: > On Wed, Feb 5, 2014 at 3:18 PM, Joel Goldstick > wrote: >> >> I would get a laptop with as large a screen as you can afford. Windows or >> Linux. >> > I second that emotion, and also: try out the keyboard first (or rather, have > your kid try

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Marc Tompkins
On Wed, Feb 5, 2014 at 3:18 PM, Joel Goldstick wrote: > I would get a laptop with as large a screen as you can afford. Windows or > Linux. > > I second that emotion, and also: try out the keyboard first (or rather, have your kid try it out). We spend a lot of time on our laptops, and a badly-desi

Re: [Tutor] Python packaging Was:Re: sys.path.append import python3 not working

2014-02-05 Thread Alan Gauld
On 05/02/14 19:36, Oscar Benjamin wrote: all a bit of a mess and I hope the promised improvements from Python 3.4 onwards will make it a lot less messy! The only improvement Python 3.4 brings is that pip and setuptools will usually be bundled with Python Yes, I wasn't expecting 3.4 to delive

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Joel Goldstick
On Feb 5, 2014 6:14 PM, "Alan Gauld" wrote: > > On 05/02/14 18:34, Colin Chinsammy wrote: >> >> I am considering purchasing the Acer c720 chromebook for my 13yo to >> begin learning Python for Kids. Obviously I am on a budget. > > > I wouldn't consider a Chromebpook for anyone learning programming

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Alan Gauld
On 05/02/14 18:34, Colin Chinsammy wrote: I am considering purchasing the Acer c720 chromebook for my 13yo to begin learning Python for Kids. Obviously I am on a budget. I wouldn't consider a Chromebpook for anyone learning programming. They are fine for folks who are happy to do everything "in

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Colin Chinsammy
I am considering purchasing the Acer c720 chromebook for my 13yo to begin learning Python for Kids. Obviously I am on a budget. Is this a good choice for a complete beginner? Any particular challenges that she might encounter using a chromebook OS? Any advice would be greatly appreciated. As I ha

[Tutor] Python packaging Was:Re: sys.path.append import python3 not working

2014-02-05 Thread Oscar Benjamin
On 5 February 2014 16:42, ALAN GAULD wrote: > >> And after 15 years of using Python I didn't know it existed until now! >> I've always used a local directory and added it to PYTHONPATH... > > Then maybe you're also not aware of the --user option for > pip/easy_install. That's how I discovered the

Re: [Tutor] Advice on Python codes - A recursive function to output entire directory subkeys of Windows Registry

2014-02-05 Thread Tim Golden
On 05/02/2014 15:30, Alan Ho wrote: Hi, I am a novice in Python, having attended a course few weeks ago and I'm working on my assignment now, and I encounter this issue when I was trying to print the entire Windows Registry (WR) sub-keys directories (trying that first with the below codes with a

Re: [Tutor] Changing only intergers in a list of strings

2014-02-05 Thread Juan Manuel Lopez Baio
On Wed, Feb 5, 2014 at 7:47 AM, David Palao wrote: > Sorry, there is a typo: > "(num+a,)" should be "(num+1,)", obviously. > > 2014-02-05 David Palao : >> Hi, >> Is it not clear to me if you must distinguish ints from other type of >> numbers, or if, for instances floats and ints must be dealt >>

[Tutor] Advice on Python codes - A recursive function to output entire directory subkeys of Windows Registry

2014-02-05 Thread Alan Ho
Hi, I am a novice in Python, having attended a course few weeks ago and I'm working on my assignment now, and I encounter this issue when I was trying to print the entire Windows Registry (WR) sub-keys directories (trying that first with the below codes with adaptations from on-line research) a

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread ALAN GAULD
>> And after 15 years of using Python I didn't know it existed until now! >> I've always used a local directory and added it to PYTHONPATH... > >Then maybe you're also not aware of the --user option for >pip/easy_install. That's how I discovered the user site-packages >directory.To be honest I've

Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Some Developer
On 05/02/2014 09:12, Peter Otten wrote: Some Developer wrote: I'm currently trying to download emails from an IMAP server using Python. I can download the emails just fine but I'm having an issue when it comes to splitting the relevant headers. Basically I'm using the following to fetch the he

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Oscar Benjamin
On 5 February 2014 12:41, Alan Gauld wrote: > > And after 15 years of using Python I didn't know it existed until now! > I've always used a local directory and added it to PYTHONPATH... Then maybe you're also not aware of the --user option for pip/easy_install. That's how I discovered the user si

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread eryksun
On Wed, Feb 5, 2014 at 6:55 AM, Ian D wrote: > The network dictates that it is the only way I can really do it as I cannot > edit any files directly. I have to append the path on the fly If you can modify your profile, then I'd expect you can permanently set PYTHONPATH for the current user. setx.

Re: [Tutor] my modules idle doesn't list functions python3.3

2014-02-05 Thread eryksun
On Wed, Feb 5, 2014 at 6:53 AM, Ian D wrote: > > But if I use Python 3.3 > It does not display the functions using autocomplete Maybe IDLE's AutoComplete extension is disabled. The configuration is in Lib\idlelib\config-extensions.def, with the following defaults: [AutoComplete] enable=1

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Dave Angel
Ian D Wrote in message: > __ Ok I seem to be having some success with it at the moment after moving > the location of the module. That might be because the letter following the backslash is not currently a valid escape code. You really shouldn't leave half broken code; it tends to break aga

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Alan Gauld
On 05/02/14 12:02, Tim Golden wrote: On 05/02/2014 11:58, Oscar Benjamin wrote: Another option is to place it in site-packages. If you don't want to use the system site packages you can always use the one in your user directory. In my case on Ubuntu that's in ~/.local/lib/pythonX.Y/site-packages

Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Dave Angel
spir Wrote in message: > > I have no idea of the pattern or structure of email headers. Would you post > some > example of 'msg_header_content[0][1]'? > > In the meantine, try to suppress \r from the regex formats. (Shouldn't be > here, > because when reading strings from files, python con

Re: [Tutor] my modules idle doesn't list functions python3.3

2014-02-05 Thread Tim Golden
On 05/02/2014 11:53, Ian D wrote: > Hi > > In Python 2.7 > > If I create my own modules and call them with > > import sys > sys.path.append("d:\modules") > > import myMod > > and use tab to autocomplete I get a list functions. > myMod.< if I tab this I get a list of my functions >

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Tim Golden
On 05/02/2014 11:55, Ian D wrote: > The network dictates that it is the only way I can really do it as I > cannot edit any files directly. I have to append the path on the fly Ok; just wanted to make sure you weren't making life more difficult for yourself than needs be. TJG

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Tim Golden
On 05/02/2014 11:58, Oscar Benjamin wrote: > Another option is to place it in site-packages. If you don't want to > use the system site packages you can always use the one in your user > directory. In my case on Ubuntu that's in > ~/.local/lib/pythonX.Y/site-packages/ Good point: I always forget t

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Oscar Benjamin
On 5 February 2014 11:51, Tim Golden wrote: > On 05/02/2014 11:46, Ian D wrote: >> Ok even more strangely it is working in the original location. >> >> Am now not 100% sure that I have the folder structure correct. >> >> I will keep a eye on it. > > You might want to consider whether your approach

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Ian D
The network dictates that it is the only way I can really do it as I cannot edit any files directly. I have to append the path on the fly > Date: Wed, 5 Feb 2014 11:51:18 + > From: m...@timgolden.me.uk > To: tutor@python.org > Subject: Re: [Tutor] sys.path.append import python3 not working >

[Tutor] my modules idle doesn't list functions python3.3

2014-02-05 Thread Ian D
Hi In Python 2.7 If I create my own modules and call them with import sys sys.path.append("d:\modules") import myMod and use tab to autocomplete I get a list functions. myMod.< if I tab this I get a list of my functions (This only works if I have ran program at least once, then

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Tim Golden
On 05/02/2014 11:46, Ian D wrote: > Ok even more strangely it is working in the original location. > > Am now not 100% sure that I have the folder structure correct. > > I will keep a eye on it. You might want to consider whether your approach is the best. One usually appends to sys.path when

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Ian D
Ok even more strangely it is working in the original location. Am now not 100% sure that I have the folder structure correct. I will keep a eye on it. Thanks To: tutor@python.org From: da...@davea.name Date: Wed, 5 Feb 2014 06:32:46 -0500 Subject: Re: [Tutor] sys.path.append import python3

Re: [Tutor] Any ideas

2014-02-05 Thread Oscar Benjamin
On Mon, Feb 03, 2014 at 04:35:58PM -0800, josh Malone wrote: > Hi, I'm very new to programming and python is my first language. I'm > currently enrolled in a class at Oregon State University where we are > taught to program in python. I'm stuck on one problem and i know what i > want to do... i jus

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Ian D
Ok I seem to be having some success with it at the moment after moving the location of the module. From: dux...@hotmail.com To: tutor@python.org Date: Wed, 5 Feb 2014 11:09:35 + Subject: [Tutor] sys.path.append import python3 not working Hi Seem when I run a module I created with imp

Re: [Tutor] sys.path.append import python3 not working

2014-02-05 Thread Dave Angel
Ian D Wrote in message: > > import sys > sys.path.append("d:\modules")   > I have tried it with append("d:\\modules") append("d:/\modules")   The first form is not reasonable, you'd need to double the backslash. But your second try should have worked. Here's what I would use: "d:/modules"

[Tutor] sys.path.append import python3 not working

2014-02-05 Thread Ian D
Hi Seem when I run a module I created with import sys sys.path.append("d:\modules") import myMod it works great in 2.7 but in 3.3 it doesn't I get an error in 3.3: import myMod ImportError: No module named 'myMod' I have tried it with append("d:\\modules") append("d:/\modules") A

Re: [Tutor] Changing only intergers in a list of strings

2014-02-05 Thread David Palao
Sorry, there is a typo: "(num+a,)" should be "(num+1,)", obviously. 2014-02-05 David Palao : > Hi, > Is it not clear to me if you must distinguish ints from other type of > numbers, or if, for instances floats and ints must be dealt > differently. > Anyway, I would propose something like the follo

Re: [Tutor] Changing only intergers in a list of strings

2014-02-05 Thread David Palao
Hi, Is it not clear to me if you must distinguish ints from other type of numbers, or if, for instances floats and ints must be dealt differently. Anyway, I would propose something like the following function: def FindNumbers(a_string): print "You entered:", a_string out_list = [] for

[Tutor] Changing only intergers in a list of strings

2014-02-05 Thread Colin Struthers
I am in a beginning python course and am working through some code and I can't even figure out how to start building this particular section of code. My goal is to get a sentence for the user and to take each number in the user string and add 1 to each number. i.e "the 4 people had 6 dogs" would c

Re: [Tutor] conditionals or comparison or expressions terminology

2014-02-05 Thread Peter Otten
Ian D wrote: Ian, please answer to the list, not me in private. Thank you. > Most of this makes sense except for the c(a<=b) > also > if c(a<=b) > > It is the c(...) syntax that I don't understand. > > I dont recall seeing a statement like this. c is just an arbitrary function, I put in the

Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Peter Otten
Some Developer wrote: > I'm currently trying to download emails from an IMAP server using > Python. I can download the emails just fine but I'm having an issue when > it comes to splitting the relevant headers. Basically I'm using the > following to fetch the headers of an email message: > > typ,