reinvent the
wheel when there's a tool that already does what you want.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
print sys.stdin.readlines()
IOError: [Errno 9] Bad file descriptor
C:\tmppython y.py y.py
['import sys\n', '\n', 'print sys.stdin.readlines()\n']
C:\tmp
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
to do that.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Dave Angel da...@ieee.org wrote:
Tim Roberts wrote:
No. The multi-thread-aware CRT in Visual C++ (which is the only option
since VS2008) puts errno in thread-local storage, so it's shared by all
CRTs.
I didn't know specifically that errno is in TLS, but I will disagree
to the service.xxx object as it
is right now. When you do a reload, that imports a new version of
service.xxx, but your global xxx object is still bound to the old one.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
to know the result before you submit it, you can scan the
source for the execute method and see how they do the quoting. It's not
that complicated.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
language (assuming it hasn't
changed the rounding mode).
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
problem.
No. The multi-thread-aware CRT in Visual C++ (which is the only option
since VS2008) puts errno in thread-local storage, so it's shared by all
CRTs.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
. :((
Also nonsense. Get it from right here:
http://www.microsoft.com/express/downloads/
Note the three tabs: VS2010, SQL Server R2, and VS2008.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
and spacers but I cannot figure out how
to fit this into the table structure.
Page breaks and spacers are absolutely the wrong way to handle this. Think
about this as a Word document. If you want to exclude the logo, you'd
change the top margin to protect it.
--
Tim Roberts, t...@probo.com
like that, there are pure Python SQL engines available that
are even simpler.
Why reinvent the whell? What you want already exists.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
developers do not have the right to make
incompatible changes, ever?
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
-level operating system interfaces are quite different.
raw_input in the Windows implementation bypasses any readline hooks. You'll
have to use a different method.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
danieldelay danielde...@gmail.com wrote:
Does GVR prefers beauty to power ?
Not in the beginning, but in recent years things are tending this way. And,
frankly, I don't think that's a Bad Thing at all.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org
been my experience that csv.Sniffer is NEVER worth the trouble. You
know what the format is. Just embed the dialect yourself.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the file path hardcoded, as in your
example? Or are you building it up from strings?
Does the net share exist at the time you run this?
You might print conn.ConnectionString just before the Execute.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman
to access a Linux file
system from another Linux machine.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
-defined, so super() is still meaningful. However, in that case, you
are rapidly getting into a design that is too complicated to understand at
a glance.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
constants are straight
from the Windows API.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the Registry, but maybe there is another way?
OK; I'm going to hope that Tim Roberts or someone equally
knowledgeable can
kick in here as devices really isn't my area. However this looks like
it *might*
be doing what you want:
code
import wmi
for nic in c.Win32_NetworkAdapter (MACAddress
and
after. I used to live at:
44720 N 2nd St E
Lancaster, CA 93534
Consider much of Utah, which is both easy (because of its very neat grid)
and a pain, because of addresses like:
389 W 1700 S
Salt Lake City, UT 84115
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
CM cmpyt...@gmail.com wrote:
On Apr 16, 3:31 am, Tim Roberts t...@probo.com wrote:
Microsoft's intent is that you be able to distribute the non-debug runtimes
with any applications built with Visual Studio. They are evil, but not
arbitrarily malicious.
Just to be clear: are you saying
runtimes
with any applications built with Visual Studio. They are evil, but not
arbitrarily malicious.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, from and to of of a multipart mail
using python?
Perhaps you should post your code. There's no particular reason why you
should see this. The mailbox iterator should return the outer multipart
container, which has the headers.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
a coincidence, and my
real problem is something else?
It's just a coincidence. The contents of a textarea are transmitted
exactly like the contents of an input type=text. My guess is that you
did the encoding improperly.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org
comprehension created a new scope. I don't
that was ever promised.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
just have Excel print to a PDF. No conversion, no
scripting. There are a number of open source PDF converters.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano ste...@remove.this.cybersource.com.au wrote:
On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote:
Jimbo nill...@yahoo.com wrote:
class stock:
code =
purchasePrice= 0
purchaseQuantity = 0
price= [] # list of recent prices
to manipulate? I have a lot of USB
experience -- perhaps I can offer advice.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, stockCode=, purPrice=0, purQuant=0):
self.code = stockCode
self.purchasePrice= purPrice
self.purchaseQuantity = purQuant
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
and find a match for your device. It's not worth
the trouble.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, the transfer address goes to main.
So, when you load an EXE as a DLL, you will be RUNNING the program. That's
is usually not what you want.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
to be
loaded into memory, and it's probably still in a file cache when you run
the second command.
You can't really do an analysis like this with a task that only takes a few
milliseconds. There are too many variables.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org
that it be declared as returning int. Again, void happens to
work in VC++, but there are architectures where it does not.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
: unindent does not match any outer indentation level
The most likely cause is mixing spaces with tabs.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that are dirty. Just include lots of comments saying what
you did and why.
Personally, because so much of PIL is in C, I would judge internal changes
to be unlikely.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the
buffer with the pixels.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
\ycheck.py
data 4567
C:\tmp\y
Would you like to post your exact code?
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the I/P/B state from that, and periodically forget to pass
the buffer through. Your filter could have MPEG in and out.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
with the parsing of the assembly code?
One dead simple option is the re module.
Yes, indeed. I have implemented TWO different FPGA-based microassemblers
in Python using the essentially undocumented but magically delicious
re.Scanner class. Simple and flexible.
--
Tim Roberts, t...@probo.com
.
If you want to manipulate the frames (as bitmaps), then you have little
choice but to decode the MPEG as you receive it, manipulate the bitmaps,
and re-encode it back to MPEG.
That's going to take a fair amount of time...
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http
special characters.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the raw MPEG data, you can certainly do that, but such
data is often not divided into frames.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
in the
standard library.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
in
the original NT 3.1, 1992.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
announcement. It is, for the most part, THE canonical example of the wrong
way to conduct a development effort.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
.
Sikuli works by using image analysis to locate the regions on the screen to
be tickled. It's a novel idea, although others have correctly pointed out
that it's not the most efficient way to automate applications.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http
DO10I.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
)
If the thing passed in is a list or an object, you can modify the object in
place without trickery. You can check that with the type operator:
if type(varPassed) == list:
pass
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo
the ListCtrl_virtual.py example, for
instance.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Chris Rebert c...@rebertia.com wrote:
On Tue, Dec 15, 2009 at 9:47 PM, Tim Roberts t...@probo.com wrote:
Tobias Weber t...@gmx.net wrote:
despite the directives for leading zero stime.strptime('09121',
'%y%m%d') returns the first of December. Shouldn't it raise ValueError?
Python merely calls
strict date parsing?
You do it yourself. Strict date parsing is incredibly tricky.
The eGenix mx.DateTime module might be more to your liking.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
this is not shown in the
parameter list.
I agree with the other repliers. Explicit self is not implemented
anywhere. It's just an implementation decision.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
book malfunction when he sent this.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that, but each layer has to know about
notifications, and has to be able to hand notifications up the
hierarchy tree until it gets to someone who knows what to do about it.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sockets to do it.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
into account
the rough range of the values.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
not already have some clues about the answers
to these questions. Your best plan is to start exploiting your network of
contacts. If you don't already have a network of commercial contacts, then
you have a long, hard road ahead of you.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
Marco Mariani ma...@sferacarta.com wrote:
luca72 wrote:
i have checked and pyscard accept also the decimal notation,
I'm not sure you ever understood what the problem was, or where, but I'm
happy you feel like you've solved it.
+1 QOTW. Great reply.
--
Tim Roberts, t...@probo.com
S. Chris Colbert sccolb...@gmail.com wrote:
What a newbie mistake for me to make.
Don't feel too badly about it. Even very experienced programmers get
bitten by this issue. Until someone points it out, it's certainly not
obvious.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
don't normally see the -0, but it leads you
to think about arithmetic a bit differently.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
on the experiences that lead you to
say this. I've use both extensively (plus the old pg), and I've found
psycopg to be unconditionally the better choice, especially for big
applications where performance is critical.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http
that it doesn't say so means it isn't supported.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the physical
addresses.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, then you need to tell IE to disable image loading. I
don't know a way to do that through the IE COM interface.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that WSAStartup has not been called.
Are you doing this in a thread? Are these all the same version of the
operating system?
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
)
return ''.join(
chr(ord(x)^y) for x,y in itertools.izip(s1,itertools.cycle(key))
)
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, there'
print s
t = Crypt(s)
print t
u = Decrypt(t)
print s
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
surprised how many places
itertools.count() has come in handy for me.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that might suggest sources?
Win XP OS. Any general methods for dealing with such commercially built
capture cards?
Let me Google that for you.
http://www.lmgtfy.com?q=python+video+capture+windows
Most such devices use DirectShow, so you need a C++ extension.
--
Tim Roberts, t...@probo.com
++, and the subfolder names start with a dot. It's not a wierd
extension thereof.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
TRIED, and we can help you make it
work.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
confusing situation. If I do this:
x = Face( points )
Now I can refer to x.backface, but there is no x.backface.backface.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
\Another\Ridiculous\Long\Path\Name
copy C:one.txt D:two.txt
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
this in Fortran
that produces exactly this result -- an integer constant gets modified.
This used to get big yucks when we gathered around the keypunch, before we
had the Obfuscated C Contest to amuse us.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman
Esam Qanadeely doctore...@gmail.com wrote:
On Aug 28, 8:27 am, Tim Roberts t...@probo.com wrote:
Deep_Feelings doctore...@gmail.com wrote:
python got relatively fewer numbers of developers than other high
level languages like .NET , java .. etc why ?
How do you know, and why does it matter
Deep_Feelings doctore...@gmail.com wrote:
python got relatively fewer numbers of developers than other high
level languages like .NET , java .. etc why ?
How do you know, and why does it matter?
By the way, .NET is not a language. I assume you meant C#.
--
Tim Roberts, t...@probo.com
for specifing those paths?
Doesn't matter. Get rid of the colons, and your file name will work.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
contains
information about your tables; when you fetch the class number for your
table, you can look up the columns in pg_attribute.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
=%CD%
call %DDK%\bin\setenv %DDK% chk WLH x64 no_oacr
@echo on
set USERNAME=timr
cd %LAST%
build %BLD%
endlocal
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
months. No problems.
I have not tried the 64-bit Python and PyWin32 builds yet.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
opinion. Microsoft might actually have a winner here.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that those three directories should have different
creation dates. Normally, all three would have the same date and time,
from whenever you ran the installer.
I would suggest that you go into Add and Remove Programs, uninstall
pywin32, and run the installer again.
--
Tim Roberts, t...@probo.com
operator:
xxx = testme and truevalue or falsevalue
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
process for every request.
The Python CGI module doesn't provide a wrapper function because this
information is just not useful. Most corporate users sit behind proxies,
so everyone at the company appears to come from the same IP.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http
Peter peter.milli...@gmail.com wrote:
Any help would be appreciated :-)
I want to write an auction sniping tool in Python.
Please don't.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
/developer.shtml
http://mindtrove.info/articles/gui-automation-with-pyaa/
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
you 1 fps at 640x480
uncompressed, so it's really only useful for the most primitive video
conference cams.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
, for example, you could write a DirectShow graph to pump
into a renderer that transmits out to a network, then another graph to
receive from the network and display it.
You can manage the network latency by adding a delays in the local graph.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
in the local() namespace.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
messages
PER SECOND being sent regarding Jackson.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
bootkey cook_...@yahoo.com wrote:
Thanks for the reply. I wonder why the tokenizer classifies all
operators simply as OP, instead of the various operators listed in the
tok_name dictionary.
I imagine it's just an exercise left to the reader. It's not that hard of
an extension.
--
Tim Roberts
OP for all
operators
/quote
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
humn xelothat...@gmail.com wrote:
Thank you! Didn't know that it would escape characters with single
quotes. I thought it only did that with double quotes.
That's only true in Perl and PHP, but not in Python or C.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http
that you just PICK one and make that the master server.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
deostroll deostr...@gmail.com wrote:
I want to be able to parse it into python objects. Any ideas?
What did you not like about the very useful replies you have already
received?
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
willgun will...@live.cn wrote:
Unfortunately,I'm on win32.
Actually,I prefer a cross-platform method.
Why do you need this? This kind of information is not very useful in a
cross-platform application.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org
write in C#. Otherwise,
you end up spending most of your time translating C# concepts into Python.
This can also be done from Cpython using the pywin extensions.
Here, you are correct. Pywin32 does include a Python implementation of
MFC.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide
).
Don't worry about it.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
201 - 300 of 952 matches
Mail list logo