Re: self.__dict__ tricks

2009-11-04 Thread Ben Finney
Simon Brunning si...@brunningonline.net writes: 2009/11/1 Steven D'Aprano st...@remove-this-cybersource.com.au: The only stupid question is the one you are afraid to ask. I was once asked, and I quote exactly, are there any fish in the Atlantic sea? That's pretty stupid. ;-) Not at

Re: self.__dict__ tricks

2009-11-04 Thread Ethan Furman
Dennis Lee Bieber wrote: Perfectly valid answer -- there are no fish as there is no Atlantic sea G Steven D'Aprano wrote: Once in the distant past, there were no fish in what would become the Atlantic Ocean (not sea) What's with the bias against the word 'sea'? sea –noun 1. the salt

Re: self.__dict__ tricks

2009-11-03 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: There are no stupid questions, only stupid people. The earliest source I know for that aphorism is the fictional teacher Mister Garrisson, from South Park. Can anyone source it earlier? -- \“Read not to contradict and confute, nor to believe and

Re: self.__dict__ tricks

2009-11-03 Thread Simon Brunning
2009/11/1 Steven D'Aprano st...@remove-this-cybersource.com.au: The only stupid question is the one you are afraid to ask. I was once asked, and I quote exactly, are there any fish in the Atlantic sea? That's pretty stupid. ;-) -- Cheers, Simon B. --

Re: self.__dict__ tricks

2009-11-03 Thread Rami Chowdhury
On Tue, 03 Nov 2009 09:59:32 -0800, Ethan Furman et...@stoneleaf.us wrote: Simon Brunning wrote: 2009/11/1 Steven D'Aprano st...@remove-this-cybersource.com.au: The only stupid question is the one you are afraid to ask. I was once asked, and I quote exactly, are there any fish in the

Re: self.__dict__ tricks

2009-11-03 Thread Steven D'Aprano
On Tue, 03 Nov 2009 11:26:49 +, Simon Brunning wrote: 2009/11/1 Steven D'Aprano st...@remove-this-cybersource.com.au: The only stupid question is the one you are afraid to ask. I was once asked, and I quote exactly, are there any fish in the Atlantic sea? That's pretty stupid. ;-)

Re: self.__dict__ tricks

2009-11-03 Thread Ethan Furman
Simon Brunning wrote: 2009/11/1 Steven D'Aprano st...@remove-this-cybersource.com.au: The only stupid question is the one you are afraid to ask. I was once asked, and I quote exactly, are there any fish in the Atlantic sea? That's pretty stupid. ;-) Are there any fish in the Dead Sea?

Re: self.__dict__ tricks

2009-11-02 Thread Aahz
In article 02fd0c85$0$1326$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 31 Oct 2009 11:15:48 -0500, Tim Johnson wrote: Many programmers I know stay away from 'lists' such as this, because they are afraid to show their ignorance. Me, I'm

Re: self.__dict__ tricks

2009-11-01 Thread Steven D'Aprano
On Sat, 31 Oct 2009 11:15:48 -0500, Tim Johnson wrote: Many programmers I know stay away from 'lists' such as this, because they are afraid to show their ignorance. Me, I'm fearless, and I have learned a lot that I might not have otherwise. The only stupid question is the one you are afraid

Re: self.__dict__ tricks

2009-10-31 Thread Hendrik van Rooyen
On Friday, 30 October 2009 17:28:47 MRAB wrote: Wouldn't it be clearer if they were called dromedaryCase and BactrianCase? :-) Ogden Nash: The Camel has a single hump- The Dromedary, two; Or the other way around- I'm never sure. - Are You? - Hendrik --

Re: self.__dict__ tricks

2009-10-31 Thread Tim Johnson
On 2009-10-31, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Idiomatic Python is to use CamelCase for classes. Can you point me to a discussion on Idiomatic Python, CamelCase and other matters? ... See PEP 8: http://www.python.org/dev/peps/pep-0008/ Got it. Thanks.

Re: self.__dict__ tricks

2009-10-31 Thread MRAB
Hendrik van Rooyen wrote: On Friday, 30 October 2009 17:28:47 MRAB wrote: Wouldn't it be clearer if they were called dromedaryCase and BactrianCase? :-) Ogden Nash: The Camel has a single hump- The Dromedary, two; Or the other way around- I'm never sure. - Are You? If you make the first

Re: self.__dict__ tricks

2009-10-30 Thread Steven D'Aprano
On Fri, 30 Oct 2009 15:55:04 +1100, Ben Finney wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: class formLoader(): Idiomatic Python is to use CamelCase for classes. Or rather: Instead of camelCase names,

Re: self.__dict__ tricks

2009-10-30 Thread Ben Finney
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: class formLoader(): Idiomatic Python is to use CamelCase for classes. Or rather: Instead of camelCase names, idiomatic Python is to use TitleCase names. -- \ “We are

Re: self.__dict__ tricks

2009-10-30 Thread MRAB
Steven D'Aprano wrote: On Fri, 30 Oct 2009 15:55:04 +1100, Ben Finney wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: class formLoader(): Idiomatic Python is to use CamelCase for classes. Or rather: Instead of

Re: self.__dict__ tricks

2009-10-30 Thread Tim Golden
MRAB wrote: Steven D'Aprano wrote: On Fri, 30 Oct 2009 15:55:04 +1100, Ben Finney wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: class formLoader(): Idiomatic Python is to use CamelCase for classes. Or rather:

Re: self.__dict__ tricks

2009-10-30 Thread Tim Johnson
On 2009-10-30, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Could you explain what problem you are trying to solve? class formLoader(): Hi Steve In a nutshell: The 'problem' is to parse a form in such a way that tags which are to be modified are represented as

Re: self.__dict__ tricks

2009-10-30 Thread Steven D'Aprano
On Fri, 30 Oct 2009 11:16:29 -0500, Tim Johnson wrote: On 2009-10-30, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Could you explain what problem you are trying to solve? class formLoader(): Hi Steve In a nutshell: The 'problem' is to parse a form in such a way

self.__dict__ tricks

2009-10-29 Thread Tim Johnson
This is not a request for help but a request for comments: Consider the following code and note that 1)The initializer uses the dictionary style of arguments 2)The check loop executes before all of the class variables are declared ##

Re: self.__dict__ tricks

2009-10-29 Thread Steven D'Aprano
On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: This is not a request for help but a request for comments: Consider the following code and note that 1)The initializer uses the dictionary style of arguments 2)The check loop executes before all of the class variables are declared

Re: self.__dict__ tricks

2009-10-29 Thread Ben Finney
Ben Finney ben+pyt...@benfinney.id.au writes: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote: class formLoader(): Idiomatic Python is to use CamelCase for classes. Or rather: Instead of camelCase names, idiomatic