[PythonCE] execfile&input in pythonce2.3.4

Voidspace mike at pcblokes.com
Mon Aug 16 08:51:10 CEST 2004


Unfortunately in the current builds of python for PocketPC input and
raw_input don't work.
This is because the PocketPC console doesn't support them. Their was a
hack in previous builds (by Telion) - but it relied on C code that got
lost in the mists of time.

David Kashtan would *like* to be able to add support for it back in -
but doesn't want to have to rewrite the C.

It *should* be possible to fake it using Tkinter dialogs - but I've
never actually tried it.

I find it surprising that it's not possible - as python running in
'interactive interpreter' mode receives user input from a window. But I
know that in programming things are not always straightforward.

Regards,

Fuzzy

ºÎ ·½ wrote:

> My last message about "execfile&input in pythonce2.3.4" is not
> acurate.I am sorry for that.
>
> After more tests i worked it out .In pythonce221, you can write
> execfile('/folder/file') or execfile('\folder\file') in a py file to
> call another py file,but in python234, I have to write
> execfile('\\folder\\file') .That's ok, then.
>
> As to input and raw_input in py file, they raised errors. Is it
> intended for that? Is it possible to get a prompt for user input?
>
>
> ------------------------------------------------------------------------
> ʹÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail
> <http://g.msn.com/8HMBCNCN/2749??PS=47575> Get 2 months FREE*.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>PythonCE mailing list
>PythonCE at python.org
>http://mail.python.org/mailman/listinfo/pythonce
>  
>

-- 

http://www.Voidspace.org.uk 
The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. 

---
http://www.Voidspace.org.uk/atlantibots/pythonutils.html
Python utilities, modules and apps.
Including Nanagram, Dirwatcher and more.
---
http://www.fuchsiashockz.co.uk   
http://groups.yahoo.com/group/void-shockz
---

Everyone has talent. What is rare is the courage to follow talent
 to the dark place where it leads. -Erica Jong
Ambition is a poor excuse for not having sense enough to be lazy.
         -Milan Kundera





More information about the PythonCE mailing list