Re: removing duplicates, or, converting Set() to string

2006-07-26 Thread John Machin
Simon Forman wrote: Do ','.join(clean) to make a single string with commas between the items in the set. (If the items aren't all strings, you'll need to convert them to strings first.) And if the items themselves could contain commas, or quote characters, you might like to look at the csv

Re: How to force a thread to stop

2006-07-26 Thread Gerhard Fiedler
On 2006-07-26 19:08:44, Carl J. Van Arsdall wrote: Also, threading's condition and event constructs are used a lot (i talk about it somewhere in that thing I wrote). They are easy to use and nice and ready for me, with a server wouldn't I have to have things poll/wait for messages? How

Re: How to force a thread to stop

2006-07-26 Thread Carl J. Van Arsdall
Gerhard Fiedler wrote: On 2006-07-26 19:08:44, Carl J. Van Arsdall wrote: Also, threading's condition and event constructs are used a lot (i talk about it somewhere in that thing I wrote). They are easy to use and nice and ready for me, with a server wouldn't I have to have things

Re: list problem

2006-07-26 Thread placid
Thank you all for the replies, i now have a better solution. Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: a print bug?

2006-07-26 Thread Summercoolness
Sybren Stuvel wrote: It has nothing to do with the print command, and everything with floating point precision. See http://docs.python.org/tut/node16.html how about the discrepancy between print 1.2345 1.2345 print %10.3f % 1.2345# seems like a bug 1.234 the first one, print

Re: a print bug?

2006-07-26 Thread Summercoolness
[EMAIL PROTECTED] wrote: how about the discrepancy between print 1.2345 1.2345 print %10.3f % 1.2345# seems like a bug 1.234 the first one, print knows enough to recognize and print it as 1.2345. however, in the second line, when it is round off, it doesn't know it is

Re: Nested function scope problem

2006-07-26 Thread danielx
Bruno Desthuilliers wrote: Gerhard Fiedler wrote: On 2006-07-25 04:06:24, Steve Holden wrote: Dennis Lee Bieber wrote: On Mon, 24 Jul 2006 17:35:50 -0300, Gerhard Fiedler [EMAIL PROTECTED] declaimed the following in comp.lang.python: It is surprising in the sense that binding

SDL doesn't cope well with FreeSans

2006-07-26 Thread Greg Ewing
Whenever I try to use the FreeSans font with SDL, either through PyGame or Soya, I get disappointing results. The characters come out slightly higglety-pigglety -- randomly displaced up or down a pixel or so from the baseline. Something about the calculation of the font height seems to be off,

Re: why is this not working? (nested scope question)

2006-07-26 Thread John Salerno
[EMAIL PROTECTED] wrote: I do understand (and verified) that if I define f2 within f1, it works as expected. But in the learning pyton 2nd edition at page 205 it is said that Programs are much simpler if you do not nest defs within defs (juste before the code mentioned in my initial message).

subprocess module

2006-07-26 Thread placid
Hi all, ive been trying to create a thumbnail using the ffmpeg converter running the ffmpeg.exe using the subprocess module with the following code import subprocess p = subprocess.Popen([ffmpeg.exe -i video.mpg, -f mjpeg -ss 5 -vframes 1 -s 160x120 -an video.gif], shell=True,

Re: splitting words with brackets

2006-07-26 Thread Tim Chase
r = re.compile(r'(?:\([^\)]*\)|\[[^\]]*\]|\S)+') r.findall(s) ['(a c)b(c d)', 'e'] Ah, it's exactly what I want! I thought the left and right sides of | are equal, but it is not true. In theory, they *should* be equal. I was baffled by the nonparity of the situation. You *should be

Weekly Python Patch/Bug Summary

2006-07-26 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 401 open ( +3) / 3342 closed ( +8) / 3743 total (+11) Bugs: 896 open ( -8) / 6035 closed (+24) / 6931 total (+16) RFE : 224 open ( +2) / 233 closed ( +2) / 457 total ( +4) New / Reopened Patches __

Re: SDL doesn't cope well with FreeSans

2006-07-26 Thread Carl Banks
Greg Ewing wrote: Whenever I try to use the FreeSans font with SDL, either through PyGame or Soya, I get disappointing results. The characters come out slightly higglety-pigglety -- randomly displaced up or down a pixel or so from the baseline. Something about the calculation of the font

function to convert degree (hour), minute, seconds string to integer

2006-07-26 Thread google0
I know this is a trivial function, and I've now spent more time searching for a surely-already-reinvented wheel than it would take to reinvent it again, but just in case... is there a published, open-source, function out there that takes a string in the form of hh:mm:ss (where hh is 00-23, mm is

Re: splitting words with brackets

2006-07-26 Thread Justin Azoff
Paul McGuire wrote: Comparitive timing of pyparsing vs. re comes in at about 2ms for pyparsing, vs. 0.13 for re's, so about 15x faster for re's. If psyco is used (and we skip the first call, which incurs all the compiling overhead), the speed difference drops to about 7-10x. I did try

Re: Threads vs Processes

2006-07-26 Thread Joe Knapka
John Henry wrote: Carl, OS writers provide much more tools for debugging, tracing, changing the priority of, sand-boxing processes than threads (in general) It *should* be easier to get a process based solution up and running andhave it be more robust, when compared to a threaded solution. -

Re: How to force a thread to stop

2006-07-26 Thread Gerhard Fiedler
On 2006-07-26 21:38:06, Carl J. Van Arsdall wrote: Also, threading's condition and event constructs are used a lot (i talk about it somewhere in that thing I wrote). They are easy to use and nice and ready for me, with a server wouldn't I have to have things poll/wait for messages? How

Re: Threads vs Processes

2006-07-26 Thread bryanjugglercryptographer
Carl J. Van Arsdall wrote: Alright, based a on discussion on this mailing list, I've started to wonder, why use threads vs processes. In many cases, you don't have a choice. If your Python program is to run other programs, the others get their own processes. There's no threads option on that.

Re: function to convert degree (hour), minute, seconds string to integer

2006-07-26 Thread John Machin
[EMAIL PROTECTED] wrote: I know this is a trivial function, and I've now spent more time searching for a surely-already-reinvented wheel than it would take to reinvent it again, but just in case... is there a published, open-source, function out there that takes a string in the form of

Re: function to convert degree (hour), minute, seconds string to integer

2006-07-26 Thread John McMonagle
On Wed, 2006-07-26 at 20:18 -0700, John Machin wrote: [EMAIL PROTECTED] wrote: I know this is a trivial function, and I've now spent more time searching for a surely-already-reinvented wheel than it would take to reinvent it again, but just in case... is there a published, open-source,

Re: How to force a thread to stop

2006-07-26 Thread bryanjugglercryptographer
Gerhard Fiedler wrote: Carl J. Van Arsdall wrote: Well, I guess I'm thinking of an event driven mechanism, kinda like setting up signal handlers. I don't necessarily know how it works under the hood, but I don't poll for a signal. I setup a handler, when the signal comes, if it comes,

Re: a print bug?

2006-07-26 Thread casevh
print %10.3f % 1.2345# seems like a bug 1.234 the first one, print knows enough to recognize and print it as 1.2345. however, in the second line, when it is round off, it doesn't know it is 1.2345 any more. That is because it isn't 1.2345 anymore. 1.2345 cannot be

Re: Newbie Q: Class Privacy (or lack of)

2006-07-26 Thread Steve Jobless
Sybren Stuvel wrote: Steve Jobless enlightened us with: The first case can be just a typo, like: x.valeu = 5 I make typos all the time. Without a spell checker, this message would be unreadable :). Then learn to read what you type, as you type it. Typing without errors can be

[ python-Bugs-1526585 ] Concatenation on a long string breaks

2006-07-26 Thread SourceForge.net
Bugs item #1526585, was opened at 2006-07-21 17:18 Message generated for change (Comment added) made by arigo You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1526585group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-978833 ] SSL-ed sockets don't close correct?

2006-07-26 Thread SourceForge.net
Bugs item #978833, was opened at 2004-06-24 11:57 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=978833group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1512124 ] OSX: debugger hangs IDLE

2006-07-26 Thread SourceForge.net
Bugs item #1512124, was opened at 2006-06-25 15:45 Message generated for change (Comment added) made by ronaldoussoren You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1512124group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-1526585 ] Concatenation on a long string breaks

2006-07-26 Thread SourceForge.net
Bugs item #1526585, was opened at 2006-07-21 10:18 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1526585group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1528620 ] Python 2.5b2 fails to build on Solaris 10

2006-07-26 Thread SourceForge.net
Bugs item #1528620, was opened at 2006-07-25 22:34 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1528620group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1525469 ] SimpleXMLRpcServer still uses sys.exc_value and sys.exc_type

2006-07-26 Thread SourceForge.net
Bugs item #1525469, was opened at 2006-07-19 14:06 Message generated for change (Comment added) made by akuchling You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1525469group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1442493 ] IDLE shell window gets very slow when displaying long lines

2006-07-26 Thread SourceForge.net
Bugs item #1442493, was opened at 2006-03-03 16:45 Message generated for change (Comment added) made by taleinat You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1442493group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1528620 ] Python 2.5b2 fails to build on Solaris 10

2006-07-26 Thread SourceForge.net
Bugs item #1528620, was opened at 2006-07-25 13:34 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1528620group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1501291 ] python/ncurses bug in 2.4.3 with extended ascii

2006-07-26 Thread SourceForge.net
Bugs item #1501291, was opened at 2006-06-05 18:34 Message generated for change (Comment added) made by akuchling You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1501291group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1528593 ] IDLE: printing issue on OSX

2006-07-26 Thread SourceForge.net
Bugs item #1528593, was opened at 2006-07-25 21:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1528593group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1528620 ] Python 2.5b2 fails to build on Solaris 10

2006-07-26 Thread SourceForge.net
Bugs item #1528620, was opened at 2006-07-25 22:34 Message generated for change (Settings changed) made by ostkamp You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1528620group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1442493 ] IDLE shell window gets very slow when displaying long lines

2006-07-26 Thread SourceForge.net
Bugs item #1442493, was opened at 2006-03-03 09:45 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1442493group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1529269 ] Python 2.5b2 fails to build (GCC) on Solaris 10

2006-07-26 Thread SourceForge.net
Bugs item #1529269, was opened at 2006-07-26 23:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1529269group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1529269 ] Python 2.5b2 fails to build on Solaris 10 (GCC Compiler)

2006-07-26 Thread SourceForge.net
Bugs item #1529269, was opened at 2006-07-26 23:17 Message generated for change (Settings changed) made by ostkamp You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1529269group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1529297 ] unrelated variable messing up doctests

2006-07-26 Thread SourceForge.net
Bugs item #1529297, was opened at 2006-07-26 15:02 Message generated for change (Settings changed) made by macquigg You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1529297group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1513611 ] xml.sax.ParseException weirdness in python 2.5b1

2006-07-26 Thread SourceForge.net
Bugs item #1513611, was opened at 2006-06-27 14:06 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1513611group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1521947 ] possible bug in mystrtol.c with recent gcc

2006-07-26 Thread SourceForge.net
Bugs item #1521947, was opened at 2006-07-13 10:39 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1521947group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1513611 ] xml.sax.ParseException weirdness in python 2.5b1

2006-07-26 Thread SourceForge.net
Bugs item #1513611, was opened at 2006-06-27 17:06 Message generated for change (Comment added) made by fdrake You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1513611group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2   3