minor = int(major_minor[1])
except ValueError: # try again in case values are in hex
=> try:
=> major = int(major_minor[0], 16)
=> minor = int(major_minor[1], 16)
=> except ValueError: # crap in the registry!
continue
Hope this he
the typelib guid is
named something like "a.0." It does what I need. If you see a case it
doesn't handle, maybe you could propose a better fix?
-- Jim
--
http://mail.python.org/mailman/listinfo/python-list
> Always interpret it as hex, or always interpret it as decimal.
I see what you mean. But I don't think I'll worry about it.
-- Jim
--
http://mail.python.org/mailman/listinfo/python-list
> Pythoncom.GetActiveObject will retrieve the running instance of the app.
Thanks Roger, that does seem to do the trick. I haven't tested to see
what happens if there are two instances of the app running, I'm hoping
it will return the frontmost visible one.
-- Jim
--
http://ma
Is there some easy way to split a line, keeping together double-quoted
strings?
I'm thinking of
'a b c "d e"' --> ['a','b','c','d e']
. I'd also like
'a b c "d \" e"' --> ['a',
Jim wrote:
> Is there some easy way to split a line, keeping together double-quoted
> strings?
Thank you for the replies.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
limit
on the number of chars?).
Can anyone say what is an advantage of the two nextval() solutions
described earlier in this thread over the currval() solution listed
here?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
(Whether I should not have
written them that way is a different point, but it would break.)
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Dennis, I'm feeling very stupid. You're right about the config
file containing drive/path/filenames (eg. c:\python24\*.exe or
whatever). I want to output a text file that contains records like
c:\python24\pythonw.exe[tab]md5 value, ... next file record. The
following snippet works but I d
tabase for version control monitoring.
Blessings, Jim.
#!/usr/bin/python
# Filename: md5makr.py
import sys
import os, os.path
import glob
import md5
import ConfigParser
config = ConfigParser.ConfigParser()
config.read('md5makr.ini')
outputfilname = config.get('general', '
Is there such thing as a free decompile that I can run in windows xp
--
http://mail.python.org/mailman/listinfo/python-list
where can I find a free decompile that I can run in windows xp
--
http://mail.python.org/mailman/listinfo/python-list
where can I find a free decompile that I can run in windows xp
--
http://mail.python.org/mailman/listinfo/python-list
rn None
a()
##
python25.exe main.py
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Bjoern Schliessmann wrote:
> Jim wrote:
>
> > I have created an import module. And would like to access a
> > function from the main script, e.g.,
>
> May I ask why? This style violates "normal" module philosophy.
>
> Regards,
>
>
> Björn
>
&g
John Machin wrote:
> Jim wrote:
> > Hi,
> >
> > I have created an import module. And would like to access a function
> > from the main script, e.g.,
> >
> > file abc.py:
> > ###
> > def a():
> > m()
> >
-
> abc.m = m
>
> # invoke the a() function in the abc framework
> abc.a()
>
> #
Thank you Steve.
You are correct, the project that I'm working on is an event drive
program. And
ank you to Paul, I've found that page useful,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
``Now what
could *that* mean?'' That is, CGI programming without logging seems to
me to ba a lot like general programming in Perl. :-}
Jim
--
http://mail.python.org/mailman/listinfo/python-list
What machine did you say that was, again?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
27;ve looked in this group, Googled around, etc., but I've not found
anything. Is there a reasonably mature project that people use for
this purpose?
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
. It made me wonder if there was something
else that people were using that somehow I was not finding. But I
guess I was mistaken.
Thank you also for the svn suggestion, but I am working with an
existing archive that at least at the moment is cvs.
I'll do the download,
Jim
--
hon is in a class of languages like Perl and Ruby, and who googles
around with some keywords to get some idea of whether it can solve
their problem.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Have you seen the Zen of Python
http://www.python.org/peps/pep-0020.html
? Like a lot of humor, it has a lot of truth in it.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
em also does not matter, I believe.
In short I expected subprocess to just mimic my typing it in. Is
there some reason "file" doesn't act this way, and is there some
way to make it do so?
I have Python 2.4.4 running on Ubuntu. Thank you for any suggestions,
Jim
-transcript (edite
getting,
and you found it.
Hope I can return the favor sometime,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
hello: madam and sir . we sell all kinds of laptops and digital
cam .our product is a quantity best, the price is the lowest in the
world, i think you will be interested in our product . thanks a lot!
Our Website:http://www.prs-123.com/ Msn: [EMAIL PROTECTED]
mail: [EMAIL PROTECTED] thanks for ever
hello: madam and sir . we sell all kinds of laptops and digital
cam .our product is a quantity best, the price is the lowest in the
world, i think you will be interested in our product . thanks a lot!
Our Website:http://www.prs-123.com/ Msn: [EMAIL PROTECTED]
mail: [EMAIL PROTECTED] thanks for ever
a).
Just google "subversion".
Jim
--
http://mail.python.org/mailman/listinfo/python-list
On 6 20 , 11 20 , jim <[EMAIL PROTECTED]> wrote:
> hello: madam and sir . we sell all kinds of laptops and digital
> cam .our product is a quantity best, the price is the lowest in the
> world, i think you will be interested in our product . thanks a lot!
> Our Website:http://w
he writing side, does such a problem exist
> on a reading side? I am using 2.4.1, perhaps there is a fix in a later
> version?
Hi,
I use PKZIP V9.00 and maintain a 2.5GB zipfile that consists of over
6,600 zipped files.
There is no problem with reading or writing.
Thanks,
Jim
--
http://mail.
On Apr 22, 2:08 am, Adrian Smith <[EMAIL PROTECTED]> wrote:
> ...and I get an internal server error if I have any spaces in the
> textarea,
And what error appears in the server error log?
--
http://mail.python.org/mailman/listinfo/python-list
If you have a recent Python, see the documentation for open on the
library page for built-in functions.
http://docs.python.org/lib/built-in-funcs.html
Jim
--
http://mail.python.org/mailman/listinfo/python-list
What does it pay?
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 29, 4:19 pm, Mitchell Jones <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> War Office <[EMAIL PROTECTED]> wrote:
>
> > On 28 abr, 14:15, Eric Gisse <[EMAIL PROTECTED]> wrote:
> > > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote:
>
> [snip]
>
> > > I love how folks like you ask
.columnconfigure(0, weight=1)
self.columnconfigure(1, weight=1)
root = Tk()
root.title("Gridded Widgets Expandable")
app = GUI(root)
Button(root, text="Quit", command=root.quit).grid()
root.mainloop()
=
What am I missing?
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 30, 8:24 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote:
> > From: Jim
> > Hi,
> > I'm looking at page 548 of Programming Python (3rd Edition) by Mark
> > Lutz.
> > The following GUI script works wit
to the python
> effort?
Perhaps the OP only wants to learn something about compilers or
parsing, or something like that?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
ple.
If someone could get me unstuck, I'd appreciate it. (Python 2.4.4c1,
if that helps.)
Thanks,
Jim
. /home/ftpmaint/test.pl
#!/usr/bin/env perl
print "\$0 is -->$0<--\n";
print "\$ARGV[0] is -->$ARGV[0]<--\n
but not tuples. That has some advantages, as
when you append to a list. But it has some disadvantages, as here
where I can't use a list as the key in a hash.
>>> d={[1,2]:'a'}
Traceback (most recent call last):
File "", line 1, in ?
TypeError: list o
I'd like to experiment with pyCairo, but I'm having installation
problems. I've downloaded cairo 1.4.0, libpng 1.2.8, zlib 1.2.3, and
pycairo 1.4.0, and I've placed the DLLs for cairo, libpng, and zlib in
c:\python25\dlls\. However, when I run "setup.py install" I get an
error message saying that
I have an application that will maintain an in-memory database in the
form of a list of lists. Does anyone know of a way to search for and
retreive "records" from such a structure?
Many thanks,
bootkey
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 16, 12:22 pm, "edfialk" <[EMAIL PROTECTED]> wrote:
> Hi, does anyone happen to know of a script that would return the
> number of seconds in a month if I give it a month and a year?
>
> My python is a little weak, but if anyone could offer some suggestions
> I think I could handle it myself,
Hi,
I want to schedule a Python program that reads the command line for
input. However, when adding an argument to the command line Python
will not pick it up when using Windows scheduled tasks.
How do I get it to work?
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 29, 3:19 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 29 Sep 2007 17:34:34 -0300, Jim <[EMAIL PROTECTED]> escribi?:
>
> > I want to schedule a Python program that reads the command line for
> > input. However, when adding an argument
On Sep 29, 6:56 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 29 Sep 2007 19:17:49 -0300, Jim <[EMAIL PROTECTED]> escribi?:
>
>
>
>
>
> > On Sep 29, 3:19 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > w
On Sep 29, 8:45 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 29 Sep 2007 22:04:06 -0300, Jim <[EMAIL PROTECTED]> escribi?:
>
> >> If it works this way, maybe the .py file extension is not correctly
> >> registered.
>
> >
On Sep 30, 6:16 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sun, 30 Sep 2007 07:42:56 -0700, Jim <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
> > What else could be wrong?
> > Thanks,
>
> Possibly those associations
On Sep 30, 6:37 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sun, 30 Sep 2007 11:42:56 -0300, Jim <[EMAIL PROTECTED]> escribi?:
>
>
>
>
>
> > On Sep 29, 8:45 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > wrote:
&g
behavior is to not add white
space to the textual data.
No doubt this is a matter of taste and of intended audience (and maybe
there are complications that I don't see). But let me urge you to
send the mataintainers something.
Jim Hefferon
--
http://mail.python.org/mailman/listinfo/python-list
ceptions have the
desired
unicode string as the 0-th element of the tuple. I confess that I'm
unable
to confidently read exceptions.c .
No doubt I've missed something (I googled around the net and on this
group
but I didn't have any luck). I'd be grateful if someone could show
me
striaght.
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
with this.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
')
> ... self.unicode_arg = arg # save the original in case
This is illuminating. How do you know that for exceptions __init__()
should take one non-self argument? I missed finding this information.
Thanks again,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
those parameters and putting encode
on every variable in my routines that occurs in an error message it is
ugly, it seems to me that it violates the principle that you should do
everything inside the program in unicode and only encode at the
instant you need the output, in that the exception
confused me, it was how to get it in the first place.
Much obliged,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
..
def errorValue(err):
"""Return the string error message from an exception message
string.
err exception instance
Note: I cannot get err.message to work. I sent a note to clp on
Jan 29 2007 with a related query and this is the best that I
figured
out.
"""
return err[0]
class jhError(StandardError):
"""Subclass this to get exceptions that behave correctly when
you do this.
try:
raise subclassOfJhError, 'some error message with unicode
chars'
except subclassOfJhError, err
mesg='the message is '+unicode(err)
"""
def __unicode__(self):
return errorValue(self)
class myException(jhError):
pass
No doubt I'll discover what is wrong with it today. :-)
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Oops, there is a typo in what I wrote above. Sorry.
On Jan 31, 7:57 am, "Jim" <[EMAIL PROTECTED]> wrote:
> Oh, I agree. If I have a string mesg that is unicode-not-ascii and I
> say
> try:
> raise Exception mesg
> except Exception, err:
>
Diez B. Roggisch wrote:
> Jim schrieb:
>> I compiled Python 2.5 from python.org and I get an error message when I
>> try to import the Tkinter module. Python reports that there is no such
>> module. It says my Python isn't configured for Tkinter. How do I
>> conf
On Feb 6, 2:47 pm, "MRAB" <[EMAIL PROTECTED]> wrote:
> On Feb 6, 1:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 4, 12:42 pm, "Jandre" <[EMAIL PROTECTED]> wrote:
>
> > > On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
>
> > > > Jandre wrote:
> > > > > Hi
>
> > > >
pts that I run at the command line are gone too.
Are you talking about the Environment Variables-->System Variable--
>path?
You may want to right click on My Computer-->System Properties--
>Advanced-->Environment Variables-->System variables-->Path-->Edit.
And check to see if it's there, if not then add it.
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Have you googled?
http://www.google.com/search?hl=en&q=python+regular+expression+unicode&btnG=Google+Search
--
http://mail.python.org/mailman/listinfo/python-list
There is a pdftotext executable, at least on Linux.
--
http://mail.python.org/mailman/listinfo/python-list
Are you sure that your dB interface module doesn't do this for you?
What dB and interface are you using?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Look at
http://www.python.org/doc/
. The tutorial is quite good.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
file, which you say works for you.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
or provide code to automatically start
program? Currently, if
program is restarted the process starts after last good record but
must be restarted manually.
Thanks
Jim
code start here
#start lookups pass
while lines < 5000:
lines += 1
d =
ifile.rea
On Mar 19, 6:50 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 19 Mar 2008 14:45:39 -0700, Jim wrote:
> > Program randomly aborts when looking up url. The program loop thru
> > 4000+ records looking
> > up ID via internet and returnshtml
On Mar 20, 7:03 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Thu, 20 Mar 2008 10:26:14 -0700, Jim wrote:
> > The program is my first and I'm not a programmer so it will take me some
> > time to get your recommendation to work. So far the
ing lout I can pretty well get it to
> do anything & everything I want (but I don't claim to be an expert
> user)
Fair enough.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I get a BadStatusLine error (indicated below). Can anyone help with
how to
catch error in code before abort?
Thanks
Jim
Traceback (most recent call last):
File
"C:\Python25\Lib\site-packages\pythonwin\pywin\framework
\scriptutils.py",
line 310, in RunScript
exec codeObject i
On May 28, 11:24 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Jim wrote:
> > Hi
>
> > I get a BadStatusLine error (indicated below). Can anyone help with
> > how to
> > catch error in code before abort?
>
> http://docs.python.org/tut/node1
would you want to buy cheap something?welcome to www.wholenikee.cn
--
http://mail.python.org/mailman/listinfo/python-list
One way is to use a package that allows you to simulate being a
browser:
http://wwwsearch.sourceforge.net/mechanize/
.
--
http://mail.python.org/mailman/listinfo/python-list
you are looking for.
$ grep HYPHEN unicode2ascii.py
u'\N{SOFT HYPHEN}':u'-',
u'\N{HYPHEN}':u'-',
u'\N{NON-BREAKING HYPHEN}':u'-',
u'\N{SOFT HYPHEN}': '-',
No doubt I have some terrible gaffes and some things
you are looking for.
$ grep HYPHEN unicode2ascii.py
u'\N{SOFT HYPHEN}':u'-',
u'\N{HYPHEN}':u'-',
u'\N{NON-BREAKING HYPHEN}':u'-',
u'\N{SOFT HYPHEN}': '-',
No doubt I have some terrible gaffes and some things
On Jul 1, 8:29 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 2, 9:55 am, Jim <[EMAIL PROTECTED]> wrote:
>
> Comments on the above grep output:
> 1. You have SOFT HYPHEN twice, mapping it to u'-' and '-'
Hmph. I'll correct that. Thanks.
On Jul 1, 8:29 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 2, 9:55 am, Jim <[EMAIL PROTECTED]> wrote:
>
> Comments on the above grep output:
> 1. You have SOFT HYPHEN twice, mapping it to u'-' and '-'
Hmph. I'll correct that. Thanks.
On Jul 1, 8:42 pm, Jim <[EMAIL PROTECTED]> wrote:
> On Jul 1, 8:29 pm, John Machin <[EMAIL PROTECTED]> wrote:
> > Comments on the above grep output:
> > 1. You have SOFT HYPHEN twice, mapping it to u'-' and '-'
>
> Hmph. I'll correct that.
it rounds down. 4 is less than 4.5
and -5 is less than -4.5.
On Thu, 2008-04-10 at 21:28 -0700, bdsatish wrote:
> How does (a/b) work when both 'a' and 'b' are pure integers ?
>
> >> (9/2)
> 4
>
> >> (-9/2)
> -5
>
> Why is it -5 ? I expect it to be -4 ? Because, in C/C++, 9/2 is 4 and
> so n
#x27;s code; they are free
to do what works for them, of course.) But I've been unable to think
of one and I haven't seen in this thread another direction. Is there
one?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
esort you could list all ascending sequences of 7 or fewer digits (but
perhaps I misunderstood the original poster's requirements).
Jim
--
http://mail.python.org/mailman/listinfo/python-list
For DTD's: have you stumbled across:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/220472
?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
On this post, you are talking about Talend and Informatica like both
are
comparable... indeed both tools are comparable in power and
functionality.
But keep in mind Informatica is a proprietary solution, with no access
to the code. You have a license fee + other costs associated to the
use
of Infa.
t "exception:",str(err)
gives me "I expect not to see this line".
Am I using that routine incorrectly? Is there a natural Python choice
for this job?
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Thank you, John. I did not find that by looking around; I must not
have used the right words. The speed of the unit tests are not
critical so this seems like the solution for me.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
is only
about 30 lines of html so I think I'll take a pass on automated html
generation, but FWIW the intolerant parser found a couple of errors.
Thanks again,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
document dom representation via a
different library?
Jim
--
http://mail.python.org/mailman/listinfo/python-list
ough it takes comment_elet.set('auth:id','jones')
just fine). I've also spelunked the docs and googled but have not hit
on the right invocation. If someone knows, I'd be grateful.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
ried that exact thing, among a number of others, and it didn't work
for me (I got ns0). I'll try again, this time with the understanding
that it is the right one, and so perhaps I may discover some small
error in what I tried.
Regards, and thanks again,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
How can I calculate how much time is between now and the next 2:30
am? Naturally I want the system to worry about leap years, etc.
Thanks,
Jim
--
http://mail.python.org/mailman/listinfo/python-list
Thanks; I'll have a look, and a think.
Jim
--
http://mail.python.org/mailman/listinfo/python-list
that makes available the time until the next 2:30
because that is when the web site is rebuilt.
I hope the code isn't too much mangled by the online editor,
Jim
.
import time, datetime
from django.conf impor
358
>>> dt_tomorrow_twothirty=dt_localtime.replace(day=25,hour=2,minute=30,second=0,microsecond=0)
>>> print dt_tomorrow_twothirty
2010-07-25 02:30:00
>>> dd_tomorrow_diff=dt_tomorrow_twothirty-dt_localtime
>>> print dd_tomorrow_diff
19:12:13.877358
Tested it, of course. Not that I haven't gotten things wrong in the
past, even though I tested them. :-}
Jim
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to understand the output of the tokenize.generate_tokens()
generator. The token types returned seem to be more general than I'd
expect. For example, when fed the following line of code:
def func_a():
the (abbreviated) returned token tuples are as follows:
(NAME,def,
o a config file to get them in the
launcher. Don't think this one is written in Python.
Both are in the OS's repositories.
Regards, Jim
--
https://mail.python.org/mailman/listinfo/python-list
do/__init__.py",
line 708, in search_windows
search.winname = winname
TypeError: bytes or integer address expected instead of str instance
I couldn't find any examples on line, so what do I need to give to
search_windows so I can pass a window id to move_window?
Thanks, Jim
--
https://mail.python.org/mailman/listinfo/python-list
On 02/28/2017 04:05 AM, Pavol Lisy wrote:
On 2/28/17, Jim wrote:
simplified:
from xdo import Xdo
xdo = Xdo()
win = xdo.search_windows(winname = 'Mozilla Firefox')
File "/home/jfb/EVs/env/lib/python3.5/site-packages/xdo/__init__.py"
TypeError: bytes or integer address exp
thon-UNO bridge". Maybe CentOS has a similarly name package.
regards, Jim
--
https://mail.python.org/mailman/listinfo/python-list
ave a working installation of Python 3.6.1 and Pyuno.
Regards, Jim
2017-03-28 5:49 GMT+02:00 Michael Torrie :
On 03/27/2017 09:13 PM, Jim wrote:
I don't know if this is of any help but I am running Mint 18 with
Python 3.5 and I have a package installed called
python3-uno which
is de
I've read all the docs I can find and worked through a lot of examples
but I can't figure out how to shift the focus from one cell to another.
Could someone point me to the command or an example of how to do this?
Thanks, Jim
--
http://mail.python.org/mailman/listinfo/python-list
101 - 200 of 746 matches
Mail list logo