[Tutor] Installing psutil 2.2.0-1 on Canopy Enthought

2015-01-22 Thread Sydney Shall
I use MAC OSX 10.9.5 Canopy Enthought python 2.7.6 I also use the Enthought Package Manager to keep my installation up-todate. For about two weeks now, Canopy says that I need to install psutil 2.2.0-1 instead of the currently installed version 2.1.1. I appear to do that successfully, but the n

[Tutor] Class errors

2015-01-22 Thread jarod...@libero.it
Dear All, I created a class that invoke from another file another class I get an error that I do not understand: gobal name Job is not defined However If I see the class imported I found the class Job. Any suggestion or example on class invoke another class #job,py class Jobs: . #trial

Re: [Tutor] Class errors

2015-01-22 Thread Danny Yoo
On Thu, Jan 22, 2015 at 8:11 AM, jarod...@libero.it wrote: > Dear All, > > I created a class that invoke from another file another class > I get an error that I do not understand: gobal name Job is not defined Please use copy-and-paste. You just typed out the error message by hand: we can tell

[Tutor] Fwd: Testing a string to see if it contains a substring

2015-01-22 Thread Danny Yoo
-- Forwarded message -- From: dw Date: Thu, Jan 22, 2015 at 7:49 AM Subject: Re: [Tutor] Testing a string to see if it contains a substring To: Danny Yoo Hi Danny. Thanks for your email. The number of elements could start out as up to 500. But since they are short string element

[Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread boB Stepp
And will this vary depending on whether a version control system is being used or not? Or is the use of a version control system considered to be highly recommended (if not mandatory)? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

Re: [Tutor] Class errors

2015-01-22 Thread Cameron Simpson
On 22Jan2015 17:11, jarod...@libero.it wrote: I created a class that invoke from another file another class I get an error that I do not understand: gobal name Job is not defined However If I see the class imported I found the class Job. Any suggestion or example on class invoke another class

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread Alan Gauld
On 22/01/15 21:17, boB Stepp wrote: And will this vary depending on whether a version control system is being used or not? Or is the use of a version control system considered to be highly recommended (if not mandatory)? Virtually nothing in Python is mandatory - unless you plan on putting you

Re: [Tutor] Installing psutil 2.2.0-1 on Canopy Enthought

2015-01-22 Thread Alan Gauld
On 22/01/15 12:56, Sydney Shall wrote: I use MAC OSX 10.9.5 Canopy Enthought python 2.7.6 I also use the Enthought Package Manager to keep my installation up-todate. Canopy and Enthoughts paqckage management are well beyond the bounds of standard Python. What in fact is my problem? I simp

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread Ben Finney
boB Stepp writes: > And […] Could you write a message body that asks the question? (The Subject field isn't part of the message body.) As it is, I'm not sure what in particular you're asking about. -- \ “Are you thinking what I'm thinking, Pinky?” “Uh... yeah, | `\ Brain, but

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread Steven D'Aprano
On Thu, Jan 22, 2015 at 03:17:58PM -0600, boB Stepp hid the following question in the subject line: "Does the Python way of doing things have a definite preference for the structure and content of program file header comments?" and then wrote: > And will this vary depending on whether a versio

[Tutor] Class learning

2015-01-22 Thread jarod...@libero.it
Dear All How can gave the attributes __name__ to a function? class Foo(object): def __init__(self): steps = {} tmp = open("rnaseq.base.ini","rb") config.readfp(tmp) readsets = parse_illumina_readset_file("/home/mauro/Desktop/readset.csv") @prop

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread boB Stepp
On Thu, Jan 22, 2015 at 5:25 PM, Ben Finney wrote: > boB Stepp writes: > >> And […] > > Could you write a message body that asks the question? (The Subject > field isn't part of the message body.) Does the Python way of doing things have a definite preference for the structure and content of pro

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread boB Stepp
On Thu, Jan 22, 2015 at 5:45 PM, Steven D'Aprano wrote: > On Thu, Jan 22, 2015 at 03:17:58PM -0600, boB Stepp hid the following > question in the subject line: > > "Does the Python way of doing things have a definite preference for the > structure and content of program file header comments?" > >

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread Ben Finney
boB Stepp writes: > Does the Python way of doing things have a definite preference for the > structure and content of program file header comments? To my knowledge, the term “program file header comments” for Python would best describe a module docstring; not a comment, but documentation https:/

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-22 Thread Ben Finney
Ben Finney writes: > I would consider it good practice to have a copyright statement and a > grant of license at the top; a handful of lines should suffice. > […] > But none of that belongs in the docstring. > > […] > There is PEP 257 https://www.python.org/dev/peps/pep-0257/> which > defines the