ReleaseForge 0.9.1 - A SourceForge Freshmeat release tool

2005-07-16 Thread [EMAIL PROTECTED]
ReleaseForge 0.9.1 is now available for immediate download at: http://releaseforge.sourceforge.net --- About ReleaseForge 0.9.1: - ReleaseForge now attempts to guess the SourceForge CPU (Processor) type of each file added to a release based

Kamaelia Talk Mini Sprint at Open Tech 2005, London, July 23

2005-07-16 Thread Michael Sparks
Hi, Apologies first to those outside the UK... Open Tech 2005* is a follow on from previous years' NotCon events which are community driven low cost events by geeks developers for geeks developers. (Much like Pycon Europython but much more general in nature) Website:

Re: HTML expect in python

2005-07-16 Thread tertius
WGW wrote: I would like to automate some simple browser navigating using python. Ideally, I would like a package like pyexpect, but that can handle a browser in much the same way as pyexpect handles a terminal (tall order!). In short, I want a macro language for a browser (I know about

Re: Python Programming Contest

2005-07-16 Thread Joseph Garvin
Someone correct me if I'm wrong -- but isn't this the Shortest Path problem? I don't foresee anyone getting a more efficient solution than what they can find in hundreds of algorithms textbooks. If this is indeed the case it should just come down to whoever can pull the narliest tricks to

Re: HTML expect in python

2005-07-16 Thread Michael Hoffman
D H wrote: See the mechanize module: http://wwwsearch.sourceforge.net/mechanize/ I second this, a very useful module. I've unfortunately had to change it a little to deal with inevitably bad HTML supplied by web sites. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Snakespell

2005-07-16 Thread Fuzzyman
[EMAIL PROTECTED] wrote: I used to use Snakespell from scriptfoundry to do spellchecking on my website (www.peterbe.com/search?q=pyton) but now that I've moved server and wiped the old machine I forgot to take with me the Snakespell code. www.scriptfoundry.com where it used to live seems to

Re: Python Programming Contest

2005-07-16 Thread Tom Anderson
On Sat, 16 Jul 2005, Joseph Garvin wrote: Someone correct me if I'm wrong -- but isn't this the Shortest Path problem? Dang! I was just about to point that out. I don't foresee anyone getting a more efficient solution than what they can find in hundreds of algorithms textbooks. If this is

Re: IDLE in Jython

2005-07-16 Thread Fuzzyman
Pippy looks pretty dead. Wasn't someone else working on a Palm port ? Best Regards, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating a list of None

2005-07-16 Thread Raymond Hettinger
[Bengt Richter] how about (untested) def get_options(opts): Return True or False if an option is set or not return [1 for val in vars(opts).values() if val is not None] and True or False While we're tossing around hacks and coding atrocities, we should note that: not not x

Re: Filtering out non-readable characters

2005-07-16 Thread Raymond Hettinger
Wow, that was the most thorough answer to a comp.lang.python question since the Martellibot got busy in the search business. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Newbie

2005-07-16 Thread johng2001
The usual order I recommed is ... http://honors.montana.edu/~jjc/easytut/easytut/ http://www.ibiblio.org/obp/thinkCSpy/ http://docs.python.org/tut/tut.html Ron's list is quite a good place for tutorials http://www.awaretek.com/tutorials.html --

secure uploading

2005-07-16 Thread macaronikazoo
hi i'm after a way to securely upload a file to a web server and I'm wondering how to go about it. basically i want to upload a small text file to my hosted webspace once every hour or so. because it will be happening once an hour, i want to make sure the transaction is encrypted, but i don't

Re: HTML expect in python

2005-07-16 Thread WGW
Thanks for these replies -- looks like I have all I need; now it is just a question of getting my head around the applications and doing some testing... Many thanks for pointers. -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-16 Thread Cantankerous Old Git
[EMAIL PROTECTED] wrote: In general, it is good idea to use expect kind of tool to deal with interactive programs like ssh. You may try using pexpect (http://pexpect.sourceforge.net). I tried tha once (on Solaris) and found that ssh could tell that pexpect wasn't a real tty and refused to

Re: Filtering out non-readable characters

2005-07-16 Thread Peter Hansen
Bengt Richter wrote: identity = ''.join([chr(i) for i in xrange(256)]) unprintable = ''.join([c for c in identity if c not in string.printable]) And note that with Python 2.4, in each case the above square brackets are unnecessary (though harmless), because of the arrival of generator

Re: Python Programming Contest

2005-07-16 Thread George Sakkis
Tom Anderson [EMAIL PROTECTED] wrote: On Sat, 16 Jul 2005, Joseph Garvin wrote: Someone correct me if I'm wrong -- but isn't this the Shortest Path problem? Dang! I was just about to point that out. [snipped] But yes, this is basically about who can write the fastest implementation of

Re: Filtering out non-readable characters

2005-07-16 Thread Steven D'Aprano
On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote: Bengt Richter wrote: identity = ''.join([chr(i) for i in xrange(256)]) unprintable = ''.join([c for c in identity if c not in string.printable]) And note that with Python 2.4, in each case the above square brackets are

Re: problems with python 2.4 help

2005-07-16 Thread gene tani
ipython and pyshell? http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html http://www.wxpython.org/PyManual.html -- http://mail.python.org/mailman/listinfo/python-list

odd python/linux/cherrypy behavior

2005-07-16 Thread Bill Mill
On my laptop, I have an NTFS partition for NT, a FAT partition for data as a dmz which both linux and NT can access, and an ext3 partition for linux. However, I've experienced some weirdness on the FAT partition, and I'm wondering if anybody can tell me why it's happening. Yesterday, I downloaded

python certification

2005-07-16 Thread lordverminard
i want to get a small certificate or diploma in python. it should be online cuz i live in pakistan and wont have teast centers near me. it should be low cost as i am not rich. and hopefully it would be something like a a begginer certification cuz i am new to python. --

Re: secure uploading

2005-07-16 Thread Paul Rubin
macaronikazoo [EMAIL PROTECTED] writes: i'm after a way to securely upload a file to a web server and I'm wondering how to go about it. basically i want to upload a small text file to my hosted webspace once every hour or so. because it will be happening once an hour, i want to make sure the

Parsing html :: output to comma delimited

2005-07-16 Thread samuels
Hello All, I am a total python newbie, and I need help writing a script. This is what I want to do: There is a list of links at http://www.rentalhq.com/fulllist.asp. Each link goes to a page like, http://www.rentalhq.com/store.asp?id=907%2F272%2D4425, that contains a company name, address,

Re: How can I import a py script by its absolute path name?

2005-07-16 Thread Edvard Majakari
J.Bijsterbosch [EMAIL PROTECTED] writes: Hmm, what you call special treatmentg comes from pythons deep underlying C and C++ language heietidge I presume. A backslash in a C or C++ string means the following character is a so called escape character, like \n represents a newline and \r a

Re: Django - Rails killer comes...

2005-07-16 Thread Joseph Chase
I can't wait to try this out. We'll see how it stacks up next to ROR. JZ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.djangoproject.com/ -- JZ -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugger Confusion

2005-07-16 Thread R Toop
By now, you have probably found an IDE that gives you satisfactory debugging. I think your original problem was trying to use an emacs shell (M-x shell) to run Python interpreter. But the emacs Python mode works a whole better than Python in a dumb terminal. Have you tried the following? -- open

Re: Filtering out non-readable characters

2005-07-16 Thread Peter Hansen
Steven D'Aprano wrote: On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote: Bengt Richter wrote: identity = ''.join([chr(i) for i in xrange(256)]) And note that with Python 2.4, in each case the above square brackets are unnecessary (though harmless), because of the arrival of generator

SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-16 Thread John Reese
Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried to use poplib.POP_SSL, with the following results: %python Python 2.4.1 (#1, May 16 2005, 15:19:29)

Re: Generating a list of None

2005-07-16 Thread Bengt Richter
On 16 Jul 2005 02:31:28 -0700, Raymond Hettinger [EMAIL PROTECTED] wrote: [Bengt Richter] how about (untested) def get_options(opts): Return True or False if an option is set or not return [1 for val in vars(opts).values() if val is not None] and True or False While we're

ANN: MyNewspaper-1.0

2005-07-16 Thread IƱigo Serna
Hi there, I'm really pleased to announce the first public release of MyNewspaper. MyNewspaper is a personal RSS Aggregator and Reader, licensed under GPL. Why? As everybody says, I couldn't find any which fulfills all my requirements. In fact I used liferea and was pretty happy with it, but it

Re: Filtering out non-readable characters

2005-07-16 Thread Bengt Richter
On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen [EMAIL PROTECTED] wrote: Bengt Richter wrote: identity = ''.join([chr(i) for i in xrange(256)]) unprintable = ''.join([c for c in identity if c not in string.printable]) And note that with Python 2.4, in each case the above square brackets

Re: Python Programming Contest

2005-07-16 Thread George Sakkis
Terry Reedy [EMAIL PROTECTED] wrote: Tom Anderson [EMAIL PROTECTED] wrote: I can't immediately see any properties of this network that could be exploited, but that doesn't mean there aren't any. No it doesn't. The challenge is to find a property that saves more time, across trials, that

Re: Filtering out non-readable characters

2005-07-16 Thread George Sakkis
Bengt Richter [EMAIL PROTECTED] wrote: identity = ''.join([chr(i) for i in xrange(256)]) unprintable = ''.join([c for c in identity if c not in string.printable]) Or equivalently: identity = string.maketrans('','') unprintable = identity.translate(identity, string.printable) George

Re: Filtering out non-readable characters

2005-07-16 Thread Jp Calderone
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen [EMAIL PROTECTED] wrote: George Sakkis wrote: Bengt Richter [EMAIL PROTECTED] wrote: identity = ''.join([chr(i) for i in xrange(256)]) Or equivalently: identity = string.maketrans('','') Wow! That's handy, not to mention undocumented. (At

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Neil Hodgson
Bill Mill: ... a FAT partition for data as a dmz which both linux and NT can access ... Yesterday, I downloaded the new release of cherrypy, and stuck it on the dmz drive. ... Eventually, after thinking it's a hosts file problem, or a firewall problem, I figure out that if I move it to my

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Bill Mill
On 7/16/05, Neil Hodgson [EMAIL PROTECTED] wrote: Bill Mill: ... a FAT partition for data as a dmz which both linux and NT can access ... Yesterday, I downloaded the new release of cherrypy, and stuck it on the dmz drive. ... Eventually, after thinking it's a hosts file problem, or a

Re: Filtering out non-readable characters

2005-07-16 Thread Peter Hansen
Jp Calderone wrote: On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen [EMAIL PROTECTED] wrote: George Sakkis wrote: identity = string.maketrans('','') Wow! That's handy, not to mention undocumented. (At least in the string module docs.) Where did you learn that, George?

Re: Filtering out non-readable characters

2005-07-16 Thread George Sakkis
Peter Hansen [EMAIL PROTECTED] wrote: Jp Calderone wrote: On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen [EMAIL PROTECTED] wrote: George Sakkis wrote: identity = string.maketrans('','') Wow! That's handy, not to mention undocumented. (At least in the string module docs.) Where

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Neil Hodgson
Bill Mill: Definitely not mounted with short file names, and there aren't any non-ASCIIs in the file names; in both cases I imagine that the file wouldn't run at all. In this case, however, the file does run, and open a socket, it just can't seem to receive connections on it. I have tried

Re: secure uploading

2005-07-16 Thread macaronikazoo
well I want a script to upload something automatically, so i need a python script to do that for me. my hoster has ssl enabled on their server and I have generated a key. but now I need to know how to upload something using ssl to the server. how to I ftp something to the server using ssl?

Re: secure uploading

2005-07-16 Thread Paul Rubin
macaronikazoo [EMAIL PROTECTED] writes: well I want a script to upload something automatically, so i need a python script to do that for me. my hoster has ssl enabled on their server and I have generated a key. but now I need to know how to upload something using ssl to the server. how to I

Re: secure uploading

2005-07-16 Thread macaronikazoo
ok, so what can I do to get something uploaded? how can I upload something via http? -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing html :: output to comma delimited

2005-07-16 Thread Paul McGuire
Pyparsing includes a sample program for extracting URLs from web pages. You should be able to adapt it to this problem. Download pyparsing at http://pyparsing.sourceforge.net -- Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Access VBA

2005-07-16 Thread Johannes Findeisen
On Sun, 2005-07-17 at 01:30 +0200, Johannes Findeisen wrote: My recommendation: Use Python! You will love me in some years because i have said this. When using Access you are binding your application to Microsoft. You need a runtime version of Access when distributing the application to

Re: secure uploading

2005-07-16 Thread Paul Rubin
macaronikazoo [EMAIL PROTECTED] writes: ok, so what can I do to get something uploaded? how can I upload something via http? Depends on your web host. At worst, use a server side script to accept the upload. You're asking basic webmaster-type questions. This really isn't the best place for

Re: secure uploading

2005-07-16 Thread macaronikazoo
oh ok cool. I'll ask them for some advice. thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Bill Mill
On 7/16/05, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill [EMAIL PROTECTED] declaimed the following in comp.lang.python: The FAT dirs are mounted with the following options: defaults,user,umask=000 . I'm not sure what you mean by the execute

Re: Filtering out non-readable characters

2005-07-16 Thread Peter Hansen
George Sakkis wrote: Peter Hansen [EMAIL PROTECTED] wrote: Where did you learn that, George? Actually I first read about this in the Cookbook; there are two or three recipes related to string.translate. As for string.maketrans, it doesn't do anything special for empty string arguments:

Re: What module to use to get a file from a website?

2005-07-16 Thread Jonathan Conrad
from os import system system (start http://www.python.org/;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Filtering out non-readable characters

2005-07-16 Thread George Sakkis
Peter Hansen [EMAIL PROTECTED] wrote: George Sakkis wrote: Peter Hansen [EMAIL PROTECTED] wrote: Where did you learn that, George? Actually I first read about this in the Cookbook; there are two or three recipes related to string.translate. As for string.maketrans, it doesn't do

Re: Filtering out non-readable characters

2005-07-16 Thread Steven D'Aprano
On Sat, 16 Jul 2005 16:42:58 -0400, Peter Hansen wrote: Steven D'Aprano wrote: On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote: Bengt Richter wrote: identity = ''.join([chr(i) for i in xrange(256)]) And note that with Python 2.4, in each case the above square brackets are