Re: [Python-Dev] PEP-343 - Context Managment variant

2005-08-08 Thread Josiah Carlson
falcon <[EMAIL PROTECTED]> wrote: > It's idea was token from Ruby. But I think, good idea is good whatever it > came from. > It can be not Pythonic. Just because something may be a good idea, doesn't mean that the idea is Pythonic. The only person who can truely say is Guido, but you can gain s

Re: PEP: Specialization Syntax

2005-08-08 Thread Bengt Richter
On Mon, 08 Aug 2005 16:18:50 -0400, Nicolas Fleury <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> On Sun, 07 Aug 2005 21:41:33 -0400, Nicolas Fleury <[EMAIL PROTECTED]> wrote: >>>I mean should angle brackets <> like in C++, or another operator, be >>>used instead? >> >> I am getting the fee

Re: PEP: Specialization Syntax

2005-08-08 Thread Bengt Richter
On Tue, 09 Aug 2005 00:14:25 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: [...] >Here is a decorator object to set up function call dispatch according to type. >It only uses positional arguments, but could be fleshed out, I think. >Not tested beyond what you see ;-) > >< typedispatcher.py >---

Re: PEP: Specialization Syntax

2005-08-08 Thread Nicolas Fleury
Bengt Richter wrote: > On Mon, 08 Aug 2005 16:18:50 -0400, Nicolas Fleury <[EMAIL PROTECTED]> wrote: >>I wrote the PEP to see if was the only one that would benefit from >>generic types *before* having optional static typing in the language. >> >>It seems I'm the only one;) >> >>According to blog

Adding custom widgets to Qt Designer

2005-08-08 Thread Madhusudan Singh
Hi I am trying to add a QwtPlot widget to Qt Designer. I have both PyQwt and libqwt installed. I first tried to add a Custom Widget from /usr/include/qwt/qwt_plot.h as QwtPlot. But I do not know what slot to add. If I add the widget so created, and double click on it, I am asked

error compiling linkchecker

2005-08-08 Thread mmarkzon
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is with Python 2.4.1 on Solaris 2.8. Can anyone help? Thank you. -> python setup.py build creating /ho

Re: Python -- (just) a successful experiment?

2005-08-08 Thread Robert Kern
Peter Decker wrote: > On 8/8/05, Robert Kern <[EMAIL PROTECTED]> wrote: > >>What I'm trying to say is that posting to c.l.py is absolutely >>ineffective in achieving that goal. Code attracts people that like to >>code. Tedious, repetitive c.l.py threads attract people that like to >>write tedious,

Re: Decline and fall of scripting languages ?

2005-08-08 Thread Mike Meyer
Well, I tried sending this via email, but I can't derive a valid address from Paul's anti-spammed address. My apologies to the rest of you for this. Paul Rubin writes: > Should that bother me? I should say, my interest in Ocaml or Haskell > is not just to try out somet

Python Project (sigh with Java)

2005-08-08 Thread Ramza Brown
I know you may frown at my use at java, but this is a pretty simple way to create GUIs quickly, using Java's swing. I have some code for an approach for integrating the swing GUI components and python. I threw the project together in a couple of days, so it is not some massive application. A

Re: How to determine that if a folder is empty?

2005-08-08 Thread could ildg
On 8/8/05, Peter Hansen <[EMAIL PROTECTED]> wrote: > could ildg wrote: > > I want to check if a folder named "foldername" is empty. > > I use os.listdir(foldername)==[] to do this, > > but it will be very slow if the folder has a lot of sub-files. > > Is there any efficient ways to do this? > > I'

Re: Python Project (sigh with Java)

2005-08-08 Thread could ildg
Good job~ I also like both java and py so I always focus on jython, but now it's being moved forward kinda slow. I'm looking forward to jython 2.4. You're right, swing is great. wxpy is also wonderfu but it's so lack of docs. I mainly work on windows so I use p4d(python for delphi), I use delphi f

Re: Python Project (sigh with Java)

2005-08-08 Thread Ramza Brown
could ildg wrote: > Good job~ > I also like both java and py so I always focus on jython, > but now it's being moved forward kinda slow. > I'm looking forward to jython 2.4. > > You're right, swing is great. wxpy is also wonderfu but it's so lack > of docs. I mainly work on windows so I use p4d(py

Re: Pickling limitation with instances defining __cmp__/__hash__?

2005-08-08 Thread Erik Max Francis
Erik Max Francis wrote: > I've come across a limitation in unpickling certain types of complex > data structures which involve instances that override __hash__, and was > wondering if it was known (basic searches didn't seem to come up with > anything similar) and if there is a workaround for i

Re: Decline and fall of scripting languages ?

2005-08-08 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > Well, I tried sending this via email, but I can't derive a valid > address from Paul's anti-spammed address. Yeah, I should update that url since they turned off the forwarding. It should be . But a thread titled "decline and fall of

Re: Python Project (sigh with Java)

2005-08-08 Thread could ildg
But the function is also too limited. What I want to do is to run much of my py scripts in jython as good as possible. On 8/9/05, Ramza Brown <[EMAIL PROTECTED]> wrote: > could ildg wrote: > > Good job~ > > I also like both java and py so I always focus on jython, > > but now it's being moved forw

How to connect to UNIX machine from windows box

2005-08-08 Thread Pooja Sharma
I want to connect to unix machine using ssh to run some commands . Is there any python module available that can be called in any other python script. Reply asap. :) Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: How to connect to UNIX machine from windows box

2005-08-08 Thread Ross Wilson
> I want to connect to unix machine using ssh to run some commands . > I have not tried this, but it might be useful. http://www.lag.net/paramiko/ HTH, Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: How to connect to UNIX machine from windows box

2005-08-08 Thread Robert Kern
Pooja Sharma wrote: > I want to connect to unix machine using ssh to run some commands . > > Is there any python module available that can be called in any other > python script. > > Reply asap. :) No, you don't get to demand that we reply ASAP. It's rude. http://www.catb.org/~esr/faqs/smart

Re: Chopping off spaces at both ends

2005-08-08 Thread Tim Roberts
Madhusudan Singh <[EMAIL PROTECTED]> wrote: > >I am a newbie to python and am using it to interface some of my lab >equipment. > >How does one get rid of spaces at both ends of a string ? A little > like the >trim() intrinsic in fortran 95. > >One of my instruments is retur

Re: Python Project (sigh with Java)

2005-08-08 Thread Evil Bastard
Ramza Brown wrote: > And I normally don't take the entire python library with me. I just > take 'jython.jar' so I can distribute it easier. Agreed - if one is happy with the costs of java inter-operation, then jython rocks the house. Otherwise, I could recommend PMW atop Tkinter, since the python

Re: python for microcontrollers

2005-08-08 Thread Kay Schluehr
Hi Bastard, one of the main reasons PyPy gets funded by the EU was the promise to port Python to embedded systems ( but not necessarily very memory restricted ones ). The project seems to be in a state where the team tries to get rid of the CPython runtime alltogether and reaching some autonomy. T

Re: Python -- (just) a successful experiment?

2005-08-08 Thread EP
"Kay Schluehr" wrote: > I already see the headline: PEEP is the answer - PSF votes for software > patents. All ideas are written down by volunteers in great detail they > just have to be coded. Due to intellectual property rights PSF becomes > one of the richest organizations in the world. Guido v

Re: PEP: Specialization Syntax

2005-08-08 Thread Bengt Richter
On Mon, 08 Aug 2005 21:24:15 -0400, Nicolas Fleury <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> On Mon, 08 Aug 2005 16:18:50 -0400, Nicolas Fleury <[EMAIL PROTECTED]> wrote: >>>I wrote the PEP to see if was the only one that would benefit from >>>generic types *before* having optional stat

Re: Python -- (just) a successful experiment?

2005-08-08 Thread Cliff Wells
On Mon, 2005-08-08 at 10:10 -0700, Paul Rubin wrote: > Cliff Wells <[EMAIL PROTECTED]> writes: > > The second presentation (I don't recall the speaker's name) specifically > > covered metaprogramming (writing DSLs) and one of the things I found > > interesting was that despite Ruby having far more

Re: Point and click GUI builder for Python

2005-08-08 Thread Mir Nazim
neuruss neuruss wrote: > Madhusudan Singh wrote: > > Is there such a thing for python ? Like Qt Designer for instance ? > > The easiest way to create Python GUI apps: PythonCard. > It is based on wxPython by it has a higher level of abstraction. > You just drag and drop widgets on a form and code t

Re: Point and click GUI builder for Python

2005-08-08 Thread Mir Nazim
neuruss neuruss wrote: > Madhusudan Singh wrote: > > Is there such a thing for python ? Like Qt Designer for instance ? > > The easiest way to create Python GUI apps: PythonCard. > It is based on wxPython by it has a higher level of abstraction. > You just drag and drop widgets on a form and code t

Re: Python -- (just) a successful experiment?

2005-08-08 Thread Kay Schluehr
EP wrote: > But sometimes a rugged individual can be even more rugged and more individual > if said individual has the support of friends by which to vet ideas and, by > absorbing counterpoint, to develop one's own thoughts even further. > > > And it is kind of nice when you have two teams drill

Re: Decline and fall of scripting languages ?

2005-08-08 Thread Donn Cave
Quoth Paul Rubin : | Right now I'm mainly interested in OCaml, Haskell, Erlang, and maybe | Occam. Haskell seems to have the happiest users, which is always a | good thing. Erlang has been used for real-world systems and has | built-in concurrency support. OCaml seems

<    1   2