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

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

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 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 > Python 2.4 (ActivePython, MacPytho

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

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

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

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Ilias Lazaridis <[EMAIL PROTECTED]> writes: >> >>>Mike Meyer wrote: >>> >>>>>It is an community need. >>>> >>>>Based on the evidence at

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-17 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > These last two points kind of diverge from the point, no? What I mean > is that we want to present the argument of why Python is the best > choice as THE built-in programming language for the revolutionary uuu > operating system. A new operating syst

Re: os.walk()

2005-02-17 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > Could someone demonstrate the correct/proper way to use os.walk() to > skip certain files and folders while walking a specified path? I've > read the module docs and googled to no avail and posted here about > other os.walk issues, but I think I need to back up to

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-17 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Arich Chanachai <[EMAIL PROTECTED]> writes: >>>These last two points kind of diverge from the point, no? What I mean >>>is that we want to present the argument of why Python is the bes

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-18 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Whatever the intentions may be, the *act* is one of dictation. Since >>the point of the underlying OS is to increase the interconnections >>between applications (assuming I've found the corre

Re: lambda closure question

2005-02-20 Thread Mike Meyer
"Carl Banks" <[EMAIL PROTECTED]> writes: > Say you have a suite of functions, all of which are called by some main > function and each other, and all of which need to access a lot of the > same data. The best, most straightforward way to do it is to have the > common data be a local variable of t

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-20 Thread Mike Meyer
Nick Coghlan <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Arich Chanachai <[EMAIL PROTECTED]> writes: >> >>>Mike Meyer wrote: >>> >>>>Whatever the intentions may be, the *act* is one of dictation. Since >>>>the point

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-20 Thread Mike Meyer
[EMAIL PROTECTED] (Paul Boddie) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >> Arich Chanachai <[EMAIL PROTECTED]> writes: >> >> > When the CLR is integrated, it will allow a wide array of problem >> >

Re: Article on Hi-Fi Myths

2005-02-20 Thread Mike Meyer
Al Christians <[EMAIL PROTECTED]> writes: > I learned Friday night that the hi-fi talk is our most popular tape. > This page: > > http://www.belt.demon.co.uk/product/Cable_Controversy/Cable_Controversy.htm > > Gives a somewhat different take on the controversy, almost certainly > bizarre. It's a

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-21 Thread Mike Meyer
Ville Vainio <[EMAIL PROTECTED]> writes: >>>>>> "Mike" == Mike Meyer <[EMAIL PROTECTED]> writes: > > Mike> IPython's pysh seems a little clumsy for interactive use, as > Mike> it requires special characters to distinguish between

Re: user interface for python

2005-02-23 Thread Mike Meyer
Scott David Daniels <[EMAIL PROTECTED]> writes: > Thomas Guettler wrote: > You can write portable programs (if you test across platforms). The > only truly portable programs in any language are abstract. Once you > start dealing with I/O and the real world, you inevitably have to face > issues

Re: Converting HTML to ASCII

2005-02-25 Thread Mike Meyer
Michael Spencer <[EMAIL PROTECTED]> writes: > gf gf wrote: >> [wants to extract ASCII from badly-formed HTML and thinks BeautifulSoup is >> too complex] > > You haven't specified what you mean by "extracting" ASCII, but I'll > assume that you want to start by eliminating html tags and comments, >

Re: Converting HTML to ASCII

2005-02-26 Thread Mike Meyer
Michael Spencer <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > >> It also fails on tags with a ">" in a string in the tag. That's >> well-formed but ill-used HTML. >> True enough...however, it doesn't fail too horrib

Re: Xlib in Python? I need XDrawString()

2005-02-26 Thread Mike Meyer
Artificial Life <[EMAIL PROTECTED]> writes: > All I really want is to write a few strings to the background of my X > display. XDrawString() is what I need. The Xlib for Python shows it's out > dated. Is there any alternative? If you're referring to http://sourceforge.net/projects/python-xlib >,

Re: [perl-python] generate all possible pairings

2005-02-26 Thread Mike Meyer
"Xah Lee" <[EMAIL PROTECTED]> writes: > This is brought to you by the perl-python community. To subscribe, see > http://xahlee.org/perl-python/python.html assert len(perl-python community) == 1 http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consulta

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> I found out that doing a re.findall will split up the results into an >> array, or rather something called a list (looks like an array to me). > > It may look like an array to you, but it's a list. Python > doesn't have arrays

Re: function with a state

2005-03-06 Thread Mike Meyer
"Xah Lee" <[EMAIL PROTECTED]> writes: > the Python doc is quite stilted. Where in the python doc is a programer > supposed read about how the package/module system in Python works? > (besides the tutorial that touches it) The python docs at http://docs.python.org/ref/naming.html > are perfectly c

Re: urllib (and urllib2) read all data from page on open()?

2005-03-15 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > ISTM reading top-posts is only easier when the top-post is a single global > comment on the quoted text following. And that stops being true as soon as someone wants to comment on that comment. You either wind up with: Last comment > First comment >>

Re: Python becoming less Lisp-like

2005-03-16 Thread Mike Meyer
[EMAIL PROTECTED] (Paul Boddie) writes: > Steven Bethard <[EMAIL PROTECTED]> wrote in message news:<[EMAIL > PROTECTED]>... >> >> Certainly descriptors in the "wrong hands" could lead to confusing, >> unreadable code. But Python is a "we're all adults here" language, and >> so we have to trus

Re: How to I restart an interactive session?

2005-03-18 Thread Mike Meyer
"markscottwright" <[EMAIL PROTECTED]> writes: > But, by deleting their namespace entries haven't I effectively unloaded > them? In other words, from the point of the interpreter, isn't the > state at point A and point B the same? > > --- point A: > import os > del __main__.__dict_

Re: importing two modules with the same name

2005-03-19 Thread Mike Meyer
Francisco Borges <[EMAIL PROTECTED]> writes: > I could simply copy optparse's code and hack it or I could simply import > it and overload some methods, which is what I think would be a cleaner > solution. So why aren't you willing to give your optparse module a different name?

Re: creating generators from function

2004-12-08 Thread Mike Meyer
Simon Wittber <[EMAIL PROTECTED]> writes: >> A function containing an infinite loop will never return, so it is bugged >> and useless unless it does has an external effect with something like >> 'print xxx' within the loop. > > I thought the idiom: > > while True: > #code which iterates my s

Re: Ideas for projects

2004-12-08 Thread Mike Meyer
Phillip Bowden <[EMAIL PROTECTED]> writes: > I feel that I've learned the language pretty well, but I'm having > trouble thinking of a medium to large project to start. What are some > projects that you have written in the past with Python? Why start with a medium to large project when you can d

Re: Ideas for projects

2004-12-09 Thread Mike Meyer
"Fuzzyman" <[EMAIL PROTECTED]> writes: > Phillip Bowden wrote: > The first one is an online bookmarks manager. There are various of > these around - but none in python and none as straightforward as I > would like. It would be easy to get something working and then expand > it to do more things (l

Re: creating generators from function

2004-12-09 Thread Mike Meyer
Isaac To <[EMAIL PROTECTED]> writes: >>>>>> "Mike" == Mike Meyer <[EMAIL PROTECTED]> writes: > > Mike> I think it's a bit abnormal, because you have to scan the > Mike> loop body for breaks. I tend to write: > >

Distutils vs. Extension header files

2004-12-09 Thread Mike Meyer
I've got a package that includes an extension that has a number of header files in the directory with the extension. They are specified as "depends = [...]" in the Extension class. However, Distutils doesn't seem to do anything with them. If I do an sdist, the include files aren't added to the tar

Re: Distutils vs. Extension header files

2004-12-10 Thread Mike Meyer
[EMAIL PROTECTED] (David M. Cooke) writes: > vincent has the solution (you need to specify them in MANIFEST.in), > but I'll add my 2 cents. Yup. That solved the problem. > depends = [...] is used in building (it's like dependencies in make). > If one of those files change, distutils will rebuild

Re: newbie questions

2004-12-10 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > Alright. Now, as Erik pointed out if you assign to the variable the > computer will add that to the local name space. This happens at > "compile" time (which is right after you hit enter twice at the CPython > command line.) > > For an example of this

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-10 Thread Mike Meyer
"Erik Johnson" <[EMAIL PROTECTED]> writes: > I am looking for some input on GUI libraries. Since you said others, I'll recommend PyQt. Major downside with it is that it costs money on Windows. > o What features does wxPython offer that Tkinter cannot (and vice > versa)? I don't know abo

Re: Deadlock detection

2004-12-10 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > On Mon, 2004-12-06 at 06:21, Duncan Grisby wrote: >> Hi, >> >> Does anyone know of a deadlock detector for Python? I don't think it >> would be too hard to hook into the threading module and instrument >> mutexes so they can be tested for deadlocks. I

Re: New versions breaking extensions, etc.

2004-12-10 Thread Mike Meyer
"Jive" <[EMAIL PROTECTED]> writes: > "Nick Coghlan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> To this date, no-one has cared enough about the problem to put in the > effort >> required to make the C API version agnostic. Given that the API almost > always >> remains *source*

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-11 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> It also has a widget for creating Windows "wizards" for walking >> through a set of options. > Besides the fact that wizards isn't really that great (read Cooper), if your > too

Re: lies about OOP

2004-12-14 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Instead of copy and paste, I use functions for code reuse. I didn't see > the light of OOP, yet. I use Python but never did anything with OOP. I > just can't see what can be done with OOP taht can't be done with > standart procedural programing.

Re: Module question

2004-12-15 Thread Mike Meyer
Grumman <[EMAIL PROTECTED]> writes: > Bill Turczyn wrote: >> Does python have a module similiar to the perl Spreadsheet::WriteExcel >> Thanks, >> Bill >> > In a pinch, you can output an HTML table, give the file an .xls > extension, and Excel will read it just fine. Welll, someone pointed out a t

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-16 Thread Mike Meyer
Axel Straschil <[EMAIL PROTECTED]> writes: > Hallo! > >> However, our company's product, PDFTextStream does do a phenomenal >> job of extracting text and metadata out of PDF documents. It's >> crazy-fast, has a clean API, and in general gets the job done very >> nicely. It presents two points of

<    3   4   5   6   7   8   9   10   11   12   >