Re: Cheapest pocket device to code python on

2005-12-03 Thread adDoc's networker Phil
. I could actually touch-type on the psion (a genuine [/]pocket computer!)
but I was looking forward to eventually writing a key mapper
(new key layouts are always an aggravation)
. my plans were snipped in the bud however,
because I got cheap and tried to sneak around the warranty with a universal ac adaptor;
I didn't check the voltage myself with a meter,
and found out the hard way that it was putting out twice the expected voltage
. apparently a lot of other people were making mistakes like that,
because shortly after psion arrived from the uk,
they dropped customer service for the usa
-- except the corporate acct's, 
where they could deal with professional IT staff who didn't need their nose wiped !
On 11/26/05, Ten <[EMAIL PROTECTED]> wrote:
I use an old epocpython on a Psion Revo Plus for jotting down python conceptsand testing out ideas, and I wouldn't be without it - especially because theRevo keyboard is usable in a way touchscreens aren't for me.
It's not the most extensive python installation, and it won't stand muchearthshifting (it doesn't include some modules, like tkinter) but it's a hellof a lot of portable python considering the fact you can pick one up for
around 10 to 20 squids on ebay.Better keyboard than a pda, portable python for next to nothing.--http://mail.python.org/mailman/listinfo/python-list
-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: about invalid syntax

2005-11-15 Thread adDoc&#x27;s networker Phil

. I've been schooled with various versions of several languages,
but I'm just now learning python:
I've not yet personally experienced any python debugger .

. I understand the python`IDLE (integrated DeveL Envir)
 comes with the std distro, and here is the part in the doc's 
that you might find encouraging:

google( python idle debugger faq)
[EMAIL PROTECTED] http://www.python.org/doc/faq/programming.html#is-there-a-source-code-level-debugger-with-breakpoints-single-stepping-etc

"(

General Questions
1.1.1   Is there a source code level debugger with breakpoints, single-stepping, etc.? Yes.

The IDLE -- includes a graphical debugger. 
(see folder path: Tools/scripts/idle),
 
There is documentation for the IDLE debugger 
at http://www.python.org/idle/doc/idle2.html#Debugger

PythonWin 
includes a GUI debugger
 based on pdb (python`s std command-line debug)
. The Pythonwin debugger colors breakpoints 
and has quite a few cool features such as debugging non-Pythonwin
programs. A reference can be found at
http://www.python.org/windows/pythonwin/
. Recent versions of PythonWin are available as a part of
 the 
ActivePython distribution 
(see http://www.activestate.com/Products/ActivePython/index.html).
)-python.org

. another thing I plan to get into
 since I'm interested in taming xp,
is 
    iPython, [EMAIL PROTECTED] http://ipython.scipy.org/

. there are many reasons for this,
but the one most relevant to your needs at the moment
(avoiding mysterious error msg's)
is this:
"(
# Automatic indentation of code as you type 
-- (merely having inconsistent spaces or a tab-space mixture can cause unexpected syntax msg's, I'm told)

# Verbose and colored exception traceback printouts
. Easier to parse visually, and in verbose mode they produce a lot of useful debugging information

# Easy debugger access
to rapidly isolate the source of a bug:

. You can set IPython to call up the Python debugger (pdb) every time there is an uncaught exception
. This drops you inside the code which triggered the exception 
with all the data live and it is possible to navigate the stack 
. The %run magic command -with the -d option- 
can run any script under pdb's control,
 automatically setting initial breakpoints for you.

[. other features that interest me include: ]

# Offers a flexible framework inspired by the likes of Mathematica, IDL and Mathcad 
# Session logging (you can then later use these logs as code in your programs).
# Session restoring: logs can be replayed to restore a previous session to the state where you left it.
# Filesystem navigation, via a magic %cd command, 
along with a persistent bookmark system (using %bookmark) 
for fast access to frequently visited directories.
# The ability to expand python variables when calling the system shell
. In a shell command, any python variable prefixed with $ is expanded
. A double $$ allows passing a literal $ to the shell (for access to shell and environment variables like $PATH).
)-scipy.org

On 11/14/05, Ben Bush <[EMAIL PROTECTED]> wrote:

On 11/14/05, adDoc's networker Phil <[EMAIL PROTECTED]
> wrote:
. maybe you could separate your code into parts { python std, pythonwin-specific},and then use a debugger to know most of the problem sources?
(I'm not familiar with pythonwin, I assume it's a superset of python std) .

On 11/14/05, Ben Bush <
[EMAIL PROTECTED] > wrote:


When I run scripts in PythonWin,
sometimes will get the message of invalid syntax error.
How can I check which error I made?
For example, in VB, you might got the wrong place highlighted and help message too.
-- 
which IDE do you use to run Python?Thanks!Ben Bush 

-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: about invalid syntax

2005-11-14 Thread adDoc&#x27;s networker Phil
. maybe you could separate your code into parts { python std, pythonwin-specific},
and then use a debugger to know most of the problem sources?
(I'm not familiar with pythonwin, I assume it's a superset of python std) .On 11/14/05, Ben Bush <[EMAIL PROTECTED]
> wrote:When I run scripts in PythonWin,
sometimes will get the message of invalid syntax error.
How can I check which error I made?
For example, in VB, you might got the wrong place highlighted and help message too.-- Thanks!Ben Bush

--http://mail.python.org/mailman/listinfo/python-list
-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Cheapest pocket device to code python on

2005-11-04 Thread adDoc&#x27;s networker Phil
On 3 Nov 2005 19:55:03 -0800, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]
> wrote:What is the cheapest/affordable pocket device that I can code python

on? I think the closest I have seen is pocketpc from this page:http://www.murkworks.com/Research/Python/PocketPCPython/Overview


   Cameron Laird <
[EMAIL PROTECTED]>
 wrote:


   achieves stunning results with his tiny PocketPC Magician 


http://wiki.tcl.tk/HTC%20Magician. the cheapest pocketpc might be dell refurbished .

$319.00 
Axim X50v Advanced Graphics 624 Mhz and VGA display

(remember vga -- that was desktop! )

google dell axim refurbished 
. if your time is worth a lot,
then a larger screen for $350 
might be cheaper than the typical $200 
. pda's have been my idea of a cheap desktop replacement;
but I've been through a lot of add-on keyboards,
. so now I'm looking at my python.ce as more for 
running programs that I wrote elsewhere, 
such as:
my new walkable" Fujitsu P1500D 
(an xp pro tablet with a complete but reduced-sized kybd)

 [EMAIL PROTECTED] http://www.computers.us.fujitsu.com/images/swf/P1500D/P1500D.html

. it should be here in 2 weeks;

and then I can -- with harness holding the laptop on my chest --
walk around downtown Spokane Wa 
connected to the free wifi broadband
and there are briefcase-sized batt`s to keep a walker`s costs down

[EMAIL PROTECTED] http://www.lowes.com/lowes/lkn?action=""


. even when tablets have a cheap screen that can't compete with the sun,
walkables are convenient at libraries
because I can easily touch-type my log 
while jumping between catalog and shelves
-- I've already made one for my axim and it`s plug-in keyboard:
I added straps and drawstrings to the 
clamshell of a spent palm keyboard .
-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/
"(real opportunity starts with real documentation)

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-05 Thread adDoc&#x27;s networker Phil
On 10/4/05, Cameron Laird <[EMAIL PROTECTED]> wrote:
  Python IS "a dot net language" http://ironpython.com/ >.

. that is the site it was born at;
but microsoft has actively adopted it here:

IronPython 0.9.2 (9/22/2005)
[EMAIL PROTECTED]
http://www.microsoft.com/downloads/details.aspx?FamilyID=2C649E9E-CF43-41E0-9E22-6E6438924CAA&displaylang=en#additionalInfo


Overview
IronPython is the codename for an alpha release 
of the Python programming language for the .NET platform.
It supports an interactive interpreter with fully dynamic compilation
. It is well integrated with the rest of the framework 
and makes all .NET libraries easily available to Python programmers.

. the active dev site
[EMAIL PROTECTED] http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742

. the IronPython mailing list
[EMAIL PROTECTED] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-10 Thread adDoc&#x27;s networker Phil
experimental Python-to-C++ compiler.why that instead of Pypy?

. pypy compiles to llvm (low-level virtual machine) bytecode
which is obviously not as fast as the native code coming from c++ compilers;
 but the primary mission of pypy 
is just having a python system that is 
written in something like python rather than c or c++
. there is no reason why the pypy project can't have a .NET architecture 
instead of the java-like arrangement I assume it has now
. without such a pypy.NET system,
 shedskin is offering a service that pypy can't yet provide:
a ( python -> c++ )-conversion allows me to 
smoothly integrate python contributions 
with my already-staggering c++ library
. I'm not suggesting that pypy should be another
Mono rewritten in python,
because the essential mission of the .NET architecture 
is being able to compile 
any language of the user`s choice,
to some intermediate language designed to be 
far more efficiently compiled to 
any machine language of the user`s choice
than any human-readable language such as c++ 
. perhaps llvm bytecode can serve as such an intermediate language?
then llvm could be the new c++ (our defacto IL (intermediate language))
and shedskin (python -> IL=c++) could then be replaced by 
the combination of pypy (python -> IL=llvm)
and some incentive for all target platforms 
to develope a highly optimized 
( llvm -> native code)-compiler 
-- assuming also, that there is available 
a highly optimized ( c++ -> llvm bytecode )-compiler .

-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

tutorials / text or web processing (Re: learning python)

2005-09-06 Thread adDoc&#x27;s networker Phil

. need specifics on text or web processing?
dozens of tutors.py sorted by subtopic
   http://www.awaretek.com/tutorials.html

    Table of Contents [rearranged]

[ beginner`s applications ]:
*Text and String Processing (3)*
. *Unicode (4)*
*Regular Expressions(5)*
*HTML and XML (14)*
*Internet: Network and Web Programming (6)*



[ beginner`s applications ]:
*Text and String Processing (3)*

Text Processing in Python
 http://gnosis.cx/TPiP/
"(
. For an introduction to Python syntax and semantics per se,
  readers might want to skip ahead to
Appendix A (A Selective and Impressionistic Short Review of Python);
http://gnosis.cx/TPiP/appendix_a.txt

 Guido van Rossum's _Python Tutorial is also quite excellent.
http://python.org/doc/current/tut/tut.html

CHAPTER I -- PYTHON BASICS http://gnosis.cx/TPiP/chap1.txt
  This chapter discusses Python capabilities that are likely to
  be used in text processing applications
 The focus here occupies a somewhat higher level:
  not the Python language narrowly,
  but also not yet specific to  text processing.
)-by David Mertz


Learn to Program Using Python: Strings

from Developer.Com

String Manipulation with Python

from DevShed


*Unicode (4)*
. Secrets 

. Tutorial

. py4fun

. UTF-8 





*Regular Expressions(5)*

Using Regular Expressions for Lexical Analysis

by Fredril Lundh

Tutorial on Python and Regular Expressions

by David Mertz

NLTK Tutorial on Python and Regular Expressions


Cameron Laird's personal notes on "Regular Expressions"





*HTML and XML (14)*

Python and HTML Processing 


Using Python to Generate HTML Pages


Developing Responsive GUI Applications Using HTML and HTTP

a pdf file from PyCon2005

Python and XML by Uche Ogbuji (excellent!)
.  How-to 

.  Akara site

from O'Reilly

Practical Python XML and DOM

by Andrew Cooke

Python and XML Tutorial
 from O'Reilly

Using XML-RPC

from Dalke Scientific

Tutorial on ElemenTree
by
David Mertz

The cElementTree Module
 an
effbot guide by Fredrik Lundh

HTMLgen 

from the Starship

Python XML How-To


Python and XML: An Introduction


HTML Template





*Internet: Network and Web Programming (6)*


Socket Programming Tutorial

by Gordon McMillan

Packet Wizardry: Ruling the Network with Python


lingmail Python Binding for Google's GMail service

[ -- . need a gmail acct? ask dr.addn]

Web Programming with Python 

by Guido von Rossum

Python Web Services Articles

from IBM DeveloperWorks added November 26, 2004

RSS Programming with Python

Content Syndication

Screen Scraping

from Dalke Scientific

Web Scraping with Python 
Part I 

 Part II
 
from AkaSig
-- American Dream Documentshttp://www.geocities.com/amerdreamdocs/home/"(real opportunity starts with real documentation)
-- 
http://mail.python.org/mailman/listinfo/python-list

tutorials/basic (Re: learning python)

2005-09-06 Thread adDoc&#x27;s networker Phil

. on-line tutorials?
hundreds of e-books sorted by subtopic
   http://www.awaretek.com/tutorials.html
--  Python Newbies should visit our Python411 Podcast Series Page
 
-- Python for Mobile Devices



    Table of Contents [rearranged]


*Beginners (12+) [and the *Grimoire*
-- How to Perform Common Programming Tasks]
*Testing, Test Driven Programming and Unit Test (3)*

[ beginner`s topic#1: platform choice ]:
*Editors and IDE's (7)*
*Jython (8)* [python -> bytecode for java`s virtual machine]
*Mac and Apple (13)*

*Reference (10)*







*Beginners (12+) [and the *Grimoire*
-- How to Perform Common Programming Tasks]


Python Grimoire
 
The Grimoire is different and deserves a category unto itself
. It is a book of magic spells and incantations,
 or How to Perform Common Programming Tasks in Python.


Alan Gauld's "Learning to Program"

Start here if you a complete newbie to programming

Joe Useless Writes a Program

It doesn't get any easier than this ;-)))

Batteries Included
 
Useless Python's Short Tutorial on Modules


Josh Cogliatti's Tutorial 

A great tutorial for newbie's to start with!

What to do on day one
 using the built-in IDLE IDE 

including translations into several languages

The What, Why, Who, and Where of Python

by Aaron Watters

Python, Anyone? 

by Robert Richardson

Python for Newbies

David Borowitz

General Python Tutorial from TechWarehouse
 by David Mertz

Python 101 -- Beginning Python by Dave Kuhlman



Python for Fun
 
an Exellent collection of small Python programs for learning

HowTo: Python Programming in Gnumeric


Python Imaging Handbook and Tutorial

PIL Handbook from PythonWare

PyMedia Tutorial
 
PyMedia is a module for manipulating
 wav, mp3, ogg, avi, divx, dvd, cdda and etc. files

Date and Time Usage for Python


Scripting OpenOffice with Python


MozPython, Python for Mozilla


GraphPath for analysing graph-structured data,especially RDF 


Sorting with Python
 
by Andrew Dalke

Algorithm Education Using Python





*Testing, Test Driven Programming and Unit Test (3)*

De-Bugging Python, a Tutorial


Test Driven Development in Python

a Tutorial from O'Reilly's OnLamp Python Development Center added
December 7, 2004

Agile Testing

Articles and Tutorials





*Editors and IDE's (7)*

Eclipse Integratuion: Using Eclipse as an Editor for Python


Python Development with Eclipse and Ant

from IBM DeveloperWorks, an excellent tutorial added December 7, 2004

Python Development with Eclipse

a good tutorial with helpful screenshots

SPE Tutorial 

a Tutorial about SPE, an IDE for Python added December 7, 2004

Tutorial about IDLE


Python and Emacs 


Leo Tutorials 






 *Jython (8)* [python -> bytecode for java`s virtual machine]


Jython Tutorials, Parts One and Two
 
 scroll down to click on pdf files:
 Excellent! --added October 31, 2004

Advanced Server side Programming in Jython


Jython Tutorial Examples


Writing Threaded Applications in Jython


Jython and Swing