ANN: eric4 4.1.0 released

2008-02-03 Thread Detlev Offenbach
Hi, eric4 4.1.0 was just released. This is a major feature release. Compared to 4.0.4 it contains these features next to bug fixes. - Added a plugin system for easy extensibility - Converted the following interface to plugins available separately -- PyLint checker -- CxFreeze packager --

Re: [2.4.2] Compiling Python with packages?

2008-02-03 Thread Martin v. Löwis
I need to compile Python with the packages socket,sys,time,os, but I've never done it before, and would like confirmation that this will work as planned: == make clean ./configure --with-socket --with-sys --with-time --with-os make make install == No, it won't. You don't

Re: Windows Python 2.5.1 IPV6 problems

2008-02-03 Thread Thomas DiZoglio
Hi, Thanks for the help. I had to make family and int. It was defined as socket.AF_INET6 and for some reason not making that an int. It is fix now. --- t0md --- Martin v. Löwis [EMAIL PROTECTED] wrote: _sock = _realsocket(family, type, proto) TypeError: an integer is

ping not reconnecting in Python MySQLdb client interface

2008-02-03 Thread John Nagle
I have some long-running Python programs that can be idle for hours, and, of course, the MySQL connection times out. So I call db.ping() at the beginning of a new request cycle. This should reestablish the connection, but it doesn't: Traceback (most recent call last): File

Re: bags? 2.5.x?

2008-02-03 Thread Arnaud Delobelle
On Feb 2, 5:28 pm, Carsten Haese [EMAIL PROTECTED] wrote: On Sat, 2008-02-02 at 01:17 -0800, Paul Rubin wrote: Arnaud Delobelle [EMAIL PROTECTED] writes: * For sets {x, y} union {y, z} = {x, y, z}.  The natural way of   extending this to multisets is having the union operator take the  

Re: dict comprehension

2008-02-03 Thread Arnaud Delobelle
On Feb 2, 9:10 pm, [EMAIL PROTECTED] wrote: Steven Bethard: It also doesn't build the unnecessary intermediate tuples: I see, but can't the interpreter improved to remove similar intermediate tuples anyway? Do you mean the compiler? Is this a difficult thing to do? Yes, due to the HDNP

Re: python for a matlab user

2008-02-03 Thread Jeroen Ruigrok van der Werven
Hi David, -On [20080202 17:51], David Wang ([EMAIL PROTECTED]) wrote: i use matlab in my daily research and some shell scripting as well (primarily for data analysis). i wonder how easy or difficult for a matlab user to pick up python? i also know Fortran but haven't used it for years. Having

Re: bags? 2.5.x?

2008-02-03 Thread Arnaud Delobelle
On Feb 2, 3:21 pm, MRAB [EMAIL PROTECTED] wrote: I could see uses for both types of union. You could have both A + B which adds the multiplicities (the smallest bag which contains both the bags) and A | B which takes the max of the multiplicities (the smallest bag which contains either of the

Re: Python feature request : operator for function composition

2008-02-03 Thread Arnaud Delobelle
On Feb 3, 5:09 am, Kay Schluehr [EMAIL PROTECTED] wrote: As you know, there is no operator for function composition in Python. When you have two functions F and G and  want to express the composition F o G you have to create a new closure lambda *args, **kwd: F (G (*args, **kwd)) or you

Re: Does anyone else use this little idiom?

2008-02-03 Thread Arnaud Delobelle
On Feb 3, 2:03 am, [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you want to execute some code. In Python, the direct

Re: psycopg2

2008-02-03 Thread DouhetSukd
On Feb 2, 9:22 pm, Tim Roberts [EMAIL PROTECTED] wrote: Also, psycopg will do the quoting for you. You don't do it. So this is what you want: Second the above, it is much cleaner to leave the quoting to psycopg2. I know, I wrote my own quoting logic for dynamically generated queries and I

Re: Python feature request : operator for function composition

2008-02-03 Thread Kay Schluehr
On 3 Feb., 10:13, Arnaud Delobelle [EMAIL PROTECTED] wrote: On Feb 3, 5:09 am, Kay Schluehr [EMAIL PROTECTED] wrote: As you know, there is no operator for function composition in Python. When you have two functions F and G and want to express the composition F o G you have to create a

Re: Python feature request : operator for function composition

2008-02-03 Thread Arnaud Delobelle
On Feb 3, 9:43 am, Kay Schluehr [EMAIL PROTECTED] wrote: On 3 Feb., 10:13, Arnaud Delobelle [EMAIL PROTECTED] wrote: On Feb 3, 5:09 am, Kay Schluehr [EMAIL PROTECTED] wrote: As you know, there is no operator for function composition in Python. When you have two functions F and G and  

Re: Multiple interpreters retaining huge amounts of memory

2008-02-03 Thread Graham Dumpleton
Nice to see that your comments do come from some understanding of the issues. Been number of times in the past when people have gone off saying things about multiple interpreters, didn't really know what they were talking about and were just echoing what some one else had said. Some of the things

Re: Does anyone else use this little idiom?

2008-02-03 Thread James Matthews
Because 0 is counted therefore i only have to do it 99 times Thanks On Feb 3, 2008 4:38 AM, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sun, 03 Feb 2008 01:03:43 -0200, James Matthews [EMAIL PROTECTED] escribió: Sorry to be nitpicking, but people coming from other languages may get

Re: Python feature request : operator for function composition

2008-02-03 Thread Kay Schluehr
On 3 Feb., 10:55, Arnaud Delobelle [EMAIL PROTECTED] wrote: On Feb 3, 9:43 am, Kay Schluehr [EMAIL PROTECTED] wrote: On 3 Feb., 10:13, Arnaud Delobelle [EMAIL PROTECTED] wrote: On Feb 3, 5:09 am, Kay Schluehr [EMAIL PROTECTED] wrote: As you know, there is no operator for function

Re: Does anyone else use this little idiom?

2008-02-03 Thread Robert Kern
James Matthews wrote: Because 0 is counted therefore i only have to do it 99 times No, Gabriel is correct. range(n) creates a list of integers starting at 0 and going to n-1 (inclusive), not n. In [1]: range(9) Out[1]: [0, 1, 2, 3, 4, 5, 6, 7, 8] In [2]: len(range(9)) Out[2]: 9 In [3]:

Is it explicitly specified?

2008-02-03 Thread mario ruggier
Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None): do something with key But the following two usages give same results: func() func(key=None) It may sometimes be useful

Re: Is it explicitly specified?

2008-02-03 Thread Jorge Godoy
mario ruggier wrote: Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None): do something with key But the following two usages give same results: func()

Re: Is it explicitly specified?

2008-02-03 Thread Arnaud Delobelle
On Feb 3, 11:00 am, mario ruggier [EMAIL PROTECTED] wrote: Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None):     do something with key But the following two usages give

Re: Is it explicitly specified?

2008-02-03 Thread TeroV
Jorge Godoy wrote: mario ruggier wrote: Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None): do something with key But the following two usages give same results:

Re: Is it explicitly specified?

2008-02-03 Thread mario
On Feb 3, 12:35 pm, TeroV [EMAIL PROTECTED] wrote: Jorge Godoy wrote: mario ruggier wrote: Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None): do something with

Re: GUI definition for web and desktop

2008-02-03 Thread Guilherme Polo
2008/2/3, Daniel Fetchinson [EMAIL PROTECTED]: Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is accessible

Re: functools possibilities

2008-02-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: On Feb 2, 12:13 pm, Steven Bethard [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: 1. functools.partialpre: partialpre( f, x, y )( z )- f( z, x, y ) 2. functools.pare: pare( f, 1 )( x, y )- f( y ) 3. functools.parepre: parepre( f, 1 )( x, y )- f( x ) 4.

Re: Does anyone else use this little idiom?

2008-02-03 Thread Steve Holden
Gabriel Genellina wrote: [...] On Feb 3, 2008 3:34 AM, Roy Smith [EMAIL PROTECTED] wrote: But, more to the point, I'd try to find variable name which described why I was looping, even if I didn't actually use the value in theloop body: Me too. Government don't collect taxes by the

Re: Does anyone else use this little idiom?

2008-02-03 Thread Steve Holden
Jeff Schwab wrote: How [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you want to execute some code. In Python, the

Re: Is it explicitly specified?

2008-02-03 Thread Bjoern Schliessmann
mario ruggier wrote: It may sometimes be useful to make use of the conceptual difference between these two cases, that is that in one case the user did not specify any key and in the other the user explicitly specified the key to be None. Do you have an example where this might be useful?

Re: GUI definition for web and desktop

2008-02-03 Thread Steve Holden
Daniel Fetchinson wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is accessible through the web and also

Re: GUI definition for web and desktop

2008-02-03 Thread Guilherme Polo
2008/2/3, Steve Holden [EMAIL PROTECTED]: Daniel Fetchinson wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an

Re: scope

2008-02-03 Thread Guilherme Polo
2008/2/3, Navid Parvini [EMAIL PROTECTED]: Dear All, I have the following two methods in a module. I cannot put them in a class, as the code is a complicated one. def a(num): found = num in Numlist print found def b(): scop = {} scop['Numlist'] = [1,2,3] scop['a']

scope

2008-02-03 Thread Navid Parvini
Dear All, I have the following two methods in a module. I cannot put them in a class, as the code is a complicated one. def a(num): found = num in Numlist print found def b(): scop = {} scop['Numlist'] = [1,2,3] scop['a'] = a exec(a(3),scop) How can I access the

Re: Does anyone else use this little idiom?

2008-02-03 Thread Stef Mientki
be careful, _ is thé translation function used in Il8N, Il10N localization / internationalization e.g. print _( hello ) cheers, Stef [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some

Re: Does anyone else use this little idiom?

2008-02-03 Thread Ivan Illarionov
Plain Python function are very often more powerful than classes: def go(count): ... if not hasattr(go, 'count'): ... go.count = count ... if go.count = 0: ... del go.count ... return False ... go.count -= 1 ... return True ... while go(3): ... print 'hello' ... hello hello

Re: GUI definition for web and desktop

2008-02-03 Thread Diez B. Roggisch
Daniel Fetchinson schrieb: Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is accessible through the web and also

Re: python for game programming

2008-02-03 Thread Diez B. Roggisch
t3chn0n3rd schrieb: Is Python program language popular for game programming? Yes. For starters, google pygame pyglet And python is used as scripting language in quite a few commercial products, such as eve online. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI definition for web and desktop

2008-02-03 Thread Steve Holden
Guilherme Polo wrote: 2008/2/3, Steve Holden [EMAIL PROTECTED]: Daniel Fetchinson wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and [...] I believe Glade produces XML descriptions of its interfaces, so wxGlade would be one possible starting-point.

Re: fast method accessing large, simple structured data

2008-02-03 Thread Ivan Illarionov
Is there some good format that is optimized for search for just 1 attribute (title) and then returning the corresponding article? I would use Durus (http://www.mems-exchange.org/software/durus/) - simple pythonic object database - and store this data as persistent python dict with Title keys

python for game programming

2008-02-03 Thread t3chn0n3rd
Is Python program language popular for game programming? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it explicitly specified?

2008-02-03 Thread Steve Holden
Diez B. Roggisch wrote: Bjoern Schliessmann schrieb: mario ruggier wrote: It may sometimes be useful to make use of the conceptual difference between these two cases, that is that in one case the user did not specify any key and in the other the user explicitly specified the key to be None.

Python GUI toolkit

2008-02-03 Thread default
what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is capable of creating good-looking

Re: Python GUI toolkit

2008-02-03 Thread Grant Edwards
On 2008-02-03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [...] was difficult so i dropped it, [...] i m a noob, and willing to learn, so difficulty is no problem On the contrary, it appears that difficulty is a problem. ;) -- Grant Edwards grante Yow! Excuse

Re: Is it explicitly specified?

2008-02-03 Thread Diez B. Roggisch
Bjoern Schliessmann schrieb: mario ruggier wrote: It may sometimes be useful to make use of the conceptual difference between these two cases, that is that in one case the user did not specify any key and in the other the user explicitly specified the key to be None. Do you have an

Re: Is it explicitly specified?

2008-02-03 Thread Steve Holden
Bjoern Schliessmann wrote: mario ruggier wrote: It may sometimes be useful to make use of the conceptual difference between these two cases, that is that in one case the user did not specify any key and in the other the user explicitly specified the key to be None. Do you have an example

Re: GUI definition for web and desktop

2008-02-03 Thread Kay Schluehr
On 3 Feb., 04:42, Daniel Fetchinson [EMAIL PROTECTED] wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is

Re: Python GUI toolkit

2008-02-03 Thread Dotan Cohen
On 03/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, the only remaining are qt4 and wx, i would like to know if one of

Re: GUI definition for web and desktop

2008-02-03 Thread Dikkie Dik
I have an application that is accessible through the web and also through desktop applications and both clients should be presented a simple dialog GUI. This dialog will only include text fields, radio buttons and a file upload field. My idea is that if there was a lightweight GUI

Python GUI toolkit

2008-02-03 Thread default
what i meant was, i tried gtk, didnt like it, the main reason was that it had a very bad gui appeal for me, i did try my hand at wx , and i would have stuck with it, but then i saw the qt4 screenshot and couple of examples of its code and i liked it, so i was wondering, if anyone would tell me

Re: Is it explicitly specified?

2008-02-03 Thread mario
On Feb 3, 4:19 pm, Steve Holden [EMAIL PROTECTED] wrote: Diez B. Roggisch wrote: Bjoern Schliessmann schrieb: mario ruggier wrote: It may sometimes be useful to make use of the conceptual difference between these two cases, that is that in one case the user did not specify any key and

Re: Does anyone else use this little idiom?

2008-02-03 Thread Zentrader
Not to me. If I read for _ in ..., I wouldn't be quite sure what _ was. Is it some magic piece of syntax I've forgotten about? Or something new added to language while I wasn't paying attention (I still consider most stuff added since 1.5 to be new-fangled :-)). +1 to forgotten about +1 to

ANN: eric4 4.1.0 released

2008-02-03 Thread Detlev Offenbach
Hi, eric4 4.1.0 was just released. This is a major feature release. Compared to 4.0.4 it contains these features next to bug fixes. - Added a plugin system for easy extensibility - Converted the following interface to plugins available separately -- PyLint checker -- CxFreeze packager --

Re: Python GUI toolkit

2008-02-03 Thread Torsten Bronger
Hallöchen! [EMAIL PROTECTED] writes: [...] the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is capable of creating good-looking GUI's, like in other apps, for e.g, .net apps. I think both Qt4 and wx create good-looking GUIs, since Qt4 now tries

interested????

2008-02-03 Thread kaki
click here: http://kg-azfari.myminicity.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone else use this little idiom?

2008-02-03 Thread Paul McGuire
On Feb 2, 9:48 pm, Jeff Schwab [EMAIL PROTECTED] wrote: How [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you want to

Re: Python GUI toolkit

2008-02-03 Thread Grant Edwards
On 2008-02-03, Dotan Cohen [EMAIL PROTECTED] wrote: I would recommend Qt, as it is cross-platform and can look native on all systems. Qt doesn't look native on my system. I run XFCE, and native is GTK. Opera, KDE, GoogleEarth, Acrobat, and lots of other software are written in Qt. And they

Re: Python GUI toolkit

2008-02-03 Thread Grant Edwards
On 2008-02-03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what i meant was, i tried gtk, didnt like it, the main reason was that it had a very bad gui appeal for me, i did try my hand at wx , and i would have stuck with it, Wx generally uses GTK on Unix, so if you don't like GTK, then Wx

Re: Python GUI toolkit

2008-02-03 Thread Grant Edwards
On 2008-02-03, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! [EMAIL PROTECTED] writes: [...] the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is capable of creating good-looking GUI's, like in other apps, for e.g, .net apps. I think both

Re: ping not reconnecting in Python MySQLdb client interface

2008-02-03 Thread John Nagle
JJohn Nagle wrote: I have some long-running Python programs that can be idle for hours, and, of course, the MySQL connection times out. So I call db.ping() at the beginning of a new request cycle. This should reestablish the connection, but it doesn't. ... I suspect that

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
Grant Edwards wrote: On 2008-02-03, Dotan Cohen [EMAIL PROTECTED] wrote: I would recommend Qt, as it is cross-platform and can look native on all systems. Qt doesn't look native on my system. I run XFCE, and native is GTK. Opera, KDE, GoogleEarth, Acrobat, and lots of other software

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
[EMAIL PROTECTED] wrote: what i meant was, i tried gtk, didnt like it, the main reason was that it had a very bad gui appeal for me, i did try my hand at wx , and i would have stuck with it, but then i saw the qt4 screenshot and couple of examples of its code and i liked it, so i was

Re: Python GUI toolkit

2008-02-03 Thread Dotan Cohen
On 03/02/2008, Grant Edwards [EMAIL PROTECTED] wrote: On 2008-02-03, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! [EMAIL PROTECTED] writes: [...] the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is capable of creating good-looking

Re: Python GUI toolkit

2008-02-03 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: On 2008-02-03, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! [EMAIL PROTECTED] writes: [...] the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is capable of creating good-looking GUI's, like in other

Re: Python GUI toolkit

2008-02-03 Thread Grant Edwards
On 2008-02-03, Jorge Godoy [EMAIL PROTECTED] wrote: And they don't look native on systems that don't use Qt as the native widget set. But then, there's no toolkit that does. GTK based toolkits don't look native on Qt based systems. Same for a lot of others. Quite true. What you can

Re: Does anyone else use this little idiom?

2008-02-03 Thread miller . paul . w
On Feb 3, 10:42 am, Zentrader [EMAIL PROTECTED] wrote: Not to me. If I read for _ in ..., I wouldn't be quite sure what _ was. Is it some magic piece of syntax I've forgotten about? Or something new added to language while I wasn't paying attention (I still consider most stuff added

Re: Does anyone else use this little idiom?

2008-02-03 Thread miller . paul . w
On Feb 3, 11:20 am, Paul McGuire [EMAIL PROTECTED] wrote: [... some code... some words ... more code, etc. ...] But this still seems like a lot of work to avoid for x in range(n):. I agree. The point of me using for _ in xrange (n) isn't to avoid the for loop at all. What I wanted was a

Re: How to convert markup text to plain text in python?

2008-02-03 Thread Stefan Behnel
geoffbache wrote: I have some marked up text and would like to convert it to plain text, by simply removing all the tags. Of course I can do it from first principles but I felt that among all Python's markup tools there must be something that would do this simply, without having to create an

Re: fast method accessing large, simple structured data

2008-02-03 Thread Stefan Behnel
agc wrote: I guess an important feature of what I'm looking for is some kind of mapping from *exact* title to corresponding article, i.e. if my data set wasn't so large, I would just keep all my data in a in-memory Python dictionary, which would be very fast. But I have about 2 million

Re: Does anyone else use this little idiom?

2008-02-03 Thread miller . paul . w
My apologies if any attributions are messed up. On Feb 3, 1:28 am, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Sun, 03 Feb 2008 15:08:34 +1100, Ben Finney wrote: But I like using _ because it's only 1 character and communicates well the idea I don't care about this

Re: GUI definition for web and desktop

2008-02-03 Thread Guilherme Polo
2008/2/3, Steve Holden [EMAIL PROTECTED]: Guilherme Polo wrote: 2008/2/3, Steve Holden [EMAIL PROTECTED]: Daniel Fetchinson wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and [...] I believe Glade produces XML descriptions of its

Re: Python GUI toolkit

2008-02-03 Thread miller . paul . w
On Feb 3, 10:18 am, [EMAIL PROTECTED] wrote: what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, [...] If cross-platform, and nice API are your requirements, I recommend you

Re: Does anyone else use this little idiom?

2008-02-03 Thread Troels Thomsen
for action in repeat(f, n): action() I don't know how 'Pythonic' this would be... agree, or this: import itertools def f1(): print hello [f() for f in itertools.repeat(f1,6)] tpt -- http://mail.python.org/mailman/listinfo/python-list

psyco question

2008-02-03 Thread miller . paul . w
Say I have a module with a function f in it, and I do psyco.bind (f) Is there any simple/easy/elegant way to retain a reference to the *unoptimized* version of f so I can call them both and compare performance?I've tried f2 = copy.deepcopy (f) psyco.bind (f) but that doesn't work. Other

Project naming suggestions?

2008-02-03 Thread miller . paul . w
I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In fact, I see myself starting with the compiler module from Python 2.5 and building from there. This language would be

Re: interested????

2008-02-03 Thread Steve Holden
no -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI definition for web and desktop

2008-02-03 Thread Steve Holden
Guilherme Polo wrote: 2008/2/3, Steve Holden [EMAIL PROTECTED]: Guilherme Polo wrote: 2008/2/3, Steve Holden [EMAIL PROTECTED]: Daniel Fetchinson wrote: Hi pythoneans, I'm looking for a simple text based GUI definition format and [...] I believe Glade produces XML

Re: Python GUI toolkit

2008-02-03 Thread Gary Herron
[EMAIL PROTECTED] wrote: what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, the only remaining are qt4 and wx, i would like to know if one of these or any other toolkit is

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-03 Thread Charles_hans
Thank you, Martin! I think that you are right. But I can't use rsh since I am on XP to send commands to UNIX. I used telnet before. Now I am converting to ssh/sftp, which is my purpose. I put some more efforts in the following code: t = paramiko.Transport((hostname, port))

Re: GUI definition for web and desktop

2008-02-03 Thread Daniel Fetchinson
I'm looking for a simple text based GUI definition format and [...] I believe Glade produces XML descriptions of its interfaces, so wxGlade would be one possible starting-point. Glade does, but dont confuse it with wxGlade. wxGlade can generate direct python code

Re: Python GUI toolkit

2008-02-03 Thread James Matthews
Just a side question! Does QT support Events from multiple threads without any special calls! Example when i use WX i have to call wx.CallAfter() Thanks! On Feb 3, 2008 6:05 PM, Jorge Godoy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: what i meant was, i tried gtk, didnt like it, the

Re: Python GUI toolkit

2008-02-03 Thread Christian Heimes
James Matthews wrote: Just a side question! Does QT support Events from multiple threads without any special calls! Example when i use WX i have to call wx.CallAfter() Yes, you can send signal across threads with some precaution. Christian --

Re: Python GUI toolkit

2008-02-03 Thread Christian Heimes
Jorge Godoy wrote: Qt is a the best choice, IMHO. Nice support, free if you write free software, very nice API, nice tools to develop with and the best looking widget system for *nix and mobile phones. PyQt4 forces you to either release your software under GPL or buy a license. Qt3 and Qt4

Re: psyco question

2008-02-03 Thread Marc 'BlackJack' Rintsch
On Sun, 03 Feb 2008 10:06:04 -0800, miller.paul.w wrote: Say I have a module with a function f in it, and I do psyco.bind (f) Is there any simple/easy/elegant way to retain a reference to the *unoptimized* version of f so I can call them both and compare performance? What about

Re: python for game programming

2008-02-03 Thread miller . paul . w
On Feb 3, 9:05 am, t3chn0n3rd [EMAIL PROTECTED] wrote: Is Python program language popular for game programming? Well, Python is at the center of my favorite game, Sid Meier's Civilization 4. :-) Another poster mentioned the pygame and pyglet libraries. I'd suggest you look into them if you

Re: Python GUI toolkit

2008-02-03 Thread Guilherme Polo
2008/2/3, Christian Heimes [EMAIL PROTECTED]: Jorge Godoy wrote: Qt is a the best choice, IMHO. Nice support, free if you write free software, very nice API, nice tools to develop with and the best looking widget system for *nix and mobile phones. PyQt4 forces you to either release

Re: GUI definition for web and desktop

2008-02-03 Thread Jorge Godoy
Daniel Fetchinson wrote: It's clear to me that the logic behind a web interface and a desktop interface are two totally different things. I don't want a magic method to convert an html/javascript based web app to a desktop app as this is clearly impossible. But it is not impossible to embed

Re: ANN: eric4 4.1.0 released

2008-02-03 Thread dmitrey
Hi all, I prefer the Eric Python IDE to all other, however, unfortunately, Eric4.x (as well as the latest snapshot mentioned in the ann) fails to debug any py-file (while Eric3.9.5 from Kubuntu software channel works ok): The debugged program raised the exception unhandled TypeError not all

Re: Python GUI toolkit

2008-02-03 Thread miller . paul . w
On Feb 3, 10:39 am, [EMAIL PROTECTED] wrote: also, is qt4 apps better looking in both win/linux than wx apps, coz the main thing i m looking for is visual appeal of the gui. Well, well... this wasn't in your original post. I had assumed ease of programming and cross-platform-ness were the

Re: Python GUI toolkit

2008-02-03 Thread Thomas Pani
Guilherme Polo wrote: PyQt follows same licensing as Qt, so what licenses does Qt4 supports besides GPL and Qt commercial license ? Qt4 has a special exception to the GPL, allowing the use of free software licenses not compatible with the GPL: http://trolltech.com/products/qt/gplexception/

Re: Python GUI toolkit

2008-02-03 Thread miller . paul . w
I'd like to offer you one suggestion about coding your app. You'll be best served if you can either write it as a command-line app and write a separate GUI-front end for it, or use an abstraction layer between your app and the display logic that allows you to easily plug in other GUI toolkits.

Re: ANN: eric4 4.1.0 released

2008-02-03 Thread Antoni Aloy
El Diumenge, 03-02-08 a les 16:45 escrigueres: Hi, eric4 4.1.0 was just released. This is a major feature release. Compared to 4.0.4 it contains these features next to bug fixes. Hello! This is the first version in many month on which I have no problems with dead key characters, suc as á, ñ

Re: GUI definition for web and desktop

2008-02-03 Thread Daniel Fetchinson
It's clear to me that the logic behind a web interface and a desktop interface are two totally different things. I don't want a magic method to convert an html/javascript based web app to a desktop app as this is clearly impossible. But it is not impossible to embed a server on your

Re: Python GUI toolkit

2008-02-03 Thread Guilherme Polo
2008/2/3, Thomas Pani [EMAIL PROTECTED]: Guilherme Polo wrote: PyQt follows same licensing as Qt, so what licenses does Qt4 supports besides GPL and Qt commercial license ? Qt4 has a special exception to the GPL, allowing the use of free software licenses not compatible with the GPL:

Re: psyco question

2008-02-03 Thread miller . paul . w
Thanks for your reply. It's been a while since I've used psyco, and it seems either some functions have been added, or I've never needed the other ones. :-) For the record, it looks like psyco.bind (f) f2 = psyco.unproxy(f) would leave me with an optimized f and a function f2 which is the

Re: psyco question

2008-02-03 Thread bearophileHUGS
miller: Is there any simple/easy/elegant way to retain a reference to the *unoptimized* version of f so I can call them both and compare performance? A simple solution is to defer the optimization. That is test the original code, call Psyco, then test it again: def somefunc(): ... from

Re: Project naming suggestions?

2008-02-03 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) How about Whython? /W -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUI toolkit

2008-02-03 Thread Thomas Dybdahl Ahle
On Sun, 2008-02-03 at 15:18 +, [EMAIL PROTECTED] wrote: what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, I came from Sving to Gtk, so for me also it was a real brainbreak.

Re: GUI definition for web and desktop

2008-02-03 Thread Stefan Behnel
Daniel Fetchinson wrote: I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is accessible through the web and also through desktop

Re: Project naming suggestions?

2008-02-03 Thread miller . paul . w
On Feb 3, 2:36 pm, Wildemar Wildenburger [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) How about Whython? /W I like it. :P If you were wondering why I was thinking of

Re: GUI definition for web and desktop

2008-02-03 Thread Daniel Fetchinson
I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I have an application that is accessible through the web and also through desktop applications and both

Re: Python GUI toolkit

2008-02-03 Thread Guilherme Polo
2008/2/3, Guilherme Polo [EMAIL PROTECTED]: 2008/2/3, Thomas Pani [EMAIL PROTECTED]: Guilherme Polo wrote: PyQt follows same licensing as Qt, so what licenses does Qt4 supports besides GPL and Qt commercial license ? Qt4 has a special exception to the GPL, allowing the use of

Re: psyco question

2008-02-03 Thread miller . paul . w
On Feb 3, 2:19 pm, [EMAIL PROTECTED] wrote: simple solution is to defer the optimization. That is test the original code, call Psyco, then test it again: I had thought of that, but it didn't really meet my requirements. I might want the unoptimized function back at some point after I call the

  1   2   >