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 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 w

Re: self.__dict__ tricks

2009-11-04 Thread Ben Finney
Simon Brunning writes: > 2009/11/1 Steven D'Aprano : > > > > 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 all. The person asking the question might be ignoran

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 : >> >> 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. ;-) Once in the distant past,

Re: self.__dict__ tricks

2009-11-03 Thread Rami Chowdhury
On Tue, 03 Nov 2009 09:59:32 -0800, Ethan Furman wrote: Simon Brunning wrote: 2009/11/1 Steven D'Aprano : 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

Re: self.__dict__ tricks

2009-11-03 Thread Ethan Furman
Simon Brunning wrote: 2009/11/1 Steven D'Aprano : 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? ~Ethan~ -- http://mail.python.org/m

Re: self.__dict__ tricks

2009-11-03 Thread Simon Brunning
2009/11/1 Steven D'Aprano : > > 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. -- http://mail.python.org/mailman/listinfo/python-list

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-02 Thread Aahz
In article <02fd0c85$0$1326$c3e8...@news.astraweb.com>, Steven D'Aprano 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 fearless, and I have >> learned a l

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 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 le

Re: self.__dict__ tricks

2009-10-31 Thread Tim Johnson
On 2009-10-31, Steven D'Aprano 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. > >>> invalid parameter shouldn

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 -- http://mail.python.org/mailman/list

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 > 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 t

Re: self.__dict__ tricks

2009-10-30 Thread Tim Johnson
On 2009-10-30, Steven D'Aprano 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 dictionaries. The 'grunt' work is d

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 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 P

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 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 u

Re: self.__dict__ tricks

2009-10-30 Thread Ben Finney
Steven D'Aprano 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 not gonna be great; we are not gon

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 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 > Ti

Re: self.__dict__ tricks

2009-10-29 Thread Ben Finney
Ben Finney writes: > Steven D'Aprano 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. Blah, my attempt

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 C

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 ## ---