Re: Advice on tools/technologies/books, etc.

2008-04-12 Thread Nathan Duran
On Apr 12, 2008, at 6:55 PM, [EMAIL PROTECTED] wrote: > Will it be possible for me to put together an async site > with only python? Nope. Not until some browser embeds a Python interpreter in it anyway. Your primary choices are JavaScript and Flash. -- http://mail.python.org/mailman/listi

Re: About __init__ and default arguments

2008-04-11 Thread Nathan Duran
On Apr 11, 2008, at 11:35 AM, [EMAIL PROTECTED] wrote: > I'd like to assign the value of an attribute in __init__ as the > default > value of an argument in a method. See below: Are you sure? You will not get fresh values with each call in Python as you would in other languages. Why not jus

Re: Obtaining a callable class method object from a specific class

2008-04-10 Thread Nathan Duran
On Apr 10, 2008, at 1:25 PM, [EMAIL PROTECTED] wrote: > won't question why you want to do this... > Here is a solution base on a metaclass, but it feels wrong. > class MetaScore(type): >def __new__(meta, name, bases, attrs): >attrs.setdefault('score', score) >return type.__ne

Obtaining a callable class method object from a specific class

2008-04-10 Thread Nathan Duran
This is a contrived pseudocode example which has been broken out of a larger problem, so it may seem like a strange thing to want to do, but... I have a group of objects which inherit (single) from a common base class like so: --- class Root(object): @classmethod def CumulativeSco