Re: default argument in method

2010-12-31 Thread DevPlayer
I agree with you Steven that the OP should avoid __getattribute__ and the like for many a thing. I also agree with your last statement. I try to answer the OP's question without much "You shouldn't do this's and don't do that's". I trust them to make thier own decisions. I'd say "A much better solu

Re: Nagios

2010-12-31 Thread Adam Skutt
On Friday, December 31, 2010 9:56:02 PM UTC-5, Robert H wrote: > It was forked to be written in Python, yes. The whole point (and it > wasn't a Nagios port to Tcl) was that the Tcl community (and I like the > Tcl community a lot) has a strange fixation with not reinventing the > wheel, even when

Re: GUI Tools for Python 3.1

2010-12-31 Thread flebber
On Dec 26 2010, 8:41 pm, "Hans-Peter Jansen" wrote: > On Friday 24 December 2010, 03:58:15 Randy Given wrote: > > > Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1? > > PyQt4 of course. > > http://www.riverbankcomputing.com > > Pete Pyside, Nokia have split with riverbank comput

Re: Nagios

2010-12-31 Thread Robert
On 2010-12-31 16:52:30 -0500, Antoine Pitrou said: On 31 Dec 2010 04:20:59 GMT Steven D'Aprano wrote: On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote: The second way the Tcl community irks me is the "not invented here" attitude. I like the syntax of Tcl and I like the community. They are so

Re: Python3 Web Framework

2010-12-31 Thread Robert
On 2010-12-31 17:24:56 -0500, Alice Bevan–McGregor said: On 2010-12-31 02:20:47 -0800, Terry Reedy said: I believe some will be improved or even solved in 3.2. Evidence to back this statement up would be appreciated. ;) - Alice. - wsgiref now implements and validates PEP , ra

Re: Compile on SunOS?

2010-12-31 Thread MrJean1
These command lines used to build 32-bit Python 2.4 and 2.5 on Solaris 10 Opteron using SUN's compilers: setenv LD_LIBRARY_PATH env CCSHARED="-KPIC" LDSHARED="cc -xtarget=native -G" LDFLAGS="- xtarget=native" CC="cc" \ CPP="cc-xtarget=native -E" BASECFLAGS="-xtarget=native" OPT="-xO5"

Re: Is there anyway to run JavaScript in python?

2010-12-31 Thread Dan Stromberg
On Thu, Dec 30, 2010 at 5:52 AM, crow wrote: > Hi, I'm writing a test tool to simulate Web browser. Is there anyway > to run JavaScript in python? Thanks in advance. > -- > http://mail.python.org/mailman/listinfo/python-list > You might also consider Pyjamas, which translates Python (somewhere be

Re: Python - NAWIT / Community

2010-12-31 Thread flebber
On Jan 1, 9:03 am, Fabio Zadrozny wrote: > > My question relates to community contribution. My concern arose when > > recently installing the pydev.org extensions in Eclipse. Now as far as > > my understanding goes the licensing on both is open source GPL. > > However Pydev became open source as p

Re: Trying to parse a HUGE(1gb) xml file

2010-12-31 Thread dontcare
You should look into vtd-xml, available in c, c++, java and c#. On Dec 20, 11:34 am, spaceman-spiff wrote: > Hi c.l.p folks > > This is a rather long post, but i wanted to include all the details & > everything i have tried so far myself, so please bear with me & read the > entire boringly long

Re: User input masks - Access Style

2010-12-31 Thread Tim Harig
On 2010-12-31, flebber wrote: > On Dec 28 2010, 12:21 am, Adam Tauno Williams > wrote: >> On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: >> > Is there anyay to use input masks in python? Similar to the function >> > found in access where a users input is limited to a type, length and >> > form

Re: tempfile.NamedTemporaryFile use case?

2010-12-31 Thread Alice Bevan–McGregor
I'm a bad person, but one use case I have is for shuffling templates around such that: * An inherited ('parent') template can be stored in a database. * The 'views' of my application are told to either use the real master template or the db parent template. * The rendering engine loads the par

Re: Keeping track of the N largest values

2010-12-31 Thread Dan Stromberg
On Sat, Dec 25, 2010 at 7:42 AM, Roy Smith wrote: > I'm processing a stream of N numbers and want to keep track of the K > largest.  There's too many numbers in the stream (i.e. N is too large) > to keep in memory at once.  K is small (100 would be typical). > > >From a theoretical point of view,

tempfile.NamedTemporaryFile use case?

2010-12-31 Thread Roy Smith
What is the use case for tempfile.NamedTemporaryFile? As far as I can tell, the only way it differs from TemporaryFile is that it is guaranteed to have a name in the file system. BUT, it's not guaranteed that you can open the file a second time via that name. So, what's the point? In what si

Re: Interrput a thread

2010-12-31 Thread Alice Bevan–McGregor
On 2010-12-31 10:28:26 -0800, John Nagle said: Even worse, sending control-C to a multi-thread program is unreliable in CPython. See "http://blip.tv/file/2232410"; for why. It's painful. AFIK, that has been resolved in Python 3.2 with the introduction of an intelligent thread scheduler as p

Re: Python3 Web Framework

2010-12-31 Thread Alice Bevan–McGregor
On 2010-12-31 02:20:47 -0800, Terry Reedy said: I believe some will be improved or even solved in 3.2. Evidence to back this statement up would be appreciated. ;) - Alice. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - NAWIT / Community

2010-12-31 Thread Fabio Zadrozny
> My question relates to community contribution. My concern arose when > recently installing the pydev.org extensions in Eclipse. Now as far as > my understanding goes the licensing on both is open source GPL. > However Pydev became open source as part of aptana's acquistion, and > for the moment p

Nagios

2010-12-31 Thread Antoine Pitrou
On 31 Dec 2010 04:20:59 GMT Steven D'Aprano wrote: > On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote: > > > The > > second way the Tcl community irks me is the "not invented here" > > attitude. I like the syntax of Tcl and I like the community. They are > > some good folks. Try asking "I want to

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread Robert
On 2010-12-30 23:20:59 -0500, Steven D'Aprano said: On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote: The second way the Tcl community irks me is the "not invented here" attitude. I like the syntax of Tcl and I like the community. They are some good folks. Try asking "I want to build a Nagios

Re: Interrput a thread

2010-12-31 Thread John Nagle
On 12/29/2010 3:31 PM, gervaz wrote: Hi all, I need to stop a threaded (using CTR+C or kill) application if it runs too much or if I decide to resume the work later. I come up with the following test implementation but I wanted some suggestion from you on how I can implement what I need in a bett

Compile on SunOS?

2010-12-31 Thread Alex Zhang
Hi All, I'm trying to build Python 2.7.1 on Sun Solaris 10 amd64, however end up with: Python build finished, but the necessary bits to build these modules were not found: _bsddb _tkinter bsddb185 gdbm linuxaudiodev ossaudiodev To find the necessary bi

Re: kinterbasdb error connection

2010-12-31 Thread Ale Ghelfi
On 09/12/2010 15:17, Uwe Grauer wrote: On 12/07/2010 04:35 PM, Ale Ghelfi wrote: (i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 ) I try to connect my database of firebird 2.5 by kinterbasdb. But python return this error : You are not using the current kinterbasdb version. Se

Re: String building using join

2010-12-31 Thread Emile van Sebille
On 12/31/2010 7:22 AM gervaz said... Hi all, I would like to ask you how I can use the more efficient join operation in a code like this: class Test: ... def __init__(self, v1, v2): ... self.v1 = v1 ... self.v2 = v2 ... def prg(l): ... txt = "" ... for x in l: ...

String building using join

2010-12-31 Thread gervaz
Hi all, I would like to ask you how I can use the more efficient join operation in a code like this: >>> class Test: ... def __init__(self, v1, v2): ... self.v1 = v1 ... self.v2 = v2 ... >>> def prg(l): ... txt = "" ... for x in l: ... if x.v1 is not None: ...

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread Adam Skutt
On Dec 31, 12:21 am, rantingrick wrote: > Of course a tiny widget set like this is not going to handle extensive > GUI coding, thats a no brainer. No, it's not going to handle any GUI coding except notepad.exe. That's already been written, so we're left with no new application that can be writte

Re: Python3 Web Framework

2010-12-31 Thread Martin v. Loewis
Am 31.12.2010 08:47, schrieb Aman: > Hey all... I just started with Python, and I chose Python3 because it > seemed a subtle choice as compared to doing Pthon 2.x now and then > porting to Python3.x later... I plan to start with Web Development > soon... I wanted to know what all web frameworks are

Re: User input masks - Access Style

2010-12-31 Thread flebber
On Dec 28 2010, 12:21 am, Adam Tauno Williams wrote: > On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: > > Is there anyay to use input masks in python? Similar to the function > > found in access where a users input is limited to a type, length and > > format. > >

Re: User input masks - Access Style

2010-12-31 Thread flebber
On Dec 28 2010, 12:21 am, Adam Tauno Williams wrote: > On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: > > Is there anyay to use input masks in python? Similar to the function > > found in access where a users input is limited to a type, length and > > format. > >

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread flebber
On Dec 31, 3:04 pm, Robert wrote: > On 2010-12-30 22:28:39 -0500, rantingrick said: > > >  On Dec 30, 8:41�pm, Robert wrote: > >> On 2010-12-30 19:46:24 -0500, rantingrick said: > >> Just to clarify...I like Python. I am learning it at the moment. > > > Glad to have you aboard Robert! > > Thank

Re: Python3 Web Framework

2010-12-31 Thread Terry Reedy
On 12/31/2010 3:47 AM, Alice Bevan–McGregor wrote: Python 3 has a number of issues with web development thus far: I believe some will be improved or even solved in 3.2. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to verify the integrity of python.2.5.4.msi

2010-12-31 Thread Alexander Gattin
Hello, On Sun, Dec 26, 2010 at 05:44:22AM +0530, Varuna Seneviratna wrote: > > D:\Python>gpg --verify python-2.5.4.msi.asc > gpg: no valid OpenPGP data found. > gpg: the signature could not be verified. > Please remember that the signature file (.sig or .asc) > should be the first file given on th

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread python
Rick, > However, now Tkinter just looks old and dumpy. Have you taken a look at the ttk module (based on tile) that ships with Python 2.7/3.1? This adds native/theme-aware widgets to Tkinter. And it adds additional widgets such as a treeview (which can also be used as a grid), notebook, progressb

Re: Change in scope of handled exception variable in Python 3?

2010-12-31 Thread Peter Otten
Baptiste Lepilleur wrote: > I stumbled on a small bug with httplib2 that I reduced to the example > below. > > It seems that with Python 3, when an exception is handled it "unbound" the > previously declared local variable. This did not occurs with Python 2.5. > > It is a Python 3 feature? I did

ANN: stats0.1.2a calculator statistics for Python

2010-12-31 Thread Steven D'Aprano
I am pleased to announce the third public release of stats for Python. This is a minor point release, mostly consisting of improved tests and documentation, plus the addition of six new statistics functions: midhinge, quartile_skewness, cumulative_sum, running_sum, stderrskewness, stderrkurtosi

Re: Python3 Web Framework

2010-12-31 Thread Alice Bevan–McGregor
On 2010-12-30 23:47:17 -0800, Aman said: Hey all... I just started with Python, and I chose Python3 because it seemed a subtle choice as compared to doing Pthon 2.x now and then porting to Python3.x later... I plan to start with Web Development soon... I wanted to know what all web frameworks

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread Owen Jacobson
On 2010-12-30 19:43:21 -0500, Gerry Reno said: For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing "wrong" with Tcl and Tkinter. They are part of a long evolutionary chain of