From Jack.Jansen@cwi.nl Mon Jun 3 12:24:30 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 03 Jun 1996 13:24:30 +0200 Subject: [PYTHONMAC-SIG] New 68K distribution available Message-ID: <9606031124.AA20480=jack@schelvis.cwi.nl> I found (and fixed) the bug that stopped Tk from working on the 68K. A new distribution is located in . The app also includes the img modules (which were inadvertantly left out). I've also put a 68K interpreter there that has no Tk support (and, hence, a much smaller memory footprint). -- 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 ================= From Michael.Papathomas@imag.fr Mon Jun 3 12:54:30 1996 From: Michael.Papathomas@imag.fr (Michael Papathomas) Date: Mon, 3 Jun 1996 13:54:30 +0200 Subject: [PYTHONMAC-SIG] New 68K distribution available In-Reply-To: <9606031124.AA20480=jack@schelvis.cwi.nl> (message from Jack Jansen on Mon, 03 Jun 1996 13:24:30 +0200) Message-ID: <199606031154.NAA15040@fidji.imag.fr> > Organisation: Multi-media group, CWI, Kruislaan 413, Amsterdam > Phone: +31 20 5924098(work), +31 20 5924199 (fax), +31 20 6160335(home) > X-Last-Band-Seen: Rancid (Melkweg, 17-5) > X-Mini-Review: Slow starters, but later on they -rocked-! > Date: Mon, 03 Jun 1996 13:24:30 +0200 > From: Jack Jansen > Precedence: bulk > > I found (and fixed) the bug that stopped Tk from working on the 68K. A > new distribution is located in > . The app also includes the img > modules (which were inadvertantly left out). > > I've also put a 68K interpreter there that has no Tk support (and, > hence, a much smaller memory footprint). Hello, In fact is there any thread support for Macintoshes? If not, would this very hard to provide? It's something I'm very interersted in, unfortunately I don't have the right tools on the mac... Michael ================= 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 Mon Jun 3 14:56:46 1996 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 03 Jun 1996 15:56:46 +0200 Subject: [PYTHONMAC-SIG] New 68K distribution available In-Reply-To: Message by Michael Papathomas , Mon, 3 Jun 1996 13:54:30 +0200 , <199606031154.NAA15040@fidji.imag.fr> Message-ID: <9606031356.AA21267=jack@schelvis.cwi.nl> Thread support should be doable now that Python uses GUSI for its I/O, since it is now (at least theoretically) possible to switch threads upon i/o. However, someone will have to look into how much work it would be to integrate the mac thread support in Python. -- 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 ================= From billpy@mousa.demon.co.uk Tue Jun 18 12:47:23 1996 From: billpy@mousa.demon.co.uk (billpy@mousa.demon.co.uk) Date: Tue, 18 Jun 1996 07:47:23 -0400 (EDT) Subject: No subject Message-ID: Reply - To: Date: Tue, 18 Jun 1996 12:25:13 +0000 To: pythonmac-sig@python.org From: Bill Bedford Subject: New Files Please.......... How do I make a new text file? makefile isn't in the __builtins__ ----------------------------------------------------------------------- Bill Bedford Designer of Photo-Etches billb@mousa.demon.co.uk owner Brit_Rail-L --- british railways historical list ----------------------------------------------------------------------- ================= 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 Wed Jun 19 05:26:10 1996 From: guido@CNRI.Reston.Va.US (Guido van Rossum) Date: Wed, 19 Jun 1996 00:26:10 -0400 Subject: [PYTHONMAC-SIG] Brotherly pride Message-ID: <199606190426.AAA16470@monty> My brother sent me a cool program that he wrote for his own education: a visual browser for all Python's internal data structures (to the extent they are accessible to a python program). It only runs on the Mac, hence my announcement in this forum. Its use is completely intuitive, if you know how to use a Mac. Availability: On ftp.python.org in /pub/python/contrib/Misc/, files PythonBrowse.py and PythonBrowser.py.rsrc.hqx. The latter is a binhexed resource file that the program requires. If you'd like to learn about Python on the Mac but don't know where to start, this program gives you a way to explore Python's internals in a familiar way -- way cool! --Guido van Rossum ================= 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 Wed Jun 19 21:53:24 1996 From: billpy@mousa.demon.co.uk (billpy@mousa.demon.co.uk) Date: Wed, 19 Jun 1996 16:53:24 -0400 (EDT) Subject: No subject Message-ID: Reply - To: Date: Wed, 19 Jun 1996 15:56:25 +0000 To: pythonmac-sig@python.org From: Bill Bedford Subject: [PYTHONMAC-SIG] Illustrator module I've just complete a first attempt at a module that writes Adobe Illustrator 3 files. It is limited in that it will only draw lines and place imported files, which is about all I need at the moment. It also needs some work on defining some fields in the header, particularly the ones that define colours and page size. If anyone would like to see it and willing to offer constructive criticisms, let me know and I'll mail you a copy. You will need Illustrator or Freehand to read the file. ----------------------------------------------------------------------- Bill Bedford Designer of Photo-Etches billb@mousa.demon.co.uk owner Brit_Rail-L --- british railways historical list ----------------------------------------------------------------------- ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From friedric@phoenix.net Thu Jun 20 03:50:54 1996 From: friedric@phoenix.net (Robin Friedrich) Date: Wed, 19 Jun 1996 21:50:54 -0500 Subject: [PYTHONMAC-SIG] Mac open() Message-ID: <31C8BC8E.7A7B@phoenix.net> This is really bugging me. On my mac, I can't seem to use the open() function for files in subfolders. I'm using the right separator etc. But it insists on failing to find the file. I'm using the 1.3 PowerPC version. Any idea's? This may relate to the faulty rename builtin function. >>> s = open('data:DoI.txt') Traceback (innermost last): File "", line 1, in ? IOError: (-43, 'File not found') >>> os.listdir('data') ['DoI.txt', 'parrot'] >>> f = open('data:a','w') Traceback (innermost last): File "", line 1, in ? IOError: (-43, 'File not found') ================= 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 Jun 20 04:13:51 1996 From: guido@CNRI.Reston.Va.US (Guido van Rossum) Date: Wed, 19 Jun 1996 23:13:51 -0400 Subject: [PYTHONMAC-SIG] Mac open() In-Reply-To: Your message of "Wed, 19 Jun 1996 21:50:54 CDT." <31C8BC8E.7A7B@phoenix.net> References: <31C8BC8E.7A7B@phoenix.net> Message-ID: <199606200313.XAA27097@monty> > This is really bugging me. > On my mac, I can't seem to use the open() function for > files in subfolders. I'm using the right separator etc. > But it insists on failing to find the file. I'm using > the 1.3 PowerPC version. Any idea's? This may relate > to the faulty rename builtin function. > > >>> s = open('data:DoI.txt') > Traceback (innermost last): > File "", line 1, in ? > IOError: (-43, 'File not found') > >>> os.listdir('data') > ['DoI.txt', 'parrot'] > >>> f = open('data:a','w') > Traceback (innermost last): > File "", line 1, in ? > IOError: (-43, 'File not found') I bet it's the Mac pathname syntax. If a pathname contains a colon, it's *relative* when it starts with a colon, it's *absolute* when it doesn't (when it contains no colon at all, it's always relative). A pathname of the form HD:dir:subdir:file is an absolute pathname, on volume "HD", folder "dir", subfilder "subdir", file "file". A pathname of the form ":subdir:file" is a relative pathname, in the current directory, subdirectory "subdir", file "file". --Guido van Rossum ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From friedric@rose.rsoc.rockwell.com Fri Jun 21 14:18:30 1996 From: friedric@rose.rsoc.rockwell.com (Robin Friedrich) Date: Fri, 21 Jun 1996 08:18:30 -0500 Subject: [PYTHONMAC-SIG] Mac open() Message-ID: <199606211318.IAA25926@darwin.rsoc.rockwell.com> |> I bet it's the Mac pathname syntax. If a pathname contains a colon, |> it's *relative* when it starts with a colon, it's *absolute* when |> it doesn't (when it contains no colon at all, it's always relative). |> |> A pathname of the form HD:dir:subdir:file is an absolute pathname, |> on volume "HD", folder "dir", subfilder "subdir", file "file". |> |> A pathname of the form ":subdir:file" is a relative pathname, |> in the current directory, subdirectory "subdir", file "file". |> |> --Guido van Rossum Thanks for the insights everyone. I wanted to make my test scripts as portable as possible to the Mac so I whipped out this little routine. Seems to work fine. Maybe others may find it useful or suggest improvements? def mpath(path): """Converts a POSIX path to an equivalent Macintosh path Won't work for '../../style/paths'. I'm not sure the Mac has such a concept.""" import os, string if os.name == 'mac' : #I'm on a Mac if path[:3] == '../': mp = '::' path = path[3:] elif path[:2] == './': mp = ':' path = path[2:] elif path[0] == '/': mp = '' path = path[1:] else: mp = ':' pl = string.split(path, '/') mp = mp + string.join(pl, ':') return mp else: return path ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From sdm7g@virginia.edu Fri Jun 21 19:08:29 1996 From: sdm7g@virginia.edu (Steven D. Majewski) Date: Fri, 21 Jun 1996 14:08:29 -0400 (EDT) Subject: [PYTHONMAC-SIG] chdir(), listdir() on other volumes [was Mac Open] In-Reply-To: <199606211318.IAA25926@darwin.rsoc.rockwell.com> Message-ID: While we're on the subject, Yet Another Mac pathname gotcha : I was going crazy trying to chdir() onto another volume, with no luck. I was about to finally decide that it *wasn't* a pathname syntax problem, but a bug in the Python code, when I noted that getbootvol() returns the name with a *TRAILING* ":" -- which is not how the volumes are displayed when you chdir all the way to the root and do a listdir(). I tried "chdir( d + ":" ) and it finally worked. :-0 (silent howl!) Do any of the macpath function make any of this smoother, or do we need to add some sort of pathname regularized function ? ---| Steven D. Majewski (804-982-0831) |--- ---| Computer Systems Engineer University of Virginia |--- ---| Department of Molecular Physiology and Biological Physics |--- ---| Box 449 Health Science Center Charlottesville,VA 22908 |--- [ "The grass is always greener, except at t=0" - Stan Kelly-Bootle ] ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org ================= From dave@zeus.hud.ac.uk Thu Jun 27 09:37:07 1996 From: dave@zeus.hud.ac.uk (Dave Dench) Date: Thu, 27 Jun 96 08:37:07 BST Subject: [PYTHONMAC-SIG] Tk on Mac Message-ID: <9606270737.AA15758@zeus.hud.ac.uk> Dear All, This may be a case of look in the documentation .... I have just downloaded the 'big' binary for 68xxx Macs, and installed it. The test suite works fine. Some of the Tk examples work fine, but others fire up the python window, then hang ( needing a reboot ). Is this a case of trying to run a PPC demo on 68000 ? Also how do you get out of the echo demo ? Thanks David ________________________________________________________________________________ ************************************************ * David Dench * * The University of Huddersfield , UK * * Tel: 01484 472083 * * email: dave@zeus.hud.ac.uk * ************************************************ ________________________________________________________________________________ ================= PYTHONMAC-SIG - SIG on Python for the Apple Macintosh send messages to: pythonmac-sig@python.org administrivia to: pythonmac-sig-request@python.org =================