Re: Inheritance Question

2012-10-18 Thread Jeff Jeffries
On Thu, Oct 18, 2012 at 10:51 AM, Dave Angel  wrote:

> On 10/18/2012 10:10 AM, Jeff Jeffries wrote:
> > Hello everybody
> >
> > When I set "AttributeChanges" in my example, it sets the same value for
> all
> > other subclasses. Can someone help me with what the name of this behavior
> > is (mutable class global?) ?  I don't know any keywords... having
> > trouble googling it
> >
>
> I can't understand your code or what you're trying to do with it, but
> maybe i can help anyway.  Incidentally, putting code in an attachment
> will hide it from many users of this mailing list.  Just paste it inline
> in your message, and make sure your message is composed as text, not html.
>
>
Eureka! This was useful too:
http://stackoverflow.com/questions/2923579/python-class-attribute

-- 
Cheers,
Jeff Jeffries III
CEO: www.willyoubemyfriend.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Recommended way to unpack keyword arguments using **kwargs ?

2012-10-26 Thread Jeff Jeffries
I have been doing the following to keep my class declarations short:

class MyClass(MyOtherClass):
def __init__(self,*args,**kwargs):
self.MyAttr = kwargs.get('Attribute',None) #To get a default
MyOtherClass.__init__(self,*args,**kwargs)

Is there a recommended way to get keyword arguments (or default) when using
** notation?

-- 
Cheerios,
Jeff Jeffries III
CFO: www.touchmycake.com <http://www.willyoubemyfriend.com>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Proper place for everything

2012-11-04 Thread Jeff Jeffries
everyone on this list is troll

On Sun, Nov 4, 2012 at 6:17 AM, Roy Smith  wrote:

> In article <[email protected]>,
>  Steven D'Aprano  wrote:
>
> > On Sat, 03 Nov 2012 22:19:19 -0700, Aahz wrote:
> >
> > > In article <[email protected]>,
> Steven
> > > D'Aprano   wrote:
> > >>On Fri, 02 Nov 2012 04:20:20 -0700, Jason Benjamin wrote:
> > >>>
> > >>> Anybody know of the appropriate place to troll and flame about
> various
> > >>> Python related issues?  I'm kind of mad about some Python stuff and I
> > >>> need a place to vent where people may or may not listen, but at at
> > >>> least respond.  Thought this would be a strange question, but I might
> > >>> as well start somewhere.
> > >>
> > >>Thank you for your honesty, but trolling is not welcome.
> > >>
> > >>However if you have actual issues about Python, either pro or con, and
> > >>hope to have a serious, respectful dialog where both parties listen to
> > >>each other, feel free to raise them here. Keep in mind three things:
> >
> > [snip three things]
> >
> > > You forgot the fourth point.
> >
> > Apparently so did you :)
>
> "Amongst the points are such diverse elements as..."
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Cheers,
Jeff Jeffries III
CEO: www.willyoubemyfriend.com
-- 
http://mail.python.org/mailman/listinfo/python-list