Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-27 Thread Chris Angelico
On Thu, Dec 27, 2012 at 5:50 PM, Ranting Rick wrote: > Every keyword, syntactical structure, style, etc, etc, should be based > on logical foundations; not adolescent fads or propagating more > idiotic cultural traditions. You piss and moan about language X and > how asinine the language is, them

Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-26 Thread Ranting Rick
On Dec 26, 11:02 pm, Steven D'Aprano wrote: > On Wed, 26 Dec 2012 20:07:53 -0800, Rick Johnson wrote: > > My specific point is that the English word "variable" is unambiguous > > I'm sorry, do you mean "variable" the noun, or "variable" the adjective? > [snip: sliding down the rabbit hole of a pol

Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread alex23
On 26 Dec, 09:42, Rick Johnson wrote: > Python classes CAN and DO have variables, just as Python modules > have variables; psst: they're called "global variables"! Actually, they're called "module attributes", but don't let the facts get in the way of your little rant. You never have before. --

Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
Hey :-P I think I should rename the threads name into a new "Doc" project, I'm sure It won't take much time to fill a book with our knowledge. Thanks to Rick, you have Posted exactly what I wanted to ask. I know the that __variable = 'xyz' _variable = 'xyz' are used to make them private, but I

Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-24 Thread Ranting Rick
On Dec 24, 9:48 am, Dave Angel wrote: > Pep8 recommends a particular style within a function name, separating > 'words of a name by underscore.  I happen to loathe that style, so I'm > clearly not the one who would critique someone for not following the > guideline.  I say getFile(), the pep says