to you. wxPython, for instance, has a wonderful set of
demos that demonstrate almost every feature of the toolkit.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
at would not just
work.
You did try to solve this yourself before sending a message around the
world, didn't you?
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
particularly information thats from the
>past 8 years.
That's because serial ports, and the means of accessing them, haven't
changed significantly in the last 8 years. Or the last 38 years, for that
matter.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ection is be established using
>socket_connect() or socket_listen().
>This function must be used on the socket before socket_connect().
That's all true. So what was your point? How does this help the original
poster?
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
and you rather rudely ignored, there is no
variable called "sSocketlock", because you commented it out.
Next, "stdout.release()" will fail. "stdout" does not have a release
function. You meant "stdoutlock.release()".
Next, you release sSocketlock, but you n
t;>>>> http://www-tech.mit.edu/V128/N12/weizenbaum.html
>>>>>
>>>> How do you feel about creator of Eliza?
>>>
>>> What is Eliza?
>>
>> Does that question interest you?
>
>Well played, sir.
>
>Earlier you said wha
?
What you see there is the list of registered ActiveX controls. You need to
implement a few additional interfaces. I believe IOleInPlaceObject is
required to satisfy Excel.
http://msdn2.microsoft.com/en-us/library/aa751972.aspx
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide,
n.decode(response.read())
to parse it. Have you read the cjson documentation?
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
hon 2.5. On the other hand, the same
>code worked perfectly great on my linux machine with python 2.3.4.
>What could the problem be?
I'm not sure. It worked correctly on my Windows machine with Python 2.4.4.
Are you going through a proxy? Are you able to read other (non-JSON) web
pa
Sean DiZazzo <[EMAIL PROTECTED]> wrote:
>
>The overall idea is to be able to tell if a file has finished being
>placed in a directory without any control over what is putting it
>there.
There is simply no way to do this on Windows that works in the general
case.
--
Tim Roberts
Christian Heimes <[EMAIL PROTECTED]> wrote:
>
>Yes, it sounds like a good idea. The low hanging fruits (aka easy tasks)
>could be implemented for 2.6 and 3.0. The more complex tasks may have to
>wait for 2.7 and 3.1
I thought there wasn't going to be a 2.7...
--
Tim Ro
count is updated as part of
scheduling during timer interrupts. As long as no one disables interrupts
for more than about 15ms, it is reliable.
However, it's only a 32-bit value, so the number rolls over every 49 days.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
ht
gt;
>their is function called GetWindowText I tried to use but it doesn't
>work in most of the time
>
>someone know a way to do this?
Did you not like the reply I gave you the first time you asked this
question?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
>7) >>> c,d = n if n is not None else 0,0
>8) >>> print c,d
>9) (22, 11) 0
>10) >>> c,d = n if n is not None else (0,0)
>11) >>> print c,d
>12) 22 11
As line 10 makes clear, line 7 is interpreted thus:
c,d = (n if n is not None else 0) , 0
27;s very dangerous to make a post like this without including the smiley.
You're likely to get a mailbox full of "helpful" corrections...
;)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sing one of the many simple and
affordable USB experimenter's kits in the world.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
vascript, nor is it a part of Javascript. JSON is a data exchange
standard, which happens to be readable to Javascript parsers. A valid JSON
expression happens to be a valid Javascript expression, but not vice versa.
That's just the way it is.
--
Tim Roberts, t...@probo.com
Providenza & Boeke
Unfortunately, unless I'm doing something wrong, this appears to take 20 times
as long... :-)
What on earth are numpy and psyco? Do I need to watch the Lord of the Rings?
Tim
Tim wrote:
> In PythonWin I'm running a program to find the 13th root (say) of
> millions of hundred-digit numbers
Dan,
Thanks - you're probably right - just my intuition said to me that rather than
calculating that the 13th root of 4021503534212915433093809093996098953996019232
is 3221.2904208350265
there must be a quicker way of finding out its between 3221 and 3222
but perhaps not.
Tim
__
"Tim Roberts" wrote:
>
>Thanks - you're probably right - just my intuition said to me that rather than
>calculating that the 13th root of
>4021503534212915433093809093996098953996019232
>is 3221.2904208350265
>there must be a quicker way of find
Actually, all I'm interested in is whether the 100 digit numbers have an exact
integral root, or not. At the moment, because of accuracy concerns, I'm doing
something like
for root in powersp:
nroot = round(bignum**(1.0/root))
Paul,
Yes, very good, on all counts. Many thanks.
Tim
From: Paul Rubin [mailto:"http://phr.cx"@NOSPAM.invalid]
Sent: Sun 01-Feb-09 3:53 PM
To: python-list@python.org
Subject: Re: nth root
"Tim Roberts" writes:
> Actually, a
and are included in their
full, readable source form in every Python installation? \Python25\lib in
Windows, /usr/lib/python25 in Linux.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
been bitten by the shared default parameter noobie trap:
>http://www.python.org/doc/faq/general/#why-are-default-values-shared-between-objects
Actually, he hasn't. His problem is more fundamental.
However, this is still a good thing for you to point out now and then.
--
Tim Rob
>M1=S.Matrix([14,-6],[-6,6])
>M2=S.Matrix([2,-6],[-6,6])
>S.Matrix.berkowitz_minors(M2)
>S.Matrix.berkowitz_minors(M1)
print S.Matrix.berkowitz_minors(M2)
print S.Matrix.berkowitz_minors(M1)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
udes Visual C++ 9.0, and hence msvcrt90.dll. People say "VC8" when
they really mean Visual Studio 2008.
Visual Studio 98- VC++ 6.0
Visual Studio 2002 - VC++ 7.0
Visual Studio 2003 - VC++ 7.1
Visual Studio 2005 - VC++ 8.0
Visual Studio 2008 - VC++ 9.0
--
Tim
(query.get('data'))",
and your blanket "except" would hide the error.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
would have said either
"Executable operational semantics for Python," or "An executable
operational semantic for Python."
"A semantics" just doesn't flow.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the habit of purchasing
software when you have no clue what to do with it, my best advice is that
you should stop purchasing software.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
if you are already using SDL and PyGame, this sounds like a
great solution. But for someone starting from scratch, it's not yet clear
to me that OcempGUI substantially better than wx.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin <http://phr...@nospam.invalid> wrote:
>
>C is basically never appropriate. C should be outlawed by Congress
>with the ban enforced by roving pie-throwing squads .
One of my favorite quotes:
The last good thing written in C was Schubert's Ninth Symphony
all) performance advantage in using the
Unicode APIs instead of the ANSI APIs.
Unless you need your wx programs to run on Windows 98, I recommend you use
the Unicode version of wxPython.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
this day, 6 years after XP, I still find myself looking at
"driverquery.exe" instead of the "drivers" directory.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
eb
site, it's sent through a POST request. However, keeping data out of the
URL is a big factor.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
essed that relationship properly.
When I have these kinds of philosophical debates over my own code, I always
try to summarize them in the comments inside the module, just so others can
get "inside my head" to understand the thinking that led to my design.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
im is the
most popular Windows editor (I have to believe that Visual Studio is), but
the vim community in Windows is strong, active, and well-populated.
I suspect this is especially true in the Python world. Many Python
devotees spend time in multiple operating systems, where vim and emacs
pro
4.html',
>'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
> >>> test[4]
>'toc.html'
> >>> test[4].strip('.html')
>'oc'
> >>> test[2].strip(&
nceMatcher(None, [4], [5] * 200).ratio()
If you print get_matching_blocks(), you'll see that there are none, because
the "b" sequence is optimized completely away. The #1528074 calls it
"working by designed" and suggests updating the doc. However, I would
argue that it's worth checking for this.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
one have done such or alike in the past and can help me
>with this.
>Is there anything I should do in my python file in order to get that
>environment variable?
The SSH_ORIGINAL_COMMAND variable is set to the command that was passed in
on the ssh command line. Since you are not specifying
e,
but if you're using ReadFile and WriteFile, it's not a problem.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
an continues to live on in the hearts and
minds of today's programmers.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
relegated to the domain of beginners and tutorials. Real
programs almost never use them. As a result, this change just isn't seen
to be all that important.
If you can figure out where this could have been written so that you would
have seen it, I'm sure a documentation ch
li,fi,re):
>"""
>find and replace a string inside a string, return list
>find_and_replace(list,find,replace)
>"""
>this=[]
>for l in li:
>#found_index=string.find(l,fi)
>this.append(l.replace(fi,re))
>return this
def find_and_replace(self,li,fi,re):
return [l.replace(fi,re) for l in li]
I'm not sure why this is a member of the class; it doesn't use any of the
members.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
b fallback" I will post it here shortly to
>python-list.
One common method is like this:
try:
import pycurl
except ImportError:
pycurl = None
import urllib
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
>
>---
>
>This is pretty darned easy for me understand and modify either by hand or with
>the GUI builder.
Well, allow me to point out that the equivalent code in wxPython would not
be very much longer than this. It's just spelled differently. Sure, you
have a bit of a learning
t's where third-party libraries are typically installed to.
>>
>> Follow the path of the Iguana...http://rebertia.com
>
>You mean like MoinMoin, Django or Pylons for example?
It means any package that should be available to Python programs that is
not part of the standard Pytho
re and a semicolon after. Again, show
us a complete, runnable example and we can check it out.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
and Y are...", and regardless of the substitution of X and Y,
the plurality of the subject agrees with the verb.
The Morning Star and the Evening Star are bright tonight.
Ignoring the fact that we can't see both at the same time, why is the
meaning of that unclear?
--
Tim Roberts, t..
mple, thread
creation on Windows is not all that expensive.
>You should use a pool of threads or processes.
Even so, this is good advise.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
listener can get confused.
I'm inclined to disagree, but in contexts where it is important, I always
try to say "a and b are bound to the same object".
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ctShow filter graph. The graph builder has the ability to deliver
events asynchronously, like when the device goes away, but it would not be
trivial to incorporate that into the module as written.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
7;s the first step. Then, you need to figure out what kind of window it
is. If it is a standard edit box, you can use the EM_GETLINE functions. If
it's a rich text edit box, you can use the rich text messages.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
d.
That depends entirely on your audience. For developers, UAC is provably
detrimental to productivity. I have no hesitation recommending its
disablement in that case. As a driver developer, I use Device Manager a
LOT. It didn't take me long to pull the plug.
Now, if you have an office
have to download new versions of them.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
"Poppy" <[EMAIL PROTECTED]> wrote:
>
>Thanks Steven and Tim, I understand the strip module a lot more today.
It's NOT a module. It is a method of string objects.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
this effect. His net takeaway is that most of the things people do to
increase randomness actually have exactly the opposite effect.
-----
[1] Knuth, Donald. The Art of Computer Programming, Volume 2,
Seminumerical Algorithms.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
logical operators. The exact definition
of "x and y" is "if x has a false value, return x, otherwise return y". If
both sides are booleans, this does exactly what you expect.
Similarly, "x or y" is actually done as "if x has a true value, return x,
otherwise re
t going
>to interpret '/' as an option.
Well, you actually said the same thing as Dennis here, in a slightly
different way.
The executive summary here is that the Windows APIs all accept either
forward or backward slashes just fine. The trouble happens when you start
using command l
Lie Ryan <[EMAIL PROTECTED]> wrote:
>
>Cookies?
Yes, please. I'll take two. Chocolate chip. With milk.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
kbhit and getch functions that can do this.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
on Linux, and time.clock() is
more precise on Windows.
So, use time.clock().
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
age is not needed.
This is exactly why logger supports this somewhat unusual feature. Now,
one can certainly imagine circumstances where the parameter evaluation is
expensive, so Vinay's bypass is still useful in some circumstances.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
pywinauto and extra).
If you have explicit imports, py2exe can figure those out. You should be
able to see that in the "dist" directory. However, wxPython needs some
extra modules and DLLs that py2exe is not able to figure out. I believe
the wxPython web site talks about this.
arated by a blank line.
Perhaps you should try to use a debug proxy to intercept the exact text of
the response, just to make sure you're sending what you think you are
sending.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ript can then generate
the NEXT page.
The key is that each page stands alone. You don't hold the data in
between. You make a new database query each time a new request comes in.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ormat, this is exactly what you see. On a FAT system, the name
"__init__.py" is stored twice: once in a short-name entry called
"__INIT__.PY", and again in a long-name entry that has the real name.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ectly.
>However, it runs but never stops.
WHAT runs but never stops? The script you attached certainly stops. Post
your exact code, and we'll help you identify your infinite loop.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
care, Steven?
>
>I'm a very caring kind of guy.
That's the best answer to that question that I've seen in a long time. I'll
remember that one.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
s in advance.
Google is much faster than this newsgroup. Search for "python midi
library" and the first page gives you a number of good hits.
However, there's a lot to manipulating MIDI. What kinds of things are you
hoping to accomplish? MIDI, for example, is not a particularly
ied procedure could not be
>found.
If you feel like it, could you do a search for "pythoncom25.dll" and tell
us if more than one was found?
>I know Python 2.5 doesn't load DLL's anymore.
Where did you read that? It's not true.
>Gabriel, you mean, install pyt
midi was good for this aim,
>am I wrong?
No, you are correct. I was misled by your talk about "manipulating MIDI
files". What you're talking about is more working with live MIDI. Alia's
links should be very useful for you. Especially, I think, this one:
http://tu
dress.
You know, the well-known, well-tested, and reliable Mailman application can
do this, and it's written in Python.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
nswer: it does not matter. This is premature optimization. First, make
it work. Then, figure out whether it is fast enough. THEN, figure out
what's taking the most time.
I'd be very, very surprised if this was an important part of your run time.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza
It's simple character manipulation. So,
options.compress will NEVER be 1. If you did "myscript.py -c 1", then
options.compress will be "1". That's a string, not a number.
If what you really want is "present" vs "not present", then use this:
>list after func. Any further explanation you care to provide will be
>greatly appreciated!
Nope. Under pass-by-value semantics, "func" could dance on the list to its
heart's content, and "foo" would not be changed.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the shares that the machine
exposes. Second, you STILL have a backslash problem.
If that machine has a network share called "files", you could say
os.walk( '192.168.0.45\\files' )
or
os.walk( r'\\192.168.0.45\files' )
>Thats it is my main problem do i
er.
The more I look around, the more I like Python.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
r vitriol, and being pleasant to
the unwashed ignorant masses, but that's what it takes. If you don't CARE
whether anyone reads your words, then please feel free to continue with
your current behaviors.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail
to handle 100 hits a second, then CGI is not
appropriate, but let's be honest: the web sites that most of us produce
have to struggle under a devastating load of about 100 hits a day.
At that level of load, CGI is perfectly workable, and it's certainly the
easiest of the choices for develop
27;ll have to change it to something like '/'.join.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ike a Unix command line, resulting in
ls c:windowsystem32qqq.dll
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
all of the strange variations on JPEG,
PNG, and GIF. You REALLY do not want to try to reimplement all of that.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
bearophileh...@lycos.com wrote:
>
>In Python 3 those lines become shorter:
>
>for k, v in a.items():
>{k: v+1 for k, v in a.items()}
That's a syntax I have not seen in the 2-to-3 difference docs, so I'm not
familiar with it. How does that cause "a" to be updat
one who can write a hello world in python and hands
>> me $25000 in cash.
>>...
>
>I'll trade you for a Steve Holden Information Technology certification ...
Darn you, you made coffee shoot out of my nose.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
>doesn't notice this.
If you trace through this:
python -m trace --trace communicate.py
you'll see that it hangs in subprocess in the stdout_thread waiting for
stdout to close.
I'm not sure I expect this to work as you expect. When you open a null
device, it's just an
successfully
implemented in a JIT compiled VM in a performant way, but it has issues
running C extension modules.
I'll be curious to see where this project goes.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ll this make Vista run faster?
Is that a joke?
Or did you mean to say "...make Python run faster?"
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
arse file support
was not added to NTFS until Windows 2000, exactly as he said.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
x27;t actually have to use FieldStorage. You can just say this:
import cgi
q = cgi.parse()
which returns the parameters as a simple dictionary.
>Maybe making a request is not the quickest route to do what I want. Ideas?
There are few other mechanisms available in Javascript to do this.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sions of the other
>parts you need,
>so a lot trial and error I expect.
What packages have you tried?
Video capture is not a trivial task. There is a lot to do, although most
of it is boilerplate that you will reuse from app to app.
--
Tim Roberts, t...@probo.com
Providenza & Boekelh
hics to point out that this is a dangerous design for a driver. It
represents a serious security exposure.
Having said that, however, it is a design that is commonly used for
prototyping.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
t;there any chance to break out this PyRun_String-function?
How would you know that it was an infinite loop, rather than just a
long-running script? Alan Turing taught us that you can't tell whether an
arbitrary script will terminate.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, In
plotlib.pyplot.polar( rotate, r, **kwargs )
else:
return matplotlib.pyplot.polar( d90 - theta, r, **kwargs )
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
compiled, exactly like Java.
There is also IronPython, which is Python for the .NET framework. It
compiles to a different intermediate language, which is also compiled at
execution time to machine code.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
umbers strictly between 0 and 1 (inclusive)?
In doing so, you will be making the numbers non-random. Statistically
speaking, a sufficiently long series of random numbers will often have
short sequences that are very close to each other.
--
Tim Roberts, t...@probo.com
Providenza & Boekelhe
every hour for
>10 hours straight...
Really?
s = sched.scheduler( time.time, time.sleep )
for hour in range(10):
s.enter( 3600 * hour, 1, fetch_website, () )
s.run()
>and why this is different than using something like time.sleep().
It's not different. sched.sche
the output of the __repr__ function of the class.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
.pack( 'BBB', a, b, c )
If you need them as 16-bit ints, you can use H instead of B.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
installed with your interpreter is one of the
best repositories. It contains hundreds of working, well-tested scripts,
most of which have the ability to run by themselves.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the "Python way of thinking". Command-line
argument processing is not a particularly unique task, so the same
techniques that work for parsing things from files, or for handling
arguments in a list, work equally well for handling arguments, especially
with the help of getopt and optparse.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
601 - 700 of 968 matches
Mail list logo