Thanos Tsouanas wrote:
I'm not sure what you're getting at, but have you tried this:
class A(object):
def __getitem__(self, ky):
return self.__dict__[ky]
for example:
>>> class A(object):
def __init__(self,a,b,c):
self.a = a
self.b = b
Hi,
I'm a civil engineer who also doubles as chief programmer for technical
applications at my company. Most of our software is written in Visual
Basic because our VP in charge of I.T. likes to have "consistency", and
at the moment we're a Microsoft shop. He has assigned me the task of
developi
Dennis Benzinger wrote:
Just out of curiosty:
What did you think what atoi does?
I don't understand how you came to expect that atoi('4',3)
should result in 11.
Bye,
Dennis
Mea culpa. For some strange reason, I had it in my mind that atoi would
take a base ten number as a string and convert it to
I think there may be a bug in string.atoi and string.atol. Here's some
output from idle.
Python 2.3.4 (#2, Jan 5 2005, 08:24:51)
[GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2
Type "copyright", "credits" or "license()" for more information.
**