Python miscellania

Disciple asked me on the forum why I am "going after Python now". Here is part of my response:

I'm thinking about including the "full" Python in Woof, as cutdown as I can get away with, because Python is so heavily used in Linux these days. So many applications require Python, like Inkscape for example. The Rox Filer people have other apps than need Python. If you go to www.gnome-files.org and look around, almost every second app is written in Python and uses PyGTK.

So, I am just bowing to the reality. But, whether I do take the plunge and go for the "full" Python, I still don't know.

Tinypy has nothing to do with the above. It is something that I am playing with in my ongoing search for something to upgrade to from Bash coding. In particular, something that I can myself hack on.
So, tinypy + gtkdialog + low-level-system-hacks is of interest to me.


It could be that I just cannot hack the "full" Python down enough for Woof. Well, we shall see. Python is in the Puppy4 'devx' file, but without extra libraries like PyGTK.

It really is nice to have a printed textbook, so this morning I ordered "Learning Python" from Barnes and Noble (as they accept PayPal):
http://search.barnesandnoble.com/Learning-Python/Mark-Lutz/e/9780596513986/?itm=1

Amazon.com has lots of reviews of that book, it rates well, cheaper too, but they don't accept payPal. My local bookshop had no books on Python, which is why I resorted to on-line. For any other Aussies reading this, the airmail charge was US$12.98 -- so in total it probably cost about the same as I would have paid locally.


Posted on 14 Nov 2008, 7:43


Comments:

Posted on 14 Nov 2008, 14:21 by inged
150kB interpreter
I was reading the thread on the forum and the reference from 'mcewanw' about Lua, got curious, went to wikipedia and I saw something you could be interested: "the full reference interpreter is only about 150kB compiled", sounds tempting... just my 2 cents


Posted on 14 Nov 2008, 14:21 by inged
150kB interpreter
I was reading the thread on the forum and the reference from 'mcewanw' about Lua, got curious, went to wikipedia and I saw something you could be interested: "the full reference interpreter is only about 150kB compiled", sounds tempting... just my 2 cents


Posted on 14 Nov 2008, 14:25 by inged
oops
sorry about the double reply, hit refresh and got posted twice, would be nice to edit comments on PPLOG


Posted on 14 Nov 2008, 22:27 by raymundo dionicio
Pithon 3.0
Barry
:)

Surely you know, but I will say anyway:

Guido recommends using version 3 if
beginning a new project.

Guido blog is in:
http://www.artima.com/weblogs/index.jsp?blogger=guido


Posted on 14 Nov 2008, 22:34 by cb88
python 3 != python 2.5
python 2.5 is not compatible with 3.0

there may be some compatibility but from what i undestand it is a large rewrite

LLVM may be of interest since interpreters can be built on top of it


Posted on 15 Nov 2008, 5:17 by raymundo dionicio
An "smaller" python language
Barry:

Guido says that:
[Python 3k is an smaller language.
Makes "fits in your brain" more true]

http://www.python.org/doc/essays/ppt/pycon2008/Py3kAndYou.pdf


Posted on 15 Nov 2008, 20:02 by Dougal
"going after Python now"
What is even more interesting is why people are concerned with you being interested in Python, since what you're doing is not supposed be related to Puppy...


Posted on 16 Nov 2008, 6:04 by John Dubery
Python is great
Barry, I think looking at Py is a very good plan. I've been using it a fair bit for years (including professionally) - it's a great language (beats C, C++, C#, java, lisp, pascal for productivity and readability). Be encouraged.


Posted on 19 Nov 2008, 11:25 by technut
InspirationPy?
A few years ago I found a linux distro that uses Python throughout. I was actually looking for a distro that was small, fast, and portable. Still don't know how Pardus turned up in my search.
See here -
http://www.pardus.org.tr/eng/projects/comar/PythonInPardus.html
It's even used for part of the boot process.
http://www.pardus.org.tr/eng/projeler/comar/SpeedingUpLinuxWithPardus.html

Definitely not small.
I settled on PuppyLinux of course.



Posted on 19 Nov 2008, 16:33 by BarryK
Re: Pardus
technut,
Heh heh, interesting read. And to think that I'm concerned about Puppy's 'init' script being too big, at about 1000 lines!