From just@knoware.nl Sun Nov 2 21:47:31 1997 From: just@knoware.nl (Just van Rossum) Date: Sun, 2 Nov 1997 22:47:31 +0100 Subject: [PYTHONMAC-SIG] AnNoUnCe MacPython IDE 0.9a6 Message-ID: Hi folks, Time for the Second Release. What's new: - a very cool debugger - a Scripts menu, representing the contents of a folder - a completely rewritten object browser - a "post mortem" option in traceback window - it's packaged as a self contained applet - a manual - lots of little things that I am already so much used to that I can't seem to remember them all Go straight to http://starship.skyport.net/~just/ and check it out! Just _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From wtbridgman@radix.net Tue Nov 4 03:03:54 1997 From: wtbridgman@radix.net (W.T. Bridgman) Date: Mon, 3 Nov 1997 22:03:54 -0500 Subject: [PYTHONMAC-SIG] MacPython v1.5a4 / NumPy bugs? Message-ID: Since Jack is out of town most of this month, let me send this to the list... I've just installed v1.5a4 on a 7300/200 running OS8. Most of the installation seems to function but NumPy is having problems. I initially had path problems but they seem to be fixed (I do still have the 1.4 version in a separate directory). import test.autotest seems to have function as described in the README file. The general testall.py routine generates a number of problems which I have been unable to redirect to a file for study. The test_all.py program fails early on with an error (text below). I even get errors with commands as simple as import RandomArray. Here's a sample from test_all.py: >array([1, 2, 3]) >array([ 1. , 2.3, 4. ]) >array([ 1.+0.j, 0.+2.j, 3.+0.j]) >array([ 1., 2., 3.],'f') >array([[ 1, 2], > [11, 12]]) >(2, 0) >zeros((0,), 'l') >array([[0, 0, 0], > [0, 0, 0]]) >array([[1, 1, 1], > [1, 1, 1]],'s') >array([0, 2, 4, 6]) >array([ 0. , 0.5, 1. ]) >array([1, 2, 3],'b') >array([2, 3, 4]) >array([5, 4, 3, 2, 1, 0]) >3 >array([ 2, 12]) >array([3, 2, 1, 2, 3]) >array([[ 3, 3, 2, 2], > [13, 13, 12, 12]]) >array([[ 1, 2], > [ 3, 11], > [12, 13]]) >array([[0, 1, 2], > [3, 4, 5]]) >: total size of new array must be unchanged > >72 53 : total size of new array must be >unchanged ValueError: total size of new array must be unchanged >Traceback (innermost last): > File "Macintosh HD:Development:Python v1.5:Python >1.5a4:Extensions:NumPy:test:test_all.py", line 53, in ? > test_lines(fp.readlines()) > File "Macintosh HD:Development:Python v1.5:Python >1.5a4:Extensions:NumPy:test:test_all.py", line 26, in test_lines > raise ValueError, "%s doesn't match expected %s" % (last_out, line[1:-1]) >ValueError: : total size of new array must be >unchanged doesn't match expected ValueError: total size of new array must >be unchanged and here's a simple method of inducing problems: >Python 1.5a4 (#21, Oct 10 1997, 15:40:54) [CW PPC w/GUSI w/MSL] >Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>>> import RandomArray >Traceback (innermost last): > File "", line 1, in ? > File "Macintosh HD:Development:Python v1.5:Python >1.5a4:Extensions:NumPy:NumPy:RandomArray.py", line 12, in ? > seed() > File "Macintosh HD:Development:Python v1.5:Python >1.5a4:Extensions:NumPy:NumPy:RandomArray.py", line 8, in seed > x = int(t) >OverflowError: float too large to convert >>>> The paths look okay. It's obviously finding the libraries in the right place but then it chokes. Any suggestions? Thanks, Tom Tom Bridgman, Ph.D. wtbridgman@radix.net Physics & Astronomy _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From managan@llnl.gov Tue Nov 4 17:35:47 1997 From: managan@llnl.gov (Rob Managan) Date: Tue, 4 Nov 1997 09:35:47 -0800 Subject: [PYTHONMAC-SIG] MacPython v1.5a4 / NumPy bugs? In-Reply-To: Message-ID: Tom Bridgman wrote: >Since Jack is out of town most of this month, let me send this to the list... >.... >>: total size of new array must be unchanged >> >>72 53 : total size of new array must be >>unchanged ValueError: total size of new array must be unchanged >>Traceback (innermost last): >> File "Macintosh HD:Development:Python v1.5:Python >>1.5a4:Extensions:NumPy:test:test_all.py", line 53, in ? >> test_lines(fp.readlines()) >> File "Macintosh HD:Development:Python v1.5:Python >>1.5a4:Extensions:NumPy:test:test_all.py", line 26, in test_lines >> raise ValueError, "%s doesn't match expected %s" % (last_out, line[1:-1]) >>ValueError: : total size of new array must be >>unchanged doesn't match expected ValueError: total size of new array must >>be unchanged I have confirmed this error. It also occurs in 1.5a3 with which Jack included a compiled Numpy. This looks to me to be simply a change in how exceptions are returned. The test code expected a certain error and the format of the returned error string changed so it bombs out. It appears that the change is in the string "". I also confirmed the error with RandomArray. This comes from converting a float that is larger than a signed integer can hold. Must be that 1.4 used an unsigned int in this case?? This definition of seed() in RandomArray seems to work. def seed(x=0,y=0): if x == y == 0: import time t = time.time() x = long(t) y = long((t-long(t))*1000000) ranlib.set_seeds(x,y) *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- Rob Managan mailto://managan@llnl.gov LLNL ph: 510-423-0903 P.O. Box 808, L-183 FAX: 510-423-5804 Livermore, CA 94551-0808 _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From FoulCraven@aol.com Sun Nov 9 14:23:41 1997 From: FoulCraven@aol.com (FoulCraven@aol.com) Date: Sun, 9 Nov 1997 09:23:41 -0500 (EST) Subject: [PYTHONMAC-SIG] Eliminating console window on launch of applets Message-ID: <971109092340_-1306712109@mrin46.mail.aol.com> This may be a silly question, and I have not been able to find any related postings in the archive, but is there any way to prevent the console window from appearing when launching a Python applet made with 'mkapplet'? If that is not possible, is there a way to remove it shortly after launch? I'd like some of the little utilities I've written to run more invisibly. Any help would be greatly appreciated. Thanks, Dave _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From just@knoware.nl Sun Nov 9 19:39:03 1997 From: just@knoware.nl (Just van Rossum) Date: Sun, 9 Nov 1997 20:39:03 +0100 Subject: [PYTHONMAC-SIG] Eliminating console window on launch of applets In-Reply-To: <971109092340_-1306712109@mrin46.mail.aol.com> Message-ID: At 9:23 AM -0500 11/9/97, FoulCraven@aol.com wrote: >This may be a silly question, and I have not been able to find >any related postings in the archive, but is there any way to >prevent the console window from appearing when launching >a Python applet made with 'mkapplet'? If that is not possible, >is there a way to remove it shortly after launch? There is an option when dropping an applet onto EditPythonPrefs that says "delay console window until needed", but... it doesn't work. It's fixed since 1.5a3. Just _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From jstrout@ucsd.edu Mon Nov 10 17:17:09 1997 From: jstrout@ucsd.edu (Joseph J. Strout) Date: Mon, 10 Nov 1997 09:17:09 -0800 Subject: [PYTHONMAC-SIG] need socket error codes Message-ID: I'm trying to get Sam Rushing's "asyncore" module to work under MacOS. It looks like it just needs some constants, since on the following code... --- import os if os.name == 'nt': EWOULDBLOCK = 10035 EINPROGRESS = 10036 EALREADY = 10037 ECONNRESET = 10054 ENOTCONN = 10057 else: from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET,ENOTCONN --- we get an "ImportError: No module named errno". Apparently WinNT doesn't have an "errno" module either, so Sam has hardcoded some constants; we need only to do the same for MacOS. But I've poked around in the socket module and can't seem to find any such constants. Can anyone help me out here? Many thanks, -- Joe ,------------------------------------------------------------------. | Joseph J. Strout Department of Neuroscience, UCSD | | jstrout@ucsd.edu http://www-acs.ucsd.edu/~jstrout/ | `------------------------------------------------------------------' [ Help stop spam: http://www.imc.org/ube-sol.html ] _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From chase@iac.net Mon Nov 10 21:48:57 1997 From: chase@iac.net (Tim Chase) Date: Mon, 10 Nov 1997 16:48:57 -0500 (EST) Subject: [PYTHONMAC-SIG] need socket error codes In-Reply-To: Message-ID: On Mon, 10 Nov 1997, Joseph J. Strout wrote: > I'm trying to get Sam Rushing's "asyncore" module to work under MacOS. It > looks like it just needs some constants, since on the following code... > > --- > import os > if os.name == 'nt': > EWOULDBLOCK = 10035 > EINPROGRESS = 10036 > EALREADY = 10037 > ECONNRESET = 10054 > ENOTCONN = 10057 > else: > from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, > ECONNRESET,ENOTCONN > --- > > we get an "ImportError: No module named errno". Apparently WinNT doesn't > ... I am sure that this is not a good thing to do. But, I have gotten monitor.py to work by changing if os.name == 'nt': to if os.name == 'nt' or 'mac': I haven't used many of the other modules, but monitor.py seemed to work fine. --Tim Timothy S. Chase CHASE@IAC.NET First Assistant, Computer Services The Public Library of Cincinnati and Hamilton County _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From billpy@mousa.demon.co.uk Tue Nov 11 01:08:26 1997 From: billpy@mousa.demon.co.uk (Bill Bedford) Date: Tue, 11 Nov 1997 01:08:26 +0000 Subject: [PYTHONMAC-SIG] need socket error codes In-Reply-To: Message-ID: At 5:17 pm +0000 10/11/97, Joseph J. Strout wrote: ~I'm trying to get Sam Rushing's "asyncore" module to work under MacOS. It ~looks like it just needs some constants, since on the following code... ~ ~--- ~import os ~if os.name == 'nt': ~ EWOULDBLOCK = 10035 ~ EINPROGRESS = 10036 ~ EALREADY = 10037 ~ ECONNRESET = 10054 ~ ENOTCONN = 10057 ~else: ~ from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ~ECONNRESET,ENOTCONN ~--- ~ ~we get an "ImportError: No module named errno". Apparently WinNT doesn't ~have an "errno" module either, so Sam has hardcoded some constants; we need ~only to do the same for MacOS. But I've poked around in the socket module ~and can't seem to find any such constants. Can anyone help me out here? ~ All these except EWOULDBLOCK are in macerrors.py. You can check them in errors.txt in Mac-->scripts to see what is available and their values. _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From tcsender@get-more-hits.com Tue Nov 11 11:32:06 1997 From: tcsender@get-more-hits.com (tcsender@get-more-hits.com) Date: Tue, 11 Nov 97 06:32:06 EST Subject: [PYTHONMAC-SIG] Put Your Site at the TOP of the Search Engines ! Message-ID: <199711111137.GAA07282@python.org> Dear Friend and Fellow Entrepreneur, Thanks for signing up with Direct Delivery! You only get one chance to act. DISCOVER The Most Powerful & PROVEN Strategies that Really Work To Place You At The Top of the Search Engines! If you have a web page, or site, that can't be found at the top of the search engines, then this will be the most important information you will ever read. You are about to Discover the most Powerful Strategies used only by the very best on the Web... strategies so Powerful that once used will place your Web Page or site at the TOP 10 - 20 search engine listings! These TOP SECRET strategies will provide you with a cutting edge advantage over your competition and give you the long awaited results you have been looking for. Just imagine opening a Floodgate of People into your Home Page because you have the right information. It doesn't matter if you have one page or 1000 pages--you can achieve a top rating with this powerful information and soon squash your competition! This 25 page in-depth report covers: >Search Engine Tactics your competition doesn't want you to know! >The best kept secrets to getting you a top 10 - 20 listing! The 10 top keywords searched for!· Getting better positioning than your opposition even when they have the same identical keywords! >Proven techniques for selecting the most effective keywords and how to arrange them! >A powerful way to get your listing seen by potential customers, even if they're not looking for you! >A little-known way to get multiple listings for your site in the same search engine! >Proven strategies used to resubmit your page or site and get that top rating even if you have it listed already! >How to get people to go to your site first even if they see your competition! >The most powerful words used to create the best Web Pages! >A Web tool used to market successfully in the Newsgroups! >Five things you should NEVER do! If you aren't at the top of the search engines now... your competition is! It's estimated that over 1000 new Web Pages are coming online every day! Newspapers are reporting over 14,000 new www addresses are being submitted every week. The competition grows every minute! It just makes sense that those who know and apply this information will definitely have the best chance of realizing their dreams of success. This in-depth report is normally US$49.95... However, if you order within the next 10 days... we'll include ABSOLUTELY FREE... OVER 1000 Links where you can advertise your web site FREE and you can have it all for JUST US$19.95! This INVALUABLE information alone is worth the asking price! Don't delay... this Extraordinary and Valuable Information can be yours today for ONLY $19.95 (USA FUNDS). Why Wait... Order Right Now! As an added BONUS, if you respond within 10 days: You'll also receive free tools, images, and tips to help you with Your Web Page construction, including free CGI scripts, buttons, backgrounds, and loads of Jpegs and Gifs, including animated Gifs! Please print, cut, and fill out the following order coupon: ---------------------------------------------------------------------------- ATTN: Please type or print legibly to ensure timely delivery. Name __________________________________________________________ !E-mail Address (Required) __________________________________________________________ Address __________________________________________________________ City ______________________ State ________ Zip ___________ Country______________________ Phone #______________________ $19.95 SEARCH ENGINE SECRETS (US Dollars) $_____ Sales Tax (MA residents 5.00%) $_____ Order Total PAYMENT BY: ___ Personal/Business Check ___ Money Order ___ Cashiers Check-US FUNDS only! PREFERRED FORMAT (Please check one or more of the following): ___ ASCII ___ Word 2.x for Windows ___Word 6.x ___ Word 7.x ___ Zipped >>If you're ordering from outside the USA, only a Money Order in US Dollars will be accepted. No postal delivery is available outside the USA, so you must include your E-mail address accurately and legibly. If you do not currently have an E-mail address, please get permission to use a friend's. << Discount expires 11-21-97. -------------------------------------------------------------------------------------- For fastest service use Cashiers Check or Money Order. Please include your e-mail address for 24 hour order processing. Please allow 2 weeks for processing by regular postal mail. Please make payable to -> EVA, Inc. and send to: EVA, Inc. 43 Riverside Ave. Suite 72 Medford, MA 02155 USA Reminder: Your order must be postmarked by Friday, November 21st in order to receive the bonuses. _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From rcohen@humbug.llnl.gov Tue Nov 11 17:31:06 1997 From: rcohen@humbug.llnl.gov (Ron Cohen) Date: Tue, 11 Nov 1997 09:31:06 -0800 Subject: [PYTHONMAC-SIG] waiting for events? Message-ID: <199711111731.JAA19597@humbug.llnl.gov> If I have python and various other applications open on my Mac, and I execute a loop with printing in Python, I find that Python waits periodically to look for events, like mouse motions. In particular for a simple thing like: for i in range(100): for j in range(50): printj=j print i,printj the execution (printing) slows down and may even come to a hault part way through if I don't do something like wiggle the mouse. The situation is even more dramatic if I click on another application's window to make it active. Can someone explain what is going on and if there is a way to fix this? I am running Python 1.4 on a powerbook 5300, OS 8, but I have observed this with 1.4 running on other macs as well; I have no experience with other versions of Python. Ron Cohen (rcohen@llnl.gov) _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From rcohen@humbug.llnl.gov Tue Nov 11 17:31:06 1997 From: rcohen@humbug.llnl.gov (Ron Cohen) Date: Tue, 11 Nov 1997 09:31:06 -0800 Subject: [PYTHONMAC-SIG] waiting for events? Message-ID: <199711111731.JAA19597@humbug.llnl.gov> If I have python and various other applications open on my Mac, and I execute a loop with printing in Python, I find that Python waits periodically to look for events, like mouse motions. In particular for a simple thing like: for i in range(100): for j in range(50): printj=j print i,printj the execution (printing) slows down and may even come to a hault part way through if I don't do something like wiggle the mouse. The situation is even more dramatic if I click on another application's window to make it active. Can someone explain what is going on and if there is a way to fix this? I am running Python 1.4 on a powerbook 5300, OS 8, but I have observed this with 1.4 running on other macs as well; I have no experience with other versions of Python. Ron Cohen (rcohen@llnl.gov) _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From ognjen@knez.bits.net Wed Nov 12 14:26:25 1997 From: ognjen@knez.bits.net (ognjen) Date: Wed, 12 Nov 1997 15:26:25 +0100 Subject: [PYTHONMAC-SIG] ADPCM Message-ID: <3469BC91.6F2D60F0@knez.bits.net> Hello, P Please, help us with our problem :) !!! We downloaded source code for ADPCM compresser-decompresser. When we compiled him , he didn't work properly (at all ). We need it for PC, to decompress ADPCM G.721 format file to any Windows/W95 readable format for sound files. Can You provide us compiled and tested version and source code of that version, which can do that for us and it isn't sharware or something like that. Please .... Sincerely Yours, Oggy & Zoki _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From Thomas.Tiemann@ipk.fhg.de Mon Nov 17 10:44:04 1997 From: Thomas.Tiemann@ipk.fhg.de (Thomas Tiemann) Date: Mon, 17 Nov 1997 11:44:04 +0100 Subject: [PYTHONMAC-SIG] Python 1.4b3 Message-ID: <34701FF3.C2D@ipk.fhg.de> Hi, i have problems with Python 1.4b3. So if i start EditPythonPrefs, mkapplet or other Mac Python Scripts they don't find any Modules for example Res, Dlg, AE ... Can anybody help me? It is important for me. Thanks Thomas _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From jeff@digicool.com Mon Nov 17 20:43:48 1997 From: jeff@digicool.com (Jeffrey P Shell) Date: Mon, 17 Nov 1997 15:43:48 -0500 Subject: [PYTHONMAC-SIG] maccgi-module-publisher Message-ID: <3470AC70.188E7FD0@digicool.com> I've been wanting to do this for a while, but now I might actually have the time and motivation. It would be a very good thing, I think, to bring Bobo to the Mac. Bobo code is some of the most portable CGI code since the CGI Module publisher takes care of many of the nitty-gritty system interface and publishing details. Bobo would also work well with the Mac since most Mac CGI applications are a long-running process. When the first MacCGI support for MacPython came out, it was stated that an effort would need to be made to make it more coherent with UNIX (like the environment variables for instance). Has there been any effort on this? The CGI Module Publisher can easily convert Mac CGI variables to the more common Unix-ish ones. -- "Green Tony squeeled and I'm off to Galaxy X" .jPS jeff@Digicool.com Digital Creations http://www.digicool.com/ _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From FoulCraven@aol.com Thu Nov 20 14:02:15 1997 From: FoulCraven@aol.com (FoulCraven@aol.com) Date: Thu, 20 Nov 1997 09:02:15 -0500 (EST) Subject: [PYTHONMAC-SIG] MAcPython support video digitizers (AV Macs?) Message-ID: <971120090215_-1667718572@mrin47> Does Python for the Mac provide any support for grabbing video frames on an AV capable Mac? (other than direct calls to calldll...) Thanks, Dave _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From ita.mis@euro.apple.com Thu Nov 20 16:54:40 1997 From: ita.mis@euro.apple.com (Tasselli Marco) Date: Thu, 20 Nov 1997 17:54:40 +0100 Subject: [PYTHONMAC-SIG] CGI return size limit Message-ID: <199711201654.RAA41052@euro.apple.com> Hi all, I'm using Python with success for building CGI scripts on the Mac. I have, however, a problem with the classic >32K size limit when returning big chunks of info. How can I send more than 32K to a browser as a result of a CGI program? Many thanks Tasselli Marco _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From guido@CNRI.Reston.Va.US Thu Nov 20 18:45:56 1997 From: guido@CNRI.Reston.Va.US (Guido van Rossum) Date: Thu, 20 Nov 1997 13:45:56 -0500 Subject: [PYTHONMAC-SIG] CGI return size limit In-Reply-To: Your message of "Thu, 20 Nov 1997 17:54:40 +0100." <199711201654.RAA41052@euro.apple.com> References: <199711201654.RAA41052@euro.apple.com> Message-ID: <199711201845.NAA07090@eric.CNRI.Reston.Va.US> > I'm using Python with success for building CGI scripts on the Mac. > I have, however, a problem with the classic >32K size limit when returning > big chunks of info. > > How can I send more than 32K to a browser as a result of a CGI program? I can't believe that this would be a Python problem (what error message do you get?). You may have to read your HTTP server's documentation. --Guido van Rossum (home page: http://www.python.org/~guido/) _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From schochet@globecomm.net Thu Nov 20 21:08:34 1997 From: schochet@globecomm.net (schochet) Date: Thu, 20 Nov 97 16:08:34 -0500 Subject: [PYTHONMAC-SIG] CGI return size limit Message-ID: <199711202107.QAA28192@ren.globecomm.net> I think the AE interface only lets you send 32k at a time. The sdoc event handler should return the string to WebStar and it will keep the connection open and expect more data to arrive. -Ben S. At 11/20/97 1:45 PM, Guido van Rossum wrote: >> I'm using Python with success for building CGI scripts on the Mac. >> I have, however, a problem with the classic >32K size limit when returning >> big chunks of info. >> >> How can I send more than 32K to a browser as a result of a CGI program? > >I can't believe that this would be a Python problem (what error >message do you get?). You may have to read your HTTP server's >documentation. _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From kantel@mpiwg-berlin.mpg.de Mon Nov 24 15:07:59 1997 From: kantel@mpiwg-berlin.mpg.de (Joerg Kantel) Date: Mon, 24 Nov 1997 15:07:59 +0000 Subject: [PYTHONMAC-SIG] German Umlauts and HTML Message-ID: I have written a little Python-Scripts to generate automatically HTML-pages from a database (FielMaker). But it's a german database and it includes German Umlauts. I wonder if someone has written a modul for converting umlauts to HTML-code. I can wirte it with a lot of if ... then ... else ... code by myself but I think it's more a Job for the grep-module (but I haven't work with grep until now). Thanks for every help (and excuse my poor english). J"org -- ------------------------------------------------------------------------------ J"org Kantel email: kantel@mpiwg-berlin.mpg.de Max Planck Institute for the History of Science phone: +4930-22667-220 Wilhelmstr. 44 fax: +4930-22667-299 D-10117 Berlin http://www.mpiwg-berlin.mpg.de/staff/kantel/kantel.html ---------------------------------------------------------------------------- -- _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From friedrich@pythonpros.com Mon Nov 24 17:43:40 1997 From: friedrich@pythonpros.com (Robin Friedrich) Date: Mon, 24 Nov 1997 11:43:40 -0600 Subject: [PYTHONMAC-SIG] German Umlauts and HTML References: Message-ID: <3479BCCB.948FDA14@pythonpros.com> If speed isn't a big concern you might try this little item... from string import join def latin1_escape(s): sl = map(None, s) for i in range(len(sl)): ordinal = ord(sl[i]) if 160 <= ordinal <= 255: sl[i] = '&#%d;' % ordinal s_html = join(sl, '') return s_html s = 'Some odd text: \321 \352 \361' print s print latin1_escape(s) If you have 1.5 then I can think of a faster implementation. Joerg Kantel wrote: > I have written a little Python-Scripts to generate automatically HTML-pages > from a database (FielMaker). But it's a german database and it includes > German Umlauts. I wonder if someone has written a modul for converting > umlauts to HTML-code. I can wirte it with a lot of if ... then ... else ... > code by myself but I think it's more a Job for the grep-module (but I > haven't work with grep until now). Thanks for every help (and excuse my > poor english). You're welcome (and your English is better than my German;-) > > > J"org -- Robin K. Friedrich Houston, Texas Python Professional Services, Inc. friedrich@pythonpros.com http://www.pythonpros.com _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From wtbridgman@radix.net Sat Nov 29 20:10:49 1997 From: wtbridgman@radix.net (W.T. Bridgman) Date: Sat, 29 Nov 1997 15:10:49 -0500 Subject: [PYTHONMAC-SIG] Status of MacPython 1.5b1? Message-ID: Is the Mac port of the beta 1 release available yets? I've checked at two of the locations for this and have found no Python-sign :^) Thanks, Tom _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________ From Jack.Jansen@cwi.nl Sat Nov 29 22:06:05 1997 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Sat, 29 Nov 1997 23:06:05 +0100 Subject: [PYTHONMAC-SIG] Status of MacPython 1.5b1? In-Reply-To: Message by wtbridgman@radix.net (W.T. Bridgman) , Sat, 29 Nov 1997 15:10:49 -0500 , Message-ID: Recently, wtbridgman@radix.net (W.T. Bridgman) said: > Is the Mac port of the beta 1 release available yets? No, sorry, and it'll be a while longer:-( I've been away for 5 weeks, and on top of that I've spent the last week in bed with 40 degrees fever and some stupid infection (I even had to cancel a pretty important gig with my band:-( ). It appears to be under control (keeping my fingers crossed...) but I have a couple of "real-work" deadlines for the end of the year too, so I'll have to do a bit of scheduling and shuffling before I can give an estimate. It could well be that I could have 1.5b1 out by the end of next week, but it could also take significantly longer. As soon as I have a more firm idea I'll let y'all know, -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++ http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm _______________ PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org _______________