From amk1 at erols.com Sat May 29 22:34:37 1999 From: amk1 at erols.com (A.M. Kuchling) Date: Sat, 29 May 1999 22:34:37 -0400 Subject: Python 2.0 Message-ID: <199905300234.WAA14276@207-172-52-51.s51.tnt1.brd.va.dialup.rcn.com> Spam detection software, running on the system "albatross.python.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael P. Reilly writes: > There are often better mechanisms in the systems than to use ORBs and > the like. The applications usually use them. It's not that UNIX is > "behind," it's that UNIX apps utilize the system.. just as Windows apps > utilize that system's components (and that the Windows systems isn't as > "open" as UNIX). [...] Content analysis details: (10.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [207.172.52.51 listed in zen.spamhaus.org] 4.4 HELO_DYNAMIC_IPADDR2 Relay HELO'd using suspicious hostname (IP addr 2) 0.5 FH_HELO_EQ_D_D_D_D Helo is d-d-d-d 1.6 TVD_RCVD_IP TVD_RCVD_IP 2.0 FH_DATE_IS_19XX The date is not 19xx. 1.6 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [207.172.52.51 listed in dnsbl.sorbs.net] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS -------------- next part -------------- An embedded message was scrubbed... From: "A.M. Kuchling" Subject: Re: Python 2.0 Date: Sat, 29 May 1999 22:34:37 -0400 Size: 2083 URL: From wtanksle at dolphin.openprojects.net Sat May 15 15:54:38 1999 From: wtanksle at dolphin.openprojects.net (William Tanksley) Date: Sat, 15 May 1999 19:54:38 GMT Subject: python hack of the day -- "listable" functions References: <373c22bf.6287591@news.omnilink.de> <373e4c42.16914501@news.omnilink.de> <7hi1bb$4ne$1@holly.prod.itd.earthlink.net> <373DB6F4.3E64A8A2@home.com> Message-ID: On Sat, 15 May 1999 18:01:10 GMT, Jim Meier wrote: >William Tanksley wrote: >> Now, consider this. >> x = o.verb(a,b,c) >> You've created a language feature where the action of the verb depends not >> on the single object it's attached to, but on EACH of the parts of speech >> in its parameter list. >> After that change, Python wouldn't be object oriented. It'd be grammar >> oriented. >> Let that one sink in for a while. >I think grammar-oriented languages are a very, very interesting idea. I saw a >posting somewhere(freshmeat.net?) about a language whose modules were allowed >to define and maybe redefine syntax. struck me as neat, but to wrap it together >and call it "grammar".. could we "conjugate" verbs for different effect?? wow.. Conjugation isn't an aspect of grammar in general. It's only part of certain languages. Lojban isn't conjugated at all (but then Lojban is an artificial language). >> Ouch. Has anyone done work on how to do that? It's polymorphism, but >> with the action depending on every parameter rather than just one. >How is it different from normal polymorhpism? It's different because normal polymorphism dispatches to only one object. This would be dispatching to several. >The language (if it cares) would >dispatch to the member function whose signature matched the parameters. This is >normal in many OO languages (C++ being the first to come to mind) This is called "overloading", not polymorphism. As a matter of fact, overloading makes OO _very_ difficult, and makes it easy to make bad mistakes which the compiler and runtime can't catch. Overloading looks like multiple dispatch but isn't, just like static binding looks like OO but isn't. >-Jim. -- -William "Billy" Tanksley "But you shall not escape my iambics." -- Gaius Valerius Catullus From mike.steed at natinst.com Fri May 7 12:13:31 1999 From: mike.steed at natinst.com (Mike Steed) Date: Fri, 07 May 1999 09:13:31 -0700 Subject: A Python take on "Programming Web Graphics with Perl and..." References: <3732720F.DCDA68BB@webone.com.au> Message-ID: <3733112B.1D8BBAC6@natinst.com> Stuart Hungerford wrote: > I know there's a Python topic guide for web programming, > but I was wondering if there's an equivalent set of > Python libraries for doing everything the book contains > but with Python? > > In my reading so far, that's: > > - Using GD for generating GIFs http://starship.python.net/crew/richard/gdmodule/ > - PerlMagick for controlling ImageMagick Don't know about this. > - Charts and graphs with GIFgraph Don't know about this. But you might like GDChart: http://www.fred.net/brv/chart/ The C library is in beta. I have written a Python interface to it, which I will make available if there is interest. > - Scripting the Gimp > - Creating Postscript documents via Perl Don't know about these. > > Thanks, Don't know much, Mike. From davis at space.mit.edu Wed May 19 06:47:27 1999 From: davis at space.mit.edu (John E. Davis) Date: 19 May 1999 10:47:27 GMT Subject: my loop is too slow References: Message-ID: On Tue, 11 May 1999 14:24:39 -0600, Tim Hochberg wrote: >FWIW: Taking into account Michael Haggerty's observation on that this is >really a matrixmultiply of (c.f)(c.transpose(f)), I reimplemented the >original loop as: > >from Numeric import * >a = a + dot(c, f) * dot(c, transpose(f)) Are you sure about this? The original code was a[k,i]=a[k,i]+c[k,h]*c[k,j]*f[j,i]*f[i,h] summed over all indices. I would write this as: a_ki = a_ki + c_kh c_kj f_ji f_ih = a_ki + c_kh (c#f)_ki f_ih = a_ki + (c#f)_ki (c#f')_ki where `#' denotes matrix multiplication and ' represents the transpose. So, I would code this as: a = a + (c#f)*(c#f') where `*' represents an element by element multiply and `+' represents an element by element addition. --John From aahz at netcom.com Mon May 10 16:22:53 1999 From: aahz at netcom.com (Aahz Maruch) Date: Mon, 10 May 1999 20:22:53 GMT Subject: while (a=b()) ... References: <3736ED9B.515704AF@starmedia.net> Message-ID: In article , scott cotton wrote: > >while (c=curs.fetchone(); c): > >is not redundant, nor does it have the '=' != '==' problem. What you really want is this: class Foo : .... curs=Foo() while curs.fetchone() : print curs.value() -- --- Aahz (@netcom.com) Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/ Androgynous poly kinky vanilla queer het "In the end, outside of spy agencies, people are far too trusting and willing to help." -- Ira Winkler From Michael.Scharf at kosmos.rhein-neckar.de Thu May 6 21:17:07 1999 From: Michael.Scharf at kosmos.rhein-neckar.de (Michael Scharf) Date: Fri, 07 May 1999 03:17:07 +0200 Subject: Q: How to convert long Win95 paths to 8.3 dos paths? Message-ID: <37323F13.21DEF314@kosmos.rhein-neckar.de> Hello, I am looking for a function, that can convert long NT or Win95 names to 8.3 dos names (the same name that 'dir /x' would show). I could not find anything relevant in the with dejanews nor on the python pages... This would convert C:\Program Files to C:\PROGRA~1 Thank you for your help Michael -- ''''\ Michael Scharf ` c-@@ TakeFive Software ` > http://www.TakeFive.com \_ V mailto:Michael_Scharf at TakeFive.co.at From alex at somewhere.round.here Sun May 9 15:02:26 1999 From: alex at somewhere.round.here (Alex) Date: 09 May 1999 15:02:26 -0400 Subject: help with simple regular expression grouping with re References: <000001be99ea$640811c0$ee9e2299@tim> Message-ID: > The source for findall is in re.py -- it's just a loop written in > Python. You can easily (provided you understand all the pieces > first!) write the same thing yourself. You can also simply get a copy of the new re module and put it somewhere easy to import. I did that for a while, and it worked pretty well. Alex. From jabba at hotmail.com Thu May 6 21:03:03 1999 From: jabba at hotmail.com (jabba at hotmail.com) Date: 7 May 1999 01:03:03 GMT Subject: Found this new amateur site ! Message-ID: <7gte47$25cs277@news.gomontana.com> Hi Newsgroup users ! I stumbled right into this interesting looking new amateur site from europe: http://www.girls-next-door.net They have some free sample pictures and videos. The site has not started yet but looks extremly interesting. I have not seen any of these pictures or movies on the web before. Take a look ! From tseaver at palladion.com Mon May 17 22:33:27 1999 From: tseaver at palladion.com (Tres Seaver) Date: Mon, 17 May 1999 21:33:27 -0500 Subject: Oracle and Unix References: Message-ID: <3740D177.D02A63DE@palladion.com> Alexander Staubo wrote: > > I'm looking for something which would allow me to use Oracle through > Python on a DEC Unix system. > > Assume that no ODBC support is available (we can't afford the OpenLink > stuff, which are insanely, outlandishly expensive; and afaik there are no > alternative, free ODBC solutions that support Oracle). > > I'm not choosy about the interface -- it doesn't need to be DB API- > compliant or anything. Digital Creations (the Zopemeisters) publishes DCOracle, which works nicely for me. http://www.zope.org/Download/DCOracle/ -- ========================================================= Tres Seaver tseaver at palladion.com 713-523-6582 Palladion Software http://www.palladion.com From emile at fenx.com Sun May 16 15:35:08 1999 From: emile at fenx.com (Emile van Sebille) Date: Sun, 16 May 1999 12:35:08 -0700 Subject: How to add a key:datum pair to the dictionary References: <373f0ee9.30600632@news.tpnet.pl> Message-ID: You can use update: >>> a={1:1,2:2} >>> a.update({3:3}) >>> a {3: 3, 2: 2, 1: 1} -- Emile van Sebille emile at fenx.com ------------------- MK wrote in message news:373f0ee9.30600632 at news.tpnet.pl... > Hello everyone, > > I have stumbled across a stupid problem: how to add a pair to > dictionary like > > {'mk': {'repetitions': 20, 'no match': 10}} > > I have not found the method for this anywhere in documentation. > Dictionary is mutable, but neither Library Reference nor Language > Reference give information on how to _add_ something to dictionary. > It seems strange -- I mean, is creating dictionary and then changing > items in it the only possible method of changing dictionary? Can it be > enlarged? > > > > > > > > > MK > > > -------------------------------------------------- > Reality is something that does not disappear after > you cease believing in it - VALIS, Philip K. Dick > -------------------------------------------------- > > Delete _removethis_ from address to email me From alrice at swcp.com Sat May 1 22:41:23 1999 From: alrice at swcp.com (Alex Rice) Date: Sat, 01 May 1999 20:41:23 -0600 Subject: python-mode.el and wxPython app Message-ID: <372BBB53.AA58FF4B@swcp.com> Hi, I'm using python-mode 3.90, Emacs 20.3.1 (win32) and Python 1.5.1 Can't get my GUI app to display when I C-c C-c it from within Emacs. Here is what I am doing: C-c C-! to start Python interpreter buffer C-c C-c in my source code buffer Then I see this in python buffer: Python 1.5.1 (#0, Apr 13 1998, 20:22:04) [MSC 32 bit (Intel)] on win32 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> ## working on region in file d:/tmp/python--248317Wgx... starting main()... Then my app never appears. However, if from a dos command prompt, I do >>> python d:/tmp/python--248317Wgx starting main()... then I see my app appear. This is a wxPython GUI app. Here is from my .emacs (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) (autoload 'python-mode "python-mode" "Python editing mode." t) (setq py-python-command "d:/Program Files/Python/python.exe") (setq py-temp-directory "d:/tmp") What am I doing wrong here? TIA! (lisp-illiterate'ly-yours) Alex Rice From news at helen.demon.nl Mon May 3 07:24:00 1999 From: news at helen.demon.nl (Ilja Heitlager) Date: Mon, 3 May 1999 13:24:00 +0200 Subject: PROPOSAL: Packages in Python lib References: <372B5CB7.66DBB930@prescod.net> <199905020817.KAA29168@axil.hvision.nl> Message-ID: <7gk0g3$q8c$1@news.worldonline.nl> Hans Nowak wrote in message <199905020817.KAA29168 at axil.hvision.nl>... >I think it will be very hard to make a package hierarchy that is logical to >all users (or most of them). That does not mean your proposal isn't good... >I'm just wondering how these problems will be solved. It makes me wish that >there was a different approach to grouping of modules... something non- >hierarchical. I love Paul's Idea. It worked for Java, so why not for Python? But please... no Poldermodels here. Just let Guido pickup the idea and implement it. Hierarchy not perfect? Ok, but it's better than linear organisation. Ilja From greg.ewing at compaq.com Tue May 4 18:31:10 1999 From: greg.ewing at compaq.com (Greg Ewing) Date: Wed, 05 May 1999 10:31:10 +1200 Subject: Python IS slow ! [was] Re: Python too slow for real world References: <613145F79272D211914B0020AFF6401914DAD8@gandalf.digicool.com> Message-ID: <372F752E.DD8875E0@compaq.com> Markus Kohler wrote: > > From profiling python 1.5.2c I found that python's main problem is that > calling functions seems to be very costly. This is just a guess, but one contributor to that might be the way that it packs all the arguments up into a tuple, and then immediately unpacks them again upon entering the function. Also, it allocates each stack frame as a separate object. So that's at least two memory allocation/free operations per procedure call. A more efficient way would be to use one big stack for all procedure calls, and just leave the parameters on the stack in the usual case where a procedure with a fixed number of arguments is called without any keyword args, etc. Greg From guido at eric.cnri.reston.va.us Tue May 4 10:56:13 1999 From: guido at eric.cnri.reston.va.us (Guido van Rossum) Date: 04 May 1999 10:56:13 -0400 Subject: mktime() like function to produce GMT? References: <00be01be9308$c649cf60$0301a8c0@cbd.net.au> <3729B855.3A7C6B5A@lemburg.com> <5lu2ty9lpx.fsf@eric.cnri.reston.va.us> <372D60B3.58DE3818@lemburg.com> <003d01be954d$f22230e0$0301a8c0@cbd.net.au> <372D9DAC.2BD7C604@lemburg.com> <5laevm9doj.fsf@eric.cnri.reston.va.us> <372EB855.DF47D72@lemburg.com> <372EB98F.58F9931@lemburg.com> Message-ID: <5l7lqoanoy.fsf@eric.cnri.reston.va.us> "M.-A. Lemburg" writes: > The last short sentence pretty nicely covers up the problems with timegm() > :-) "POSIX algorithm" means that leap seconds are not accounted for. And what's wrong with that? The Unix time is just as much an *encoding* of time values as any other. Few clocks in the world are accurate enough to care about leap seconds. The rest of us occasionally synchronize with a master clock. I don't care about leap seconds and never will. --Guido van Rossum (home page: http://www.python.org/~guido/) From takeuchi at isl.ntt.co.jp Mon May 17 04:03:22 1999 From: takeuchi at isl.ntt.co.jp (takeuchi at isl.ntt.co.jp) Date: Mon, 17 May 1999 08:03:22 GMT Subject: NumericalPy Tutorial __init__.py In-Reply-To: <373E1F03.E2DE0B94@swcp.com> References: <373E1F03.E2DE0B94@swcp.com> Message-ID: <7hoiga$jn1c@eGroups.com> <373e1f03.e2de0b9- at swcp.com> wrote: Original Article: http://www.egroups.com/list/python-list/?start=58960 > Having trouble loading the NumTut module (tutorial for Numerical Python > package) I think I have all the appropriate files installed. Any > suggestions would be appreciated! Here is some interactive which > illustrates the problem > > Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> array_constructor > Traceback (innermost last): > File "", line 1, in ? > NameError: array_constructor > >>> from Numeric import * > >>> array_constructor > > >>> from NumTut import * > Traceback (innermost last): > File "", line 1, in ? > File "D:\Program Files\Python\NumTut\__init__.py", line 15, in ? > greece = pickle.load(open(os.path.join(_dir, 'greece.pik'), 'rb')) / > 256.0 > File "D:\Program Files\Python\Lib\pickle.py", line 826, in load > return Unpickler(file).load() > File "D:\Program Files\Python\Lib\pickle.py", line 495, in load > dispatch[key](self) > File "D:\Program Files\Python\Lib\pickle.py", line 659, in load_global > klass = self.find_class(module, name) > File "D:\Program Files\Python\Lib\pickle.py", line 669, in find_class > raise SystemError, \ > SystemError: Failed to import class array_constructor > from module Numeric > > > >>> > This may be a cure. Change 'rb' to 'r' in the 14th line of __init__.py like this. pickle.load(open(os.path.join(_dir, 'greece.pik'), 'r')) ^^^^^ -- takeuchi From pete-python at kazmier.com Wed May 19 19:36:44 1999 From: pete-python at kazmier.com (Peter Kazmier) Date: 19 May 1999 23:36:44 GMT Subject: Python/beeper connectivity References: Message-ID: On 19 May 1999 23:54:26 +0200, Magnus L. Hetland wrote: >Sarino Suon writes: > >> Hi there: >> >> In one of the Python books, the author refers to an anecdote in ANOTHER >> Python book about a guy who created a Python program to beep him whenever >> an exception occurred. I thought that was neat when I first read about it. >> Has anyone done anything like this? I would like to explore using my >> computer to talk to household appliances and other electronic >> devices, which I assume are especially designed to interface with a PC. >> >> Since I now trust Python to take over my computer, I wouldn't mind letting >> it run my house. :-) >> >> Is anyone into this sort of thing? Would love to hear from you. > >Well... there are services where you can send mail to your cellphone >etc. This could easily be done by a Python program. There might be a >way to do something timilar with a beeper too, although I don't know >much about that... :) As far as the pager goes, I've written a small generic Pager class with a few sub-classes that are designed to send pages to different types of pagers. You can find it at: http://www.kazmier.com/computer/#python Please keep in mind, I just started learning Python about a week ago, and this is my first attempt at a class so be gentle (suggestions are definitely welcome). I haven't even gotten to the chapter on Classes yet in the Learning Python book (which btw is a great book). The sub-classes defined so far are: SkyWordPager Supports SkyTel SkyWord pager customers SkyWordPlusPager Supports SkyTel SkyWordPlus pager customers ATTPager Supports ATT Digital One Rate Cell Phone pagers MailPager Supports any email based pager Here's an example of use: p = SkyWordPager() p.addr = 1234567 # Not my pin for obvious reasons p.mesg = "This is a test" p.send() or simply: SkyWordPager(1031080, "This is a test").send() The base Pager class must be sub-classed. Its supposed to provide some general functions like the send() function which checks the maximum message length for the given pager sub-class (each one is different), and then breaks the mesg into multiple pages if neccessary. The doc string has more info on extending the class. -- Peter Kazmier http://www.kazmier.com PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654 From mlh at idt.ntnu.no Wed May 19 07:50:51 1999 From: mlh at idt.ntnu.no (Magnus L. Hetland) Date: 19 May 1999 13:50:51 +0200 Subject: Concrete Proposal: while ... and while ... References: <7hsv80$g9j$1@news.tamu.edu> Message-ID: cwebster at math.tamu.edu (Corran Webster) writes: > Last night, after reading the latest assignment in expressions thread, I > went and hacked together a patch which implements the proposed > > while: > ... > and while test: > ... I thought the Guido-approved version had a condition on the first as well (i.e. an expansion of the standard while loop)? Thus: while 1: ... and while something: ... Of course, that doesn't remove the ugliness of the "while 1" but it does alleviate the use of "break". I guess your suggestion actually adds the syntax of "while:" for "while 1:" as well -- or is it only in the use with "and while" that it is permitted? -- Magnus Lie Hetland http://arcadia.laiv.org From mlh at idt.ntnu.no Mon May 10 14:30:13 1999 From: mlh at idt.ntnu.no (Magnus L. Hetland) Date: 10 May 1999 20:30:13 +0200 Subject: while (a=b()) ... References: <7h4mq2$675$1@holly.csv.warwick.ac.uk> Message-ID: esuzm at primrose.csv.warwick.ac.uk (Andrew Clover) writes: > Nathan Clegg (nathan at islanddata.com) wrote: > > > The ideal, of course, would be: [Lots of stuff that has been debated to death several times already] > c= a+b: (a= 1; b= 2) The use of a colon would probably make the parser very confused in structures like while and if, where the colon is already part of the syntax... -- Magnus Lie Hetland http://arcadia.laiv.org From doughellmann at mindspring.com Mon May 24 12:12:07 1999 From: doughellmann at mindspring.com (Doug Hellmann) Date: Mon, 24 May 1999 16:12:07 GMT Subject: I need an Oracle database access module Message-ID: <37497B1C.626DF041@mindspring.com> I'm trying to track down a copy of a module I can use to access an Oracle database on Solaris, without having to rely on ODBC (which the boss&admins won't install). Searching on python.org and google.com, I found a variety of references to DCOracle and oracledb. I can't get to the page on the Digital Creations web site referenced by the link to DCOracle because it looks like the site is being renovated and the page has moved. The server that appears to contain oracledb isn't showing up in DNS when I try to go there (http://alumni.dgs.monash.edu.au/~anthony/oracledb). Can anyone help? Do these modules have new homes? Are they obsolete? Thanks, Doug From robin at alldunn.com Fri May 21 02:26:14 1999 From: robin at alldunn.com (Robin Dunn) Date: Thu, 20 May 1999 23:26:14 -0700 Subject: wxPython [was Re: How does Tk compare to Swing for GUI for Python] References: <37419d2a.54410905@news.bctel.ca> <7hseml$2cq$2@cronkite.cc.uga.edu> <374322f5.58380444@news.bctel.ca> Message-ID: guppy wrote in message <374322f5.58380444 at news.bctel.ca>... >On 18 May 1999 19:23:01 GMT, graham at sloth.math.uga.edu (Graham Matthews) >wrote: > >>guppy (invalid.address at do.not.email) wrote: >>: Any reason you wouldn't stay sane, and use wxPython? It does what you >>: want, and extremely well. >> >>What platforms dows wxPython run on? > >Hit http://alldunn.com/wxPython/ and follow the link to the wxWindows site. >Platforms will be listed there. Windows, X, Mac are three of them. I >believe there are others. > wxPython currently runs on *nix with GTK and on Win32. If somebody asks real nice I can probably make it work for Motif as well. (As soon as some recent changes to wxWindows are propogated to the Motif port.) The good news is that a beta for wxWindows on the Mac was announced today so if someone will volunteer to maintain that version of wxPython (or give me a Mac and a C++ compiler) then we may soon have that platform nailed down as well. -- Robin Dunn robin at AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From aa8vb at yahoo.com Thu May 20 10:52:16 1999 From: aa8vb at yahoo.com (Randall Hopper) Date: Thu, 20 May 1999 10:52:16 -0400 Subject: Sorry, another simple question In-Reply-To: <7huq5u$hsb@wapping.ecs.soton.ac.uk>; from Joseph Kuan on Wed, May 19, 1999 at 04:51:10PM +0000 References: <7huq5u$hsb@wapping.ecs.soton.ac.uk> Message-ID: <19990520105216.A421239@vislab.epa.gov> Joseph Kuan: | How to derive the range function for a particular class? | |I tried with __range__ but it doesn't work. Joseph, do you want to do something like this? mylist = MyList() for element in mylist: ... Or something like this: mylist = MyList() print mylist[5:10] If the former, __getitem__ is the method you need. It's called with successively increasing index values in the for loop until an IndexError exception is triggered (IIRC): http://www.python.org/doc/current/ref/sequence-types.html If the latter, look at __getslice__: http://www.python.org/doc/current/ref/sequence-methods.html Randall From tbryan at arlut.utexas.edu Sun May 9 09:39:09 1999 From: tbryan at arlut.utexas.edu (Thomas A. Bryan) Date: Sun, 09 May 1999 09:39:09 -0400 Subject: using python in www site References: <3732fd89.446889923@news.vbs.at> <373316D9.AB851DC5@zarlut.utexas.edu> <373317F6.737B4D40@zarlut.utexas.edu> <7h2v9m$ls1$1@agate.berkeley.edu> <37355EEC.2E537D9C@lemburg.com> <37357519.608573842@news.vbs.at> Message-ID: <37358FFD.9AAB4C6A@arlut.utexas.edu> Kaweh Kazemi wrote: > > >To install the binary you only need FTP access and an cgi-bin > >directory that executes .cgi as CGI programs. Here are the > >steps needed: > > > > [steps] > > > >That's all -- you don't even need a TELNET access. > > well, my ISP gave me access to a ftp directory which also has a > cgi-bin directory, and on login the system says: > > "UNIX(r) System V Release 4.0" > > there doesn't seem to be a compatible cgipython archive, am i right? > > well, if someone has access to a machine using this type of unix and > could create a compatible cgipython archive, this would help me very > much. i even don't know, if this information is enough to create a > cgipython-archive (same unix, different hardware-platforms?), but > that's all i have at this time (if someone is willing to help and > needs more information, i will check with my ISP, just tell me what > you need to know). Situation: Your ISP permits Perl cgi scripts. You'd like to use Python, but they don't intend to install Python. You decide to use mxCGIPython, but you don't know enough information about the ISP's platform. Solution: Change the first line of the script at the bottom of the page to point to your ISP's Perl. Upload the script to your cgi-bin directory. (Make script executable if necessary) Point your browser to the script. I use uname -a to get all of the information the machine can provide. You should be able to parse out the UNIX variant and version and the machine architecture. Marc-Andre, maybe you could include this on the mxCGIPython page for those in Kaweh's situation. #!/usr/bin/perl # uname -a should work on all UNIX machines $info = `uname -a`; # get rid of the newline and split the output on whitespace chomp($info); @info = split(/\s+/,$info); # print the static part of the HTML page print < System Information

Output of uname -a: