, Drinking, Plastic, For cold liquids', '50.0', '0.0013',
'2009-01-29 13:05:32')
SQLrow={itemnumber:6, itemname:u'Annoy-A-Tron', unitsonhand:1.0,
costperunit:Decimal('12.95'), lastordered:datetime.datetime(2009, 1, 29,
13, 5, 33)}
/console dump
--
Happy Pythoning,
Vernon Cole
On Thu, Aug 23, 2012
(). If I understand what you are looking for, the return
value of win32api.GetTimeZoneInformation() might give you the correct
answer.
So, in answer to your question how to fix it, I would suggest that you
start with:
import win32timezone, datetime
Please report back if that does not work.
--
Vernon
Michael:
Last time I looked at the code of django-mssql it was using a fork of
adodbapi, not the code I maintain, which is included with pywin32.
Nevertheless, I don't think there are any changes in the return parameter
handling between the two forks.
I just ran across a related page on the
some format other than qmark, you might see an error like this
one. Try setting adodbapi.adodbapi.verbose = 4 and see if that sheds any
light. Particularly look for the line that specifies 'error in COM
Refresh(), so adodbapi is building a parameter list'.
--
Vernon Cole
?)
--
Vernon
On Fri, May 25, 2012 at 4:06 PM, Alan Trick atr...@tri-tech.com wrote:
On Fri, May 25, 2012 at 2:53 PM, Vernon Cole vernondc...@gmail.com
wrote:
Try setting adodbapi.adodbapi.verbose = 4 and see if that sheds any
light.
Particularly look for the line that specifies 'error in COM
that. If that
does not do the trick, then there is yet another bug to chase...
download from http://sourceforge.net/projects/adodbapi or get the latest
pywin32.
--
Vernon Cole
On Thu, May 17, 2012 at 11:01 AM, David L. Page pag...@gmail.com wrote:
Hi,
I have an .sdf file (SQL CE 3.5
My error! Reading again, I see that your version is up to date.
If the data is not private, could you send a zipped copy of your data file
to me directly (not to the list)?
--
Vernon
On Thu, May 17, 2012 at 12:59 PM, Vernon Cole vernondc...@gmail.com wrote:
David:
You do not mention
First, make sure that you can type print somefile.txt on a console
command line and get it to work. Often the old DOS style print command -
which is what you are trying here - will not work on new Windows printers.
You may very likely have to use a much more complex method involving the
Windows
*self*.doc.Tables(1).Cell(row,2) is not a string, and therefore has no
.split() method.
str(*self*.doc.Tables(1).Cell(row,2)) returns a string, so it does have a
split() method and therefore
str(*self*.doc.Tables(1).Cell(row,2)).split() is correct, but
str(*self*.doc.Tables(1).Cell(row,2).split())
This is a reworded re-post of a question which I just placed to the
IronPython list. I repeat it here, because I hope to get a general answer
which will work on CPython, too, since the database driver I support works
on both implementations. I have code which detects the width of the
Python I am
Jacob:
adodbapi provides an extended dbapi 2.0 (PEP 249) connection to many
databases, MySQL is one of the ones I test with regularly. It is included
in pywin32. Just import adodbapi to use it. (You do have to install the
MySQL ODBC driver.) The other packages you mention are MySQL specific,
Dear person:
There are lots of ways to encode and decode data. You'll need to provide
some more information about the use you intend in order to get good advise.
Do you just want to protect something from prying eyes on one workstation?
How secure does it have to be? Are you sending the data to
The entire idea of a Python IDE written in java is frightening to me...
Vernon Cole
(sent from my 'droid phone)
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
On Fri, Jul 8, 2011 at 3:23 PM, Steffen Frömer
steffen.froe...@gns-systems.de wrote:
On 07/08/2011 10:16 PM, Tim Roberts wrote:
Steffen Frömer wrote:
i tried to access standard mail application to write a mail.
I know the machanism with urllib, but there is no regular way to add
automatically find its own correct version of
python. Is that what you tried?
--
Vernon Cole
On Wed, Jul 6, 2011 at 11:31 AM, Lynn Oliver rayco...@gmail.com wrote:
Hello,
New here, so I hope I'm following correct procedures.
Yesterday I installed python 2.7.2 on win xp and then successfully
I'm wrong.
--
Vernon Cole
On Sat, Jun 11, 2011 at 12:55 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote:
How are you supposed to create a PyCComboBox? There
doesn't seem to be a CreateComboBox function anywhere.
I tried using CreateControl(COMBOBOX, ...) but it
says that the CLSID is invalid
years ago and is based on a very
old version of python. Python Programming on Win 32. I think an
electronic version of it may have been pirated on line as well. Yes,
everything in pywin32 works on 64 bit versions of Windows and Python, too.
--
Vernon Cole
On Tue, May 17, 2011 at 7:16 AM, Jacob
to: Vernon Cole (kf7xm)
Summary: adodbapi - Subtle crash
Initial Comment:
There is a subtle crash that can occur related to time.sleep(10) and
adodbapi.connect() calls, the second time will crash,
attached there is the simplest test case to crash it and various comments
explaining the crash behavior test
I found two fixes for the crash. Now I need one of you brilliant folks to
tell me which is correct. First, here is a snippet from adodbapi.
Look closely at the comments on the last three lines of code ...
v v v v v v v v v
[... Snip ...]
[ (Note: lines below are paraphrased -- not quite the
Correct. 32 bit COM cannot talk to 64 bit COM.
That's one of the few reasons for running 64 bit Python.
On Thu, Apr 7, 2011 at 8:53 AM, Matteo Boscolo
matteo.bosc...@boscolini.eu wrote:
thanks but unfortunately it does not solve the problem ..
my machine is a 64 bit and my os is w7
my python
One of the executives where I used to work actually made use of the
¨send to feature in Word. The resulting bloat that appeared was
appalling, and IIRC the recipient had to have Word installed to read
the mail, when she finally imported it. Perhaps later versions of Word
do a better job. Our
I ran across this problem myself awhile back, and it seems to be
common enough that they added a feature to distutils to handle it.
I have added a copy of my setup.cfg to CVS, which contains:
code
[build]
force=1
[bdist_wininst]
user_access_control=auto
/code
With force=1, it should theoretically
in Python.
--
Vernon Cole
On Fri, Mar 4, 2011 at 12:46 AM, Becky Mcquilling
ladymcse2...@gmail.com wrote:
Hi:
Hoping you guys can help out a python noob here.
I have a list of machines that I am backing up flat files from to one
central machine. I need to:
a) Map Drives and b) run robocopy
What a nifty script! I love it!
Here's my version. I tested using a 800 KByte image file and it runs
in a blink. Dictionary access in Python is very fast.
code
counter = {}
for bytes in open('c:\\temp\\16.jpg', rb).read():
try:
counter[bytes] += 1
except KeyError:
Attempting to install using the binary installer, the installer gets to
postinstall script finished, but the display window says:
v v v v v v v v
Copied pythoncom32.dll to C:\Windows\system32\pythoncom32.dll
Copied pythoncomloader32.dll to C:\Windows\system32\pythoncomloader32.dll
Copied
So with pythoncom on one hand and pywin32 on ironclad on the other you could
go either way on either compiler? Sounds pretty neat.
Is pythoncom python3 ready? (I haven't looked at source yet.
Vernon Cole
(sent from my 'droid phone)
On Feb 28, 2011 2:58 AM, Tim Golden m...@timgolden.me.uk wrote
Hmmm... projects get abandoned for many reasons.
Michael:
In your professional opinion would it be worthwhile to
clone/fork/resurrect the pythonnet project, or is it a bad idea better left
dead?
--
Vernon
On Sun, Feb 27, 2011 at 1:38 PM, Michael Foord fuzzy...@gmail.com wrote:
On 26
Mark:
Trouble!
in build 215, the Python 3 versions of adodbapi are broken.
It seems that when 2to3 is run on adodbapi.py, the raise filter is
missing, so that two syntax errors are left in the module.
--
Vernon
On Sun, Feb 20, 2011 at 5:40 PM, Mark Hammond mhamm...@skippinet.com.auwrote:
Michel:
Without actually analyzing you script, I see one thing immediately...
You expect Windows and Internet Explorer to actually respond quickly.
Your timeout for the shutdown is 1/4 second. When last I tried to automate
Windows functions, I gave up on using fixed timers, because sometimes it
Gary:
I was able to track down a Windows 7 - 64 bit computer this morning.
Installed Python 3.1 (32 bit)
Installed pywin32-214 for py31 (32 bit)
Installed adodbapi 2.4 (to get the test.mdb database)
I was able to read the data correctly. No Microsoft office components were
installed.
(I also
I think Tim's last suggestion is the way to go, and you should NOT need
ACCESS installed.
Microsoft invented ODBC.
Everybody saw it was a great idea and adopted it.
So Microsoft had to invent something even newer, which everybody else does
not support. That's called ADO. ADO defaults to ODBC
Thanks again,
Scott
--
*From:* Vernon Cole [mailto:vernondc...@gmail.com]
*Sent:* Thursday, December 30, 2010 9:58 PM
*To:* Halgrim, Scott
*Cc:* python-win32@python.org
*Subject:* Re: [python-win32] adodbapi returns None for text field in
first row
Scott
Unless for some reason you actually NEED to compile pywin32, such as if you
are testing patches or new modules or such, then use the binary installer.
It is much easier.
On Jan 1, 2011 10:42 PM, Marc Hankin m...@marchankin.com wrote:
I just downloaded pyWin32
Scott:
Something is indeed fishy. What os, version of python, and version of
pywin32 are you using?
As an attempt to duplicate your result, I built a table tblTemp on my
Windows Vista laptop's SQL express 2008 with three VarChar fields
and loaded two rows of data. I defined an ODBC DSN to point
I had a similar project. I had a .bat file on a network share which
installed python pywin32 from Windows installers on the share.
On each workstAtion, the user would click an icon which ran a console mode
.py script which copied the .py files from the share if needed, then forked
a .pyw of the
There is a registry hack to make a Windows box auto log in when it boots
up. If you cannot find an example, get back to me and I will get a sample
from a co-worker at a former employer. We had several dozen machines there
which were actually servers, but the software was written for a GUI
Robin:
Odbc is still maintained. It is not deprecated, exactly, but is obsolescent
since it uses db api version 1 calls. It is maintained that way so that it
doesn't break old code. The bug report is appreciated, I'll make sure it
gets into the sourceforge bug list if you don't beat me to it.
On Tue, Nov 30, 2010 at 10:25 AM, Preston Landers pland...@gmail.comwrote:
That's strange. I don't get that under Python 2.6.5 and PyWin32 v214. I
get the kind of error one would expect.
try:
... odbc.odbc(asdf)
... except:
... raise
...
Traceback (most recent call last):
File
separately from:
http://python.org/
and
http://sourceforge.net/projects/pywin32/
--
Vernon Cole
On Mon, Nov 29, 2010 at 9:13 AM, leegold leeg...@fastmail.fm wrote:
Hi,
The interactive window ( the shell window) in Pythonwin is gone, I open
it and it's an empty canvas - no window. The buttons
Announcing a new version of adodbapi...
[ for those who may not know...
[ adodbapi is a pure Python package which fully implements the PEP-249
db-api
[ using Microsoft ADO/db.
[ It runs on CPython versions 2.3 and later, IronPython 2.6 and later,
[ or Python 3.0 and later.
Well, you get that specific error from something like:
list1 = ['this is a','list']
anError = list1[2]
Traceback (most recent call last):
File stdin, line 1, in module
IndexError: list index out of range
What does the code look like at hqmonitor.py line 220?
--
VC
On Mon, Jul 19, 2010 at
can throw together a quick example of the failure if that will help with
debugging. It involves a sample SQL data table that must be imported for the
test and is not small (several recorded telephone calls as blobs)-- so I
will only do it if needed. Does anyone (Mark?) need it?
--
Vernon Cole
If I Recall Correctly, the ActiveXCtrl class in wxPython does not use the
pywin32 tools, but a different package. That, along with no plans to migrate
to Python 3, is why my own work is migrating away from wxPython. Too bad,
too. I rather liked wxPython.
--
Vernon Cole
On Mon, May 24, 2010 at 7
Well, MY Windows PC freezes sporadically even when nothing is running. I
think that's considered a feature in Redmond, Washington. ;-)
2010/5/6 Leonhardt, Günter guenter.leonha...@men.de
Hi all,
I'am using python-win32 for communication with 2 terminalservers.
There 16 parallel connection
Malcolm:
I used to have exactly what you need. Unfortunately, when I checked
just now, I find that I failed to lift a copy of the source code when I
left the place where I wrote it. It was a command line utility which
accepted as arguments the name of a .jpg file and the number of seconds to
Gowtham:
I waited before giving this answer, to let the real Windows Gurus answer
first. Tims pronouncement is as good is it gets, so here is my hair-brained
idea. Perhaps it would actually work.
As much as I hate to admit this on a Windows mailing list ...
When I have multi-boot things to
On Wed, Dec 16, 2009 at 9:44 AM, Ross Boylan
rossboy...@stanfordalumni.orgwrote:
Vernon Cole wrote:
Dear Ross:
The combined Python package hosted by Active State is convenient, but
does not always stay up to date. The current build of pywin32 is 214. Many
bug fixes have happened
You're the Man, Thomas!
You, too, Greg!
Now I have to get my latest upgrade to adodbapi done so I can put some time
into really using pygui.
--
Vernon
On Tue, Dec 15, 2009 at 4:15 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote:
Thomas Heller wrote:
I would guess that GetDeviceCaps() returns
Randy:
Good idea, but I need a test case which gives a reliable failure. The
simple test in the test suite works fine. Could I talk you into submitting
a copy of adodbapitest.py which will demonstrate the problem which must be
fixed? That way the problem, once fixed, can never re-occur.
--
In searching for documentation, remember a quirk in Microsoft vocabulary...
a printer is software, not hardware. The device on the corner of your
desk with the paper in it is not a printer, it is a printing device.
--
Not being an expert on writing Windows printer code, nevertheless let me
to be attributes
of adodbapi, such as 'adUseClient' and 'adXactBrowse'.
Question:
Should I proceed to use the separate version of ado_consts, even though it
might break some existing programs?
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
Strula:
The GUI designer has to output code for some API or another. If it
produces code for a cross platform GUI API then the resulting
application will be cross platform. I would love to find one such that
actually works and produces good code.
Do you have any suggestions?
--
Vernon Cole
Sent
Welcome, Hung:
I tried answering this question on sourceforge, but your email address
there does not work. :-(
The short answer is: we think that it works for both python 3 and 64 bit. We
test it on both.
If you find a problem, report it here and we will try to help.
--
Vernon Cole
On Mon, Nov
-mail to postmaster @ python.org
That's where the pywin32 group lives, and it works rather well.
--
Vernon Cole
On Mon, Nov 16, 2009 at 3:31 PM, Greg Ewing greg.ew...@canterbury.ac.nz
wrote:
John Finlay wrote:
Start your own list for the community that is interested in your project.
That's
first...
--
Vernon Cole
Sent from my Windows Mobile phone
-Original Message-
From: Greg Ewing greg.ew...@canterbury.ac.nz
Sent: Sunday, November 15, 2009 2:18 PM
To: John Finlay fin...@moeraki.com
Cc: PyObjC-Dev pyobjc-...@lists.sourceforge.net; PyGtk
py...@daa.com.au; python-win32 python
. On the other hand, if I right-click on myPythonScript.py
and select Edit, I will get the IDE for which ever version of Python I
installed most recently, usually a 3.x version, which may make it rather
difficult to debug a Python 2.x script. ;-)
HTH
Vernon Cole
P.S.:
I keep all of my imitation gnu
Aahz:
Thank you.
The correction has been made in the source for the second edition.
(Now I need to finish writing the *proposal* for the second edition so we
can see if O'Reilly will print one.)
--
Vernon Cole
On Mon, Nov 2, 2009 at 4:44 PM, Aahz a...@pythoncraft.com wrote:
The signature
to the adodbapi suite.
--
Vernon Cole
On Thu, Aug 27, 2009 at 5:51 AM, Grant Paton-Simpson gr...@p-s.co.nzwrote:
Hi Harald,
I managed to make a file containing everything I needed. NB the command
is makepy.py not makepy. There was, however, an issue with genpy.py
asserting there had
source, but the license is inexpensive. See:
http://users.swing.be/wintclsend/windpysend/http://users.swing.be/wintclsend/windpysend/
--
Vernon Cole
On Mon, Aug 3, 2009 at 9:05 AM, Kimmo Kekkonen kekkonen.ki...@gmail.comwrote:
Hi!
I were wondering if it is possible to use Python to select
easier
to use than VBA for prototyping and quickie jobs.
--
Vernon Cole
On Wed, Jul 29, 2009 at 6:16 AM, Gerdus van Zyl gerdusvan...@gmail.comwrote:
Are you trying to copy a table from an access database to a postgres
database? Because that's the impression I get, in which case do you
need to do
,
and therefore may be slightly slower. ADO is fussy about re-using a cursor,
you have to close the old one and open a new one for each transaction. On
the other hand, perhaps re-using cursors is why odbc seemed to crash
sometimes for me. YMMV.
--
Vernon Cole
On Wed, Jul 8, 2009 at 6:31 AM, Mark Hammond
= x
as well.
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
So -- is there an api call which DOES actually place the value in
os.environ?
--
Vernon
On Wed, Jun 17, 2009 at 11:56 PM, Roger Upole rwup...@msn.com wrote:
Vernon Cole wrote:
Tim:
Okay, explain this...
C:\BZR\sterling\HL7c:\python26\python.exe
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40
...@probo.com wrote:
Vernon Cole wrote:
Thanks, Tim!
Should this be logged against the standard library as a bug?
Nope. It's actually the documented behavior. See section 16.1.1 here:
http://docs.python.org/library/os.html
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc
ipy testme.py
copy testme.py testme3.py
2to3 testme3.py --write
py30 testme3.py
Hope this helps a little.
--
Vernon Cole
On Wed, Jun 17, 2009 at 12:54 PM, Tim Roberts t...@probo.com wrote:
a h wrote:
thanks for the reply, what i have done to set up the environment
variables is open
\sterling\HL7set x
x=zzz
C:\BZR\sterling\HL7
--
Vernon
On Wed, Jun 17, 2009 at 8:11 PM, Tim Roberts t...@probo.com wrote:
Vernon Cole wrote:
Similarly, it seems that getenv() and putenv() should be inverse
functions, but they are not. os.getenv() refers to the parent
environment, os.putenv
According to PEP 249...
.callproc(procname[,parameters])
Call a stored database procedure with the given name. The
sequence of parameters must contain one entry for each
argument that the procedure expects. The result of the
call is returned
, 2009 at 12:54 PM, Randy Syring ra...@rcs-comp.com wrote:
Vernon Cole wrote:
In this case, the proceedure outputs TWO record sets, since there are
two SELECT statements.
If the second select statement, select @param = 10 were changed to
SET @param = 10 then, I believe, the result
would have
environment using IronPython?
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
win32all is a very old name which is still hanging around in some
documentation. The package is now referred to as pywin32.
http://sourceforge.net/projects/pywin32/
Which versions of Python and pywin32 are you using?
--
Vernon Cole
On Mon, Apr 27, 2009 at 9:22 AM, Iuri iurisil...@gmail.com wrote
Dear dynamicbit:
Your example contains numerous errors in tabs and spelling, and shows a
total lack of understanding of Python.
Try reading the tutorial http://docs.python.org/3.0/tutorial/ and working
simple examples to learn the basics.
Python is a great language, and you would be much better
One warning: If you do a chdir command (for example) or define a dos
environment variable, etc, in a shell script -- using any of the subprocess
or os.system or such commands -- it will only affect the child procees which
is created for the call, not the process you make the call from. This is
So, Greg, can we anticipate a python_gui flavor for Windows in native mode?
--
Vernon Cole
On Mon, Mar 2, 2009 at 7:46 AM, Mike Driscoll
mdrisc...@co.marshall.ia.us wrote:
King Simon-NFHD78 wrote:
-Original Message-
From: python-win32-bounces+simon.king=motorola@python.org
= unicode(someStringObject)
or
myPath = u'somePath'
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
)
3) use a python raw string which eliminates backslash escapes entirely so
that you can type the string as windows will see it (note the letter r
before first quote):
f=open( r\\remote_machine\folder1\file1.doc, r)
--
Vernon Cole
On Sun, Feb 22, 2009 at 11:43 PM, Gerdus van Zyl gerdusvan
code if I change the default.
Your comments solicited...
--
VC
On Tue, Feb 10, 2009 at 8:49 AM, William Dode w...@flibuste.net wrote:
On 10-02-2009, Vernon Cole wrote:
William:
It has always seemed to me that the syntax you tried should work. Perhaps
someday, some real Python guru
Siddhartha:
This seems to be a pyodbc question, and would be best answered on their
discussion group. Try http://groups.google.com/group/pyodbc
The SQL dbapi interfaces which ship with pywin32 are odbc and adodbapi.
Nevertheless, your very long DSN string gives me pause. You might try going
back
time.gmtime(). Intrestingly, this was also a
problem in IronPython. I had to file two separate bug reports to get
time.gmtime working there.
--
Vernon
On Thu, Feb 5, 2009 at 5:14 AM, Mark Hammond skippy.hamm...@gmail.comwrote:
On 5/02/2009 5:10 AM, Vernon Cole wrote:
Okay, group, I'm opening
Okay, group, I'm opening this up for discussion...
Is my routine wrong, or is the test flawed?
This test works fine at my house, U.S. Mountain Standard Time.
When I change my Windows time zone to Brisbane, it fails here like it does
for Mark.
The test is:
Python
def
Are you using a Chinese character set by default? If so, you may be the
second person to discover a bug which was described recently. I quote:
I tracked down the source of the problem.
I am using Windows XP, SP3. Two days ago I changed Control Panel, Regional
and Language Options, Advanced
Geoff:
Congratulations, you have just provided an excellent example of Nathan's
first law:
*Software is a gas*
Software always expands to fit whatever container it is stored in.
http://www.codinghorror.com/blog/archives/000677.html
--
VC
On Thu, Jan 29, 2009 at 5:18 AM, Steven James
for documentation
purposes, so the next guy who reads your program (or yourself five
years later) can understand what the number means in the interface.
--
Vernon Cole
Python
# --
#constants from
http://www.indesignscriptingreference.com/CS3/JavaScript/SaveOptions-enum.htm
SaveOptionsNo = 1852776480
have to pay for a redistribution
license.
--
Vernon Cole
On Mon, Jan 26, 2009 at 10:28 AM, Liu, Donald (H USA)
donald@siemens.com wrote:
Hi Mark,
Thanks for your reply. I ran dir c:\Windows\system32\py*.dll, and got
the following:
C:\dir Windows\system32\py*.dll
Volume in drive C
of the Python standard library, and questions should be sent to that
list.)
--
Vernon Cole
On Fri, Jan 23, 2009 at 2:36 AM, Josu Rodriguez jrvi...@gmail.com wrote:
Hola a todos,
Tengo problemas para ejecutar comandos en el sistema, con caracteres
unicode.
el problema es a la hora de ejecutar un
= datetime.datetime.now()
win32api.SetFileTimes(foo, now, now, now)
and:
.win32api.SetFileTimes(foo, herenow, herenow, herenow)
and:
win32api.SetFileTimes(foo, gmt, gmt, gmt)
would give the (approximately) same result.
--
Vernon Cole
On Tue, Jan 13, 2009 at 2:37 AM, Paul Moore p.f.mo...@gmail.com wrote
opinions either way whether or not I should do this.
Whaddaya think?
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
How about --
if debug: print x
or, in a more complex setting, have a verbose attribute in each module and --
if self.verbose 2: print x # so you can have levels of debug printouts
??
--
Vernon Cole
On Wed, Jan 7, 2009 at 11:30 PM, Michel Claveau m...@mclaveau.com wrote:
Hi!
1) Define
(object):
def write(self,*args):
pass
import sys
test(3)
sys.stdout = blackHole()
test(100)
print sys.stderr, 'It worked!'
/code
--
Error messages (which are send to sys.stderr rather than sys.stdout)
will still display normally.
Vernon Cole
On Thu, Jan 8, 2009 at 11:12 AM, Nalli Dinesh
there is something about the received string that will not convert.
For example, an empty string will give you a ValueError. You may have to use
something like:
try:
val = int(alpha)
except ValueError:
val = 0 # or do you want val = None ?
--
Vernon Cole
On Wed, Nov 19, 2008 at 1:55 AM, [EMAIL PROTECTED
install eGenix base suddenly your time comparisons quit working. My guess is
that most people who use mxDateTime also use mxODBC rather than either of
our free api's, so a change in default would not bite as many people as the
status quo.
--
Vernon Cole
[I tried sending this to two lists at once, and it seems to have been
rejected by both, so this is a retry. -- VC]
I found a bug in adodbapi v2.2 already. When putting data into a numeric
database column, if the input was in a string (as for example the value of a
wxPython grid cell), then the
/adodbapi . Put the unzipped folder in your
/lib/site-packages directory.
--
Vernon Cole
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
On Tue, Aug 26, 2008 at 11:00 PM, Tony Cappellini [EMAIL PROTECTED]wrote:
Unfortunately, copies of the book are
getting quite hard to get.
Why? It's still being published
http://oreilly.com/catalog/9781565926219/index.html
Amazon still has them in stock too
Emanuel:
Best answer: Find a copy of *Python Programming On Win32* by Mark Hammond
and Andy Robinson and read chapter 7. Unfortunately, copies of the book are
getting quite hard to get.
--
VC
Mark:
New edition???
Please!!!
--
VC
On Tue, Aug 26, 2008 at 10:26 AM, Emanuel Sotelo [EMAIL
Where can one find documentation of MCI?
On Tue, Aug 12, 2008 at 4:30 PM, Michel Claveau [EMAIL PROTECTED] wrote:
Hi!
This is perfect. Works like a charm ... Thank you very much!
Thanks for return.
For info, MCI can, also, record from microphone, save file, give infos on
sound files,
in the test
suite.
--
Of course, the fixed version of adodbapi will be included with the next
release of pywin32. I note that the download rate on
adodbapi.sourceforge.net has gone to zero for the last two months (with the
release of pywin32 v 211). Thank you Mark.
--
Vernon Cole
win32security.CheckTokenMembership(None, sid)
/code
On Mon, Aug 4, 2008 at 7:29 AM, Tim Golden [EMAIL PROTECTED] wrote:
Vernon Cole wrote:
My company makes use of Active Directory to determine what rights a given
user has in an application system. If the user is a member of a certain
group
== _username:
groups.add(g)
if resume == 0:
break
# end snippet
if 'possible' in groups:
print 'You can do it.'
^ ^ ^ ^ ^
My question is this:
There MUST be some better way. Is there no system call for Is user U a
member of group G?
--
Vernon Cole
.
--
Vernon Cole
On Wed, Jul 23, 2008 at 12:00 PM, Tim Roberts [EMAIL PROTECTED] wrote:
Mark Norley wrote:
Thanks Tim. Where would I go to find out about setting up my Python script
as a COM server? (A for dummies level of instruction is what I'd be
looking for :-)
There have been a number
to version 211, I will change
the adodbapi project page to point there. Adodbapi will then become obsolete
as a separate project.
--
Vernon Cole
On Sat, May 31, 2008 at 1:18 AM, Mark Hammond [EMAIL PROTECTED]
wrote:
Hi all,
I've finally released pywin32 build 211!
These days, it almost goes
1 - 100 of 113 matches
Mail list logo