Re: retrieving https pages

2005-07-19 Thread Mike Meyer
about. Personally, I always try Your Web Site Developer Sucks to see if they have a list of disallowed browsers. If that fails, try the User-Agent string of a well-known browser. For page scraping, install BeautifulSoup. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Mike Meyer
refresh tag. 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: email format in python

2005-07-19 Thread Mike Meyer
for web forms. They look like [EMAIL PROTECTED] It really annoys me when some site decides that that can't be my real email address. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: Read only files

2005-07-19 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: goto

2005-07-18 Thread Mike Meyer
integrators, and customers friends and family being very high on the list. That they felt the need to do this speaks volumes about their code quality. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Mike Meyer
. This makes them ever so much more attractive than proprietary solutions, where technical quality seems to be irrelevant to longevity. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information

Re: Native ODBC access for python on linux?

2005-07-14 Thread Mike Meyer
irrelevant. 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: threads and sleep?

2005-07-13 Thread Mike Meyer
, and are saying all of those models aren't right in some way? People say good things about using the Queue module for Python. I haven't investigated it thoroughly, so I have no idea how general it is. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: Fwd: Should I use if or try (as a matter of speed)?

2005-07-12 Thread Mike Meyer
to prevent it from happening again. 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: new division in Pythonwin

2005-07-12 Thread Mike Meyer
the PYTHONSTARTUP environment variable. That's how I get various things loaded into my interactive pythons. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: __autoinit__

2005-07-11 Thread Mike Meyer
be restricted. The question is - how far are you really willing to carry this? What do you think of allowing arbitrary lvalues, with the assumption that the previous arguments are all defined (ala let*)? So you could do: class grouping: def __init__(self, x, x['abc']): pass mike -- Mike

Re: f*cking re module

2005-07-08 Thread Mike Meyer
, that doesn't annoy me. Maybe because I don't think of it as a edit/compile/run cycle, but as an edit/run cycle, and I expect those stop after one errror. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant

Re: f*cking re module

2005-07-07 Thread Mike Meyer
of the most scary things I've ever seen. Is there any possible sequence of bytes that will not be a valid Perl expression or operator? Yes, but will it get as bad as TECO, where guessing what your name did as a command sequence was a popular past time? mike -- Mike Meyer [EMAIL PROTECTED

Re: question about introspection using inspect module

2005-07-07 Thread Mike Meyer
at runtime with a dir(module). 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: How do you program in Python?

2005-07-07 Thread Mike Meyer
ask for an application. So I tend to have a lot of old, big processes on the system. And xemacs is usually bigger than everything but X. And people wondered when I complained that Mac OS 9 and Windows 98 crashed a lot :-). mike -- Mike Meyer [EMAIL PROTECTED] http

Re: Lisp development with macros faster than Python development?..

2005-07-07 Thread Mike Meyer
*adding* features, not for removing them (at least, I don't think I saw any of them in the ongoing discusion re map/filter/reduce/lambda). Or are you arguing that Python will somehow become less useful as new features are proposed and rejected? mike -- Mike Meyer [EMAIL PROTECTED

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-06 Thread Mike Meyer
(IMPLICIT NONE). 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: Favorite non-python language trick?

2005-07-06 Thread Mike Meyer
with my original proposal, but in reverse: Now, in bar(), you define and use a local variable, and suddenly some library function changes its behavior misteriously. True. That pretty much kills my proposal. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: Folding in vim

2005-07-05 Thread Mike Meyer
is hard for a large group - or you mandate that you don't use tabs. 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: How do you program in Python?

2005-07-05 Thread Mike Meyer
for the group. mike *) Smaller is relative, of course. A UMA or a web browser isn't exactly a small tool in either environment. -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Lisp development with macros faster than Python development?..

2005-07-05 Thread Mike Meyer
with the LOC measurement is that the most productive days are the ones where you refactor and eliminate a thousand LOC. That sort of throws the whole thing off. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: math.nroot

2005-07-04 Thread Mike Meyer
implementation of comparison would do. 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: What are the other options against Zope?

2005-07-03 Thread Mike Meyer
AIX provides CLI and curses-based tools to do the work. mike *) I know, some people don't consider AIX to be Unix. But it at least reminds you of Unix... -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: website catcher

2005-07-03 Thread Mike Meyer
the swapped out page, at that. A bunch of very smart people have spent a lot of time making modern operating systems perform well. Worrying about things that it is already worrying about is generally a waste of time - a clear case of premature optimization. mike -- Mike Meyer [EMAIL

Re: How do you program in Python?

2005-07-03 Thread Mike Meyer
() # reveal bug in MyClass # edit MyClass.py, fix the bug, and M-C-x the class x.Test() # The bug is still there! x = MyClass() x.Test() # Now it's gone. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW

Re: Python for everything?

2005-07-03 Thread Mike Meyer
Joseph Garvin [EMAIL PROTECTED] writes: Mike Meyer wrote: You wind up having to invoke the function through your data object, and then pass the data object in - sort of as an explicit self. Yeah, and us pythonists hate explicit self! ;) Except the explicit self is on the method invocation

Re: looping over a big file

2005-07-03 Thread Mike Meyer
don't think it's critical. 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: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-03 Thread Mike Meyer
of, but it gets swept up with the same broom. Moving the first three into a library module seems like a good idea. I'm not sure about removing lambda. Removing map, filter and reduce remove most of my use cases for it. But not all of them. mike -- Mike Meyer [EMAIL PROTECTED

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-02 Thread Mike Meyer
in Python. It's not that uncommon for newcommers to trip over it with print. 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 everything?

2005-07-02 Thread Mike Meyer
Christos TZOTZIOY Georgiou [EMAIL PROTECTED] writes: On Thu, 30 Jun 2005 20:55:20 -0400, rumours say that Mike Meyer [EMAIL PROTECTED] might have written: Actually, I was thinking of pre-KR Unix compilers. There must be something I am missing here, cause I don't understand what you mean

Re: How to run commands in command line from a script

2005-07-01 Thread Mike Meyer
changes. Since using the Python tools for making global changes is usually more portable than invoking an external command, you should try and use such tools for those changes as well. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce

Re: LOC in Python and C++ in large projects

2005-07-01 Thread Mike Meyer
to write fewer LOC. So choice of language can be very important. For an excellent essay on this, see URL: http://www.paulgraham.com/icad.html . mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD

Re: Question about Python

2005-07-01 Thread Mike Meyer
worries about upgrading third party modules breaking my code than I do about upgrading Python breaking my code. - Did you have similar worries to mine when you started working with Python? Yes, based on experience with other languages. I've been pleasantly surprised. mike -- Mike Meyer [EMAIL

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-01 Thread Mike Meyer
TMTOWTDI a way of life. 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: Assigning to None

2005-07-01 Thread Mike Meyer
Peter Hansen [EMAIL PROTECTED] writes: Mike Meyer wrote: Yes. I once grabbed an old program that did assignments to None. But that's always been a bad idea. What was the use case!? Unpacking a tuple. Something like this: (foo, bar, None) = gen_tuple(stuff) I've never seen

Re:

2005-07-01 Thread Mike Meyer
, and the best I could do was the GNU mailutils library. And that's in C, not C++. 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: Favorite non-python language trick?

2005-07-01 Thread Mike Meyer
to the language if you can show that it has no overhead so long as you don't use it. I'm not sure that can be done. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Favorite non-python language trick?

2005-07-01 Thread Mike Meyer
[Lots of quoted text left in...] I started thinking about this, and realized that there was a way to do what you wanted, with no execution time overhead, and without providing ways to radically change the program behavior behind the scenes. Mike Meyer [EMAIL PROTECTED] writes: Shai [EMAIL

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-01 Thread Mike Meyer
you've been doing. 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: Which kid's beginners programming - Python or Forth?

2005-06-30 Thread Mike Meyer
public release of 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: Modules for inclusion in standard library?

2005-06-30 Thread Mike Meyer
that distutils can automatically download and install packages that are required by the package it's currently installing? In other words, C-Python-AN. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: script fichiers binaires lecture écriture

2005-06-30 Thread Mike Meyer
.x, string objects didn't have methods. That's why he's getting the error. He has to use the string module instead. I agree with bruno - you *really* should upgrade. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix

Re: Python for everything?

2005-06-30 Thread Mike Meyer
will have a good, general-purpose sort facility available. Using that is certainly faster than writing and debugging your own. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information

Re: Python for everything?

2005-06-30 Thread Mike Meyer
Ivan Van Laningham [EMAIL PROTECTED] writes: Mike Meyer wrote: [EMAIL PROTECTED] writes: As other have noted, C was never really used for everything. Unix tools were designed to connect together from the very beginning, which is what makes shell scripting so powerful. This was true before

Re: Boss wants me to program

2005-06-29 Thread Mike Meyer
to the buttonbox. Anything that requires you to specify the location exactly (whether in a WYSISOWYG GUI tool or code) is fundamentally broken. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: Modules for inclusion in standard library?

2005-06-29 Thread Mike Meyer
that aren't supported on various oddball systems - like termios. Why should a module that's usable out-of-the-box on a fair variety of systems be excluded just because it's not usable on all platforms? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: Favorite non-python language trick?

2005-06-28 Thread Mike Meyer
that expression. I think it started out as 'bondage and discipline languages', which is even better. I'm going to start referring to python as a 'sluttily typed' language. Since the user is the one bound with BD languages, they are clearly tops. Which makes Python a bottom. mike -- Mike Meyer [EMAIL

Re: Is there something similar to ?: operator (C/C++) in Python?

2005-06-28 Thread Mike Meyer
: [compute_1000_digits_of_pi(), compute_1000_digits_of_e][cond] you'd really rather have: cond ? compute_1000_digits_of_e() : compute_1000_digits_of_pi() There are other such hacks, with other gotchas. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home

Re: Excellent Site for Developers

2005-06-28 Thread Mike Meyer
also: http://www.answers.com/troll Skip -- 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: Which kid's beginners programming - Python or Forth?

2005-06-28 Thread Mike Meyer
to children. There are free implementations for most popular platforms. Someone has already provided a link to pylogo. That might be a good starting place. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: Loop until condition is true

2005-06-23 Thread Mike Meyer
as variable names than None? 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: Loop until condition is true

2005-06-23 Thread Mike Meyer
Michael Hoffman [EMAIL PROTECTED] writes: Mike Meyer wrote: Making None a constant broke existing code (and I just saw old code that assigned to None). Are True and False that much more common as variable names than None? Yes. In fact, I count at least 4 different modules in the Python 2.4

Re: suggestions invited

2005-06-23 Thread Mike Meyer
pages (so you get to use XML after all :-) and a front page that lists the applications alphabetically? That also avoids the problem of what you do when the employee misspells the name of the application. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home

Re: Getting/Saving email attachments w/ poplib and email modules

2005-06-22 Thread Mike Meyer
should be right. 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

Looking for a web-based messaging system

2005-06-22 Thread Mike Meyer
is perfectly fine. GPL is acceptable, but not preferred. So far, the only thing I've found that comes remotely close to this is BoBoMail. Thanks, mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: import search path

2005-06-22 Thread Mike Meyer
, copyright, credits or license for more information. py import FFT py import sys py sys.modules['FFT'].__file__ '/usr/opt/lib/python2.4/site-packages/Numeric/FFT/__init__.pyc' mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD

Re: extreme newbie

2005-06-21 Thread Mike Meyer
system at the university was to issue the command '% touch $HOME/*; clear' on any terminals found unattended. But we were a nasty bunch. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: extreme newbie

2005-06-21 Thread Mike Meyer
your software more secure. It's easier to find security holes by examining source near insecure operations than it is by trial and error. On the flip side, Thompson URL: http://www.acm.org/classics/sep95/ has shown that distributing source is not a preventative for trojans. mike -- Mike

Re: What is different with Python ?

2005-06-20 Thread Mike Meyer
Andrea Griffini [EMAIL PROTECTED] writes: On Tue, 14 Jun 2005 16:40:42 -0500, Mike Meyer [EMAIL PROTECTED] wrote: Um, you didn't do the translation right. Whoops. So you know assembler, no other possibility as it's such a complex language that unless someone already knows

Re: What is different with Python ?

2005-06-20 Thread Mike Meyer
. (To be fair, some of the alternate mathematical world were first explored by physicists). 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: What is different with Python ?

2005-06-20 Thread Mike Meyer
to show that it must be true (or false). In failing to show that, they invented a new branch of mathematics. I'd say programming is more like that. But I approach programming from a mathematicians viewpoint. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

Re: What is different with Python ?

2005-06-14 Thread Mike Meyer
Andrea Griffini [EMAIL PROTECTED] writes: On Mon, 13 Jun 2005 21:33:50 -0500, Mike Meyer [EMAIL PROTECTED] wrote: But this same logic applies to why you want to teach abstract things before concrete things. Since you like concrete examples, let's look at a simple one: a = b + c ... nIn

Re: What is different with Python ?

2005-06-14 Thread Mike Meyer
Roy Smith [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote: I've never seen someone explain why, for instance, string addition is O(n^2) beyond the very abstract it creates a new string with each addition. No concrete details at all. I took a shot at that very question a while

Re: What is different with Python ?

2005-06-13 Thread Mike Meyer
of an engineering (but not software engineering) curriculum. The least readable code examples almost uniformly came from the latter group. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more

Re: What is different with Python ?

2005-06-13 Thread Mike Meyer
Andrea Griffini [EMAIL PROTECTED] writes: On Mon, 13 Jun 2005 01:54:53 -0500, Mike Meyer [EMAIL PROTECTED] wrote: Andrea Griffini [EMAIL PROTECTED] writes: I disagree. If you're going to make competent programmers of them, they need to know the *cost* of those details, but not necessarily

Re: How to get/set class attributes in Python

2005-06-13 Thread Mike Meyer
to catch errors for. It's not clear which cost is larger. 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: recursive import list

2005-06-13 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: What is different with Python ?

2005-06-12 Thread Mike Meyer
about disk sector sizes well into the 1990s. Since then I've worked on systems that didn't have a file system as such; it had a database of databases, and you queried the former to find the latter. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent

Re: Dealing with marketing types...

2005-06-12 Thread Mike Meyer
to be dominated by sites that are really only of interest to a small community. For those sites, LAMP will work just fine. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Best Web dev language

2005-06-12 Thread Mike Meyer
John Roth [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jon Slaughter [EMAIL PROTECTED] writes: Someone mentioned that you might require JavaScript on the client side. I recommend against that - people and organizations disable JavaScript

Re: What is different with Python ?

2005-06-12 Thread Mike Meyer
to start with the abstract, and deal with concrete issues - like assignment(!) later. mike *) My favorite programming langauge is solder. - Bob Pease -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: Sending mail from 'current user' in Python

2005-06-12 Thread Mike Meyer
Marcus Alanen [EMAIL PROTECTED] writes: Mike Meyer wrote: Finally, if at all possible I'd also like to get this working on Windows, so I'd rather stick with the standard smtplib if I can. smtplib needs an SMTP server to connect to. For unix systems, this is typically localhost. What do you use

Re: Is pyton for me?

2005-06-11 Thread Mike Meyer
of repeated commands - even with conditionals - isn't to bad. But when you start forking processes in a loop, it's time to use a more powerful tool. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email

Re: Best Web dev language

2005-06-11 Thread Mike Meyer
. But that's a long discussion - see URL: http://www.mired.org/home/mwm/papers.green.html for more information. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http

Re: Controlling a generator the pythonic way

2005-06-11 Thread Mike Meyer
pythonic. -- 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: Fast text display?

2005-06-10 Thread Mike Meyer
packages instead of just the installing package - or vice versa. 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: Is pyton for me?

2005-06-10 Thread Mike Meyer
to those shells. So when writing sh scripts, I tend to stay with fundamental bourne features. Other languages have less overhead in invoking external commands. Rexx and Perl come to mind. You might want to give them a look. mike -- Mike Meyer [EMAIL PROTECTED] http

Re: Sending mail from 'current user' in Python

2005-06-10 Thread Mike Meyer
that an MX record will exist for the part of the domain name which get mail - which may not be true. This entire procedure also assumes that the user reads mail using their ISP-provided maildrop, which may not be true. mike -- Mike Meyer [EMAIL PROTECTED

Re: Fast text display?

2005-06-09 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: my golf game needs gui

2005-06-09 Thread Mike Meyer
are provided in Python with PyQt - include an animated game. any suggestions on which way I should go next? I like PyQt. Licensing for Windows is problematical, and changing. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD

Re: Start application continue after app exits

2005-06-09 Thread Mike Meyer
happy to let multiple processes read/write a file at the same time. FWIW, this also means that the methodology as outlined is insecure. Some other program can read the temporary file as it exists on the disk, thus disclosing it's contents to unauthorized readers. mike -- Mike Meyer [EMAIL

Re: Fast text display?

2005-06-09 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: I mean included with the source distro from python.org. Well, it includes Tkinter, but it doesn't include tcl/tk. So you get a non-functional version of Tkinter if you install from those sources. Not very

Re: Help with SMTP

2005-06-08 Thread Mike Meyer
, and then use that as the From address for the mail you're sending. You could ask the user to input an email address and use that as the From address. Unless you plan on getting back to them via email, I wouldn't bother. mike -- Mike Meyer [EMAIL PROTECTED] http

Re: SMTP help please

2005-06-07 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: Destructive Windows Script

2005-06-06 Thread Mike Meyer
Unix systems assume drives don't care much about geometry, what with sector forwarding and variable track lengths and the like. Just open the raw disk device (assuming your Unix has such), and start writing data to it. Keep going until the write fails at the end of the media. mike -- Mike

Re: Destructive Windows Script

2005-06-06 Thread Mike Meyer
rbt [EMAIL PROTECTED] writes: Mike Meyer wrote: Terry Reedy [EMAIL PROTECTED] writes: On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix build) and write a tracks worth of garbage for as many tracks as there are. I don't how to programmaticly get the track size

GUI builders considered harmful (Was: anygui,anydb, any opinions?)

2005-06-05 Thread Mike Meyer
the application developer scale the GUI when the application is invoked, and will re-arrange elements of the GUI so they fit on the screen properly. If so, I'd love to hear about it. Thank you, mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent

Re: For review: PEP 343: Anonymous Block Redux and GeneratorEnhancements

2005-06-05 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: GUI builders considered harmful

2005-06-05 Thread Mike Meyer
Bruce Stephens [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: [...] The first, and most obvious, thing that GUI builders do is force the developer to specify an exact position - if not size - for the graphical elements of the UI. They do? I don't remember them doing

Re: Alternative history

2005-06-04 Thread Mike Meyer
[EMAIL PROTECTED] (Cameron Laird) writes: In article [EMAIL PROTECTED], Mike Meyer [EMAIL PROTECTED] wrote: . If it isn't a homework assignment, and you're honestly in such, then you should know there's been a lot of research in this area, because primes are important

Re: Software licenses and releasing Python programs for review

2005-06-04 Thread Mike Meyer
your employee to use the software) under licenses that restrict the rights granted by the GPL. I don't know whether this would hold water in court. I'd certainly hate to be the one responsible for a company finding out the hard way. mike -- Mike Meyer [EMAIL PROTECTED] http

Re: any macro-like construct/technique/trick?

2005-06-04 Thread Mike Meyer
one. I've never tried it with python, but the C preprocessor is available as 'cpp' on most Unix systesm. Using it on languages other than C has been worthwhile on a few occasions. It would certainly seem to directly meet the OP's needs. mike -- Mike Meyer [EMAIL PROTECTED

Re: Easy way to detect hard drives and partitions in Linux

2005-06-04 Thread Mike Meyer
chances with releases of the underlying system. 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: write to the same file from multiple processes at the same time?

2005-05-30 Thread Mike Meyer
fcntl.flock(f, fcntl.LOCK_UN) call before closing the file. 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: prime number

2005-05-29 Thread Mike Meyer
is a good place to start on looking for recent research on the subject. 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: Case Sensitive, Multiline Comments

2005-05-28 Thread Mike Meyer
, and in general went crazy trying to figure out what was wrong. I eventually called Microsoft and asked. The answer was Those have to be in upper case. That told me enough about the insides of MS software that I swore off it, and have never purchased an MS product since. mike -- Mike Meyer [EMAIL

Re: write to the same file from multiple processes at the same time?

2005-05-28 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: __call__

2005-05-28 Thread Mike Meyer
with this construct. 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: Help with choice of suitable Architecture

2005-05-28 Thread Mike Meyer
of the functionality in a noscript element. 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 Impact Analysis Tool ?

2005-05-26 Thread Mike Meyer
. Then I would be able to isolate what needs to be changed and unit tested..I am trying to improve programmer productivity at design time. Take as look at PyUMLGraph. That should narrow it down to classes. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm

<    5   6   7   8   9   10   11   12   13   >