Howto: single line webserver

2008-08-07 Thread Martin Bless
If I have the option I choose Python to get things done or gain real understanding. The high quality and stability over time of both the language and the libraries is just amazing. OTH I sometimes really miss little example snippets integrated into the docs right away. I didn't really know what

Re: codec for html/xml entities!?

2008-04-20 Thread Martin Bless
[Stefan Behnel] wrote & schrieb: >Martin Bless wrote: >> What's a good way to encode and decode those entities like € or >> € ? > >Hmm, since you provide code, I'm not quite sure what your actual question is. - What's a GOOD way? - Am I reinventing the whe

codec for html/xml entities!?

2008-04-18 Thread Martin Bless
Hi friends, I've been OFF-Python now for quite a while and am glad being back. At least to some part as work permits. Q: What's a good way to encode and decode those entities like € or € ? I need isolated functions to process lines. Looking at the xml and sgmlib stuff I didn't really get a clue a

control webbrowser remotely?

2005-11-04 Thread Martin Bless
Web browsers like Firefox have really cool abilities nowadays. Objects in the current document can be addressed and manipulated by Javascript. Not very comfortable and not easy to debug. Q: Is there a way to reach objects in the document from Python? That would be cool! Like for instance it's pos

Re: Gordon McMillan installer and Python 2.4

2005-03-03 Thread Martin Bless
On 2 Mar 2005 15:29:21 -0800, [EMAIL PROTECTED] (Svein Brekke) wrote: >Thank you Gordon McMillan for a very nice freeze tool for python. Yes, thanks a lot. >Recently I upgraded to python 2.4, and on my system any .exe file >generated by the installer crashes immediately after startup. Yes, I ca

Can somebody help compiling 'mssqldb.pyd' for Python24 [win]?

2005-02-23 Thread Martin Bless
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html Unfortunately the binary for Python-2.4 isn't available yet and I'd hate to step back to a previous version.

Re: How to write a ping client

2005-02-22 Thread Martin Bless
On 21 Feb 2005 18:35:06 -0800, "Harlin" <[EMAIL PROTECTED]> wrote: >Is there a way to write a ping client? I would like to be able to write >a small ping client so that I dont have to do os.system('ping args') I once followed the same line and used a py module by Jeremy Hylton if I remember corre

Re: Second posting - Howto connect to MsSQL

2005-02-13 Thread Martin Bless
On Sun, 13 Feb 2005 17:57:34 GMT, John Fabiani <[EMAIL PROTECTED]> wrote: >Are there others using Python to connect MsSQL? Hi, direct your attention to http://www.object-craft.com.au/projects/mssql/ I once tried it as a little test - it worked. I would love to use it these days - unfortunately

Re: PythonWin (build 203) for Python 2.3 causes Windows 2000 to grind to a halt?

2005-01-30 Thread Martin Bless
ironment) league. And it's very Python aware and knowledgable ... mb - Martin Bless Here's my script to delete the erroneous debugger entries: Script "delete-debugger-entries,pywin,python24.py" #!/usr/bin/env python # -*- coding: iso-8859-1 -*- """Delete pr

Pyrex-0.9.3: definition mismatch with distutils of Python24

2005-01-13 Thread Martin Bless
, sources, extension): If I just add the "extension" arg to the Pyrex definitions everything seems to work. But I have to admit that I don't really know what I'm doing here and I feel sorry I can't contribute more than just reporting the error. mb - Martin Bless -- http://mail.python.org/mailman/listinfo/python-list

Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-15 Thread Martin Bless
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with itself. Everything you need is available at no costs (except download hassle and installation time). Once your

Re: PEP 338: Executing modules inside packages with '-m'

2004-12-14 Thread Martin Bless
[Nick Coghlan <[EMAIL PROTECTED]>] >Python 2.4's -m command line switch only works for modules directly on >sys.path. On my Windows machine this command line switch really makes my life so much easier. I appreciate -m very much. Going further as proposed in PEP 338 sounds good to me. One thing

How can I change the timestamps of directories? (os.utime(), WinXP)

2004-12-09 Thread Martin Bless
ne via the os-module? Q: Is it possible at all? Somebody knows? Thanks, mb - Martin Bless """ Trying to the timestamps of a directory """ import sys, os, stat, datetime, time today = datetime.datetime.now() pastday = today - datetime.timedelta(days=11) atime = int

MySQLdb binaries for Python 2.4 on Windows?

2004-12-02 Thread Martin Bless
I'd be happy and thankful if somebody could provide the MySQLdb binaries for Windows and Python 2.4. Have a nice day - mb - Martin Bless -- http://mail.python.org/mailman/listinfo/python-list