[Tutor] "words", tags, "nonwords" in xml/text files

2006-05-24 Thread rio
I'm developing an application to do interlineal (an extreme type of literal) translations of natural language texts and xml. Here's an example of a text: '''Para eso son los amigos. Para celebrar las gracias del otro.''' and the expected translation with all of the original tags, whitespace, etc

[Tutor] software carpentry

2006-02-25 Thread rio
I set out to learn programming with a single practical task in mind, a cross-platform literal translation tool. I've included more detail below for those who are curious. Not terribly fond of programming, I initially hoped for an easy out, that I could find some existing code to modify to my needs

[Tutor] idle shell command recall

2005-11-02 Thread rio
is there any way from the idle shell to recall the last line(s) of code entered like or does for DOS prompt or BASH? brian __ Find your next car at http://autos.yahoo.ca ___

Re: [Tutor] while/if/elif/else loops

2005-11-02 Thread rio
i too am a newbie to programming (except BASIC over 20 years ago!). randrange() didnt seem to be in the random module (pyth2.4.2) random() IS but it doesn;t seem to take arguments. it returns a float between 0.0 and 0., so random.random()*2 means half will be (0.0-0.9) & half (1.0-1.9