A question of style .....

2009-07-15 Thread tuxagb
If I have to write an extension module with many objects, how can I organizing the code? I think: every object in a separate file, and a last file with the PyInit_. function. But is unmenageable . Solutions? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you think of ShowMeDo

2009-04-28 Thread tuxagb
On 28 Apr, 17:09, Astley Le Jasper wrote: > Hi, > > I've just stumbled over this (http://showmedo.com/) and being the very > visual person I am, it seems like it could be a good way to learn > about python. However, before I smack down $60, I wondered if anyone > had any opinions on it. My gut fee

Re: How to locate the bit in bits string?

2009-04-28 Thread tuxagb
On 28 Apr, 17:24, Li Wang wrote: > 2009/4/29 Tim Chase : > > > Li Wang wrote: > > >> Hi: > > >> If I use an integer to represent bits: > >> e.g. 99 represents '1100011' > > >> How can I locate, say the second bit of 99(i.e. '1')? > > >> Although bin(99)[4] could be used to locate it, this transfor

Re: Third Party Modules

2009-04-28 Thread tuxagb
On 28 Apr, 17:02, Brock wrote: > Hi Everyone, > > I know this is most likely a basic question and you will roll your > eyes, but I am just starting out with Python (hobbyist) and I see many > tutorials on the web referring to the use of external modules. > > However, when I locate them, they often

Re: How to locate the bit in bits string?

2009-04-28 Thread tuxagb
On 28 Apr, 16:36, Li Wang wrote: > Hi: > > If I use an integer to represent bits: > e.g. 99 represents '1100011' > > How can I locate, say the second bit of 99(i.e. '1')? > > Although bin(99)[4] could be used to locate it, this transform cost > too much memory (99 only needs 2Bytes, while string '

Re: Getting the "dir" from the other ancestor ?

2009-04-28 Thread tuxagb
On 28 Apr, 15:01, Stef Mientki wrote: > hello, > > I have a class, derived from some user defined class > (User_Defined_Ancestor) and some basic class (Basic_Ancestor). > > One of the major tasks of the Basic_Ancestor, > is to hide all kinds of implementation details for the user, > so the user ca