involved.
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
basis. In fact, I automate *lots* of tasks on Unix
systems on a regular basis, and have been doing it for decades. Most
Unix tools are very amenable to automation, much more so than I've
found either Windows or OS X tools to be.
mike
--
Mike Meyer [EMAIL PROTECTED] http
that they are doing something
wrong, as opposed to a tool that will prevent them from doing it, then
you'll have the right idea. In which case, I'd still recommend looking
into the rexec module.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce
, your
Unix has a lot worse problems than one application being down.
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
it out from 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
? Cool.
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
foo(*args, *kwds):
# preprocess the arguments
return oldfoo(*args, *kwds)
--
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
Paul Boddie [EMAIL PROTECTED] writes:
Mike Meyer wrote:
[EMAIL PROTECTED] writes:
but I supposed the everyone knew that web automation (and in general
automation) is only a problem in Linux.
I don't know it. I don't believe it, either. I automate web tasks on
Unix systems (I don't use many
print /table
and of course leave out the trailing tr in the print statement that
precedes the loop.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
--
http
.
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
that. In this case, you want . to match them, so you use the
DOTALL flag:
a = this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n
t = re.compile(r\[startdelim\](.*)\[enddelim\], re.DOTALL)
t.findall(a)
['this\nis\nanother']
mike
--
Mike Meyer [EMAIL PROTECTED
. So the number of BSD kernels to choose
from is much greater than the number of Linux kernels, but the number
of BSD distributions is much fewer.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email
Grant Edwards [EMAIL PROTECTED] writes:
On 2005-11-05, Mike Meyer [EMAIL PROTECTED] wrote:
Programmer-friendly is pretty vague. Gentoo is the only Linux distro
I've run into (which excludes a *lot* of Unix distros) that I'd
consider programmer friendly, because it doesn't split packages up
that
they have available.
And, since we're talking about Mr. Lee, let's add the obligatory
request that you help google find him by description by adding this
link to your page: a href=http://xahlee.org/;stupider than spam/a
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org
Paul Rubin http://[EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] writes:
The thing is, the library documentation that Xah Lee is complaining
about is a *reference document*. It says so right in the title:
Python Library Reference. As such, it makes lousy tutorial
documentation.
I'm
I've already seen.
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
Paul Rubin http://[EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] writes:
It's only -because- of those licenses that there's any reason not to
bundle.
Actually, there are other reasons, just as there are reasons besides
licensing for not simply including third party libraries
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2005-11-03, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
What would you expect to get if you wrote b.a = b.a + 2?
I would expect a result consistent with the fact that both times
b.a would refer to the same object
... return locals()[name]
... def __setattr__(self, name, value):
... globals()[name] = value
...
o = C()
o.x = o.x + 1
x
2
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information
Paul Rubin http://[EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] writes:
I've already argued that the kludges suggested to solve this problem
create worse problems than this.
The most obvious solution is to permit (or even require) the
programmer to list the instance variables as part
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2005-11-04, Mike Meyer schreef [EMAIL PROTECTED]:
Would it be too much to ask that in a line like.
x = x + 1.
both x's would resolve to the same namespace?
Yes. That's to much bondage for programmers who've become accustomed
to freedom
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2005-11-04, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
Op 2005-11-03, Mike Meyer schreef [EMAIL PROTECTED]:
Antoon Pardon [EMAIL PROTECTED] writes:
What would you expect to get if you wrote b.a = b.a + 2?
I would
interpreted the source directly. Pretty much all of the rest of them
do a lexical analysis, turning keywords into magic tokens (dare I say
byte codes) and removing as much white space as possible. Or maybe
that's what you meant?
mike
--
Mike Meyer [EMAIL PROTECTED] http
[EMAIL PROTECTED] (Bengt Richter) writes:
On Thu, 03 Nov 2005 13:37:08 -0500, Mike Meyer [EMAIL PROTECTED] wrote:
[...]
I think it even less sane, if the same occurce of b.a refers to two
different objects, like in b.a += 2
That's a wart in +=, nothing less. The fix to that is to remove
was poorly written. Unless a
macros is intended as a tool to repeatedly evaluate an argument, it
should only evaluate it at most once.
Of course, if you're using some rock-stupid textual macro system, you
really don't have much choice in the matter.
mike
--
Mike Meyer [EMAIL PROTECTED
of
each depending on what it's operating on. While it's true that python
is dynamic enough that the you can create classes that make this true
for any operator, += is the only one that acts like that on the
builtin types.
mike
--
Mike Meyer [EMAIL PROTECTED] http
else.
Well, I'm not an expert on re's - I've only been using them for three
decades - but I'm not sure this can be done with a single re, as the
pattern you're interested in depends on context, and re's don't handle
that well.
On the
--
Mike Meyer [EMAIL PROTECTED] http
--
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
. This works ilke a charm. If you don't
want to deal with entire files, you can use exec, or even eval if you
just want to get a value back.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information
less sane, if the same occurce of b.a refers to two
different objects, like in b.a += 2
That's a wart in +=, nothing less. The fix to that is to remove +=
from the language, but it's a bit late for that.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm
[:]
mike
list2.reverse()
list1
['1', '2', '3', '4', '5', '6', '7', '8', '9']
list2
['9', '8', '7', '6', '5', '4', '3', '2', '1']
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information
, or via inheritance, and
both behaviors are desirable. If you're going to disallow
self.class_variable, you need to come up with a mechanism to replace
the latter behavior.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix
as it looks.
--
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
to change regarding 'OX' or something else?
Make sure you're setting cell properly - you didn't show that.
Also, the above code is a syntax error; I assume your running code has
the correct indentation.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm
Peter Hansen [EMAIL PROTECTED] writes:
Mike Meyer wrote:
Xah Leh is incompetent, but
apparently well-intentioned.
In your view is that (well-intentioned) an established fact at this
point? I was still waiting for conclusive evidence.
No, it's not an established fact, which is why I said
should be 0 and 9, so that gameboard[:] is the same thing yet
again. But since you're not changing the board but reading it, there's
no need to make a copy, which is what the sliced versions do.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW
to both
these examples.
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
the returned value to the
password from the password 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
the things as a string of 0 and 1, and then use .find (or maybe
the in keyword) for doing the searches.
This doesn't work very well if you're going to mutate the string,
though.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce
he may have forgot to cover something?
Well, randrange can be used to do this, but random.choice is more
pythonic.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
--
http
is easier than the shell
script.
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
to avoid spurious warnings, pychecker would have to know
whether the objects in the list were immutable or not. It could guess
that if the objects are builtin types, but not for other types.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce
, and there's no
easy way to distinguish those from his usual work.
He has been accurately described as stupider than spam. Please help
Google find him that way by adding an appropriater link to your web
site: a href=http://xahlee.org/;stupider than spam/a
mike
--
Mike Meyer [EMAIL PROTECTED
())
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
')\
or ((gameboard[0] and gameboard[4] and gameboard[8]) ==
'X') or ((gameboard[2] and gameboard[4] and gameboard[6]) == 'X')):
print Player 2 wins!
win = 1
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW
browser pick them, anyway. In the latter case, the fault is yours, not
theirs.
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
. The only difference is what you have to do to get a single
(double) quote in the string.
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
time optional arguments to the lambda, bound to the correct
value then. So you'd do:
button['command'] = lambda b = button: self.fill(b)
The version you used will look up the name button when the lambda is
invoked. My version will look it up when the lambda is defined.
mike
--
Mike
.
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
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Microsoft's behavior consisted of arguments, that is, did not
involve force, the threat of force, fraud, or the threat of
fraud. This is perhaps the most vital distinction
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Of course, you've dropped the real point, which is your own inabillity
to distinguish between, as you put it, guns and arguments. You
always act as if every mention of a crime
way out of it, and come up with a reason for
this behavior other than doing so at MS's orders.
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
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
David Schwartz [EMAIL PROTECTED] writes:
I'm trying to find out why you regularly ignore that difference for
everyone but MS.
To substantiate that claim, you'd have to point
**kwargs with your list could serve as a
custom preprocessor. To be particulary perverse, you could try using
a Cheetah template to generate your code - I've not tried generating
Python with it, but it creates Makefiles quite nicely.
mike
--
Mike Meyer [EMAIL PROTECTED
putting a space between
all the objects it prints. So you have to convert all the objects into
a single string before printing that string.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
thereof - of the HTML you're
scraping. If they change it, your code breaks.
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
.
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
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
Mike Meyer wrote:
[snip]
for name, value in kwargs.items():
if name in ('a', 'list', 'of', 'valid', 'keywords'):
exec %s = %s % (name, value)
else:
raise ValueError, Unrecognized keyword + name
Others
Paul Watson [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Paul Watson [EMAIL PROTECTED] writes:
...
Did you do timings on it vs. mmap? Having to copy the data multiple
times to deal with the overlap - thanks to strings being immutable
the variable pos here? Yeah, it
works, but this strikes me as very confusing. I'm not sure that it
might not be implementation dependent.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
in this case...
In any case a macro language like AutoIt is a general purpose
application.
At last I must thank Mike Meyer for his suggestion to use python-xlib
to avoid low level programming...
Just to clarify - python-xlib will let you avoid the need for C
functions to do things like send X
be able to mmap it either. To
deal with huge files, the only option is to read the file in in
chunks, count the occurences in each chunk, and then do some fiddling
to deal with the pattern landing on a boundary.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org
with 'and' and 'or'.
But without a UI, that's pretty much useless - and you haven't said
what you want the UI to be.
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
by this. I would have expected this
change to solve the problem. Where do you get two extra newlines?
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
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The quote about the mafia doesn't compare MS's actions to actual use
of force.
I'm sorry, that's just absurd. I won't speculate on what motivates you
to engage in such crazy
:
for name, value in kwargs.items():
if name in ('a', 'list', 'of', 'valid', 'keywords'):
exec %s = %s % (name, value)
else:
raise ValueError, Unrecognized keyword + name
Others will probably tell you that you really shouldn't be using exec.
mike
--
Mike
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Maybe true, maybe not - but it doesn't matter. The point is that you
()
print count
sys.exit(0)
Did you do timings on it vs. mmap? Having to copy the data multiple
times to deal with the overlap - thanks to strings being immutable -
would seem to be a lose, and makes me wonder how it could be faster
than mmap in general.
Thanks,
mike
--
Mike Meyer
bugs lurking there that cause things
like your import never finishing. If you need to start a thread in a
module, the approach outlined above avoids those bugs.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix
dcrespo [EMAIL PROTECTED] writes:
Hi all,
How can I replace all None values with the string 'Null' in a
dictionary?
Iterate over everything in the dictionary:
for key, item in mydict.items():
if item is None:
mydict[key] = 'Null'
mike
--
Mike Meyer [EMAIL PROTECTED
with guns pointed
out [MS officers] heads.
It seems like he's trying to avoid (further) tarnishing MS's
reputation by avoiding having MS associated with other criminals. You
have to wonder what could caause that kinnd of behavior.
mike
--
Mike Meyer [EMAIL PROTECTED] http
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've noticed something strange that makes me wonder the same
thing. Everytime someone compares MS's behavior with that of any other
criminals, he responds about MS's activity being
) will
search it after other directories.
Docs here:
http://www.python.org/doc/2.2.3/tut/node8.html#SECTION00820
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ironically, while no one else has so much as compared MS to criminals
with
guns. I defy you to find *one* place where I complain that MS behavior
is
equated to the actual use
to his website with the anchor stupider than spam.
A typical usage might be:
And pointing out that some people are a
href=http://xahlee.org/;stupider than spam/a.
Thanks,
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce
for the job. If you have well-formed HTML, you can use the
htmllib parser in the standard library. If you have the usual crap one
finds on the web, I recommend BeautifulSoup.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix
environment with file
commands. The posix calls checked the local then global variables.
Of course, this is now 10+ year old memory, and I may not RC.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email
such 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
in the JVM. Not only was that designed with security in mind, but most
browsers come with a JVM already installed.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
--
http
Terry Hancock [EMAIL PROTECTED] writes:
I think Mr. Lundh's point was only that the output from glob.glob is already
guaranteed to be strings, so using either '%s'%f or str(f) is superfluous.
Just for the record - this was why I asked what the point was in the
first place.
mike
--
Mike
, filein)
The truly paranoid will replace os.unlink(filein) with
os.rename(filein, filein + '.back').
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
doing innovative work on desktop systems, and it's taken
the desktop software industry two decades to recover from that. I'll
accept that as crippling until a better definition comes along.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW
, but
they are certainly something that we can do without.
In light of these arguments, I hereby reserve the right to revert to
top-posting if the compulsion overwhelms me.
That's your right. Be aware that people will ignore, correct and/or
complain about you doing so.
mike
--
Mike Meyer [EMAIL
pissed off about how things could have been done
better is a losing proposition.
I'm not pissed off about it - I've got better things to do. You asked
for prove that desktop software development was crippled by MS. I
provided it.
mike
--
Mike Meyer [EMAIL PROTECTED] http
darren kirby [EMAIL PROTECTED] writes:
If all you want is filenames this will work:
import glob
files = [%s % f for f in glob.glob(*)]
What's the point of doing %s % f? How is this different from just
file = [f for f in glob.glob(*)]?
mike
--
Mike Meyer [EMAIL PROTECTED
builtin.
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
entropy [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] wrote...
[EMAIL PROTECTED] wrote...
In comp.lang.perl.misc David Schwartz [EMAIL PROTECTED] wrote:
Mike Meyer [EMAIL PROTECTED] wrote in message
Sorry, but nobody but the government actually owns property. In most
places, you can't
aren't interested in constructive intercourse on the
question. You're just interesting in knocking down your own
arguments. Personally, I'd rather not watch you masterbate.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce
--
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
?
Hopefully user defined. Rexx has a global control that lets you set
the number of digits to be considered significant in doing an FP
equality test.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email
have direct
support for it, any more than C++ does. To get that functionality, you
want to use either the os.popen function, or - preferable, but only
available in newer Pythons - the subprocess module.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm
Dennis Lee Bieber [EMAIL PROTECTED] writes:
On Sun, 23 Oct 2005 20:59:46 -0400, Mike Meyer [EMAIL PROTECTED] declaimed
the following in comp.lang.python:
Hopefully user defined. Rexx has a global control that lets you set
the number of digits to be considered significant in doing an FP
idiom being closer to a factor of four
instead of two slower. The .joim idiom is still nearly identical.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
--
http
by calling Circle.draw(self). The latter is ugly - you should
use self.draw() to invoke the draw routine that's correct for self.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information
- and
my discussion of them - cover just one very broad use case. There may
be others where they are a better fit with Python. Having examples of
how to do these kinds of things around is probably worthwhile.
mike
--
Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm
it was.
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
and money it would take.
Then factor in the profits to be reaped from selling the ported
OS/compilers :-).
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
Steven D'Aprano [EMAIL PROTECTED] writes:
On Fri, 21 Oct 2005 13:33:18 -0400, Mike Meyer wrote:
Paul Dale [EMAIL PROTECTED] writes:
Hi everyone,
Is it possible to bind a list member or variable to a variable such that
temp = 5
list = [ temp ]
Don't use the names of built
David Schwartz [EMAIL PROTECTED] writes:
Mike Meyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Neither I, nor you, nor the government of any nation, should care a
monkey's toss specifically for Microsoft's success. Microsoft is one
special interest, out of a potentially
[EMAIL PROTECTED] (Alex Martelli) writes:
Mike Meyer [EMAIL PROTECTED] wrote:
Every line = more labour for the developer = more cost and time.
Every line = more places for bugs to exist = more cost and time.
There were studies done in the 70s that showed that programmers
produced the same
501 - 600 of 1231 matches
Mail list logo