Re: generator expression works in shell, NameError in script

2009-06-17 Thread Steven Samuel Cole
Both zip and enumerate do the trick. Thanks for the pointers, that's 2 more built-ins under my belt :-) Still don't really understand why my initial code didn't work, though... Thanks everyone! :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python / Debian package dependencies

2008-11-21 Thread Steven Samuel Cole
ls (if it is really a dependancy) in the Depends field. If it not the case, do it manually. Do not forget to check and notify the version of this dependancies. Regards. Stephane 2008/11/21 Steven Samuel Cole <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> Hey Paul thanks

Re: Python / Debian package dependencies

2008-11-20 Thread Steven Samuel Cole
ror I found out that I seem to have to use the package name without the python- bit, because then stdeb does run without error. If the name was really the issue, I would at least expect stdeb to report an error about an unknown package or so... Cheers, Stefan 2008/11/21 Steven Samuel Cole <[E

Re: Python / Debian package dependencies

2008-11-20 Thread Steven Samuel Cole
ancies, it will notify only and will not install the > package. Dependancies installations are managed by the front-end to dpkg > (aptitude or apt). This is not a python issue that you are facing to. > Cheers > Stephbul > > 2008/11/20 Steven Samuel Cole <[EMAIL PROTECTED]> >>

Python / Debian package dependencies

2008-11-19 Thread Steven Samuel Cole
Hi all, I am trying to build a debian package for my python modules using stdeb and dpkg-buildpackage. The package building itself works, I also managed to have an entry point created and I can use my python modules on the Ubuntu virtual machine I use to test the package. The problem is that my m

generate methods at runtime, but the wrong one gets called

2008-08-25 Thread Steven Samuel Cole
Hello, I am writing an application that controls robots. Different robots can do different kinds of movements, such as e.g. open gripper, rotate gripper, etc. My RobotControl class should support all kinds of robots. I therefore delegate the actual control work to extra control-specific classes, o