Static vs. dynamic checking for support of concurrent programming

2005-08-25 Thread Mike Meyer
The recent thread on threads caused me to reread the formal definition of SCOOP, and I noticed something I hadn't really impressed me the first time around: it's using staticly checkable rules to help ensure correct behavior in a concurrent environment. That's impressive. That's *really* impressiv

Re: Jargons of Info Tech industry

2005-08-25 Thread Mike Schilling
"Denis Kasak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mike Schilling wrote: >> >> I see a difference between "X would be useful for A, B, and C" and "Y >> will always be the only proper way." >> >> Don&

Re: variable hell

2005-08-26 Thread Mike Meyer
quot;'from %s import %s' % (script, script)")) > exec(eval("'self.user_class = %s()' % script")) > self.user_class.run() > > But this can probably be done with the imp module too. > >>>>rafi <[EMAIL PROTECTED]

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Paul Rubin <http://[EMAIL PROTECTED]> wrote: > >> Mike Meyer <[EMAIL PROTECTED]> writes: >>> > Another advantage is that evewry internet-enabled computer today >>> > already comes with an HTML renderer

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
[EMAIL PROTECTED] (Gordon Burditt) writes: >>HTML is designed to degrade gracefully (never mind that most web >>authors and many browser developers don't seem to comprehend this), so >>you don't really need a "subset" html to get the safety features you >>want. All you need to do is disable the ap

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > No, the few sites where I actually have to log in to do anything > useful, when they're well-coded, tell me that they need cookies, and > if I think I like that website I make an exception entry for that > site, allowing cookies. Most sites just bomba

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Chris Head <[EMAIL PROTECTED]> wrote: >> I mean, the way >> Webmail works, you're at the message list and click on a message to >> view. This causes a whole new page, user-interface and all, to be >> loaded. In comparison, that's like shutting down and re-op

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > It's time consuming because there is (yet) no need for it. When I > started to use Usenet there where only a handful of clients (IIRC), nn > and another one (rn?) are the only ones that I can recall. By the time nn was out, there were a number of radically

Re: global interpreter lock

2005-08-26 Thread Mike Meyer
Paul Rubin writes: > [EMAIL PROTECTED] (phil hunt) writes: >> >Let's see. Reality is that writing correct programs is hard. Writing >> >correct programs that use concurrency is even harder, because of the >> >exponential explosion of the order that operations can happen

Writing portable applications (Was: Jargons of Info Tech industry)

2005-08-27 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>> This can be designed much better by using iframes, maybe even Ajax. >> Definitely with Ajax. That's one of the things it does really well. > But then you're probably limited to the big 4 of br

Re: Jargons of Info Tech industry

2005-08-27 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Try turning off JavaScript (I assume you don't because you didn't >> complain about it). Most of the sites on the web that use it don't >> even use the NOSCRIPT tag to notify you that you

Re: Jargons of Info Tech industry

2005-08-27 Thread Mike Meyer
[EMAIL PROTECTED] writes: > In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote: >> Chris Head <[EMAIL PROTECTED]> wrote: >>> What advantages would those be (other than access from 'net cafes, but >>> see below)? >> And workplaces. Some people have more then one computer in the house. My >

Re: Writing portable applications (Was: Jargons of Info Tech industry)

2005-08-27 Thread Mike Meyer
Rich Teer <[EMAIL PROTECTED]> writes: > On Sat, 27 Aug 2005, Mike Meyer wrote: >> I think you're right - a web standard designed for writing real >> applications probably wouldn't start life as a markup for text. The >> only thing I can think of that even tries

Re: Writing portable applications

2005-08-28 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>> I'd rather develop a native client for the machine that people >>> actually WANT to use, instead of forcing them to use that >>> little-fiddly web browser on a teeny tiny display. >

Re: Dynamic image creation for the web...

2005-08-28 Thread Mike Meyer
Tompa <[EMAIL PROTECTED]> writes: >> The other thing you may need to check is the HTTP header of the >> generated image. > If possible I'd rather separate the HTTP/HTML-stuff from image creation. > I'd like to have an HTML file that refers to a py-file that creates images > which are returned som

Re: global interpreter lock

2005-08-28 Thread Mike Meyer
Bryan Olson <[EMAIL PROTECTED]> writes: phil hunt wrote: > > What's important is *predictability*, e.g. which instruction will > > the computer execute next? > > > > If you only have one thread, you can tell by looking at the code > > what gets executed next. It's very simple. > Not really. Tr

Re: global interpreter lock

2005-08-29 Thread Mike Meyer
Bryan Olson <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > > Bryan Olson writes: > > phil hunt wrote: > >> > What's important is *predictability*, e.g. which instruction will > >> > the computer execute next? > >> > If

Re: using common lisp with python.

2005-08-29 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Your best bet is probably to look into your LISP environment's FFI > (Foreign Function Interface). Most LISP environments have some way to > call C code directly. Insofar as going back the other way... that I'm > a little more sketchy on. Guile (

Re: OpenSource documentation problems

2005-08-29 Thread Mike Meyer
"Adriaan Renting" <[EMAIL PROTECTED]> writes: > Marked -1 Flamebait, but I'll respond anyway. Yup. > I do agree that a lot of OSS projects seem to lack somewhat in the > documentation department, compared to a lot of commercial software. You know what? My experience is just the opposite. Commerc

Re: Writing portable applications

2005-08-29 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> I'm still waiting for an answer to that one - where's the Java toolkit >> that handles full-featured GUIs as well as character cell >> interfaces. Without that, you aren't doing the job t

Re: global interpreter lock

2005-08-30 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > On Tue, 30 Aug 2005 05:15:34 GMT, Bryan Olson <[EMAIL PROTECTED]> wrote: >>Mike Meyer wrote: >> > Bryan Olson <[EMAIL PROTECTED]> writes: >> >> > Bryan Olson writes: >> >> > Trivially, an '

Re: Precise timings ?

2005-08-30 Thread Mike Meyer
Madhusudan Singh <[EMAIL PROTECTED]> writes: > No, no. All I am looking for is for the system to report its time with > better resolution. I know it is possible on my hardware, because I can get > at very precise timings using Fortran 95 intrinsics in my other code. Then you could always write a C

Re: Adding bound methods dynamically... CORRECTED

2005-08-31 Thread Mike Meyer
bruno modulix <[EMAIL PROTECTED]> writes: > Devan L wrote: >> Kevin Little wrote: >> >>>I want to dynamically add or replace bound methods in a class. > > (snip) > >> I'm not an expert, but why do you need to dynamically add or replace >> bound methods? > > To modify the behaviour at runtime ?-

Re: global interpreter lock

2005-08-31 Thread Mike Meyer
>>of threads. No one actually disagrees, but they go right on > >>knocking the modern methods. > > I think Mike is asking for references/citations/links to the > > "concurrency systems" and "modern methods" you are talking about ;-) > > (I&#

Re: Calling ftp commands from python

2005-08-31 Thread Mike Meyer
"Thierry Lam" <[EMAIL PROTECTED]> writes: > Is it possible to run an ftp command to connect to some remote computer > on the network. Yes, but why would you want to do taht? > For example, if I want to retrieve some data from > \\remcomputer\datafiles on the network and copy it to my local > com

Re: OpenSource documentation problems

2005-09-01 Thread Mike Meyer
"Terry Reedy" <[EMAIL PROTECTED]> writes: > "Rocco Moretti" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> There is just one giant roadblock to that suggestion - Sourceforge >> requires a login to post bugs/patches. > > After reading this and the rest of your post, and rememberin

Re: OpenSource documentation problems

2005-09-01 Thread Mike Meyer
Asbjørn Sæbø <[EMAIL PROTECTED]> writes: > "Xah Lee" <[EMAIL PROTECTED]> writes: >> I'm very sorry to say, that the Python doc is one of the worst possible >> in the industry. [...] > I suppose you are going to volounteer to fix it, then. Right? He once did, for one part of it. The problem he ran

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Mike Meyer
Alan Kennedy <[EMAIL PROTECTED]> writes: > [Tony Meyer] >> Should the Python developers likewise get some cryptic name? > No, they'll always be the python-dev cabal to me. And here I thought I was dealing with the SMOP. http://www.mired.org/home/mwm/ Independent WWW/Perforce

Re: global interpreter lock

2005-09-01 Thread Mike Meyer
Bryan Olson <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > > Bryan Olson writes: > >>System support for threads has advanced far beyond what Mr. Meyer > >>dealt with in programming the Amiga. > > > > I don't think it has - but see below. &g

Re: is there a better way to check an array?

2005-09-01 Thread Mike Meyer
"Steve M" <[EMAIL PROTECTED]> writes: > You can check for membership in a list at least these ways: Two ways - idnex and the in keyword. > my_list.find(candidate) > -returns the index into my_list of the first occurrence of candidate. > Returns -1 if candidate doesn't occur in my_list. Lists don

Re: Python / web

2005-09-01 Thread Mike Meyer
Robert <[EMAIL PROTECTED]> writes: > Hi, > I know general Python pretty well and interested in using Python for a > web project. It will have the standard display, user input, fields, > look-ups, reports, database routines, etc. Been looking though the > Python web docs. and seeing stuff like m

Re: Add lists to class?

2005-09-01 Thread Mike Meyer
"BBands" <[EMAIL PROTECTED]> writes: > I have a list with some strings in in it, 'one', 'two' 'three' and so > on. I would like to add lists to a class with those names. I have no > way of knowing what will be in the list or how long the list will be in > advance. Others have told you how to do i

Re: Add lists to class?

2005-09-03 Thread Mike Meyer
"BBands" <[EMAIL PROTECTED]> writes: >> Why don't you use a real list instead? > > I am using lists... I just showed the naming schema. Here is how they > are implemented. > > for var in range(len(self.symbols)): > setattr(self, "_" + str(var), []) That's not the list he's talking about. And

Re: Add lists to class?

2005-09-03 Thread Mike Meyer
Paolino <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> "BBands" <[EMAIL PROTECTED]> writes: >>>I have a list with some strings in in it, 'one', 'two' 'three' and so >>>on. I would like to add lists to a class wit

Re: global interpreter lock

2005-09-03 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On Wed, 31 Aug 2005 22:44:06 -0400, Mike Meyer <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: >> I don't know what Ada offers. Java gives you pseudo-monitors. I'm > > From the days o

XML Pickle with PyGraphLib - Problems

2005-09-05 Thread Mike P.
sn't support the boolean and set types which are part of Python 2.4 and are used in pygraphlib. I get errors of the form: AttributeError: Marshaller instance has no attribute 'tag_bool' AttributeError: Marshaller instance has no attribute 'm_Set' Again strange given that bool

execute commands independantly

2005-09-06 Thread Mike Tammerman
Just start and let it run independantly. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: execute commands independantly

2005-09-06 Thread Mike Tammerman
You're right, I tried subprocess.call and os.spawn* functions. Popen is what I will be happy with. Thanks a lot. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-06 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > But it's interesting that the Unix pipeline Just Works (TM) with so little > effort. Yes it is. That's a result of two things: 1) The people who invented pipes were *very* smart (but not smart enough to invent stderr at the same time :-). 2) Pipes us

Re: dual processor

2005-09-06 Thread Mike Meyer
Jeremy Jones <[EMAIL PROTECTED]> writes: > 1) find a good clean way to utilize muti-CPU machines and I like SCOOP. But I'm still looking for alternatives. > 2) come up with a simple, consistent, Pythonic concurrency paradigm. That's the hard part. SCOOP attaches attributes to *variables*. It als

Re: Optional algol syntax style

2005-09-06 Thread Mike Meyer
"Christoph Rackwitz" <[EMAIL PROTECTED]> writes: > You didn't quite get the OP's intention, I guess. > > The OP wanted Python to be a bit more freeform by adding "end" tags. > That might be an improvement for web scripting, but I haven't seen the > solutions of the existing frameworks and won't dar

Re: infinite loop

2005-09-06 Thread Mike Meyer
"LOPEZ GARCIA DE LOMANA, ADRIAN" <[EMAIL PROTECTED]> writes: > Hi all, > > I have a question with some code I'm writting: > > > def main(): > if option == 1: > function_a() > elif option == 2: > function_b() > else: > raise 'option has to be either 1 or 2' >

Re: __dict__ of object, Was: Regular Expression IGNORECASE differentfor findall and split?

2005-09-07 Thread Mike Meyer
Chris <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: >> Chris <[EMAIL PROTECTED]> wrote: >> >>>but more of a basic question following, I was doing the following before: >>> >>>method = 'split' # came from somewhere else of course >>>result = re.__dict__[method].(REGEX, TXT) >>> >>>precompiling

Re: Manging multiple Python installation

2005-09-07 Thread Mike Meyer
Andy Leszczynski writes: > Robert Kern wrote: >> Andy Leszczynski wrote: >> >>>Jeremy Jones wrote: >>> >>> Andy Leszczynski wrote: Download the source, untar, cd to the new directory, run: ./configure --prefix=/opt/mypython make make install >>> >>>Is there any way t

Printer List from CUPS

2005-09-08 Thread Mike Tammerman
Hi, I want to get the printer list from CUPS. I found some ways using lpstat -p and http://localhost:631/printers but, these ways require some parsing and I am not sure, if the parsing works all the time. A pythonic way would be very helpful. Thanks, Mike -- http://mail.python.org/mailman

Re: Printer List from CUPS

2005-09-08 Thread Mike Tammerman
I am using Ubuntu. pycups seems to be not existed any more. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-08 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Lil wrote:' > >>I already double checked my C code. It runs perfectly fine in C without >> any errors. So in my python program, I added a pdb.set_trace() >> and step through the program and it did not dump. But when i took out >> the tracing, the core

Re: Question about consistency in python language

2005-09-08 Thread Mike Meyer
Dave Benjamin <[EMAIL PROTECTED]> writes: > Python is actually quite consistent in this regard: methods that > modify an object in-place return None; Um, no. list.pop comes to mind as an immediate counterexample. It may be the only one... http://www.mired.org/home/mwm/ Indepe

Re: Question about consistency in python language

2005-09-09 Thread Mike Meyer
Dave Benjamin <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Dave Benjamin <[EMAIL PROTECTED]> writes: >>>Python is actually quite consistent in this regard: methods that >>>modify an object in-place return None; >> Um, no. list.pop comes to mind

Re: Question about consistency in python language

2005-09-09 Thread Mike Meyer
"Kay Schluehr" <[EMAIL PROTECTED]> writes: > If you define > sep = "" sep.join(["d","o","g"]) > "dog" sep > '' > > sep is preserved and a new "dog" string is generated. Since sep is > immutable there is no way to manipulate it inplace. > > On the other hand there exists no sorted() m

Re: How to upgrade to 2.4.1 on Mac OS X tiger

2005-09-09 Thread Mike Meyer
stri ker <[EMAIL PROTECTED]> writes: > Has anyone here upgraded from 2.3 to 2.4 on Tiger? > If so how'd ya do it? You don't. You install 2.4 in parallel with 2.3. You can do pretty much whatever you want with /usr/bin/python, /usr/local/bin/python, etc. - Tiger doesn't seem to use those. I don't r

Re: encryption with python

2005-09-09 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 07 Sep 2005 14:31:03 -0700, jlocc wrote: >> Basically I will like to combine a social security number (9 digits) >> and a birth date (8 digits, could be padded to be 9) and obtain a new >> 'student number'. It would be better if the original num

Re: "grep" database

2005-09-09 Thread Mike Meyer
"Hilbert" <[EMAIL PROTECTED]> writes: > I've heard of a software on linux that creates a recursive database of > text files and then provides an interface for grep-like queries. I'd > like to use it to find procedures/variables in a large code base. > > Any suggestions appreciated. The great gran

Re: OpenSource documentation problems

2005-09-09 Thread Mike Meyer
Florian Diesch <[EMAIL PROTECTED]> writes: > A.M. Kuchling <[EMAIL PROTECTED]> wrote: > Another problem with Wikis is that you have to be online to use them and > can't use your favourite editor to write. You need a better browser. Mine - at least on Unix - have an option to dump textareas into te

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Mike Meyer
Stefano Masini <[EMAIL PROTECTED]> writes: > It would be great if there was a section in the Python manual like this: > > "Quick and Dirty: Commonly needed tricks for real applications" > > 1. odict > 2. file system management > 3. xml (de)serialization > 4. ... > > Each section would describe the

Re: OpenSource documentation problems

2005-09-10 Thread Mike Meyer
Michael Ekstrand <[EMAIL PROTECTED]> writes: > On Fri, 09 Sep 2005 18:16:36 -0400 > Mike Meyer <[EMAIL PROTECTED]> wrote: >> You need a better browser. Mine - at least on Unix - have an option to >> dump textareas into text files, invoke my favorite editor on them,

Re: How to upgrade to 2.4.1 on Mac OS X tiger

2005-09-11 Thread Mike P.
On Fri, 9 Sep 2005 13:55:03 -0700, Trent Mick wrote: > [Mike Meyer wrote] >> stri ker <[EMAIL PROTECTED]> writes: >>> Has anyone here upgraded from 2.3 to 2.4 on Tiger? >>> If so how'd ya do it? >> >> You don't. You install 2.4 in paralle

Re: How to upgrade to 2.4.1 on Mac OS X tiger

2005-09-11 Thread Mike Meyer
"Mike P." <[EMAIL PROTECTED]> writes: > I just got a Mac and was wondering the same thing as the original poster - > how to move to 2.4, but I found out there was more than one version. > So in addition to the Apple installation of 2.3, there are 4 versions of &

Re: Printer List from CUPS

2005-09-12 Thread Mike Tammerman
Thanks, a lot, this helped me so much. It was so easy, to compile, install and use the cupsext module. -Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: How to upgrade to 2.4.1 on Mac OS X tiger

2005-09-12 Thread Mike Meyer
Robert Kern <[EMAIL PROTECTED]> writes: >> Come to think of it, what's installed by Apple may count as a >> different distribution as well. It certainly includes more than just >> the official distribution. > It's also old and probably won't be the same version in 10.5. If you > want any control ov

plwm and python-xlib on OS X

2005-09-12 Thread Mike Meyer
Has anyone had any luck getting plwm (the X window manager framework written in Python) working on OS X? How about python-xlib, which plwm depends on? Thanks, http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more informati

Re: appended crontab entries with py script

2005-09-13 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > How can I safely append a crontab entry to a crontab file > progammatically with Python? Well, one way would be to invoke the system crontab utility and use an "editor" that passes the file to your program, and reads the results back. > I need to handle crontabs

stdin and py2exe

2005-09-14 Thread Mike Tammerman
descriptor" exception in subprogram.py. I will be more than apreciated, if any suggestions occur. Thanks, Mike == main.py == from subprocess import * pInput = Popen('python subprogram.py', stdin=PIPE, shell=True).stdin # pInput = Popen('subprogram.exe', stdin=PIP

Re: stdin and py2exe

2005-09-14 Thread Mike Tammerman
Yes, it throws exceptions if I build the exe of the subprogram.py. So, is it possible to pipe some data to another py2exe'd application without a console. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: brain cramp: emulating cgi.FieldStorage

2005-09-15 Thread Mike Meyer
"Chris Curvey" <[EMAIL PROTECTED]> writes: > I can't be the first person to want to do this, but I also can't seem > to find a solution. (Perhaps my Google skills are poor today.) How > can I emulate cgi.FieldStorage() for my unit tests so that I don't have > to put a web server in the way? > >

Re: Software bugs aren't inevitable

2005-09-15 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > In article <[EMAIL PROTECTED]>, > Paul Rubin wrote: >>Every serious FP language implementation optimizes tail calls and thus >>using recursion instead of iteration doesn't cost any stack space and >>it probably generates the exact same

Re: Postgres PL/Python

2005-09-15 Thread Mike Meyer
Ksenia Marasanova <[EMAIL PROTECTED]> writes: > I wonder if anyone on this list is using Python as Postgres > procedural language. I can't find a place for it i my mind. How would > a typical MVC web application benefit from it (besides performance)? Your typical MVC web application hasn't got t

Re: Software bugs aren't inevitable

2005-09-15 Thread Mike Meyer
François Pinard <[EMAIL PROTECTED]> writes: > This being said, for one, I always found _insane_ presenting recursion > to new programmers using such examples, which are both very easily, > and much better written non-recursively. It does not help beginners > at taking recursion any seriously. Thi

Re: Software bugs aren't inevitable

2005-09-16 Thread Mike Meyer
[EMAIL PROTECTED] (phil hunt) writes: > Compilers/interpreters/runtimes are black boxes: we don't (or > shouldn't) care how they do their work as long as they run correctly > and aren't too heavy on system resources like CPU time and memory. Maybe in academia. Not in the real world. Or maybe you

Re: Python:C++ interfacing. Tool selection recommendations

2005-09-18 Thread Mike Meyer
> (I wonder, by the way, if it's a good idea to provide a very rich interface > between an application and embedded Python. I have no experience in the > area, but intuition tells me that simplicity and minimalism is important. So long as you distinguish between minimalist and the bare minimum. M

Re: Why do Pythoneers reinvent the wheel?

2005-09-18 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > On Sat, 10 Sep 2005 20:24:32 -0400, François Pinard <[EMAIL PROTECTED]> wrote: > Yeah. I've often wished for some overview or guide that translates the > current buzzwords to old concepts I'm familiar with. For example, I'm sure > you can capture the core

Re: Roguelike programmers needed

2005-09-18 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Don't be fooled by their apparent simplicity! What most roguelikes lack > in graphics they make up for in game play. These suckers are addictive. > You have been warned! And *portable*. I was delighted to discover a port of the original rogue to the Palm. Then shocked t

Announce: open 0.2 - a unix application launcherr

2005-09-18 Thread Mike Meyer
"open" is designed to provide Unix users with a single tool for dealing with the multitude of applications that deal with data files. Without open - or something like it - every time a user wants to look at a file, they have to figure out what type the file is and which application on their path ca

Re: How am I doing?

2005-09-18 Thread Mike Meyer
Jason <[EMAIL PROTECTED]> writes: > Please don't laugh, this is my FIRST Python script where I haven't > looked at the manual for help... > > import string > import random > > class hiScores: > hiScores=['1Alpha','07500Beta','05000Gamma','02500Delta','0Epsilon'] > > def showScores(se

Re: How am I doing?

2005-09-19 Thread Mike Meyer
"Brett Hoerner" <[EMAIL PROTECTED]> writes: > Wouldn't the standard idiom be to actually put the code under the > if-name, and not make a whole new main() function? Depends on how big the main() function is. By making it a function, you make it possible for other modules to run it directly. In pa

Re: Question about smtplib, and mail servers in general.

2005-09-20 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Daniel Dittmar wrote: >> Chris Dewin wrote: >>> Hi. I've been thinking about using smtplib to run a mailing list >>> from my website. >>> >>> s = smtplib.SMTP("server") >>> s.sendmail(fromaddress, toaddresess, msg) >>> >>> I know that in this instance, the

Re: re.search experts needed on fqdn stripping..

2005-09-20 Thread Mike Meyer
"rh0dium" <[EMAIL PROTECTED]> writes: > After thinking about it for a bit longer i simplified it but still have > the same problem.. > > e =[] > hosts = [ "poundcake.fpdn.com", "scorpion.fpdn.com", "loghost", > "scorpian", "localhost", "lan" ] > > ignore = [ "localhost", "loghost", "timehost", "mai

Looking for system/network monitoring tool written in Python

2005-09-21 Thread Mike Meyer
I've found a fair number of systems/network monitoring tools (things like Big Brother, Big Sister, cricket, etc.) written in Perl. I'm curious if there are any written in Python. Thanks, http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consulta

Re: plateform info.

2005-09-22 Thread Mike Meyer
Maurice LING <[EMAIL PROTECTED]> writes: > Is there a way of getting the path to the site-packages directory? >>> import sys >>> import os >>> for dir in sys.path: ... if os.path.split(dir)[-1] == 'site-packages': ... print dir ... /usr/opt/lib/python2.4/site-packages >>> But there's sel

Re: Finding where to store application data portably

2005-09-22 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > On Tue, 2005-09-20 at 23:03 +0100, Tony Houghton wrote: >> I'm using pygame to write a game called Bombz which needs to save some >> data in a directory associated with it. In Unix/Linux I'd probably use >> "~/.bombz", in Windows something like >> "C:\Documents An

Re: Looking for system/network monitoring tool written in Python

2005-09-22 Thread Mike Meyer
"David Wilson" <[EMAIL PROTECTED]> writes: > See http://pynms.sourceforge.net/ Thanks for the pointer. And to Simon Brunning for the pointer to Eddie. > Also see Google. :) While everything may be in Google, it's not always obvious how to get it out. I've managed to extract a score of systems fr

Re: Open PDF

2005-09-22 Thread Mike Meyer
Dan <[EMAIL PROTECTED]> writes: > Under Linux you can probably use xpdf or gpdf: > > os.system("xpdf /path/to/file.pdf") > > Note that you should check the return code of "system" to see if the > execution was successful. For example, the user might not have xpdf > installed. This is the problem

Re: How to show percentage

2005-09-22 Thread Mike Meyer
"Sen-Lung Chen" <[EMAIL PROTECTED]> writes: > Dear All: > I have a question of show percentage. > For example ,I want to show the percentage of 1/3 = 33.33% > > I use the 1*100/3 = 33 > it is 33 not 33.33 , how to show the 33.33 % Python interprets '/' in an integer environment to return ints,

Re: Big development in the GUI realm

2005-02-07 Thread Mike Meyer
"Kartic" <[EMAIL PROTECTED]> writes: > Is there a "GPL for Dummies" out there??? :-) > > Sorry if I am asking a question that has already been asked/answered in > another form. > > In any case, let's say I use Python to create an application that uses > some module that is GPL. So what are my opti

Re: Big development in the GUI realm

2005-02-08 Thread Mike Meyer
"Gabriel B." <[EMAIL PROTECTED]> writes: >> >>Considering the fact that the Qt DLL exist by themselves, that the >> >>version used is the one provided by Qt, and that the EXE uses a >> >>standard, open way to communicate with it, the above does seem to say >> >>this use would be valid. >> >> >> >>

Re: An Ode To My Two Loves

2005-02-08 Thread Mike Meyer
Peter Maas <[EMAIL PROTECTED]> writes: > Jorgen Grahn schrieb: >> It's something that worries me frequently -- I feel guilty when I introduce >> Python into ("force Python upon") an organization. Because I hate having >> /other/ people's favorite toy languages forced down /my/ throat ... > > The s

Re: An Ode To My Two Loves

2005-02-08 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >> >>COM is dominant on Windows because MS pushes it. CORBA isn't dominant >>on Unix because there are a slew of extensible/embeddable languages to >

Re: negative integer division

2005-02-08 Thread Mike Meyer
Jive Dadson <[EMAIL PROTECTED]> writes: > Python does it right. C is allowed to do it anyway it likes, which was > a stupifyingly horrible decision, IMHO. C only does it wrong if you think that C is a high level language. It isn't - it's a portable assembler. As such, low level things (like this

Re: negative integer division

2005-02-10 Thread Mike Meyer
Jive Dadson <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> [C] isn't - it's a portable assembler. > > I've heard that many times, but it makes no sense to me. By definition, > the syntax of an assembly language closely resembles the format of &

Re: goto, cls, wait commands

2005-02-12 Thread Mike Meyer
Alan Kennedy <[EMAIL PROTECTED]> writes: >> Secondly, how do I clear screen (cls) from text and other content ? > > That depends on > > A: What type of display device you're using > B: What type of interface is being rendered on that display (command > line, GUI, IDE, etc) > C: Perhaps what operati

Re: Text files read multiple files into single file, and then recreate the multiple files

2005-02-12 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Would like to use text files, its really for my own learning, > > but I suppose a Zip would work How about outputing a file as: LENGTH=## in your joined file? That's a minimalistic archive format - one ASCII header line that provides just enough information to

Re: Kill GIL

2005-02-12 Thread Mike Meyer
Jack Diederich <[EMAIL PROTECTED]> writes: > From reading this > thread every couple months on c.l.py for the last few years it is my > opinion that the number of people who think threading is the only solution > to their problem greatly outnumber the number of people who actually have > such a

Re: SCons build tool speed

2005-02-12 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > ted wrote: >> How does the speed of the Scons build tool compare with Ant? Right >> now with out Ant builds take around an hour. Hoping to speed that up. > > Don't tools like Scons, Ant, and for that matter "make" just > execute other programs? So that 9

Re: For American numbers

2005-02-13 Thread Mike Meyer
Nick Coghlan <[EMAIL PROTECTED]> writes: > Peter Hansen wrote: >> Only for hard drive manufacturers, perhaps. >> For the rest of the computer world, unless I've missed >> a changing of the guard or something, "kilo" is 1024 >> and "mega" is 1024*1024 and so forth... > > Given that there are perfec

Re: Kill GIL

2005-02-13 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >> >>Here here. I find that threading typically introduces worse problems >>than it purports to solve. > Threads are also good for handling blocking I/O.

Re: Kill GIL

2005-02-14 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > (Have you > actually written any threaded applications in Python?) Yes. Have you ever asked a polite question? http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.py

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > If it is a programming language, the requirement "using an open-source > toolchain" is a rational and valid one. It is. However, mingW has nothing to do with "using an open-sourcer toolchain". Python runs in an environment with a full, open-source too

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > MinGW compatibility is not my need. Then why do you waste so much effort whining about it not being given to you? > It is an community need. Based on the evidence at hand, this is a false statement. http://www.mired.org/home

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>>It is an community need. >> Based on the evidence at hand, this is a false statement. > It is an community need [at least partially] Repeating a falsehood will not make it true. Can you offer anything

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Joe Francia wrote: >> Ilias Lazaridis wrote: > [...] >>> MinGW compatibility is not [only] my need. >>> >>> It is an community need [at least partially] >> You keep using that word "community". I do not think it means what >> you think it means. > > Th

<    6   7   8   9   10   11   12   13   14   15   >