Re: code for the graphics window?

2006-08-31 Thread Richard Jones
to display changeable text, so that > the words and numbers can be altered with what is going on inside the > graphics window. If that doesn't make much sense, maybe I could try > sending a bit of the code from my program. A bit of code would certainly help. How did you open this

Re: threading support in python

2006-09-04 Thread Richard Brodie
"km" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > if GIL doesnt go then does it mean that python is useless for > computation intensive scientific applications which are in need of > parallelization in threading context ? No. -- http://mail.python.org/mailman/listinfo/pyth

Dice gen and analyser script for RPGs: comments sought

2006-09-04 Thread Richard Buckle
f code * Efficiency of code * Quality of docstrings * Conformance with modern docstring standards * Conformance with coding standards e.g. PEP 8 I look forward to receiving your comments and criticisms. Regards, Richard. -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-05 Thread Richard Brodie
"km" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know many of my friends who did not choose python for obvious reasons > of the nature of thread execution in the presence of GIL which means > that one is wasting sophisticated hardware resources. It would probably be easier

Re: threading support in python

2006-09-05 Thread Richard Brodie
"km" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > True, since smartness is a comparison, my friends who have chosen java > over python for considerations of a true threading support in a > language are smarter, which makes me a dumbo ! :-) No, but I think you making unwise assu

Unicode string handling problem

2006-09-05 Thread Richard Schulman
"rU") try: # Skip the first line; make the second available for processing in_file.readline() in_line = readline() attribute_count = in_line.count('",') print attribute_count finally: in_file.close() Any suggestions? Richard Schulman (For

Unicode string handling problem (revised)

2006-09-05 Thread Richard Schulman
"rU") try: # Skip the first line; make the second available for processing in_file.readline() in_line = in_file.readline() attribute_count = in_line.count('",') print attribute_count finally: in_file.close() Any suggestions? Richard Schulman

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
Thanks for your excellent debugging suggestions, John. See below for my follow-up: Richard Schulman: >> The following program fragment works correctly with an ascii input >> file. >> >> But the file I actually want to process is Unicode (utf-16 encoding). >> The fi

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
On 5 Sep 2006 19:50:27 -0700, "John Roth" <[EMAIL PROTECTED]> wrote: >> [T]he file I actually want to process is Unicode (utf-16 encoding). >>... >> in_file = open("c:\\pythonapps\\in-graf1.my","rU") >>... John Roth: >You're not detecting the file encoding and then >using it in the open statement

Re: Unicode string handling problem

2006-09-05 Thread Richard Schulman
On Wed, 06 Sep 2006 03:55:18 GMT, Richard Schulman <[EMAIL PROTECTED]> wrote: >...I'm now using the codec with >improved results, but am still puzzled as to how to handle the row >termination of \n\n, which is being interpreted as two rows instead of >one. Of course, I co

Re: getting quick arp request

2006-09-07 Thread Richard Brodie
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it relevant to point out that the ARP protocol is a connectionless > network-layer > protocol. Not really, since the program uses normal TCP socket connections. The feature is working exactly as designed - to slow

Re: Unicode string handling problem

2006-09-07 Thread Richard Schulman
ut how difficult it is to cook challenging dishes with sketchy recipes alone. There is no substitute for the helpful advice of an experienced chef. -Richard Schulman (remove "xx" for email reply) On 5 Sep 2006 22:29:59 -0700, "John Machin" <[EMAIL PROTECTED]>

Re: Convert to big5 to unicode

2006-09-07 Thread Richard Schulman
hat. If this causes a problem, email me and I'll send you the source directly. -Richard Schulman /* This program converts an input file of one encoding format to an output file of * another format. It will be mainly used to convert Big5 text files to Unicode text files. *

cx_Oracle question

2006-09-08 Thread Richard Schulman
lect mean_eng_txt from mean where mean_id=:arg_1',arg_1) TypeError: expecting a dictionary, sequence or keyword args What do I need to do to get this sort of program working? TIA, Richard Schulman For email reply, remove the xx characters -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle question

2006-09-08 Thread Richard Schulman
Richard Schulman: >> cursor.execute("""select mean_eng_txt from mean >> where mean_id=:arg_1""",arg_1) Uwe Hoffman: >cursor.execute("""select mean_eng_txt from mean >where mean_id=:arg_1"

Unicode / cx_Oracle problem

2006-09-08 Thread Richard Schulman
=mean) I not surprisingly get this error message: "cx_Oracle.NotSupportedError: Variable_TypeByValue(): unhandled data type unicode" But when I try putting a codecs.BOM_UTF16_LE in various plausible places, I just end up generating different errors. Recommendations, please? TIA, Ric

Re: Unicode / cx_Oracle problem

2006-09-09 Thread Richard Schulman
pps\LoadMeanToOra.py", line 23, in ? cursor.execute("""INSERT INTO mean (mean_id,mean_eng_txt) What I can't figure out is whether cx_Oracle is saying it can't handle Unicode for an Oracle nvarchar2 data type or whether it can handle the input but that it needs to be in a specific format that I'm not supplying. - Richard Schulman -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode / cx_Oracle problem

2006-09-10 Thread Richard Schulman
much as I dislike Java and C#'s complexities and the poor support available for all-Java databases. >Then you need to encode the unicode string before passing it - something >like this: > >mean = mean.encode("latin1") I don't see how the Chinese characters embedded in the English text will carry over if I do that. In any case, thanks for your patient and generous help. Richard Schulman Delete the antispamming 'xx' characters for email reply -- http://mail.python.org/mailman/listinfo/python-list

RE: assistance with python coding

2006-09-11 Thread Richard Morello
[i] self.cards[i] = self.cards[j] self.cards[j] = tmp   Let me know if you need any more help!   Yours truly, Richard Morello   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John ShappellSent: Monday, September 11, 2006 12:23 PMTo

Re: Are Python's reserved words reserved in places they dont need to be?

2006-09-12 Thread Richard Brodie
"metaperl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why isn' t the parser smart enough to see that class followed by an > identifier is used for class definition but class followed by equals is > a simple assignment? Because it's simpler to reserve words than worry about po

Re: Dice gen and analyser script for RPGs: comments sought

2006-09-12 Thread Richard Buckle
tions of Mac OS X 10.4.x, so I just put up with it and code to Python 2.3. I'm on Apple's developer program, so if anyone has a Radar bug number I can cite while requesting they pull their socks up and ship Python 2.4 with the OS, just let me know and I'll cite it to Apple. Richard. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's more pythonic?

2006-09-12 Thread Richard Jones
Paul Rubin wrote: > Dan Stromberg <[EMAIL PROTECTED]> writes: >> def __cmp__(self, other): >> if self.a < other.a: >> return -1 >> elif self.a > other.a: >> return 1 >> else: >> return 0 > > I think I'd have written > >return cmp(self.a, other.a) /me agrees -- http://mail.python.or

Re: [ANN] IronPython Community Edition 1.0r1

2006-09-14 Thread Richard Jones
k in June: http://lists.ironpython.com/pipermail/users-ironpython.com/2006-June/002500.html All messages since then seem to refer just to that one post. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I converted a null (0) terminated string to a Python string?

2006-09-14 Thread Richard Brodie
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would spell it: > > if strg.endswith('\0'): >strg = strg[:-1] I would just go with: strg = strg.rstrip('\0') -- http://mail.python.org/mailman/listinfo/python-list

Re: mp3 libs and programs

2006-09-15 Thread Richard Jones
from xiph.org and you've got a complete player :) Also, these days you might want to look into gstreamer. It rocks*, but I've not personally used it.: http://gstreamer.freedesktop.org/ Richard *: Anthony Baxter, your friendly neighborhood Python Release Manager, is in love with it.

Re: Unicode / cx_Oracle problem

2006-09-16 Thread Richard Schulman
ivePython 2.4 documentation, which states: <<12.20 csv -- CSV File Reading and Writing <> Regards, Richard Schulman -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop Registration error

2006-09-17 Thread Richard Jones
t it > doesn't work. And the key ID you were trying to paste in was? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop Registration error

2006-09-18 Thread Richard Jones
ID is invalid' So I suspect there might have been some cut-n-paste error. Check that you've not pasted in any whitespace that could confuse the first test. Richard -- http://mail.python.org/mailman/listinfo/python-list

RE: Curious issue with simple code

2006-09-19 Thread Richard Morello
Dear Tony, You're not in that directory (start_dir) when the isfile() function is called. See function os.path.curdir() and os.chdir(). Also, you may be confusing the behavior of os.path.walk(), in which the function called will happen once you have been chdired to the directory it is examining.

Re: Cheese Shop Registration error

2006-09-19 Thread Richard Jones
h, thankyou! I, on the other hand, looked at that code several times and saw nothing ;) I've fixed the code and it'll be fixed on the server soon (once apache restarts itself). Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop Registration error

2006-09-19 Thread Richard Jones
John Machin wrote: > re.match("[A-Fa-f0-9]{8,8}", data.strip()) makes it plain what is > intended ... Indeed, thanks. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to save a running program and reload next time ?

2006-09-21 Thread Richard Tew
put("Continue? [y]:").lower() if s not in ("y", ""): break t = cPickle.loads(v) Unfortunately KeyboardInterrupt or probably any other exception as a way of interrupting the running code is problematic as it will kill the running taskle

Reading a file using a UNC - help!

2006-09-26 Thread richard . kessler
quot; + x print str(cnt) + " total..." print str(cntNotFound) + " not found..." if __name__ == '__main__': MainProcess() Many thanks to anyone in advance to can tell me what I am doing wrong! Platform is XP with PythonWin. Richard Kessler [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading a file using a UNC - help!

2006-09-26 Thread richard . kessler
Thanks very much all for respondingI got it working. As you indicated, I just had mixed up my escapes (//) with my \n. When I got the correct amount of backslashes and removed the linefeeds it worked great. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: a different question: can you earn a living with *just* python?

2006-09-26 Thread Richard Jones
ly required to know Python for my day job. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: vector and particle effects

2006-09-29 Thread Richard Jones
dules to support this. >> Would pygame support this or should I try pyopengl? Or is there a >> better module for this? >> >> Any tutorials for the basics would be GREATLY appreciated. I'd suggest PyOpenGL because it'll be a *lot* faster. Something like gridwars won't be possible in pygame. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple but fast 2D lib for drawing pixels

2006-10-01 Thread Richard Jones
ays and then put those arrays on screen. Sign up to the pygame users list to ask more questions - they're always a helpful, friendly bunch. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to handle large lists?

2006-10-03 Thread Richard Brodie
"Chaz Ginger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Each item in the list is a fully qualified domain name, e.g. > foo.bar.com. The order in the list has no importance. So you don't actually need to use lists at all, then. You can just use sets and write: newSet = bigSe

Roundup Issue Tracker release 1.1.3

2006-10-03 Thread Richard Jones
I'm proud to release version 1.1.3 of Roundup. Feature: - supports Python 2.5, including the sqlite3 module - full timezone support (sf patch 1465296) - handle connection loss when responding to web requests - match incoming mail In-Reply-To against existing messages when no issue id is specifie

Re: Roundup Issue Tracker release 1.1.3

2006-10-03 Thread Richard Jones
Richard Jones wrote: > I'm proud to release version 1.1.3 of Roundup. That's supposed to say 1.2.0. Sigh. -- http://mail.python.org/mailman/listinfo/python-list

ctypes, arrays and pointers

2006-10-03 Thread Richard Jones
Does anyone know how to do the equivalent of this using ctypes? image_data = malloc(width * height * components); row_pointers = png_get_rows(png_ptr, info_ptr); for (y = 0; y < height; y++) memcpy(&image_data[width * components * y], row_pointers[height-y-1],

Re: Roundup Issue Tracker release 1.1.3

2006-10-04 Thread Richard Jones
[EMAIL PROTECTED] wrote: > Richard Jones wrote: >> I'm proud to release version 1.1.3 of Roundup. >> five database back-ends (anydbm, sqlite, metakit, >> mysql and postgresql). > > That ORM is pretty impressive: > http://roundup.sourceforge.net/doc-1.0/design.

Re: Python to use a non open source bug tracker?

2006-10-04 Thread Richard Jones
considered. > A nice extra is that it is written in python. So are Roundup and Launchpad, two of the other three trackers considered. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: len(var) is [CONSTANT] equal to len(var) == [CONSTANT]?

2006-11-23 Thread Richard Brodie
"Tor Erik Soenvisen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > which executes fine. Hence, 0- is okey... But this is a relatively > small range, and sooner or later you probably get two numbers with the same > id... Thoughts anyone? I think you are confusing yourself unn

Re: merits of Lisp vs Python

2006-12-08 Thread Richard Brodie
"Mark Tarver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > seems to show that Python is a cut down (no macros) version of Lisp > with a worse performance. Performance claims are always controversial. So, Python is much slower doing array multiplication, when you hand roll it, i

Re: merits of Lisp vs Python

2006-12-08 Thread Richard Brodie
"Alex Mizrahi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > heh, do you have "standard numeric packages" for everything? maybe then we'll > make > standard programs for everything -- that will obsolete "slow" "custom > scripts" and we'll > just use shell to select what progr

Re: need guidance on sending emails with attachment with python.

2006-12-11 Thread Richard Charts
krishnakant Mane wrote: > On 11 Dec 2006 04:54:04 -0800, Bernard <[EMAIL PROTECTED]> wrote: > > here's the function I've been using for while :P > > > thanks indeed for the function Bernard. > I will have a windows machine up tomorrow. but do I need to install > any thing over and above the python

Re: Can't register to CheeseShop at command line...only on web?!..

2006-12-12 Thread Richard Jones
> > Using PyPI login from /home/seb/.pypirc > Server response (401): Authorization Required Do you use a proxy to access the web? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't register to CheeseShop at command line...only on web?!..

2006-12-12 Thread Richard Jones
y to access the web? > > Not that I'm aware of unless my job uses one without my knowing about > it. > If I am..is there a workaround for proxies? Please follow the "Get help" link on the Cheese Shop site to continue this conversation. Richard -- http://mail.python.org/mailman/listinfo/python-list

Script to upload Files via http/cgi

2006-12-18 Thread Richard Konrad
Hi folks! Does anyone know about a python-script to upload Files via http/cgi? Thanks! RK -- http://mail.python.org/mailman/listinfo/python-list

Re: python-hosting.com projects: dead?

2006-12-19 Thread Richard Jones
leave it open to spam. I don't even use the Trac instance for my project hosted on that server. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] pyparsing 1.4.5 released

2006-12-23 Thread Richard Townsend
net/projects/pyparsing/ seems to work. -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Newbie query about secure embedded python

2007-01-02 Thread Richard Dwan
ot use callbacks to user script code outside the secure interpreter) Has the necessary secure python interpreter already been created / a work in progress? Many thanks for any advice you can give me, Richard Send instant messages to your online friends http://uk.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Re: C/C++, Perl, etc. to Python converter

2007-01-03 Thread Richard Charts
mm wrote: > Is there a Perl to Python converter? > Or in general: a XY to Python converter? > > Is see, that Python is much better then Perl anyway. > But for beginners, they whant to konw how is this done with Python etc. > > Sure, there are some docus out there in the internet. But a converter?

Piskworky - "five-in-row" over jabber network

2007-01-05 Thread Richard Szlachta
Readers of python mailing list of all ages and systems, I'd like to introduce you program called ' Piskworky '. It is written in python, uses tkinter gui and is made for playing game known as five-in-row. Game is pure multiplayer (two-player exactly ;) and it does it's synchronization via jabber n

Stackless Python 2.5 for Nintendo DS

2007-01-08 Thread Richard Tew
Hi, I have updated NDS Python from Python 2.4.3 to Python 2.5 (or rather the Stackless version of it). You can read more about it here if it might interest you: http://www.disinterest.org/NDS/Python25.html Cheers, Richard. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre floating-point output

2007-01-08 Thread Richard Brodie
"Nick Maclaren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > x = (1.234567890125, 1.2345678901255) > print x > print x[0], x[1] > (1.234567890124, 1.2345678901254999) 1.23456789012 1.23456789013 > > Is there a rational reason, or is that simply an artifact of the

Re: Bitwise expression

2007-01-08 Thread Richard Townsend
On Mon, 08 Jan 2007 22:32:12 +0100, Gigs_ wrote: > Can someone explain me bitwise expression? > few examples for every expression will be nice > http://wiki.python.org/moin/BitwiseOperators -- Richard -- http://mail.python.org/mailman/listinfo/python-list

PyWeek Challenge #2: write a game in a week

2006-01-24 Thread Richard Jones
The date for the second PyWeek challenge has been set: Sunday 26th March to Sunday 2nd April (00:00UTC to 00:00UTC). The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be developed in Python, during the challenge, and m

Re: String Manipulation Help!

2006-01-28 Thread Richard Schneiderman
I really enjoyed your article. I will try to understand this. Will you be doing more of this in the future with more complicated examples? Paul McGuire wrote: > "Dave" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> OK, I'm stumped. >> >> I'm trying to find newline characters (

Re: HTML parsing bug?

2006-01-30 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Python 2.3.5 seems to choke when trying to parse html files, because it > doesn't realize that what's inside is a comment in HTML, > even if this comment is inside , especially if it's a > comment inside that script code too. Actua

Stackless Python sprint at PyCon 2006

2006-02-17 Thread Richard Tew
browse the following web site to get more information about Stackless: http://www.stackless.com/ Richard. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI not working in Firefox but does in IE

2006-02-22 Thread Richard Brodie
"Harlin Seritt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [CODE] > print 'Content-type: text/plain\n' That's your problem. You've said text/plain when you meant text/html. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-25 Thread Richard Townsend
scores is ugly, but I can't see where it says pure camelCase is ugly ? -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Roundup Issue Tracker release 1.1.1

2006-03-02 Thread Richard Jones
I'm proud to release this, the 1.1.1 release of Roundup. Fixed in this release: - failure with browsers not sending "Accept-Language" header (sf bugs 1429646 and 1435335) - translate class name in "required property not supplied" error message (sf bug 1429669) - error in link property lookups

Simulation Programming Skills and Python

2006-03-06 Thread Richard Blackwood
code an inherent/native skill of all programmers? Two, is Python a good language for simulation programming? Thank you all! - Richard Blackwood -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulation Programming Skills and Python

2006-03-06 Thread Richard Blackwood
Okay, I really like that analogy. Not everything a carpenter can do requires an architect to draw up a blueprint though. For example, if I tell a carpenter I want a tree house with built-in seating and a window in the roof, no other requirements, can't they figure out how to do that on their own? S

Re: Simulation Programming Skills and Python

2006-03-06 Thread Richard Blackwood
So I can't develop and code the model simultaneously if I'm relying on the programming skill of someone who doesn't understand what I'm modelling? Also, say I (the hypothetical expert of knowledge domain X) learn programming, an I necessarily going to know how to model X with programming? When you

Re: Parsing HTML with JavaScript

2005-05-13 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to extract some information from a few web pages, and I was > using the HTMLParser module. It worked fine until it got to the > javascript, at which it gave a parse error. It's fairly common for pages with Javascript to al

Re: Bug in Elementtree/Expat

2005-05-18 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Most examples in the book do not include such a declaration and yet are > properly rendered by Internet Explorer. > Is it mandatory and why is it that Expat crashes on it? It's not mandatory but it's probably good practice to make the

Re: struct unpack newline

2005-05-27 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > except when line[86:90] contains "carriage-return" "linefeed" > which are valid binary packed values. You probably don't want to be reading binary data a line at a time, if that's what you're doing. -- http://mail.python.org/mailma

Re: Running twisted http server - "Method Not Allowed" error

2005-05-31 Thread Richard Townsend
> > site = server.Site(Simple()) > reactor.listenTCP(8080, site) > reactor.run() " > Try adding the line: allowedMethods = ('GET',) after the line isLeaf = True -- Richard -- http://mail.python.org/mailman/listinfo/python-list

DOM question

2005-06-02 Thread Richard Lewis
h a few white space (tabs and returns) in it. I guess this is the indentation in my source document? But why do I not get the propert element nodes? Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: DOM question

2005-06-02 Thread Richard Lewis
avoid using anything not in the standard Python distribution if I could help it; I need to be able to use my code on Linux, OS X and Windows. The xml.path package is from PyXML, yes? I'll just have to battle with installing PyXML on OS X ;-) Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Two questions

2005-06-02 Thread Richard Lewis
> being basically read-only, are they used just like ordinary .py source > files? And can they be easily reverse-engineered? > To create binary only distributions for Windows you can use py2exe. Its distributions files can be fairly easily reverse engineered. Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

minidom Node to Element

2005-06-03 Thread Richard Lewis
just can't find a way to do it! (I want to be able to call getElementsByTagName() on the resultant object; any other workarounds which allow the same functionality would be just as cool ;-) Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: minidom Node to Element

2005-06-03 Thread Richard Lewis
Hang on! It *knows*! Wow, you can call getElementsByTagName() on a Node object and it does the right thing. Weird, but I like it! Very Python! R. On Fri, 03 Jun 2005 17:07:37 +0100, "Richard Lewis" <[EMAIL PROTECTED]> said: > Hey, > > Can I convert an xml.dom.Node obj

Tkinter app structure

2005-06-13 Thread Richard Lewis
line 8, in ? mwnd = MainWindow(root) NameError: name 'MainWindow' is not defined (where 'mainwindow.py' line 2 is "from commands import *", commands.py line 4 is "import main" and the name "MainWindow" is the name of the class defined in the main

Re: Tkinter app structure

2005-06-13 Thread Richard Lewis
On Mon, 13 Jun 2005 16:45:11 +0100, "Richard Lewis" <[EMAIL PROTECTED]> said: > > Whats going wrong? Is it a 'circular import'? Is there a better way that > I could organise these modules? > I've got a hack which I'm not happy with: I've go

Re: windows directory

2005-06-14 Thread Richard Lewis
os.listdir(drive_label + ":/"): return drive_label Or something similar. Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Resume after exception

2005-06-14 Thread Richard Lewis
# return control to the remainder of the open_file function. How? else: return False Any ideas? Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Resume after exception

2005-06-14 Thread Richard Lewis
On Tue, 14 Jun 2005 10:09:30 +0100, "Richard Lewis" <[EMAIL PROTECTED]> said: > Hi there, > > Is it possible to have an 'except' case which passes control back to the > point after the exception occurred? > > e.g. > > # a function to op

utf8 and ftplib

2005-06-16 Thread Richard Lewis
ymbol, etc.) all appear with an extra character in front of them (because of the two char width in utf8?). Is the xml_source.write callback causing the problem here? Or is it something else? Is there any way that I can correctly retrieve a utf8 encoded file from an FTP server? Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: utf8 and ftplib

2005-06-17 Thread Richard Lewis
On Thu, 16 Jun 2005 12:06:50 -0600, "John Roth" <[EMAIL PROTECTED]> said: > "Richard Lewis" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi there, > > > > I'm having a problem with unicode files and ftplib (using

com_error 'Exception occurred'

2007-06-02 Thread Richard Gordon
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test program is import pyTTS tts = pyTTS.Create() tts.Speak('Hello world.') The resulting debug trace is: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32

Please help! win32 com_error 'Exception occurred'

2007-06-02 Thread Richard Gordon
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test program is import pyTTS tts = pyTTS.Create() tts.Speak('Hello world.') The resulting debug trace is: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32

Need help! win32 com_error 'Exception occurred'

2007-06-02 Thread Richard Gordon
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test program is import pyTTS tts = pyTTS.Create() tts.Speak('Hello world.') The resulting debug trace is: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32

Help with win32 com_error exception

2007-06-02 Thread Richard Gordon
Sorry if this is sent twice, but I didn't see it get posted the first time. I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test program is import pyTTS tts = pyTTS.Create() tts.Speak('Hello world.') The resulting de

Re: Bragging about Python

2007-06-08 Thread Richard Jones
lly, this is about making Python accessible to more people, not the same people it's currently accessible to :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: file open default location

2007-06-12 Thread Richard Brodie
"T. Crane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As an aside, I forgot to mention above that I'm using Windows XP. Any other > ideas or > possible reasons that it would not choose my script location as the default > location to > save something? If you open a DOS wi

how to kill a process

2007-06-12 Thread Richard Rossel
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the subprocess.Popen call, and afterwards, (using a web request) the python code uses the PID of the previously created

Re: how to kill a process

2007-06-12 Thread Richard Rossel
On 12 jun, 13:24, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > On 6/12/07, Richard Rossel <[EMAIL PROTECTED]> wrote: > > > But when the python code is called to kill the created process, the > > process is left in a zombie state. > > If the process is l

Open Source Developers' Conference 2007 - Brisbane - Call for Papers

2007-06-15 Thread Richard Jones
Call for Papers Open Source Developers' Conference 2007 - Brisbane Australia "Success in Development & Business" OSDC is an Australian grass-roots conference providing Open Source developers with an opportunity to meet, share, learn, and of course show-off. OSDC focuses on Open Source develope

Re: using Mac OS X CoreGraphics via ctypes

2007-06-18 Thread Richard Jones
up the page or rect that you obtained in the loop? "k" constants defined as strings are 32-bit numbers derived from 4 character strings. You'll need to convert those strings to the correct number. Once you've done that I believe your CGColorSpaceCreateWithName call will work.

Re: Portable general timestamp format, not 2038-limited

2007-07-03 Thread Richard Heathfield
cognised only by some well-educated people, and there are precious few of those), so why not use it? I always leave my PC's clock set to GMT, partly out of this desire to support a single timestamp standard, and (it must be said) partly out of general cussedness. -- Richard Heathfield <

Re: Portable general timestamp format, not 2038-limited

2007-07-03 Thread Richard Heathfield
Peter J. Holzer said: > On 2007-07-03 08:57, Richard Heathfield <[EMAIL PROTECTED]> wrote: >> Paul Rubin said: >>> [EMAIL PROTECTED] writes: >>>> As for the primacy of UTC vs. TAI, this is the classical chicken >>>> and >>>> egg p

Re: Portable general timestamp format, not 2038-limited

2007-07-04 Thread Richard Heathfield
pecialist in the field. When I talk about GMT, I mean GMT, not UTC. Therefore, I am a counter-example to your claim. -- Richard Heathfield <http://www.cpax.org.uk> Email: -www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" -

Re: setDaemon problem.

2007-04-20 Thread Richard Brodie
"Ramashish Baranwal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was also wondering about "daemonizing" a thread, but I interpreted > that it would daemonize the process which it didn't. I think setDaemon > should be renamed to setDetached or something similar. Neither is pa

Re: setDaemon problem.

2007-04-20 Thread Richard Brodie
"Michael Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Neither is particularly intuitive; it just depends whether you are more >> familiar with the Posix terminology or the Java one. I personally prefer >> detached but there is little chance of a name change now. > > Wh

Another Python Game Programming Challenge concludes

2007-04-21 Thread Richard Jones
, the next challenge will be in 6 months. There is no a date set. Richard Jones (the PyWeek guy ;) -- http://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7   8   9   10   11   >