Re: Distributing programs

2005-10-02 Thread Wouter van Ooijen (www.voti.nl)
A non-python programming friend of mine has said that any programs made 
with Python must be distributed with, or an alternative link, to the 
source of the program.

Yes, and you must also include a blank sheet, signed by you in blood.

Seriously, whatever the license of Python itself is, a program you
have *written in Python* (which Iassume you are referring to) is
completely yours.


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: micro-python - is it possible?

2005-08-30 Thread Wouter van Ooijen (www.voti.nl)
No, not a tiny microcontroller environment.  In the
microcontroller world, tiny means 100 bytes of ram and 4KB of
code space.  

That's medium :)

PIC10F200: 256 12-bit instructions, 16 bytes RAM.


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Doubt C and Python

2005-08-28 Thread Wouter van Ooijen (www.voti.nl)
 I use Python when my time is most valuable (in most cases it is), in
 the very few cases the computer's time is more valuable I write in
 C/C++.

In cases when the computer's time is more valuable, why not use CPython 
with C/C++ API? Only most time consuming parts can be replaced to C/C++ 
codes so as to increase the speed up to native C/C++ programs).

That assumes that one knows which are the most time-consuming parts,
that they are few (which is typically, but not always, the case) and
that they are 'fit' to be transferred to the C/C++ domain. The one
application I have written the last few years that probably would not
be fit to this approach is a compiler (Jal). It spends most of its
time walking the annotated syntax tree, with a lot of code
contributing rather evenly to the CPU time.

Don't take me wrong, IIRC that is the *only* PC program I have written
the last few years for which I selected the language and the language
was not Python :)

But I mainly program PICs. Where is the 10F200 Python interpreter when
you need one?


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python image thumbnail generator?

2005-08-28 Thread Wouter van Ooijen (www.voti.nl)
I'm thinking it would be nice and easy, if we could just upload a jpg into
a dir called gallery/. When the client clicks the gallery link, a 
cgi script could search the gallery/ dir, and create thumbnails of any
jpeg images that don't already have a thumbnail associated with them. The
script could then generate a page of clickable thumbnails.

I dunno about the scripting aspect, but I use Python to generate my
website, I already had the images (of the products I sell). I used PIL
to generate thumbnails of the images. I think it took 2 or 3 lines of
Python - that is: for me. PIL is of course a bit more.




Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Should I move to Amsterdam?

2005-08-26 Thread Wouter van Ooijen (www.voti.nl)
True. Unless you have two proper locks. In that case your bike will
last a very long time.

Nope. You will probably retrieve your two locks from the fencing you
attached them to (if you did!), with your bike gone.


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


file access dialog

2005-08-26 Thread Wouter van Ooijen (www.voti.nl)
I have a tool in Python to which I want to add a small GUI. The tools
currently runs everywhere PySerial is supported. I need a file-access
dialog. What is the preffered way to to this? Is there a
platform-independent file-access dialog available, or should I use the
windows native version when running on windows (and how do I do that)?


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: file access dialog

2005-08-26 Thread Wouter van Ooijen (www.voti.nl)
Tkinter has a file acces dialog available with the same API on all platforms. 
It is also mapped to the standard dialog on Windows. 
 Since Tkinter is certainly installed by default with Python, if a file dialog 
 is everything you need, you probably don't have to look further.

Great :)


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Should I move to Amsterdam?

2005-08-24 Thread Wouter van Ooijen (www.voti.nl)
Nice little series by Seth Stevenson for Americans daydreaming about
emigration. Somewhere, anywhere ... maybe Amsterdam?

I've never been to the Netherlands myself, but it sounds very
civilized.

It used to be, until some lunatic (alledged to be a left-winger)
killed an (alledged right-wing) politician, and another (alledged
muslim-extremist) lunatic killed an (alledged right- or left-wing,
depends on who you ask) cineast. We used to be a place where
everything happens a few years later, but we are catching up! :(

But I fondly remember the classes I had at the Delft university by
Lambert Meertens about the ABC language, which is the forerunner of
Python. :)


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Doubt C and Python

2005-08-23 Thread Wouter van Ooijen (www.voti.nl)
   I want to know the link between c and python.

Apart from the fact that the inner part of Python is written in C I
know no link?

   Some people with C background use Python instead   
of  programming in C.why?

I use Python when my time is most valuable (in most cases it is), in
the very few cases the computer's time is more valuable I write in
C/C++.


Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Doubt C and Python

2005-08-23 Thread Wouter van Ooijen (www.voti.nl)
For me, the choice is typically among C++, Perl, Python, and Java.  The 
arguments for Python relative to these languages are:


add: I develop on my platform (which happens to be XP, but that is
irrelevant), I put the Python source on my website, and I never worry
about the platform my users will be using. An those users don't need
to know how to compile a program, it will just run.
Wouter van Ooijen

-- 
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
-- 
http://mail.python.org/mailman/listinfo/python-list