Re: access to MS Access password-protected database?

2009-02-11 Thread Kenneth McDonald
Sorry for the vagueness. I do have access to the file and can open it using Access. I haven't yet done anything involving Python and Access (or Python and Win interfacing, for that matter.) Thanks, Ken On Feb 11, 2009, at 12:01 PM, imageguy wrote: On Feb 11, 10:43 am, Ken McDonald

Possible to access MS Access 2007 password-protected database from Python?

2009-02-06 Thread Kenneth McDonald
Googling has shown me various ways of connecting to a non-password- protected Access database, but I was wondering if someone could point to code illustrating how to use an Access db that's password- protected. I haven't been able to find anything on this. Thanks, Ken --

Any equivalent to Ruby's 'hpricot' html/xpath/css selector package?

2008-12-28 Thread Kenneth McDonald
Ruby has a package called 'hpricot' which can perform limited xpath queries, and CSS selector queries. However, what makes it really useful is that it does a good job of handling the broken html that is so commonly found on the web. Does Python have anything similar, i.e. something that

subprocess.Popen hangs at times?

2008-09-10 Thread Kenneth McDonald
When making calls of the form Popen(cmd, shell=True, stdout=subprocess.PIPE), we've been getting occasional, predictable hangs. Will Popen accumulate a certain amount of stdout and then block until its read? We don't want to use threads, so just want to read the entire stdout after the

Re: People still using Tkinter?

2008-05-10 Thread Kenneth McDonald
The only trick it that sometimes it isn't obvious how to make the Tcl/ Tk call via Python. Ken On May 10, 2008, at 11:27 AM, Martin v. Löwis wrote: I am, but still isn't the word, I just started. Good, *complete* docs seem to be hard to find, but using a combination of the free resources

Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Kenneth McDonald
I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks, Ken --

People still using Tkinter?

2008-05-09 Thread Kenneth McDonald
Any guesses as to how many people are still using Tkinter? And can anyone direct me to good, current docs for Tkinter? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread Kenneth McDonald
Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Python script to automate use of Google Translate? (or other translator)

2008-04-20 Thread Kenneth McDonald
I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Python plugins for netbeans 6 IDE?

2007-09-22 Thread Kenneth McDonald
Do any such exist? And do you find them worthwhile? I couldn't see any browsing the netbeans pages, but that doesn't mean they're not out there... Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Any syntactic cleanup likely for Py3? And what about doc standards?

2007-09-05 Thread Kenneth McDonald
The reading I've done so far on Python 3 (alpha announcement, meta-PEP, some other PEPs) is generally encouraging, but there doesn't seem to be much on cleaning up the syntax, which has become uglier over time as features have been added on to an original syntax that wasn't designed to support

Questions on FOX GUI and Python

2007-09-04 Thread Kenneth McDonald
Would anyone care to offer their opinions as to using Python with the FOX GUI toolkit? Ease of use, stability, power, speed, etc., all thoughts would be appreciated. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

How best to dynamically define methods (and functions)?

2007-09-01 Thread Kenneth McDonald
I can see an obvious but hacky way to define a Python function at runtime. I can't see any obvious way to add a method to a class at runtime (though I'm sure one could do just about anything by digging into the metaclass stuff, which I will do if needed). But pointers to cleaner or easier

Calling Python from Javascript?

2007-04-11 Thread Kenneth McDonald
I know that there's some work out there to let Python make use of Javascript (Spidermonkey) via (I assume) some sort of bridging C/C++ code. Anyone know of efforts to allow the reverse? I'd really like to make use of Python when doing Mozilla DOM programming, and I can never get a clear idea

curses module

2007-04-02 Thread Kenneth McDonald
I know that the curses module has a long-standing bug wherein cursor visibility can't be set. I'm looking at using the module for certain uses, and this isn't a problems (as long as I hide the cursor offscreen) as I would control visuals to provide a simulated cursor anyway. I'm wondering,

Getting unicode escape sequence from unicode character?

2006-12-27 Thread Kenneth McDonald
Given a Python unicode character (string of length one), how would I find out the \u escape sequence for it? This isn't obvious from the docs I've been looking through. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Simplest way to do Python/Ajax with server and client on same machine?

2006-12-19 Thread Kenneth McDonald
I'm doing some work with a Python program that works hand-in-hand with the DOM on a local client (processing DOM events, issuing DOM modification commands, etc.) I'm currently using cherrypy as the Python server for this communication, and simple AJAX on the client browser end. This works just

Lightweight embedding of Firefox Gecko into application whose top level is Python--possible?

2006-12-18 Thread Kenneth McDonald
Sorry for crossposting to several lists, but from what I can tell, what I want to do may involve several different areas of expertise. (None of which I have :-( ) I'd like to use Gecko as the UI for an application mostly implemented in Python. Ideally, I'd like to somehow come up with a Python

Any way of adding methods/accessors to built-in classes?

2006-10-25 Thread Kenneth McDonald
This is possible with pure Python classes. Just add the method as new attribute of the class. However, that won't work for the builtins. I know that this is somewhat dangerous, and also that I could subclass the builtins, but not being able to do things like '[1,2,3]'.length drives me a little

How to identify generator/iterator objects?

2006-10-25 Thread Kenneth McDonald
I'm trying to write a 'flatten' generator which, when give a generator/iterator that can yield iterators, generators, and other data types, will 'flatten' everything so that it in turns yields stuff by simply yielding the instances of other types, and recursively yields the stuff yielded by

Is there a python development site for putting up python libraries that people might be interest in working on?

2006-10-25 Thread Kenneth McDonald
Over the last couple of years, I've built a module called rex that lays on top of (and from the user's point of view, hides) the re module. rex offers the following advantages over re. * Construction of re's is object oriented, and does not require any knowledge of re syntax. * rex is _very

Re: How to identify generator/iterator objects?

2006-10-25 Thread Kenneth McDonald
Thanks for all the feedback. Yes the original post was incorrect, it was an intellectual burp that had me asking about a instead of f(something). Boy, that answer's something I would never have known... Thanks, Ken Leo Kislov wrote: Michael Spencer wrote: Kenneth McDonald wrote

Re: What's the best IDE?

2006-10-25 Thread Kenneth McDonald
With the most recent edition of PyDev, I find Eclipse works quite well for me. Ken [EMAIL PROTECTED] wrote: Recently I've had some problems with PythonWin when I switched to Py2.5, tooka long hiatus, and came back. So now I'm without my god sent helper, and I'm looking for a cool

Parsing HTML--looking for info/comparison of HTMLParser vs. htmllib modules.

2006-07-07 Thread Kenneth McDonald
I'm writing a program that will parse HTML and (mostly) convert it to MediaWiki format. The two Python modules I'm aware of to do this are HTMLParser and htmllib. However, I'm currently experiencing either real or conceptual difficulty with both, and was wondering if I could get some advice.

Idea/request for new python mailing list/newsgroup.

2006-07-07 Thread Kenneth McDonald
Would a mailing list and newsgroup for python contributions be of interest? I currently have a module which is built on top of, and is intended to semantically replace, the 're' module. I use it constantly to great advantage, but have not made it public for the following reasons: * The API

[OT] Prolog and Regular Expressions, Was: Re: perspective on ruby

2006-06-28 Thread Kenneth McDonald
Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], Edward Elliott [EMAIL PROTECTED] wrote: XML? Conceptually (and more elegantly) covered as LISP s-expressions. ...Lisp is still #1 for key algorithmic techniques such as recursion and condescension. -- Verity Stob

test, please ignore

2006-02-05 Thread Kenneth McDonald
My last several postings do not seem to have gone through, so here's trying again. Ken -- http://mail.python.org/mailman/listinfo/python-list

Pythonic wrappers for SQL?

2006-01-13 Thread Kenneth McDonald
I need to do some data manipulation, and SQLite is a nice little product for it, except of course that I'd need to write SQL. Are there any good libraries out there that let one write (basic) queries in a Pythonic syntax, rather than directly in SQL? Thanks, Ken --

Programming Eclipse plugins in Jython?

2006-01-11 Thread Kenneth McDonald
Is it easy or difficult to implement Eclipse plugins in Jython? And if the former, are there any starter's guides you could recommend? The desire is an editor plugin for a syntactically very simple proprietary language. I'd like to have paren checking, syntax colorization and (to start with

Pydev questions: versions and keybindings

2005-12-22 Thread Kenneth McDonald
I'm trying to find out if I have the most recent version of Pydev for Eclipse installed, but can't find the version number in the Pydev user interface. Is it available anywhere in there? And, the reason that I'm trying to find the most recent update is because I can't redefine one keystroke

Interesting little gotcha with generators

2005-12-22 Thread Kenneth McDonald
I recently had need to write the following code: def compileOuter(self): if False: yield None else: return compileOuter is a generator function which is implemented in various classes. In this particular class, it always yields nothing. However, none of the following

Re: Python packages on OS X vs Windows

2005-12-15 Thread Kenneth McDonald
The two are equivalent; time=money, at least in terms of work. 5 minutesto install = easy. 2 days to install = hard.Thanks for the note about Komodo for OS X, I'll take a look...On 15-Dec-05, at 8:56 AM, Kevin Walzer wrote:I'll grant that PyQt is a pain. It takes a couple of days to build,

Python packages on OS X vs Windows

2005-12-14 Thread Kenneth McDonald
At the moment I'm doing most of my stuff on a Mac, but I've been considering also getting a Windows laptop. One of the reasons is that I've found it very difficult to get certain Python related things running on the Mac; for example, if one wants to use the most up-to-date Python on the mac,

Questions about working with character encodings

2005-12-14 Thread Kenneth McDonald
I am going to demonstrate my complete lack of understanding as to going back and forth between character encodings, so I hope someone out there can shed some light on this. I have always depended on the kindness of strangers... :-) I'm playing around with some very simplistic french to

Re: Python packages on OS X vs Windows

2005-12-14 Thread Kenneth McDonald
I've often found the Linux world to be like falling off a log,specifically, a log above a deep chasm with sharp rocksat the bottom :-)Linux has its place (though I tended to use FreeBSD more),but it's been several years since I've wanted to actually knowhow to manage my own system. I'd suggest

Re: Python packages on OS X vs Windows

2005-12-14 Thread Kenneth McDonald
If the amount of time it saved me justified it, I wouldn't hesitate to spend250 pounds. To put it in a more measurable manner, I've found myselfspending so much time attempting to get packages compiled underUNIXes (OS X, Linux, FreeBSD, etc.) that I would have no difficultywhatsoever in spending

Installing Eric?

2005-12-04 Thread Kenneth McDonald
I'm wondering if anyone has experience/tips to offer on installing Eric on OS X and XP. Installation on both seems to require a number of steps, some of them seeming potentially fragile, and I'm wondering if I'm looking at a job of perhaps hours (days?), or if everyone manages in just a

Looking for small, impressive 3D-related Python script

2005-11-28 Thread Kenneth McDonald
I'm not trying to persuade my company to offer Python as a scripting language for their product, but I am trying to give them examples of things that Python can do easily that cannot be done easily with their current proprietary scripting language. After that it would be their decision. As

Re: Looking for small, impressive 3D-related Python script

2005-11-28 Thread Kenneth McDonald
Thanks. Unfortunately, I then still need to write some sort of impressive OBJ-generating script, and it would really be nice if one existed already...I know there will be simple examples out there that will still look very good, but I don't know enough to quickly write one myself.KenOn 28-Nov-05,

Questions on embedding Python

2005-11-22 Thread Kenneth McDonald
We're looking at embedding Python into our product to provide users with the ability to write scripts for the programming. My knowledge of Python is excellent, I'm familiar with the concepts of converting back and forth between C and Python datatypes, but my knowledge of compiling and

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-19 Thread Kenneth McDonald
Perhaps you didn't read my original post? I'm being forced to consider Windowsfor reasons beyond my control. Given that I wanted a decent shell in Windows,I thought I would ask about Python shells because I think Python is a great language,and such a beast would give me the flexibility I want on a

Re: UI toolkits for Python

2005-10-19 Thread Kenneth McDonald
I'd have to agree with this. Unfortunately, the only way to use Swing (in a reasonable manner) from Python is to use Jython, and Jython has other shortcomings that make me not want to use it. Sigh. Ken On 19-Oct-05, at 9:59 AM, Ed Jensen wrote: Claudio Grondi [EMAIL PROTECTED] wrote: I

Re: UI toolkits for Python

2005-10-17 Thread Kenneth McDonald
Web interfaces are missing a lot more than this. Here are just a few things that cannot be done with web-based interfaces (correct me where I'm wrong):1) A real word processor.2) Keybindings in a web application3) Drag and drop4) Resizable windows (i.e. not the browser window) within the

Re: Microsoft Hatred FAQ

2005-10-17 Thread Kenneth McDonald
We all know all of the horrible things about Microsoft, and I suspect most of us agree they put out cruddy software. But why is this a topic for the Python list? Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's Performance

2005-10-14 Thread Kenneth McDonald
Um, sorry, but this isn't correct.Although there might be a slight bit of gray area, the simple difference between compiled and interpreted languages is that compiled languages produce a binary consisting of bytes that mean something specific to the CPU of the computer the program is running on.

UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
Is there any emerging consensus on the best UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the licensing issues surrounding qt (fwiw, I think their license fee for commercial use is eminently

Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Kenneth McDonald
For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my main system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour (OS X is like driving in Portland at rush hour--not as bad, but getting there), but there are

Re: UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
: Kenneth McDonald [EMAIL PROTECTED] writes: 1) Which plays best with Python? Ideally, it would already have some higher-level python libraries to hide the grotty stuff that is almost never needed when actually implementing apps. 2) Reliability of each? 3) Useful external libraries for each? 4

Re: UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
This improved appearance has been a nice thing to see, but looks were never really the reason I decided to leave Tkinter. It's much more the fundamental issues of Tk, plus the fact that Tkinter was never really "completed" (not a comment on the original author--there's only so much one person can

Python enjoyment (was Re: Python's Performance)

2005-10-10 Thread Kenneth McDonald
Ditto to the below! I quite literally considered leaving the CS field until I found Python. Now my main job description is 'technical writing', but I get to use python at work (MoinMoin) and for all of my own computing needs.Cheers,KenOn 10-Oct-05, at 2:03 AM, Ron Adam wrote:If I was forced to go

Re: So far (about editing tools)

2005-10-06 Thread Kenneth McDonald
This is something I fought with for a long time. My overwhelming vote is Eclipse with the PyDev plugin. (Google search should reveal this). Here are the pros and cons. 1) Eclipse is a _big_ system, with a strong emphasis on Java. So there's a lot of functionality you need to learn to

Re: So far (about editing tools)

2005-10-06 Thread Kenneth McDonald
As I did mention in my original post, Eclipse is indeed bloated. However, in spite of that, I've found it both fast and reliable (much to surprise). The only real problem is learning what functionality (the majority) to ignore. PyDev offers nice integration with Python. If I run a python

Re: What documentation standard to use

2005-10-05 Thread Kenneth McDonald
This is, as far as I'm concerned, one of the great weaknesses of Python. (One of a relatively few, to be honest--I'm still an enthusiast after all!) There are numerous docstring-oriented tools; in my opinion, none of them are satisfactory, because docstrings only apply to certain entities,

Re: What tools are used to write and generate Python Library documentation.

2005-09-27 Thread Kenneth McDonald
Unfortunately, none of the documentation tools that use documentation strings are suitable for full, serious documentation. There are a number of reasons for this, and I'll touch on a few. The obvious one is that there is no standard format for docstrings, and this creates problems when

Two questions on PyDev for Eclipse

2005-09-19 Thread Kenneth McDonald
The first is general; what are users' experience with PyDev for Eclipse. It looks pretty good to me right now, but I've only started playing with it. Converting to Eclipse is a major effort, and if there are problems which would prevent pydev from being useful right now, I'd certainly

Re: suggestion for Python graphing package, please

2005-08-30 Thread Kenneth McDonald
I haven't looked at it for a while, but when I was looking at it, MatPlotLib was great (though the API was still in flux). I'd assume it's become even better since then and I certainly hope so, because I'm planning on using it again soon :-). Ken On Aug 29, 2005, at 3:36 PM, Robert Kern

Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Kenneth McDonald
I'm curious about this because, quite aside their function as web browsers, it is now possible to build some very useable interfaces using browsers with HTML, CSS, and JavaScript. (The biggest problem is still the lack of a decent text widget.) However, JavaScript isn't really a good

Re: Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Kenneth McDonald
On Aug 26, 2005, at 3:04 PM, Paul Rubin wrote:Python isn't a good choice as a browser language because it doesn't have enough security.  Hostile scripts can take over the interpreter too easily.   There was a Python-based browser effort called Grail which I don't think got very far. Personally I

How to start PEP process?

2005-08-25 Thread Kenneth McDonald
Should I just put a Proposed PEP message here? Or is there a more formal way? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

pre-PEP: Object-oriented file module

2005-08-25 Thread Kenneth McDonald
I'd like to propose a new PEP [no, that isn't a redundant 'process' in there :-)--pre-PEP is a different process than PEP], for a standard library module that deals with files and file paths in an object oriented manner. I believe this module should be included as part of the standard

Re: pre-PEP: Object-oriented file module

2005-08-25 Thread Kenneth McDonald
Why would any of the issues below be any more difficult than they are withthe current file functions? I'm not proposing a C replacement for currentfunctions, merely a Python module that wraps all of those functions (andadds some additional ones) in an appropriate class.On Aug 25, 2005, at 5:28 PM,

Best way to 'touch' a file?

2005-08-21 Thread Kenneth McDonald
I could've sworn python had such a command, but now I can't find it... I'm looking for an easy way to perform a UNIX-style touch, to update the modification time of a file without actually modifying it. I could do something (I imagine) like opening the file for appending and then

Which Python Wiki engine?

2005-06-13 Thread Kenneth McDonald
I'm looking for a Wiki engine to set up for my company, so that we can incrementally add user documentation for a fairly complex program, plus allow users to add their own comments for the benefit of others. I'd strongly prefer a Python-based Wiki, since that allows me the chance to add

Questions on using Qt or wxWindows with Python and OS X

2005-05-31 Thread Kenneth McDonald
If this is not an appropriate newsgroup for this type of posting, please let me know and (if possible) suggest an alternative. I've done a fair bit of research on the net, but information is scattered all over the place and I haven't been able to find mailing lists relating specifically to python

Re: DHTML control from Python?

2005-02-14 Thread Kenneth McDonald
In article [EMAIL PROTECTED], aurora [EMAIL PROTECTED] wrote: What are the win 32 modules? Searching OS X win 32 on Google gave me a bit too much... Thanks, Ken IE should be able to do that. Install the win32 modules. Then you should simply embed Python using script language='python'. Not

Request for Feedback; a module making it easier to use regular expressions.

2005-01-31 Thread Kenneth McDonald
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make regular expressions easier to create and use (and in my experience as a regular expression user, it