Re: [Tutor] First real script
Hi Carlos, I hope this module would help you with the binary conversion part: def tobits(inte,size = 3): """Copy an integer's bits from memory""" s='' for i in range(size): s += str((inte & (1<>i) #bits are extracted right-to-left s = s[::-1] #reverse the result string print s return list(s) >>>test = tobits(30,8) 0000 >>>test ['0', '0', '0', '1', '1', '1', '1', '0'] Cheers, Rooy ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Best IDE for Python
Hi all, > -- Forwarded message -- > From: "Alan Gauld" <[EMAIL PROTECTED]> [snip] > > Is there a good IDE where in I type the name of > > the class object and then dot then all the attributes > > of the object are displayed so on. > > There are several that do this but many are OS specific. > The PythonWin IDE that comes as standard in the winall > package or the ActiveState version of Pytthon can do this. > > I'm prettty sure Blackadder, Wing and Eclipse will do it too. I can add Geany, SPE, and after reading Senthil's remark on gVim c-x c-n, Pida. Geany works on top of PyGTK, SPE on wxPython, pida need kiwi which requires pygtk also. > > I tried to install IDLE but I have no idea how to install tkinter? > > Tkinter is usually built in to Python. If you are compiling > from source (on Linux?) You need to configure the makefile > to include it, but most pre-built packages will have it. On self-compiled python, I just need to have tcl-dev and tk-dev packages installed (ubuntu linux), and the configure script does the proper work. I have only tried the epydoc gui. > > Any help that enables me to use good IDE as soon > > as possible is appreciated > > Personally I just use vim and an interpreter prompt! :-) Me too, just that pida bundles them in one window. Hieu ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Best IDE for Python
On 1/25/07, OkaMthembo <[EMAIL PROTECTED]> wrote: > hi guys, > > would someone please point me to an active link to download SPE? the url to > Stani's site just wont click through to > http://stani.be/python/spe/blog/ A while ago the SPE's author said something on python-list to the effect that he was looking for another host for stani.be. There're still the Berlios project page. ... Well, to be honest, the svn link still works, but I haven't found the website yet svn checkout svn://svn.berlios.de/python spe Copy the _spe folder to your site-package, then run the file SPE.py should work. Hope this helps, Hieu ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor