Page 1 of 1
Python
Posted: Tue 04 Nov 2008, 05:33
by Lobster
I was pleased that BarryK is experimenting with Python and may include it in 'Woof' his new puplet.
I did a lot of research into programming languages and concluded that ASQ (A real time AI programming ideology) is some way in the future.
Meanwhile Python is a widespread and widely used from beginner to serious programmer
Here is my intro to the programming language that was named after 'Monty Pythons Flying Circus' - yes really
http://peace.wikia.com/wiki/Python
Python 4 Puppy
http://www.murga-linux.com/puppy/viewto ... 578#209578
Anyway I thought this would be a thread for those willing to learn and experiment and share . . .
Posted: Thu 06 Nov 2008, 05:01
by big_bass
full python with Idle no cutting corners removing files
works on version 3 series puppy and version 4.00
http://www.murga-linux.com/puppy/viewto ... 54&t=31558
had to make a special tlc tk package to get the green light for all dependencies
big_bass
Posted: Thu 06 Nov 2008, 07:10
by Lobster
thanks big_bass
eh . . . 'python' at console should run it right?
Does not seem to?
Will start reminding myself how 'most excellent'
Python is whilst also reminding myself how we used to have tcl ('tickle')
I found tcl an underated and underused language,
perhaps a bit complex
Barry has mentioned a Python compiler
any good ones (yep they tell you NOT to compile Python but then
someone writes a compiler anyway)
One other thing is this the new Python?
There have been some recent language revisions - or is that not out yet?
Anyway many thanks for that link
Will keep me away from the dreaded XUL . . .
Posted: Thu 06 Nov 2008, 09:28
by smokey01
Hi Lobster,
I have been having a play with Python, looks pretty good.
I see the current version is 2.6 released on 10 Oct 2008.
Tutorial Here >
http://docs.python.org/tutorial/
Posted: Thu 06 Nov 2008, 16:01
by steve_s
Great thread! I've just started learning python myself as my first programming language...good job!
Edit: thanks to Puppy! With this forum and Puppy I threw together a 4.1 remaster with 2.5 Python, idle and all...very easy! Awesome!
Posted: Thu 06 Nov 2008, 16:09
by big_bass
"Lobster"]thanks big_bass
eh . . . 'python' at console should run it right?
Does not seem to?
you were correct uninstall and install this one
I re uploaded the working pet
there was a mix up while uploading
but all is ok now
I just tested on puppy 4.1
# md5sum python-2.5.2.pet
344d156d4b40b95402e954e102b908b5
get it from this thread
http://www.murga-linux.com/puppy/viewto ... 54&t=31558
I added a menu entry to run the GUI IDLE
Posted: Fri 07 Nov 2008, 12:42
by Lobster
Thanks Big_bass
I tried Psycho
(against psychiatric advice)
(python speedup - jit type compiler)
unzip the enclosed zip file
then move the directory
psyco-dist
to
/usr/lib/python2.5/site-packages/psyco-dist
now put
Code: Select all
try:
import psyco
psyco.full()
except:
pass
at the top of your .py programs?
Faster?
How much any test code results?
Posted: Fri 07 Nov 2008, 16:27
by Lobster
This is a great and simple reminder for those with existing programming skills - a simple Python crib sheet image
http://tmxxine.com/wik/wikka.php?wakka=PythonASQ
Posted: Mon 10 Nov 2008, 03:37
by big_bass
Ipython is an enhanced interactive shell ( making life easier )
download ipython
http://www.puppylinux.ca/tpp/big_bass/ipython-0.9.1.pet
the picture will show you how to launch it
run it from geany
or if you like a launch script
#exec /root/ipython-0.9.1/ipython.py
Posted: Tue 11 Nov 2008, 00:54
by Lobster
After reading the PDF here
article about IPython
http://ipython.scipy.org/moin/Documentation
this makes me even more keen on Python.
A great find Big_Bass, many thanks for creating the .pet
Posted: Tue 11 Nov 2008, 04:19
by big_bass
Hey Lobster
Glad to hear
I built the
GUI wxPYthon today its here
if you need it has some nice demos also to have fun with
http://www.murga-linux.com/puppy/viewto ... 54&t=31558
big_bass
Posted: Tue 11 Nov 2008, 10:44
by BarryK
Posted: Tue 11 Nov 2008, 15:28
by big_bass
Thanks Barry K
for the pet package
here is something to make python user friendly
ROX needs these MIME types to click launch
.py with geany
and
.pyc to launch when clicked on in ROX
I made the correct MIME-types and made a patch pet here
http://www.puppylinux.ca/tpp/big_bass/p ... OX-1.0.pet
big_bass
Posted: Thu 20 Nov 2008, 03:23
by Shep
I wanted a python I can run from the shell prompt, so ....
I installed as above and the install
seemed to go okay. But when I open a terminal window and type
exec /root/ipython-0.9.1./ipython.py
the window instantly closes (i.e., disappears).
Can I find a log of error messages somewhere that will enlighten me as to why my python's not happy?
# ls -l /root/ipython-0.9.1/ipython.py
-rwxr-xr-x 1 33212 20665 420 2008-06-02 15:40 /root/ipython-0.9.1/ipython.p
Posted: Sat 22 Nov 2008, 01:42
by big_bass
I installed as above and the install seemed to go okay. But when I open a terminal window and type
exec /root/ipython-0.9.1./ipython.py
the window instantly closes (i.e., disappears).
you need the full python here first
http://www.murga-linux.com/puppy/viewto ... 54&t=31558
this has idle GUI pre installed in the menu
then if you want the ipython shell too add that after
big_bass
Posted: Mon 24 Nov 2008, 19:42
by wosifat
Whenever I try to download it, it gives me "Concurrent download limit exceeded."