Re: Compiling python from soruce vs RPM ?

2007-04-18 Thread howa
On Apr 19, 6:10 am, Paul Boddie [EMAIL PROTECTED] wrote: Since /usr/bin/python isn't found, it doesn't look like there's an existing version of Python that you might overwrite, but it's important to verify such things when installing software. That's where your distribution's packages have an

Re: Strange terminal behavior after quitting Tkinter application

2007-04-18 Thread Charles Sanders
Chris wrote: But does anyone know why the Tkinter program is doing this to the terminal in the first place? I don't want to have to tell users of my program that they must recover their terminal's sanity each time after running my program. I don't know about Tkinter, but my guess

Re: python - dll access (ctypes or swig)

2007-04-18 Thread Alex Martelli
Thomas Heller [EMAIL PROTECTED] wrote: ... and some technical issues such as threading (if COM client and server ... I think that the latter problem (incompatible threading models in the same process) are solved by COM apartments - aren't they? apartment is one threading model, but it

Re: What makes an iterator an iterator?

2007-04-18 Thread Alex Martelli
7stud [EMAIL PROTECTED] wrote: ... Can you explain some of the details of why this code fails: ... def next(self): for word in Norwegian Blue's have beautiful plumage!.split(): yield word Sure, easily: a loop like for x in y: binds an unnamed temporary variable

Re: comparison with None

2007-04-18 Thread Alan Isaac
Terry Reedy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Should be in the reference manual section on comparisons. Only to this extent: http://www.python.org/doc/2.4/ref/comparisons.html objects of different types always compare unequal, and are ordered consistently

Re: Future Python Gui?

2007-04-18 Thread [EMAIL PROTECTED]
The wrapper I maintain works differently, and includes the notebook widget. I've seen the page. You can get to it via Google's cache; just put the url in the box and the one search result returned usually has a cached link. However, that file is completely useless without instructions on how

Re: Python COM iterator

2007-04-18 Thread Carsten Haese
[...] On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: Does anyone know if there is a way to make a Python COM object act like a proper iterator in VB/Delphi? [...] After more googling, staring at win32com's code, and a fair bit of trial and error, I've come up with the following

Re: Python Threads -

2007-04-18 Thread Alex Martelli
S.Mohideen [EMAIL PROTECTED] wrote: Hi All, Can you please suggest a technique in Python where we can spawn few number of worker threads and later map them to a function/s to execute individual Jobs. Any references would be helpful.. I believe I give some examples in the Nutshell, but

Question about Tkinter MenuOption variable

2007-04-18 Thread Chad
Is there anyway to set the individual options in Tkinter to a particular variable. For example, I have a menu option(code is below) which has January, February, March and so on, which I would like to have corresponding values of 01, 02, 03 and so on. Can someone please tell me how to do that

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Glen
On Wed, 18 Apr 2007 22:50:14 +, Glen wrote: Ok, obviously, my post didn't come out the way I wanted it to. In the first example from my text file below, the dictionary pairs, constructed from sorted tuples were in straight columns. When I write them to my QTextEdit, however, the columns are

Weekly Python Patch/Bug Summary

2007-04-18 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 357 open ( +8) / 3745 closed ( +8) / 4102 total (+16) Bugs: 958 open (+19) / 6657 closed ( +9) / 7615 total (+28) RFE : 251 open ( +2) / 280 closed ( +2) / 531 total ( +4) New / Reopened Patches __ Help

Text Suffix to Prefix Conversion

2007-04-18 Thread EMC ROY
Dear all, I'm a postgraduate student in Hong Kong, studying english language. I wanna seek help from all of you about some plain text manipulation. I have already add part-of-speech (POS) tags with angle bracket by software tagger, right after every word in my file, as attribute. How could I

Re: Text Suffix to Prefix Conversion

2007-04-18 Thread Steven Bethard
EMC ROY wrote: Original Sentence: An apple for you. Present: AnAT0 appleNN1 forPRP youPNP .. Desire:AT0An NN1apple PRPfor PNPyou .. text = 'AnAT0 appleNN1 forPRP youPNP ..' import re re.sub(r'(\S+)([^]+)(\s*)', r'\2\1\3', text) 'AT0An NN1apple PRPfor PNPyou ..' --

Re: What makes an iterator an iterator?

2007-04-18 Thread 7stud
Hi, Thanks for the responses. 7stud [EMAIL PROTECTED] wrote: Can you explain some of the details of why this code fails: --- class Parrot(object): def __iter__(self): return self def __init__(self): self.next = self.next().next def next(self): for

Re: Third party script debugging on remote server ...

2007-04-18 Thread Graham Dumpleton
Hi Graeme, Thanks for the suggestion. Unluckily for me, it doesn't seem to be working though ... I've tried it a number of different ways. I guess if I put the code after an exception, then the code won't be called. So I ran an error in the python script and then I called the

unicode and __repr__()

2007-04-18 Thread Martin Drautzburg
I am using repr() to pass arrays, dicts and combinations therof to javascript as it already returns a valid javascript expression (a string) right away. But for some reason it does not handle Umlaute correctly and those characters finally appear as two strange characters on the browser. I am using

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Tina I
Glen wrote: Hello again, I don't blame anyone for not answering my last post, since I obviously hadn't spent much time researching, but I've come a little ways and have another question. How can I better format text output to a QTextEdit object? I'm inserting 5 columns into each row.

[ python-Feature Requests-1702681 ] Prevent textwrap from breaking words at hyphens

2007-04-18 Thread SourceForge.net
Feature Requests item #1702681, was opened at 2007-04-17 23:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1702681group_id=5470 Please note that this message will contain a

[ python-Bugs-1701409 ] Segfault in c_char_p of ctypes

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

[ python-Bugs-1701449 ] documentation bug in profile module

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

[ python-Bugs-1303614 ] Bypassing __dict__ readonlyness

2007-04-18 Thread SourceForge.net
Bugs item #1303614, was opened at 2005-09-24 23:40 Message generated for change (Comment added) made by arigo You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1303614group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1699853 ] locale.getlocale() output fails as setlocale() input

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

[ python-Feature Requests-1701452 ] Feature request: Comparing regexps

2007-04-18 Thread SourceForge.net
Feature Requests item #1701452, was opened at 2007-04-16 14:28 Message generated for change (Comment added) made by thomasda You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1701452group_id=5470 Please note that this message will contain a full copy of the

[ python-Bugs-1703110 ] Incorrect example for add_password()

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

[ python-Bugs-1701409 ] Segfault in c_char_p of ctypes

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

[ python-Bugs-1124861 ] subprocess fails on GetStdHandle in interactive GUI

2007-04-18 Thread SourceForge.net
Bugs item #1124861, was opened at 2005-02-17 16:23 Message generated for change (Comment added) made by grante You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1124861group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1700912 ] questionable results from IDLE, Windows, several built-in

2007-04-18 Thread SourceForge.net
Bugs item #1700912, was opened at 2007-04-15 01:28 Message generated for change (Comment added) made by josiahcarlson You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1700912group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1702036 ] Turtle isn't thread-safe (crashes)

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

<    1   2   3