bug in Makepy

2006-06-22 Thread Jim
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

Re: bug in Makepy

2006-06-22 Thread Jim
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

Re: bug in Makepy

2006-06-23 Thread Jim
> 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

Re: embedded Python calling app via COM

2006-06-23 Thread Jim
> 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

split a line, respecting double quotes

2006-07-07 Thread Jim
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',&#x

Re: split a line, respecting double quotes

2006-07-08 Thread Jim
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

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-16 Thread Jim
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

Re: A critique of cgi.escape

2006-09-26 Thread Jim
(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

Re: Extra Newby question - Trying to create md5 File Listing

2006-09-27 Thread Jim
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

Re: Extra Newby question - Trying to create md5 File Listing

2006-09-28 Thread Jim
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', '

decompiler

2006-11-17 Thread jim
Is there such thing as a free decompile that I can run in windows xp -- http://mail.python.org/mailman/listinfo/python-list

decompiler

2006-11-18 Thread jim
where can I find a free decompile that I can run in windows xp -- http://mail.python.org/mailman/listinfo/python-list

Free Decompiler

2006-11-18 Thread jim
where can I find a free decompile that I can run in windows xp -- http://mail.python.org/mailman/listinfo/python-list

How do I access a main frunction from an import module?

2006-11-24 Thread Jim
rn None a() ## python25.exe main.py Thanks, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I access a main frunction from an import module?

2006-11-24 Thread Jim
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

Re: How do I access a main frunction from an import module?

2006-11-24 Thread Jim
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() > >

Re: How do I access a main frunction from an import module?

2006-11-24 Thread Jim
- > 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

Re: Convert a long XML string into indented format

2006-01-25 Thread Jim
ank you to Paul, I've found that page useful, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange behavior with os call in cgi script

2006-02-07 Thread Jim
``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

Re: Encryption with Python?

2005-05-07 Thread Jim
What machine did you say that was, again? Jim -- http://mail.python.org/mailman/listinfo/python-list

CVS interface module

2005-05-28 Thread Jim
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

Re: CVS interface module

2005-05-28 Thread Jim
. 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 --

Re: What language to manipulate text files

2005-06-13 Thread 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

Re: Learning more about "The Python Way"

2005-06-14 Thread Jim
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

subprocess call acts differently than command line call?

2007-06-07 Thread Jim
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

Re: subprocess call acts differently than command line call?

2007-06-07 Thread Jim
getting, and you found it. Hope I can return the favor sometime, Jim -- http://mail.python.org/mailman/listinfo/python-list

business on line follow me !

2007-06-20 Thread jim
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

ebay

2007-06-20 Thread jim
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

Re: database design help

2007-06-24 Thread Jim
a). Just google "subversion". Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: ebay

2007-07-03 Thread jim
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

Re: zipfile 2GB problems?

2007-07-15 Thread Jim
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.

Re: python cgi problem with textarea

2007-04-22 Thread Jim
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

Re: getting rid of EOL character ?

2007-04-27 Thread Jim
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

Re: Need Help in Preparing for Study of Python by Forrester Research

2007-05-02 Thread Jim
What does it pay? -- http://mail.python.org/mailman/listinfo/python-list

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-05-13 Thread Jim
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

Making Gridded Widgets Expandable

2007-07-30 Thread Jim
.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

Re: Making Gridded Widgets Expandable

2007-07-30 Thread Jim
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

Re: Writing an interpreter for language similar to python!!

2007-03-02 Thread Jim
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

command line arguments using subprocess

2007-03-14 Thread Jim
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

Re: Beginner question: difference between lists and tuples

2007-03-14 Thread Jim
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

pyCairo

2007-03-18 Thread Jim
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

Database in memory

2007-04-09 Thread Jim
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

Re: script for seconds in given month?

2007-04-16 Thread Jim
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,

Command-line does work when scheduled

2007-09-29 Thread Jim
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

Re: Command-line does work when scheduled

2007-09-29 Thread Jim
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

Re: Command-line does work when scheduled

2007-09-29 Thread Jim
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

Re: Command-line does work when scheduled

2007-09-30 Thread Jim
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. > > >

Re: Command-line does work when scheduled

2007-09-30 Thread Jim
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

Re: Command-line does work when scheduled

2007-09-30 Thread Jim
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

Re: toprettyxml messes up with whitespaces

2007-10-03 Thread Jim
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

error messages containing unicode

2007-01-29 Thread Jim
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

Python 2.5 Tkinter not configured

2007-01-29 Thread Jim
with this. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: error messages containing unicode

2007-01-30 Thread Jim
') > ... 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

Re: error messages containing unicode

2007-01-30 Thread Jim
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

Re: error messages containing unicode

2007-01-30 Thread Jim
confused me, it was how to get it in the first place. Much obliged, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: error messages containing unicode

2007-01-31 Thread Jim
.. 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

Re: error messages containing unicode

2007-01-31 Thread Jim
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: >

Re: Python 2.5 Tkinter not configured

2007-01-31 Thread Jim
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

Re: Recursive zipping of Directories in Windows

2007-02-06 Thread Jim
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 > > > > >

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Jim
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

Re: Unicode Regular Expressions

2007-12-23 Thread Jim
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

Re: Read and extract text from pdf

2006-04-21 Thread Jim
There is a pdftotext executable, at least on Linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: Elegent solution to replacing ' and " ?

2006-05-05 Thread Jim
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

Re: Great Python books for the beginner

2008-01-12 Thread Jim
Look at http://www.python.org/doc/ . The tutorial is quite good. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Can xml.sax NOT process the DTD?

2008-01-28 Thread Jim
file, which you say works for you. Jim -- http://mail.python.org/mailman/listinfo/python-list

URLError

2008-03-19 Thread Jim
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

Re: URLError

2008-03-20 Thread Jim
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

Re: URLError

2008-03-22 Thread Jim
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

Re: ANN: New Book: Programming in Python 3

2008-12-20 Thread Jim
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

BadStatusLine error

2008-05-28 Thread Jim
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

Re: BadStatusLine error

2008-05-29 Thread Jim
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

some jordan shoes and something for wholesale

2008-06-21 Thread jim
would you want to buy cheap something?welcome to www.wholenikee.cn -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending information to a website

2008-06-24 Thread Jim
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

Re: convert unicode characters to visibly similar ascii characters

2008-07-01 Thread Jim
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

Re: convert unicode characters to visibly similar ascii characters

2008-07-01 Thread Jim
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

Re: convert unicode characters to visibly similar ascii characters

2008-07-01 Thread Jim
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.

Re: convert unicode characters to visibly similar ascii characters

2008-07-01 Thread Jim
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.

Re: convert unicode characters to visibly similar ascii characters

2008-07-02 Thread Jim
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.

Re: Integer dicision

2008-04-10 Thread jim
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

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Jim
#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

Re: A better RE?

2006-03-10 Thread Jim
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

Re: Validate XML against DTD and/or XML Schema?

2006-04-16 Thread Jim
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

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-29 Thread Jim
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.

intolerant HTML parser

2010-02-06 Thread Jim
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

Re: intolerant HTML parser

2010-02-06 Thread Jim
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

Re: intolerant HTML parser

2010-02-12 Thread Jim
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

Re: finding element by tag in xml

2010-02-20 Thread Jim
document dom representation via a different library? Jim -- http://mail.python.org/mailman/listinfo/python-list

lxml etree question

2010-12-24 Thread Jim
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

Re: lxml etree question

2010-12-25 Thread Jim
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

time between now and the next 2:30 am?

2010-07-23 Thread Jim
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

Re: time between now and the next 2:30 am?

2010-07-23 Thread Jim
Thanks; I'll have a look, and a think. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: time between now and the next 2:30 am?

2010-07-23 Thread Jim
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

Re: time between now and the next 2:30 am?

2010-07-24 Thread Jim
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

tokenize module

2009-06-27 Thread Jim
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,

Re: Python application launcher (for Python code)

2017-02-21 Thread Jim
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

python-libxdo?

2017-02-27 Thread Jim
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

Re: python-libxdo?

2017-02-28 Thread Jim
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

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Jim
thon-UNO bridge". Maybe CentOS has a similarly name package. regards, Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Using/compiling pyuno with Python 3.6

2017-03-28 Thread Jim
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

Scripting Calligra Sheets with Python

2013-06-15 Thread Jim Byrnes
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

<    1   2   3   4   5   6   7   8   >