Re: no variable or argument declarations are necessary.

2005-10-03 Thread Mike Meyer
. Nuts - I want a complete, well-designed inheritance tree. Duck typing is great stuff, but if I'm going to be doing the work to declare everything, I want *everything* that can be checked checked. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: Reply-To header

2005-10-03 Thread Mike Meyer
copies to posters who aren't subscribed. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reply-To header

2005-10-03 Thread Mike Meyer
on the reply address. The recipient doesn't need to see the reply address, and would only be confused by it if they did. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Reply-To header

2005-10-03 Thread Mike Meyer
for you. Or grit and bear it. You'll almost certainly get less unwanted mail from people who send you duplicates in reply to your messages than they would get from subscsribing to the list. In short - starting thinking about the greater good rather than your own best interest. mike -- Mike

Re: Will python never intend to support private, protected and public?

2005-10-03 Thread Mike Meyer
particulary wrong with the latter approach - unless you just dislike dynamic code. Yanking a feature because it gets misued in one place means we should probably pre-emptively yank private to keep people from declaring things private when they shouldn't be. mike -- Mike Meyer [EMAIL

Re: packaging a python project and associated graphics files

2005-10-03 Thread Mike Meyer
this situation? With symlinks from the installed location to the source tree. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling who can run an executable

2005-10-03 Thread Mike Meyer
-- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Yes, the point is that it's something that you can check for by examining the class in question without having to examine any other classes. That's a pretty restrictive convention to follow. What

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Well, it's a discussion of why a certain feature might be useful, not that it's required. Mike Meyer points out some reasons it might be hard to do smoothly without changing Python semantics in a deep way (i.e. Python 3.0 or later). Actually, I

Re: Program help

2005-10-02 Thread Mike Meyer
the extension to figure out what to do. It's relatively small. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for search engine development

2005-10-02 Thread Mike Meyer
for a search. On the other hand, if you use a Python wrapper around a full-text search facility, so that python finds documents, takes queries and formats results for the user, it should be just fine. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: Automating, Building, Testing and Deploying to Production Server

2005-10-02 Thread Mike Meyer
- especially the one on web server software - then implemented what I described above. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: What convention? It just makes it possible to write code with some specific invariants if there's a need to do so. That you don't pass private variables to a function unless it's a builtin. No, I don't see

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Compile-time restrictions don't matter for squat - you need serious restrictions on what the program can do at runtime. You need both. Yup. Any language besides Java even *try* to provide both

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Which brings me to my point. Rather than trying to bandage Python to do what you want - and what, based on this thread, a lot of other people *don't* want - you should be building a system from the ground up

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: I'd say CPython was missing the features that you need to guarantee that. Missing quite a *lot* of features, in fact. But Python has never been about keeping people from writing bad code - it's about helping

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Unless your compiler detects and flags passing private variables to external functions all you've got is a convention that you don't pass private variables to external functions. Yes, the point is that it's

Re: OT: Phases of the moon

2005-10-01 Thread Mike Meyer
- or even rational - explanation for that correlation. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-30 Thread Mike Meyer
(king.get_victim) king.breakit() fool._bar [] So, fool._bar is now clobbered. Nuts, the _bar attribute is broken for *every* instance of Fools. According to you, the error must be in Fools. Care to point it out? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home

Re: Hello gnome-terminal

2005-09-30 Thread Mike Meyer
to start a login shell, assuming you can. 2) Move the setting of PYTHONPATH into a different startup file, one that will be executed by all shells when they start. Whatever you do, don't ask about .MacOSX/preferences.plist. mike -- Mike Meyer [EMAIL PROTECTED] http

Re: Google Not Universal Panacea

2005-09-30 Thread Mike Meyer
- if they didn't say they already did - is perfectly reasonable. Assuming they are to lazy to do so is something else again. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: where to post python code?

2005-09-30 Thread Mike Meyer
at www.vex.net is the right place for it. Don't forget to add an entry to PyPI as well. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Mike Meyer
than spam into google and hitting I feel lucky will take you to Xah Lee's home page mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo

Re: Will python never intend to support private, protected and public?

2005-09-30 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: So, fool._bar is now clobbered. Nuts, the _bar attribute is broken for *every* instance of Fools. According to you, the error must be in Fools. Care to point it out? Yes, the error is in the breaker function

Re: attribute error

2005-09-29 Thread Mike Meyer
pop doesn't make any sense for them. mike Mike Meyer wrote: In [EMAIL PROTECTED], M.N.A.Smadi [EMAIL PROTECTED] typed: HI; I am having the following error: AttributeError: 'str' object has no attribute 'pop' am using Python 2.3.4 and am importing the following

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Mike Meyer
that are simply beyond the bounds of propriety, and I think we're discussing one of them. ;-). Bondage and discipline - even between consenting adults - is *usually* considered beyond the bounds of propriety. Since that's what's being discussed, I'd say yup. mike -- Mike Meyer [EMAIL

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
to write them - is a right way todo things. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
is being used whenever the new one is used. Which is pretty much the same place you get with setattr. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Note that the quoted article only applies to *writing* attributes. It doesn't say anything about needing accessors to *read* a variable. This encourages me that the convention I use - adopted from Eiffel, where

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Generally that sounds reasonable. Obviously there are other examples when (e.g. for security) you have to make sure that variables can't be read by other classes, e.g. you have a class that stores a capability

Re: Overhead of individual python apps

2005-09-27 Thread Mike Meyer
:-). mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Human readable number formatting

2005-09-27 Thread Mike Meyer
properly tested code. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: ncurses programming

2005-09-26 Thread Mike Meyer
on Windows? At least, it didn't last time I looked. There was a curses library for Windows, but you'll have to google for it. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: attribute error

2005-09-26 Thread Mike Meyer
the full traceback as well. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing an HTML a tag

2005-09-24 Thread Mike Meyer
a bit unusual. Perfectly legal, though - any browser (or other html processor) that fails to handle it is broken. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Parsing an HTML a tag

2005-09-24 Thread Mike Meyer
for - than with something that is treating it as unstructured text. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: C#3.0 and lambdas

2005-09-23 Thread Mike Meyer
picked up the name bikeshed something like 40 years ago. Google for bikeshed color. Or just check out the FreeBSD FAQ entry at URL: http://www.bikeshed.com/ . mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant

Re: Sniffing Text Files

2005-09-23 Thread Mike Meyer
probably want to provide your own version of the databse, excerpted to include just the file types you want to recognize. You can check on whether or not this will work for you by seeing what the file command says about your sample data. mike -- Mike Meyer [EMAIL PROTECTED

Re: plateform info.

2005-09-22 Thread Mike Meyer
/Version/lib/... but includes /opt/local/lib/python2.4/site-packages in sys.path. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python

Re: Finding where to store application data portably

2005-09-22 Thread Mike Meyer
Support/Bombz. Us unix geeks can symlink that to ~/.bombz if we use the application on both platforms. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org

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

2005-09-22 Thread Mike Meyer
Google - but none based on Python... mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open PDF

2005-09-22 Thread Mike Meyer
that the open package was designed to solve. The API for Python apps is still under development, but if you do 'os.system(open /path/to/file.pdf)', open will use the users preferred pdf viewer, and interact with the user to select one if they don't have a prefernce on record. mike -- Mike Meyer [EMAIL

Re: How to show percentage

2005-09-22 Thread Mike Meyer
, not floats. You can either turn one of your arguments into floats: float(1 * 100) / 3 33.336 This is going to change. Not sure when. You can ask for the new behavior: from __future__ import division 100 / 3 33.336 mike -- Mike Meyer [EMAIL PROTECTED

Re: Sniffing Text Files

2005-09-22 Thread Mike Meyer
it in. I'm not sure that there aren't funny interactions between read and readline, so do be careful with that. Another approach to consider is libmagic. Google turns up a number of links to Python wrappers for it. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home

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, mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

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

2005-09-20 Thread Mike Meyer
idiot.. Can I take it that you saw that scorpion is not the same as scorpian? BTW, if you're using 2.4 and don't care about portability, I'd make ignore a set instead of a list. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce

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

2005-09-18 Thread Mike Meyer
. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Pythoneers reinvent the wheel?

2005-09-18 Thread Mike Meyer
of something like .NET in a couple of sentences. Just taking a stab in the dark, since I'm only vaguely familiar with .NET: P-code for multiple languages? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant

Re: Roguelike programmers needed

2005-09-18 Thread Mike Meyer
to realize that my (old, obsolete) Palm had four times as much RAM as the 11/70 I originally ran Rogue on. And probably an equal overabundance of mips. Which leads to the inevitable question: how many 370 acres can I fit in my pocket? mike -- Mike Meyer [EMAIL PROTECTED] http

Announce: open 0.2 - a unix application launcherr

2005-09-18 Thread Mike Meyer
application opens this file at the command line. Well, most of the time. Instead, they just do open filename, and let open sort it out. It's not got it's own web page yet - and little or no documentation. Download the tarball from URL: http://www.mired.org/downloads/open-0.2.tar.gz mike -- Mike

Re: How am I doing?

2005-09-18 Thread Mike Meyer
, allowing your classes/functions/etc. to be reused by other applications without having to copy them out of your program. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information

Re: Software bugs aren't inevitable

2005-09-16 Thread Mike Meyer
operations. Things like that make a difference. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: brain cramp: emulating cgi.FieldStorage

2005-09-15 Thread Mike Meyer
-- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-15 Thread Mike Meyer
definitions can be hoisted. Or choose your favorite sometimes-I-can-sometimes-I-can't optimization. Since the BDFL is *not* known for doing even mildly silly things when it comes to Python's design and implementation, I suspect there's more to the story than that. mike -- Mike Meyer [EMAIL

Re: Postgres PL/Python

2005-09-15 Thread Mike Meyer
really screwy about PL/Python, anyway. Whether or not you use stored procedures is almost religious in nature. Google for stored procedures, and you'll find opinions ranging from never use them at all to use them whenever you possibly can. mike -- Mike Meyer [EMAIL PROTECTED

Re: Software bugs aren't inevitable

2005-09-15 Thread Mike Meyer
. Surprisingly, it's apparently still in print. At least Amazon claims you can order new copies of it. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org

Re: appended crontab entries with py script

2005-09-13 Thread Mike Meyer
using that. If you want to assume that you're going to have the vixie cron, you could dig into it's guts to see what it does for locking, and do that by hand. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant

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

2005-09-12 Thread Mike Meyer
of it, that problem is OT for c.l.python - because my X wm is written in Python, using python-xlib. So to post... mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org

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, mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD

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

2005-09-11 Thread Mike Meyer
the official one. Of course, if one of the other two includes all the extra functionality you want, use it. 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. mike -- Mike Meyer [EMAIL

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Mike Meyer
to be found by someone trying to find code. I think the manual does need a section on how to find code other than the library. But where do you put it? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

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, and then read the file back in when

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 as an immediate counterexample. It may be the only one

Re: Question about consistency in python language

2005-09-09 Thread Mike Meyer
appropriate for a BD language than Python. And even if you do add the abstract class, how do you make my example work without explictly converting the iterator to a list type? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix

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

2005-09-09 Thread Mike Meyer
remember if I replaced one or not, but don't touch anything else about the 2.3 installtion. I installed the darwinports version of 2.4, and have been using it ever since for all my stuff. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW

Re: encryption with python

2005-09-09 Thread Mike Meyer
- I'd let the databae generate it. Most have some form of counter that does exactly what you want without needing to keep track of it and check the database for consistency. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix

Re: grep database

2005-09-09 Thread Mike Meyer
the files. If you're going to be dealing with large data sets, I'd like to know if you find something that works well for you. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: OpenSource documentation problems

2005-09-09 Thread Mike Meyer
editor as my browser does... mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Manging multiple Python installation

2005-09-08 Thread Mike Meyer
-- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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... mike -- Mike Meyer [EMAIL PROTECTED

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

2005-09-07 Thread Mike Meyer
was looking for on other occations before... So why is the UI returning strings, instead of code objects of some kind? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: dual processor

2005-09-06 Thread Mike Meyer
that. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-06 Thread Mike Meyer
that can be made. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Optional algol syntax style

2005-09-06 Thread Mike Meyer
manipulate those name spaces in ways you can't do in python. Cheeta and ClearSilver come to mind as systems that will let you do this. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: infinite loop

2005-09-06 Thread Mike Meyer
out of stack. Python is in the latter category, and that's what you ran into. Thinking about iteration this way is elegant - but it doesn't work everywhere. Sorry. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix

Re: Add lists to class?

2005-09-03 Thread Mike Meyer
._[0], self._[1], etc. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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 with those names. I have no way of knowing what will be in the list or how long the list

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 of mil-std 1815, Ada has supported tasks which

Re: OpenSource documentation problems

2005-09-01 Thread Mike Meyer
something worthwhile to add. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Mike Meyer
. He really needs to find somebody proof-read his documents. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org

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. In industry, the two major camps are Posix threads

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

2005-09-01 Thread Mike Meyer
a find method. strings do. Why is a good question. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python / web

2005-09-01 Thread Mike Meyer
- which change can be made mechanically. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: Add lists to class?

2005-09-01 Thread Mike Meyer
): ... for i in l: ...self[i] = [] ... c = C(['a', 'b', 'c']) c['a'] [] You didn't say why you wanted to do this; maybe you really do have a good reason. But that would be an exceptional case. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW

Re: Adding bound methods dynamically... CORRECTED

2005-08-31 Thread Mike Meyer
, but rather than going through the contortions you do to bind a new method into place, why not make the method in question act as a proxy for the real method? After all, with first-class functions, that's easy. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: global interpreter lock

2005-08-31 Thread Mike Meyer
. There are some good threading models available. Posix threads isn't one of them, nor is Java's synchronized. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Calling ftp commands from python

2005-08-31 Thread Mike Meyer
-- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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 'if' statement that depends upon input data is statically predictable. Use of async

Re: Precise timings ?

2005-08-30 Thread Mike Meyer
extensions module that calls an F95 routine to get that information. Your F95 compiler does interface with C, doesn't it? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

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 you only have one thread, you can tell by looking at the code what gets executed next

Re: using common lisp with python.

2005-08-29 Thread Mike Meyer
really can't see a reason to use Python as a glue layer. I'd recommend rewriting your LISP code in Python before I'd recommend using Python to interface between Common LISP and C. Agreed. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent

Re: OpenSource documentation problems

2005-08-29 Thread Mike Meyer
the latter is valuable, it's not a substitute for good documentation. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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 that the web technologies do. Where is the text

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. You missed the point: How are you going to provide native

Re: Dynamic image creation for the web...

2005-08-28 Thread Mike Meyer
* hard to figure out why something doesn't work if you don't know what happens when you try it. What happens when you try fetching the URL for the python script directly? How about if you telnet to the web server and do a HEAD on that URL? And so on... mike -- Mike Meyer [EMAIL PROTECTED

Re: global interpreter lock

2005-08-28 Thread Mike Meyer
better tools. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

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 browsers: MSIE, Mozilla, KHTML/Safari, Opera

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 have to turn the things on - much less use

Re: Jargons of Info Tech industry

2005-08-27 Thread Mike Meyer
, news, and an editor open in different screens and then when I need to move to a different machine, I can simply detach and reattach screen without disturbing anything that might be running. For a more portable solution, check out VNC. mike -- Mike Meyer [EMAIL PROTECTED

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