Re: Python 3.0 - is this true?

2008-11-09 Thread Arnaud Delobelle
Kay Schluehr [EMAIL PROTECTED] writes: On 9 Nov., 07:06, Steven D'Aprano [EMAIL PROTECTED] [...] In any case, the above doesn't work now, since either L1 or L2 might contain complex numbers. The sorted() trick only works because you're making an assumption about the kinds of things in the

Re: Python 3.0 - is this true?

2008-11-09 Thread Rhamphoryncus
On Nov 8, 10:14 pm, Kay Schluehr [EMAIL PROTECTED] wrote: I guess building a multiset is a little more expensive than just O(n). It is rather like building a dict from a list which is O(k*n) with a constant but small factor k. The comparison is of the same order. To enable the same behavior as

Re: a question about Chinese characters in a Python Program

2008-11-09 Thread wmr
fuck -- http://mail.python.org/mailman/listinfo/python-list

What are the Python tools to mine data from log files ?

2008-11-09 Thread Barak, Ron
Hi All, I need to create log files (data) mining tool. Are there any Python classes/modules/functions that are usually used in these cases, apart from playing with regular expressions ? The logs comprise of lines like so: Jul 31 09:53:13 iSW-00-091 kernel:

Re: is there really no good gui builder

2008-11-09 Thread Mr . SpOOn
On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki [EMAIL PROTECTED] wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? -- http://mail.python.org/mailman/listinfo/python-list

Re: Workflow engine?

2008-11-09 Thread Tino Wildenhain
Hi, Grzegorz Staniak wrote: On 08.11.2008, Eric Wertman [EMAIL PROTECTED] wroted: To be exact, I used the words engine/library, not a whole framework. Thanks for the link, I've googled for articles and recipes myself and as I said, I more or less know what to do - I just thought it might be a

Re: Finding the instance reference of an object

2008-11-09 Thread greg
Steven D'Aprano wrote: Not according to my Comp Sci lecturers back in the day, and not according to my Pascal books. Pascal books will tell you what call-by-value means in Pascal. You can't just blindly take that description and apply it to other languages, just as you can't take what your

Re: Finding the instance reference of an object

2008-11-09 Thread greg
Dennis Lee Bieber wrote: You must have missed all the threads about binding then... Wherein a Python assignment statement binds the LHS name to the RHS object rather than assigns the RHS object value to the LHS I know that it is sometimes referred to that way. But nobody seems to get

Re: Python 3.0 - is this true?

2008-11-09 Thread Stefan Behnel
Kay Schluehr wrote: On 9 Nov., 07:06, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: How often do you care about equality ignoring order for lists containing arbitrary, heterogeneous types? A few times. Why do you care, Steven? I miss this feature is an unqualified statement,

Re: is there really no good gui builder

2008-11-09 Thread Duncan Booth
Mr.SpOOn wrote: On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki [EMAIL PROTECTED] wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? You must purchase a Qt Commercial License from Qt Software or from one of its authorized resellers before you start

Re: Python 3.0 - is this true?

2008-11-09 Thread Duncan Booth
Steven D'Aprano wrote: Not sure how to transform it into a search key that is efficient and reliable. Yes, that's a general problem. It's not always easy to convert a sort comparison function into a key-based sort. I know that 99% of the time key is the right way to do custom sorts, but

why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the error is cuase by the second instance creation test2= for me even

Re: Are .pyc files portable?

2008-11-09 Thread Lie Ryan
On Fri, 07 Nov 2008 18:36:41 -0800, Roy Smith wrote: I'm using Python as part of a test fixture for a large (mostly C++) software project. We build on a lot of different platforms, but Solaris is a special case -- we build on Solaris 8, and then run our test suite on Solaris 8, 9, and 10.

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Arnaud Delobelle
Stef Mientki [EMAIL PROTECTED] writes: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the error is cuase by the

Re: break up a value in a list to a list of individual items

2008-11-09 Thread Arnaud Delobelle
r3bol [EMAIL PROTECTED] writes: Hi, sorry to post this, but I've had a really hard time finding how to do it. Q. How can I break up a value in a list to a list of individual items (preferably without importing any modules)? Like... ['12345'] (string) to [1, 2, 3, 4, 5] [numbers] Here's

Re: is there really no good gui builder

2008-11-09 Thread Ben Finney
Duncan Booth [EMAIL PROTECTED] writes: Mr.SpOOn wrote: What's the problem with qt licence? You must purchase a Qt Commercial License from Qt Software or from one of its authorized resellers before you start developing commercial software. The Commercial license does not allow the

Re: is there really no good gui builder

2008-11-09 Thread Phil Thompson
On 9 Nov 2008 10:46:53 GMT, Duncan Booth [EMAIL PROTECTED] wrote: Mr.SpOOn wrote: On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki [EMAIL PROTECTED] wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? You must purchase a Qt Commercial License

Re: break up a value in a list to a list of individual items

2008-11-09 Thread Chris Rebert
On Sun, Nov 9, 2008 at 2:38 AM, r3bol [EMAIL PROTECTED] wrote: Hi, sorry to post this, but I've had a really hard time finding how to do it. Q. How can I break up a value in a list to a list of individual items (preferably without importing any modules)? Like... ['12345'] (string) to [1,

Re: Python 3.0 - is this true?

2008-11-09 Thread Roy Smith
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Yes, key= lets you sort anything anyway you want. l=[1, '2', 3j] sorted(l, key = str) [1, '2', 3j] The problem here is that str() is degenerate, i.e. a != b does not imply str(a) != str(b). sorted(l, key = id)

Re: Finding the instance reference of an object

2008-11-09 Thread Arnaud Delobelle
greg [EMAIL PROTECTED] writes: Arnaud Delobelle wrote: What's a variable reference? It's a reference to a variable. It's what gets passed behind the scenes when you use a VAR parameter in Pascal, or a ByRef parameter in VB. Do you mean you can't do the following C++ snippet in Pascal or

Re: is there really no good gui builder

2008-11-09 Thread Thorsten Kampe
* azrael (Sat, 8 Nov 2008 11:35:03 -0800 (PST)) whoever I ask, everyone tells me when it come to python and GUI-s and that there is the best way to use WX. Don't ask. Think for yourself. wxPython is in my humble opinion the most popular but only the second best choice. I am browsing for the

Re: break up a value in a list to a list of individual items

2008-11-09 Thread Linas Juskevicius
[int(i) for i in ['12345'][0]] -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the instance reference of an object

2008-11-09 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Nov 2008 11:17:28 +, Arnaud Delobelle wrote: greg [EMAIL PROTECTED] writes: Arnaud Delobelle wrote: What's a variable reference? It's a reference to a variable. It's what gets passed behind the scenes when you use a VAR parameter in Pascal, or a ByRef parameter in VB.

Re: Finding the instance reference of an object

2008-11-09 Thread greg
Arnaud Delobelle wrote: What's a variable reference? It's a reference to a variable. It's what gets passed behind the scenes when you use a VAR parameter in Pascal, or a ByRef parameter in VB. What you're saying is that in the code below, when foo(q) is called then 'p' in foo is another

break up a value in a list to a list of individual items

2008-11-09 Thread r3bol
Hi, sorry to post this, but I've had a really hard time finding how to do it. Q. How can I break up a value in a list to a list of individual items (preferably without importing any modules)? Like... ['12345'] (string) to [1, 2, 3, 4, 5] [numbers] Thanks. --

Re: Python 3.0 - is this true?

2008-11-09 Thread Diez B. Roggisch
Also, I thought that part of the python philosophy was to allow any sort of object in a list, and to allow the same methods to work with whatever was in list. Not really. When the usual argument about the existence (and justification) of lists tuples comes along, one common distinction is

Re: is there really no good gui builder

2008-11-09 Thread Stef Mientki
Mr.SpOOn wrote: On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki [EMAIL PROTECTED] wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? I can't change a commercial application into an open application and vice-versa. (And therefor I also

Re: Python 3.0 - is this true?

2008-11-09 Thread Kay Schluehr
On 9 Nov., 09:26, Rhamphoryncus [EMAIL PROTECTED] wrote: On Nov 8, 10:14 pm, Kay Schluehr [EMAIL PROTECTED] wrote: I guess building a multiset is a little more expensive than just O(n). It is rather like building a dict from a list which is O(k*n) with a constant but small factor k. The

Re: is there really no good gui builder

2008-11-09 Thread Lie
On Nov 9, 2:35 am, azrael [EMAIL PROTECTED] wrote: whoever I ask, everyone tells me when it come to python and GUI-s and that there is the best way to use WX. I am browsing for the 10th time during the last year and I can still not bealive that there is not one project to make gui-building

Custom keyboard shortcuts

2008-11-09 Thread aud2008
Nov 9 2008,9.14PM[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Is psyco available for python 2.6?

2008-11-09 Thread Anton Vredegoor
On Thu, 30 Oct 2008 17:45:40 +0100 Gerhard Häring [EMAIL PROTECTED] wrote: psyco seems to just work on Linux with Python 2.6. So it is probably only a matter of compiling it on Windows for Python 2.6. Yes. I compiled it using wp setup.py build --compiler=mingw32 with cygwin, where wp was an

Re: is there really no good gui builder

2008-11-09 Thread Grant Edwards
On 2008-11-09, Stef Mientki [EMAIL PROTECTED] wrote: Mr.SpOOn wrote: On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki [EMAIL PROTECTED] wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? I can't change a commercial application into an

Re: Python 3.0 - is this true?

2008-11-09 Thread Roy Smith
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Also, I thought that part of the python philosophy was to allow any sort of object in a list, and to allow the same methods to work with whatever was in list. Not really. When the usual argument about the

Re: Custom keyboard shortcuts

2008-11-09 Thread Lie Ryan
On Sun, 09 Nov 2008 06:15:02 -0800, aud2008 wrote: Nov 9 2008,9.14PM[EMAIL PROTECTED] to be or not to be... what is the question. -- http://mail.python.org/mailman/listinfo/python-list

sorting list of complex numbers

2008-11-09 Thread skip
The thread on sorting in Python 3 got me to thinking. How could I sort a list of complex numbers using key? lst = [random.random()+random.random()*1j for i in range(10)] lst [(0.32672251849959244+0.41428983433288791j), (0.35238056484609881+0.92758203977208264j),

Re: My first Python program -- a lexer

2008-11-09 Thread Thomas Mlynarczyk
John Machin schrieb: Be consistent with your punctuation style. I'd suggest *not* having a space after ( and before ), as in the previous line. Read http://www.python.org/dev/peps/pep-0008/ What were the reasons for preferring (foo) over ( foo )? This PEP gives recommendations for coding

Re: Python 3.0 - is this true?

2008-11-09 Thread Duncan Booth
Roy Smith wrote: In 3.0, can you still order types? In 2.x, you can do: t1 = type(1) t2 = type(1j) t1 t2 False If this still works in 3.0, then you can easily do something like: def total_order(o1, o2): Compare any two objects of arbitrary types try: return o1 = o2

Re: is there really no good gui builder

2008-11-09 Thread Duncan Booth
Ben Finney wrote: It is a novel interpretation of the GPL. Qt Software have every right to impose this sort of condition, but it makes me want to avoid them. No, they have no such right to interpret the GPL this way; it would be entirely incompatible with the GPL since it would be an

Re: break up a value in a list to a list of individual items

2008-11-09 Thread r3bol
thanks :) and so many different ways! -- http://mail.python.org/mailman/listinfo/python-list

Re: sorting list of complex numbers

2008-11-09 Thread Duncan Booth
[EMAIL PROTECTED] wrote: I can sort by the real parts just fine: lst.sort(key=lambda x: x.real) pprint.pprint(lst) [2.6001j, 20j, (1+2.73j), (1+21j), (2+2.8603j), (2+22j), (3+2.9902j), (3+23j),

Re: My first Python program -- a lexer

2008-11-09 Thread Thomas Mlynarczyk
Arnaud Delobelle schrieb: Adding to John's comments, I wouldn't have source as a member of the Lexer object but as an argument of the tokenise() method (which I would make public). The tokenise method would return what you currently call self.result. So it would be used like this. mylexer

Re: is there really no good gui builder

2008-11-09 Thread David Boddie
On Sunday 09 November 2008 13:45, Ben Finney wrote: Duncan Booth [EMAIL PROTECTED] writes: Mr.SpOOn wrote: What's the problem with qt licence? You must purchase a Qt Commercial License from Qt Software or from one of its authorized resellers before you start developing commercial

Re: sorting list of complex numbers

2008-11-09 Thread skip
Is there a way to do this using just the key arg, no extra data structures? Duncan Is a tuple an extra data structure? lst.sort(key=lambda x: (x.real,x.imag)) pprint.pprint(lst) Duncan [2.6001j, Duncan 20j, Duncan (1+2.73j), Duncan (1+21j),

Re: Python 3.0 - is this true?

2008-11-09 Thread Diez B. Roggisch
Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Also, I thought that part of the python philosophy was to allow any sort of object in a list, and to allow the same methods to work with whatever was in list. Not really. When the usual argument about

Re: sorting list of complex numbers

2008-11-09 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: The thread on sorting in Python 3 got me to thinking. How could I sort a list of complex numbers using key? lst = [random.random()+random.random()*1j for i in range(10)] lst [(0.32672251849959244+0.41428983433288791j),

Re: Python 3.0 - is this true?

2008-11-09 Thread Stefan Behnel
Duncan Booth wrote: Roy Smith wrote: In 3.0, can you still order types? In 2.x, you can do: t1 = type(1) t2 = type(1j) t1 t2 False If this still works in 3.0, then you can easily do something like: def total_order(o1, o2): Compare any two objects of arbitrary types try:

Re: Python 3.0 - is this true?

2008-11-09 Thread Roy Smith
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Also, I thought that part of the python philosophy was to allow any sort of object in a list, and to allow the same

Re: Python 3.0 - is this true?

2008-11-09 Thread Roy Smith
In article [EMAIL PROTECTED], Duncan Booth [EMAIL PROTECTED] wrote: Roy Smith wrote: In 3.0, can you still order types? In 2.x, you can do: t1 = type(1) t2 = type(1j) t1 t2 False If this still works in 3.0, then you can easily do something like: def total_order(o1, o2):

Re: Python 3.0 - is this true?

2008-11-09 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Nov 2008 10:45:31 -0500, Roy Smith wrote: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: When I wrote uniform I meant objects of the same kind. So for example

Re: Python 3.0 - is this true?

2008-11-09 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Nov 2008 10:45:31 -0500, Roy Smith wrote: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: When I wrote uniform I meant objects of the same kind. So for example

Re: Python 3.0 - is this true?

2008-11-09 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Nov 2008 10:45:31 -0500, Roy Smith wrote: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: When I wrote uniform I meant objects of the same kind. So for example

Re: Python 3.0 - is this true?

2008-11-09 Thread Marc 'BlackJack' Rintsch
On Sun, 09 Nov 2008 10:45:31 -0500, Roy Smith wrote: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Roy Smith schrieb: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: When I wrote uniform I meant objects of the same kind. So for example

Re: is there really no good gui builder

2008-11-09 Thread Phil Thompson
On 9 Nov 2008 14:40:22 GMT, Duncan Booth [EMAIL PROTECTED] wrote: Ben Finney wrote: It is a novel interpretation of the GPL. Qt Software have every right to impose this sort of condition, but it makes me want to avoid them. No, they have no such right to interpret the GPL this way; it

Re: Python 3.0 - is this true?

2008-11-09 Thread Terry Reedy
Kay Schluehr wrote: On 9 Nov., 05:04, Terry Reedy [EMAIL PROTECTED] wrote: Have you written any Python code where you really wanted the old, unpredictable behavior? Sure: I was asking the OP ;-) if len(L1) == len(L2): return sorted(L1) == sorted(L2) # check whether two lists

Re: Finding the instance reference of an object

2008-11-09 Thread Terry Reedy
greg wrote: No. Passing q by value means that the value of the expression 'q', whatever that is in the language concerned, gets assigned to the local variable 'p', whatever *that* means in the language concerned. In other words, as I acknowledged in my other post, one can say that all

Re: Python 3.0 - is this true?

2008-11-09 Thread Hallvard B Furuseth
Steven D'Aprano writes: How often do you care about equality ignoring order for lists containing arbitrary, heterogeneous types? Arbitrary, I never have. Different types of my choice, a few times. I was only interested in there being some _sort_ order (and the same in different runs of the

Re: Finding the instance reference of an object

2008-11-09 Thread Terry Reedy
Joe Strout wrote: On Nov 8, 2008, at 2:38 PM, Terry Reedy wrote: So if you then insist that Python uses call by object, you're actually saying it uses call by value! Both Joe and you seem to be engaging in the following bit of sophistry: In order for code A to call code B, some information

Re: replacing characters within a string

2008-11-09 Thread Terry Reedy
Chris Rebert wrote: On Sat, Nov 8, 2008 at 9:16 PM, John Smith [EMAIL PROTECTED] wrote: Hi, I coded a python script that lets me parse a csv file into html code with a certain format, but I would like to replace every and character that appears within each column entry of the csv file (they

Re: Python 3.0 - is this true?

2008-11-09 Thread Hallvard B Furuseth
Terry Reedy writes: If you want to duplicate 2.x behavior, which does *not* work for all types... def py2key(item): return (str(type(item)), item) Nope. sorted((-1, 2, True, False)) == [-1, False, True, 2] sorted((-1, 2, True, False), key=py2key) == [False, True, -1, 2] Might

Re: is there really no good gui builder

2008-11-09 Thread Kevin Walzer
Phil Thompson wrote: The only additional restrictions are those imposed by the *commercial* license. As I said before, those restrictions are intended to discourage commercial developers from avoiding paying license costs during their development phase. Is this interpretation of Qt's

Re: is there really no good gui builder

2008-11-09 Thread Phil Thompson
On Sun, 09 Nov 2008 12:15:42 -0500, Kevin Walzer [EMAIL PROTECTED] wrote: Phil Thompson wrote: The only additional restrictions are those imposed by the *commercial* license. As I said before, those restrictions are intended to discourage commercial developers from avoiding paying license

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Guilherme Polo
On Sun, Nov 9, 2008 at 4:14 PM, Fuzzyman [EMAIL PROTECTED] wrote: Hello guys, Not sure if this is a Windows question or a Python problem... I'm trying to install Python 2.6 from the msi, on Windows Vista as an administrative user with UAC on. If I try to install for all users then I am told

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
def comp(x1, x2): try: if x1x2: return -1 else: return 1 except TypeError: if str(x1)str(x2): return -1 else: return 1 Please correct me if I'm wrong, but I think this is not transitive. If strings and ints

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
Hallvard B Furuseth wrote: Terry Reedy writes: If you want to duplicate 2.x behavior, which does *not* work for all types... def py2key(item): return (str(type(item)), item) Nope. sorted((-1, 2, True, False)) == [-1, False, True, 2] sorted((-1, 2, True, False),

Re: is there really no good gui builder

2008-11-09 Thread Duncan Booth
Phil Thompson wrote: Thay aren't claiming that Qt itself is governed by the GPL, what they are claiming is that the 'Qt Open Source License' permits you to use it for development of Open Source software governed by the GNU General Public License versions 2 and 3. I believe they can make

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
Even in 2.x it doesn't work (I think I posted this earlier but I'm not sure anymore) as this example shows: 2 3j and 3j True, but True 2 What specific value of x have you been trying? For x=4,5,6, I get py 2 3j and 3j True Traceback (most recent call last): File stdin, line 1, in

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Martin v. Löwis
Heh. Well it would, except the administrator user doesn't have a password (purely a VM) and this is unacceptable for runas. :-) There is, unfortunately, no other way to install Python 2.6 on Vista. So your choices are really: 1. activate the Administrator account 2. disable UAC 3. go back to XP

Re: is there really no good gui builder

2008-11-09 Thread azrael
It would be rally great if wingIDE would have integrated controls for wxPython.This would be really great. -- http://mail.python.org/mailman/listinfo/python-list

SocketServer.ThreadingTCPServer accepts clients outside server_forever

2008-11-09 Thread Okko Willeboordse
Hello, SocketServer.ThreadingTCPServer accepts connections (clients can connect) before and after it's server_forever method is called, see below for an example. IMHO it should only accept connections while server_forever is running. Kind regards, Okko Example, both _socket.connect calls

Re: Python 3.0 - is this true?

2008-11-09 Thread Kay Schluehr
On 9 Nov., 17:49, Terry Reedy [EMAIL PROTECTED] wrote: I was asking the OP ;-) Thank you for the discussion. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there really no good gui builder

2008-11-09 Thread David Boddie
On Sunday 09 November 2008 20:08, Duncan Booth wrote: So are the references to 'Qt Open Source License' on the website misleading? It depends on whether you assume that there's a separate license by that name. In practice, it's a placeholder for the licenses it's available under: The Open

Re: Dispatch('Excel.Application') on Vista from Task Scheduler

2008-11-09 Thread Larry Bates
Cupric wrote: I have a python script that runs fine from the command line or from within IDLE, but doesn't work through the Vista Task Scheduler. The script downloads some csv files and then uses pywin32 to combine the csv files into a single document. When I run it through the task scheduler,

Cramer meltdown - Free

2008-11-09 Thread adjointmcelroydp
Cramer meltdown . . . ***CLICK HERE http://vids247.cn/Cramer-meltdown * . . . . . . . . . . . . Cramer meltdown -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-09 Thread Aahz
In article [EMAIL PROTECTED], Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: attribution missing: Also, I thought that part of the python philosophy was to allow any sort of object in a list, and to allow the same methods to work

module dcop.: How to query running apps?

2008-11-09 Thread News123
Hi, I wrote a small application connecting to an application and sending commands to it. Currently I'm using the methods import dcop client = dcop.DCOPClient() client.registerAs(appname) ama = dcopclient.rc = dcop.DCOPRef(amarok, player) controlling the app works now fine with for example

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
In any case, would it be possible to add a cmp= function which did more or less what the current default cmp does now? As somebody pointed out, it's possible to create a key= function that provides arbitrary ordering: just return an object custom type whose __lt__ never fails: class

Re: Spawning a new UI process

2008-11-09 Thread Steve Holden
Ed Leafe wrote: I'm working on a wxPython app (well, a Dabo app, but it's basically the same thing) that presents the user with a selection of several wxPython apps that exist on their system. They choose one, and I want to then launch that app, as if they had typed python myapp.py from a

Re: Workflow engine?

2008-11-09 Thread Grzegorz Staniak
On 08.11.2008, Piotr Chamera [EMAIL PROTECTED] wroted: In a couple of weeks I'm starting a medium-size project (using a web framework) involving a workflow implementation. Are you aware of any open source workflow engines/libraries that I could base the project on? Google returns hist for

Re: Workflow engine?

2008-11-09 Thread Grzegorz Staniak
On 09.11.2008, Tino Wildenhain [EMAIL PROTECTED] wroted: I think that was part of the problem.. you asked if the wheel had already been invented, rather than tell us about the stones you have to haul up a mountain, and whether a wheel is what you need. It's difficult to answer your original

Bigtitsatschool - Free

2008-11-09 Thread adjointmcelroydp
Bigtitsatschool . . . ***CLICK HERE http://vids247.cn/Bigtitsatschool * . . . . . . . . . . . . Bigtitsatschool -- http://mail.python.org/mailman/listinfo/python-list

Logging thread with Queue and multiple threads to log messages

2008-11-09 Thread [EMAIL PROTECTED]
I am trying to put up a queue (through a logging thread) so that all worker threads can ask it to log messages. However, the problem I am facing is that, well, the logging thread itself is running forever. It does not know when it should exit. Any suggestion? None of the worker threads knows

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
Hmmm, I seem to have engaged in a bit of topic drift, for which I apologize. I was commenting specifically on the issue of lists holding heterogeneous types, not on heterogeneous types being sortable. Still, I don't think this is a valid counter-example: I claim that the data in the list of

Re: Where to locate existing standard encodings in python

2008-11-09 Thread Mark Tolonen
News123 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at http://python.active-venture.com/lib/node127.html Now my

Re: is there really no good gui builder

2008-11-09 Thread Phil Thompson
On 9 Nov 2008 19:08:35 GMT, Duncan Booth [EMAIL PROTECTED] wrote: Phil Thompson wrote: Thay aren't claiming that Qt itself is governed by the GPL, what they are claiming is that the 'Qt Open Source License' permits you to use it for development of Open Source software governed by the GNU

parsing non-ascii characters

2008-11-09 Thread Ronn
Hello all, I have a list: suffix = [aĉ, ad, aĵ, an, ar] and I'm trying to check a word to see if any of the suffixes exist in the list for example: if word in suffix: print A suffix exist in your word when I run this it give me an error: SyntaxError: Non-ASCII character '\xc5' in

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
On Nov 9, 7:39 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: Heh. Well it would, except the administrator user doesn't have a password (purely a VM) and this is unacceptable for runas. :-) There is, unfortunately, no other way to install Python 2.6 on Vista. So your choices are really: 1.

Re: sorting list of complex numbers

2008-11-09 Thread Steve Holden
[EMAIL PROTECTED] wrote: [...] Duncan If you don't like the tuple then just do the two sorts separately: lst.sort(key=lambda x: x.imag) lst.sort(key=lambda x: x.real) ... I tried that. I could have sworn when I read through the output it hadn't retained the order of

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
thanks guys. cheers, Stef Terry Reedy wrote: Stef Mientki wrote: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the

Re: creating a block file for file-like object

2008-11-09 Thread Iain
On Nov 8, 10:00 am, Iain [EMAIL PROTECTED] wrote: On Nov 7, 4:42 pm, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], Iain wrote: Can someone give me some pointers as to how I might create some sort of blocking device file or named

Re: Spawning a new UI process

2008-11-09 Thread Ed Leafe
On Nov 9, 2008, at 4:42 PM, Steve Holden wrote: Ed! Good to see you on c.l.py! I usually only get around to reading the list when I'm having a problem I can't figure out. blush. Simply too busy most of the time. a) Try using the subprocess module b) Use *.pyw programs to

Re: Where to locate existing standard encodings in python

2008-11-09 Thread John Machin
On Nov 10, 11:00 am, News123 [EMAIL PROTECTED] wrote: Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer athttp://python.active-venture.com/lib/node127.html Now my question: Can I

pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread Geon.
hi everyone! when i install pysqlite i meet bellow error. ( use easy_install and source code building same problem ) ld: Can't find library for -lpython2.5 what mean this message? and what i do? my system is hp-ux 11i v3. and python2.5 is installed. ld command also avaliable. please help for

Mlk day of service - Free

2008-11-09 Thread adjointmcelroydp
Mlk day of service . . . ***CLICK HERE http://vids247.cn/Mlk-day-of-service- * . . . . . . . . . . . . Mlk day of service -- http://mail.python.org/mailman/listinfo/python-list

Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
Hello guys, Not sure if this is a Windows question or a Python problem... I'm trying to install Python 2.6 from the msi, on Windows Vista as an administrative user with UAC on. If I try to install for all users then I am told I don't have privileges to do that... (No UAC prompt.) The only other

xlutils 1.0.0 released!

2008-11-09 Thread Chris Withers
Hi All, I'm pleased to announce the first release of xlutils. This is a small collection of utilities that make use of both xlrd and xlwt to process Microsoft Excel files. The current utilities included are: xlutils.margins Tools for finding how much of an Excel file contains useful data.

Re: parsing non-ascii characters

2008-11-09 Thread John Machin
On Nov 10, 1:13 pm, Ronn [EMAIL PROTECTED] wrote: Hello all, I have a list:   suffix = [aĉ, ad, aĵ, an, ar] and I'm trying to check a word to see if any of the suffixes exist in the list for example:   if word in suffix:       print A suffix exist in your word when I run this it give me

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Martin v. Löwis
It installs fine for 'just me', so no problem. It installs for 'just me', but it doesn't work. Just try starting IDLE, or import the socket module. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Steve Holden
Fuzzyman wrote: On Nov 9, 7:39 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: Heh. Well it would, except the administrator user doesn't have a password (purely a VM) and this is unacceptable for runas. :-) There is, unfortunately, no other way to install Python 2.6 on Vista. So your choices are

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
On Nov 9, 6:23 pm, Guilherme Polo [EMAIL PROTECTED] wrote: On Sun, Nov 9, 2008 at 4:14 PM, Fuzzyman [EMAIL PROTECTED] wrote: Hello guys, Not sure if this is a Windows question or a Python problem... I'm trying to install Python 2.6 from the msi, on Windows Vista as an administrative

Re: sorting list of complex numbers

2008-11-09 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Duncan If you don't like the tuple then just do the two sorts separately: lst.sort(key=lambda x: x.imag) lst.sort(key=lambda x: x.real) ... I tried that. I could have sworn when I read through the output it hadn't retained the order of the real

  1   2   >