Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Ville Vainio
> "Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> It's just that I'm having a hard time matching that quote Sunnan> to what I though python was about. I thought boring code Sunnan> was considered a virtue in python. ("Explicit is better Sunnan> than implicit", "sparse i

Re: boring the reader to death (wasRe: Lambda: the Ultimate DesignFlaw

2005-04-06 Thread Ville Vainio
> "Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> languages". I'm not sure whether I'd consider python Sunnan> particularly terse, though, but I don't know enough about Sunnan> it yet. (I've read a Read up on list comprehensions and generator expressions. You'll see the te

Re: Best editor?

2005-04-06 Thread Miki Tebeka
Hello ChinStrap, > When not using the interactive prompt, what are you using? I keep > hearing everyone say Emacs, but I can't understand it at all. I keep > trying to learn and understand why so many seem to like it because I > can't understand customization even without going through a hundred >

Re: cross platform printing

2005-04-06 Thread Miki Tebeka
Hello David, > "Alan Isaac" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'd like to try personal financial management using Python. > > I just found PyCheckbook, but it does not support check printing. > > Is there a Python check printing application kicking around? wxPython

Re: Best editor?

2005-04-06 Thread Nicolay A. Vasiliev
Hello! What do you think all about ActiveState Komodo? Michael George Lerner wrote: Aahz <[EMAIL PROTECTED]> wrote: Use vim. 80% of the power of emacs at 20% of the learning curve. A system administrator said this to me about unix a long time ago, but it applies equally well to emacs: Emac

Re: Python Google Server

2005-04-06 Thread Fuzzyman
vegetax wrote: > Fuzzyman wrote: > > > Of course - sorry. Thanks for the fix. Out of interest - why are you > > using this... just for curiosity, or is it helpful ? > > because is fun to surf on the google cache, =) Ha - cool ! The bizarre thing is, that for me it's actually useful. I doubt anyon

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Bengt Richter
On 5 Apr 2005 19:28:55 -0700, "El Pitonero" <[EMAIL PROTECTED]> wrote: >Scott David Daniels wrote: >> Ron_Adam wrote: >> > ... >> >> def tweakdoc(name): >> def decorator(function): >> function.__doc__ = 'Tweak(%s) %r' % (name, function.__doc__) >> return function >>

How to detect windows shutdown

2005-04-06 Thread Austin
I wrote a program running on windows. I put the link of the program in "Start up" folder and let it executed minimized. Every time when I open the computer, my program will be running in system tray. But if the user would like to shutdown the computer, the OS will show an error about exception.

Re: Best editor?

2005-04-06 Thread Ville Vainio
> "Miki" == Miki Tebeka <[EMAIL PROTECTED]> writes: Miki> Emacs (or VIm in my case) takes time to learn. However when Miki> you start to understand it and know you way around it'll do Miki> things no other editor will do for you. Other editors also do stuff Emacs won't do. Code co

Re: A ClientForm Question

2005-04-06 Thread narke
John J. Lee wrote, > See second bullet point under "Why does .click()ing on a button not work for me?". Thanks for you advice. However, after read through the FAQs, I have not managed to find a solution for my problem. I belive my button is coupled with some Java script which mess thing up and t

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Bengt Richter
On Wed, 06 Apr 2005 02:31:05 GMT, Ron_Adam <[EMAIL PROTECTED]> wrote: >On Tue, 05 Apr 2005 19:38:38 -0400, Steve Holden <[EMAIL PROTECTED]> >wrote: > > >>> >>So what you are saying is that you would like to be able to use >>arbitrarily complex expressions after the :at" sign, as long as they >>

Re: Does IronPython indicate MS interest in dynamic languages?

2005-04-06 Thread Bengt Richter
On Tue, 05 Apr 2005 23:34:25 -0400, Thomas Gagne <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> >> And now, for something completely different, I'll tender a >> personal view: I think Mr. Gates and Python are actually >> destined to get along uncharacteristically well. Roughly, I >> susp

Re: Best editor?

2005-04-06 Thread bruno modulix
[EMAIL PROTECTED] wrote: On Tuesday 05 April 2005 11:22 am, ChinStrap wrote: I keep hearing everyone say Emacs, but I can't understand it at all. Both emacs and vi suffer from the fact that they can not be used by ordinary humans. My my my... I'm sorry to learn I'm not an ordinary human :( Thus,

Re: Does IronPython indicate MS interest in dynamic languages?

2005-04-06 Thread Ola Natvig
Bengt Richter wrote: If there is to be an MSPython, how long 'til Mozilla FirePython? ;-) Regards, Bengt Richter 'Reclaim your runtime' I can't wait... -- -- Ola Natvig <[EMAIL PROTECTED]> infoSense AS / development -- http://mail.python.org/mailman/listinfo/py

Establishing connection SSH

2005-04-06 Thread [EMAIL PROTECTED]
Hello all, I have one computer and 1 server. I have login and password. The only way I can connect to server is using SSH protocol. I usually use Winscp3 to connect to the server (by providing login and password). Now I would like to connect to the server directly using python code. How can I esta

Re: Does IronPython indicate MS interest in dynamic languages?

2005-04-06 Thread Simon Brunning
On Apr 6, 2005 5:25 AM, Mike Rovner <[EMAIL PROTECTED]> wrote: > Sun abandoned dynamic approach (Tcl) in favor of Java. Sun appear to be very interested in dynamic languages these days: http://www.tbray.org/ongoing/When/200x/2004/12/08/DynamicJava -- Cheers, Simon B, [EMAIL PROTECTED], http://ww

Re: Web application toolkit recommendation?

2005-04-06 Thread quentel . pierre
You can also take a look at Karrigell (http://karrigell.sourceforge.net). You can write pure Python scripts or use a PHP-like syntax, and it is shipped with gadfly, an SQL engine, and with KirbyBase, a database engine which uses a Pythonic syntax. As for all the web frameworks, you can also work wi

Re: regexp weirdness (bug?)

2005-04-06 Thread Sergey Schetinin
it's line #159 here, but it did work! thanks. so it IS a bug? -- http://mail.python.org/mailman/listinfo/python-list

Re: Class, object question.

2005-04-06 Thread harold fellermann
What I am wondering is if I have a 2nd init  or something similar to create a vector. Such as what follows and if I can how do I go about implementing it? Class vector(point): def __init___(self, point1, point2): self.i = point2.get_x() - point1.get_x() self.j = point2.get_y(

Re: boring the reader to death (wasRe: Lambda: the Ultimate DesignFlaw

2005-04-06 Thread Sunnan
Ville Vainio wrote: Read up on list comprehensions and generator expressions. You'll see the terse side of Python (and genexps look kinda poetic too ;-). I am familiar with lc:s/genexps, I usually program in scheme which also has them (srfi-42). They're very nice and I use them a lot. -- http://ma

THE GREATEST NEWS EVER !

2005-04-06 Thread Ron2005_010
http://www.print-it.blogspot.com << The Greatest News Ever! -- http://mail.python.org/mailman/listinfo/python-list

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Sunnan
Ville Vainio wrote: Boring code is code that numbs your senses with constant flow of boilerplate crap, memory management and redundant type declarations and general blah blah that you skip when you are trying to figure out what a piece of code does. The python code I've read so far has looked like

ignoring keywords on func. call

2005-04-06 Thread Brano Zarnovican
Hi ! If I define 'f' like this def f(a): print a then, the call with keywords f(1, optional=2) fails. I have to change 'f' to def f(a, **kwrds): print a to ignore optional parameters. BUT.. Q: Can you call 'f' with keywords that will be ignored, without changing 'f's definition ? I

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Ville Vainio
> "Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> Ville Vainio wrote: Sunnan> Also, Guido recently urged people to explicitly write Sunnan> recursions rather than to use reduce - which I thought was Sunnan> completely in line with what I've seen as python's goals:

Re: ignoring keywords on func. call

2005-04-06 Thread Fredrik Lundh
Brano Zarnovican wrote: > Q: Can you call 'f' with keywords that will be > ignored, without changing 'f's definition ? no. > I would like to avoid code like this: > k = {} > k['optional'] = 2 > try: > f(1, **k) > except TypeError: > f(1) why would you write code like this? what's the use ca

Re: regexp weirdness (bug?)

2005-04-06 Thread Fredrik Lundh
Sergey Schetinin wrote: > it's line #159 here, but it did work! thanks. so it IS a bug? sure looks like one. please report it here: http://sourceforge.net/tracker/?group_id=5470&atid=105470 -- http://mail.python.org/mailman/listinfo/python-list

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-06 Thread [EMAIL PROTECTED]
Michael Spencer wrote: > [EMAIL PROTECTED] wrote: [snip] > > Anyway, my present problem is that I want to make copies of instances > > of my own custom classes. I'm having a little trouble understanding > > the process. Not that I think that it matters -- but in case it does, > > I'll tell you th

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Michele Simionato
Sunnan: > The python code I've read so far has looked like that. Not > type declarations, but lng class declarations. What do you mean? Lots of repetitive "self.variable=variable" in the __init__ method? Use of classes when you would use closures? Or maybe you are comparing with CLOS classes,

Re: ignoring keywords on func. call

2005-04-06 Thread Brano Zarnovican
> > Q: Can you call 'f' with keywords that will be > > ignored, without changing 'f's definition ? > > no. OK. Thank you for an answer. > what's the use case? I have extended the dict class, so that my __getitem__ accepts an optional parameter class MyTree(dict): def __getitem__(self, key,

how to parse system functions output

2005-04-06 Thread praba kar
Dear all, I want to parse the system functions output but I couldn't do it. Kindly assist me in this task. eg) bytesused = os.system('du -sh /Users/enmail') if I print this bytesused variable the output of bytesused variable is the below 14M /Users/enmail 0 Now From this Output I want

Harvestman install not working

2005-04-06 Thread python newbie
Hi, I previously had Harvestman installed and working okay, but somehow the latest version won't install. I have Python23 installed. When I attempt to execute the py2exesetup.bat file (on Windows XP), I get:

Re: A ClientForm Question

2005-04-06 Thread Satchidanand Haridas
Hi, ClientForm and Mechanize like tools do not execute javascript . You will normally have to do them manually in your python code itself. In your case, if you have a button, which (and I assume) executes some javascript code that sets some hidden variable and/or changes the 'action' attribute

formatting file

2005-04-06 Thread SPJ
Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1 2.1-2

Re: check interpreter version before running script

2005-04-06 Thread rbt
Peter Otten wrote: rbt wrote: Is there a recommended or 'Best Practices' way of checking the version of python before running scripts? I have scripts that use the os.walk() feature (introduced in 2.3) and users running 2.2 who get errors. Instead of telling them, 'Upgrade you Python Install, I'd l

Re: How to detect windows shutdown

2005-04-06 Thread Larry Bates
Programs that start at boot, run until shutdown and run in background all the time under Windows are good candidates for being turned into Windows Services. They respond to shutdown commands properly and can be fine-grained scheduled as well. For tutorial pick of a copy of Python Programming on W

Erroneous line number error in Py2.4.1 [Windows 2000+SP3]

2005-04-06 Thread Timo
For some reason Python 2.3.5 reports the error in the following program correctly: File "C:\Temp\problem.py", line 7 SyntaxError: unknown decode error ..whereas Python 2.4.1 reports an invalid line number: File "C:\Temp\problem.py", line 2 SyntaxError: unknown decode error - problem.py

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread François Pinard
[Aahz] > [François] > >Many of us are using Python today, week after week, year long. So > >let's be pragmatic. Python is what it became and now is. Let's not > >define it as a memory from the past nor as a futuristic dream. > You're free to continue using 1.5.2. [...] Sure, of course. Yet

shebang in cross platform scripts

2005-04-06 Thread rbt
Haven't tested this on Windows yet... thought I'd ask here: Does the line below have any negative impact on Windows machines? I develop and test mostly on Unix, but my scripts are often used on Win systems too. #!/usr/bin/env python Many thanks, rbt -- http://mail.python.org/mailman/listinfo/pyt

Re: authentication in zope server & Python

2005-04-06 Thread Raghul
I'm sorry -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread François Pinard
[Mike L.G.] > Emacs may seem awkward at first, but the payoff was amazing for me. Same here. A good editor may tremendously increase your productivity. However, nowadays, good editors abound, to the point that people are not so astonished by them. I've been around for many years, and a good whi

Re: shebang in cross platform scripts

2005-04-06 Thread Simon Brunning
On Apr 6, 2005 2:37 PM, rbt <[EMAIL PROTECTED]> wrote: > Does the line below have any negative impact on Windows machines? I > develop and test mostly on Unix, but my scripts are often used on Win > systems too. > > #!/usr/bin/env python Nope. On Windows it's just a comment. -- Cheers, Simon B

Re: shebang in cross platform scripts

2005-04-06 Thread Diez B. Roggisch
rbt wrote: > > Haven't tested this on Windows yet... thought I'd ask here: > > Does the line below have any negative impact on Windows machines? I > develop and test mostly on Unix, but my scripts are often used on Win > systems too. > > #!/usr/bin/env python Thanks to the # being the comment

Re: optparse and negative numbers as positional arguments

2005-04-06 Thread Tomi Silander
Grant Edwards wrote: On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote: How is one supposed to give negative numbers as positional arguments when using optparse? ./mitvit.py -- -1.1 Thank you, this works. I saw it in the source, but apparently did not properly pay attention; all the args

Re: shebang in cross platform scripts

2005-04-06 Thread Bill Mill
On Apr 6, 2005 9:37 AM, rbt <[EMAIL PROTECTED]> wrote: > > Haven't tested this on Windows yet... thought I'd ask here: > > Does the line below have any negative impact on Windows machines? I > develop and test mostly on Unix, but my scripts are often used on Win > systems too. > > #!/usr/bin/env

Re: How to detect windows shutdown

2005-04-06 Thread Peter Hansen
Austin wrote: I wrote a program running on windows. I put the link of the program in "Start up" folder and let it executed minimized. Every time when I open the computer, my program will be running in system tray. But if the user would like to shutdown the computer, the OS will show an error ab

Resticted mode still active (error?)

2005-04-06 Thread Max
I thought restricted mode had been removed from Python but it seems to be active for Python 2.3.5 +. I'm using the JEP product which allows integration of Java with Python (see http://jepp.sourceforge.net) via starting a Python interpreter in the same process as the JVM. This integrates with pytho

Re: how to parse system functions output

2005-04-06 Thread Peter Hansen
praba kar wrote: eg) bytesused = os.system('du -sh /Users/enmail') if I print this bytesused variable the output of bytesused variable is the below 14M /Users/enmail 0 It's unlikely this is the contents of "bytesused", because os.system() does not return the output of the program that is run, i

Re: formatting file

2005-04-06 Thread Peter Hansen
SPJ wrote: I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1 2.1-2 Please verify that you made an error about th

Re: ignoring keywords on func. call

2005-04-06 Thread Steve Holden
Brano Zarnovican wrote: Q: Can you call 'f' with keywords that will be ignored, without changing 'f's definition ? no. OK. Thank you for an answer. what's the use case? I have extended the dict class, so that my __getitem__ accepts an optional parameter [...] But it still doesn't guarantee that

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-06 Thread syd
Ok yall, here's my summary. Thanks again for all the help. Most importantly, upgrading to gnuplot-py 1.7 fixes this problem. In gnuplot-py 1.6, this is the bottom line... Does not fix: Gnuplot.GnuplotOpts.prefer_fifo_data = 0 Fixes: Gnuplot.GnuplotOpts.prefer_inline_data = 1 Fixes: (placed b

Re: formatting file

2005-04-06 Thread Steve Holden
SPJ wrote: Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1

(no subject)

2005-04-06 Thread python-list-bounces+archive=mail-archive . com
#! rnews 4875 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp From: Harry George <[EMAIL PROTECTED]> Subject: Re: Best editor? X-Nntp-Posting-Host: c

Re: optparse and negative numbers as positional arguments

2005-04-06 Thread Grant Edwards
On 2005-04-06, Tomi Silander <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote: > >>>How is one supposed to give negative numbers as positional >>>arguments when using optparse? >> >> ./mitvit.py -- -1.1 > > this works. Yes, I know. :)

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-06 Thread Steven Bethard
[EMAIL PROTECTED] wrote: Michael Spencer wrote: [EMAIL PROTECTED] wrote: [snip] Anyway, my present problem is that I want to make copies of instances of my own custom classes. I'm having a little trouble understanding the process. Not that I think that it matters -- but in case it does, I'll tell

Re: Resticted mode still active (error?)

2005-04-06 Thread Jeff Epler
Is there a script that causes this problem, without using mod_python or jepp? If so, please attach it to the sourceforge bug. http://sourceforge.net/tracker/index.php?func=detail&aid=1163563&group_id=5470&atid=105470 pgpiWdvwwFmcD.pgp Description: PGP signature -- http://mail.python.org/mailman

Re: formatting file

2005-04-06 Thread gry
SPJ wrote: > I am new to python hence posing this question. > I have a file with the following format: > > test11.1-1 installed > test11.1-1 update > test22.1-1 installed > test22.1-2 update > > I want the file to be formatted in the following way: > > test11.1-1 1.1-2

Re: shebang in cross platform scripts

2005-04-06 Thread Ivan Van Laningham
Hi All-- Simon Brunning wrote: > > On Apr 6, 2005 2:37 PM, rbt <[EMAIL PROTECTED]> wrote: > > > Does the line below have any negative impact on Windows machines? I > > develop and test mostly on Unix, but my scripts are often used on Win > > systems too. > > > > #!/usr/bin/env python > > Nope.

Re: formatting file

2005-04-06 Thread Steven Bethard
SPJ wrote: Hi, I am new to python hence posing this question. I have a file with the following format: test11.1-1 installed test11.1-1 update test22.1-1 installed test22.1-2 update I want the file to be formatted in the following way: test11.1-1 1.1-2 test22.1-1

Re: regexp weirdness (bug?)

2005-04-06 Thread Andrà Malo
* Fredrik Lundh wrote: > Sergey Schetinin wrote: > >> it's line #159 here, but it did work! thanks. so it IS a bug? > > sure looks like one. please report it here: > > http://sourceforge.net/tracker/?group_id=5470&atid=105470 done :) nd -- "Das Verhalten von Gates hatte mir bewiesen, da

Re: Best editor?

2005-04-06 Thread François Pinard
[Harry George] > 5. When I do Extreme Programming, the other author(s) tend to be using > emacs, vim, or nedit. [...] Speaking of, when everybody uses Emacs, there is a way for Emacs for allowing many users, each on a different networked machine, all on the very same buffer, simultaneously. This

Re: Does IronPython indicate MS interest in dynamic languages?

2005-04-06 Thread Scott David Daniels
Bengt Richter wrote: If there is to be an MSPython, how long 'til Mozilla FirePython? ;-) Mexico has already designed the flag for that, I think. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Scott David Daniels
Aahz wrote: You just can't have your cake and eat it, too. I've always wondered about this turn of phrase. I seldom eat a cake at one sitting. -Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Simon Brunning
On Apr 6, 2005 4:42 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > I've always wondered about this turn of phrase. I seldom > eat a cake at one sitting. Clearly you're just not trying. ;-) -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.pyt

Re: Calling a Perl Module from Python

2005-04-06 Thread Swaroop C H
On Apr 6, 2005 8:23 AM, gf gf <[EMAIL PROTECTED]> wrote: > I've recently made the switch. Wow, is Python great! > One thing which I haven't been able to do is replace > Perl's great lib collection (HTML::Parser, for > instance, can do a lot that Soup just can't). You've just discovered the only l

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread El Pitonero
Bengt Richter wrote: > On 5 Apr 2005 19:28:55 -0700, "El Pitonero" <[EMAIL PROTECTED]> wrote: > > >Scott David Daniels wrote: > >> Ron_Adam wrote: > >> > ... > >> > >> def tweakdoc(name): > >> def decorator(function): > >>function.__doc__ = 'Tweak(%s) %r' % (name, function.__d

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Scott David Daniels
Bengt Richter wrote: @deco.one > def foo(): pass Ok, now what do you call this @-line? Freaky decorator factory invocation? Decoratoriferous expression? ;-) This one has a certain je ne sais quoi ;-), but I'd call "deco.one" the decorator function (since it _must_ evaluate to a function), and if i

Re: ignoring keywords on func. call

2005-04-06 Thread Peter Otten
Brano Zarnovican wrote: > But it still doesn't guarantee that __getitem__ accepts keywords. > (What if somebody will extend the Tree class and overlook the > definition of __getitem__ and define a "classic" one) I deem it more likely that that same somebody will not overlook it and dump your Tree

Re: unittest vs py.test?

2005-04-06 Thread BJörn Lindqvist
py.test is awesome, but there is one slight flaw in it. It produces to much output. All I want to see when all tests pass is "All X passes succeded!" (or something similar). py.test's output can be distracting. -- mvh Björn -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a Perl Module from Python

2005-04-06 Thread jfj
Swaroop C H wrote: AFAIK, there isn't any reliable way to call Perl modules from Python. pyperl. pyperl. pyperl. +10 on making this a standard module for embrace+extend reasons *and* because perl is not that bad after all. jf -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread ChinStrap
Well I would be more than willing to learn Emacs if it does all these things you speak of, but really I can't get started because the default scheme is so friggin ugly it isn't funny. Anyone want to send me a configuration setup with Python in mind, and decent colors? -- http://mail.python.org/m

Re: HTML editor component?

2005-04-06 Thread Johan Lindberg
You could try the (very) simple HTML editor I use for my CM project. It can only handle B, I, U and A, but then again, it was never meant to do more. It's written in wxPython, based on Scintilla and can probably be extended to fit your needs. You can find it here: http://sourceforge.net/project/sh

Re: Question about the Python Cookbook: How much of this is new?

2005-04-06 Thread Nick Vargish
Robert Kern <[EMAIL PROTECTED]> writes: > So yeah, buy it. Seconded. My copy arrived from ORA yesterday and I'm still giddy with delight. Even if you have the first edition, the second includes a lot of recipes that leverage or demonstrate the new features in 2.3 and 2.4. Nick -- # sigmask

Re: Establishing connection SSH

2005-04-06 Thread Grig Gheorghiu
Try paramiko: http://www.lag.net/paramiko/ Grig -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest vs py.test?

2005-04-06 Thread Roy Smith
<[EMAIL PROTECTED]> wrote: >py.test is awesome, but there is one slight flaw in it. It produces to >much output. All I want to see when all tests pass is "All X passes >succeded!" (or something similar). py.test's output can be >distracting. I agree. -- http://mail.python.org/mailman/listinfo/pyt

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread bruno modulix
Sunnan wrote: Aahz wrote: (snip) print "foo is", foo Is the space added automatically? (Like awk does, if you add a comma.) Yes. But you can also format it how you like: print "foo is %s and that's a good news, my friends" % foo -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[:

Using weakrefs instead of __del__

2005-04-06 Thread Rhamphoryncus
I know __del__ can't be relied on to do cleanup, so I'm thinking of using a globally reachable weakref to do the job, like so: import weakref class Foo: def __init__(self, *args, **kwargs): self.__realfoo = RealFoo(self, *args, **kwargs) def blah(self): return self.__realfoo.blah() c

Re: shebang in cross platform scripts

2005-04-06 Thread Bill Mill
On Apr 6, 2005 11:06 AM, Ivan Van Laningham <[EMAIL PROTECTED]> wrote: > Hi All-- > > Simon Brunning wrote: > > > > On Apr 6, 2005 2:37 PM, rbt <[EMAIL PROTECTED]> wrote: > > > > > Does the line below have any negative impact on Windows machines? I > > > develop and test mostly on Unix, but my scr

Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
Background information: - in order to monitor mainboard sensory data as fan speeds, temperatures, applications like SpeedFan http://www.almico.com/speedfan.php or MBM http://mbm.livewiredev.com/ can be used. Both of the mentioned apps expose data got from the hardwar

richcmpfunc semantics

2005-04-06 Thread harold fellermann
Hi all, I want to implement rich comparision in an extension class. Problem is I cannot find good documentation of the richcmpfunc semantics. Given the signature richcmpfunc compare(PyObject *,PyObject, int); I supposed the two objects passed are the ones to be compared. What is the meaning of t

Re: (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
I have got the specs for SpeedFan from the SpeedFan author :-) , but ... inbetween I found, that full specs of the shared memory access to fan speeds, board, CPU temperature data are also exposed by the MBM application http://mbm.livewiredev.com and already published online (including C, VB, Delp

Re: formatting file

2005-04-06 Thread Peter Otten
SPJ wrote: > test11.1-1   installed > test11.1-1   update > test22.1-1   installed > test22.1-2   update > > I want the file to be formatted in the following way: > > test11.1-1   1.1-2 > test22.1-1   2.1-2 The following program expects a sorted input file: import itert

Re: Python Cookbook, 2'nd. Edition is published

2005-04-06 Thread Matteo Dell'Amico
Larry Bates wrote: I received my copy on Friday (because I was a contributor). I wanted to thank Alex, Anna, and David for taking the time to put this together. I think it is a GREAT resource, especially for beginners. This should be required reading for anyone that is serous about learning Pytho

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-06 Thread Michael Spencer
[EMAIL PROTECTED] wrote: ... I see Steve Bethard has answered most of the points in your last eMail On line 11 we create a dictionary item in memo, [id(self):type(self)]...So now I'm confused as to the purpose of memo. Why should it contain the ID of the *original* object? No, you create memo[id(s

Re: A ClientForm Question

2005-04-06 Thread John J. Lee
"narke" <[EMAIL PROTECTED]> writes: > John J. Lee wrote, > > > See second bullet point under "Why does .click()ing on a button not > work for me?". > > Thanks for you advice. However, after read through the FAQs, I have not > managed to find a solution for my problem. I belive my button is > co

Re: how to parse system functions output

2005-04-06 Thread [EMAIL PROTECTED]
Or if you run 2.4 you can use subprocess -- http://mail.python.org/mailman/listinfo/python-list

Re: Harvestman install not working

2005-04-06 Thread Anand
Hi Latest version of py2exe does not support the option --force-imports anymore I think. You can edit the .bat file to remove that option. It should work. -Anand -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Thomas Heller
"Claudio Grondi" <[EMAIL PROTECTED]> writes: > Background information: > - > in order to monitor mainboard sensory data > as fan speeds, temperatures, applications > like SpeedFan http://www.almico.com/speedfan.php > or MBM http://mbm.livewiredev.com/ > can be used.

Re: Semi-newbie, rolling my own __deepcopy__

2005-04-06 Thread Steven Bethard
Michael Spencer wrote: BTW, as I mentioned in a previous comment, I believe this would be more plainly written as type(self).__new__(), to emphasize that you are constructing the object without initializing it. (There is a explanation of __new__'s behaviour at http://www.python.org/2.2/descrin

Compiling extensions

2005-04-06 Thread ake
I would like to compile extensions usig distutils. is there a way to set which compiler to use ? I am using windows and VC++ 7.1 comp. Åke -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread John J. Lee
Simon Brunning <[EMAIL PROTECTED]> writes: > On Apr 6, 2005 4:42 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > > I've always wondered about this turn of phrase. I seldom > > eat a cake at one sitting. > > Clearly you're just not trying. ;-) :-))) John -- http://mail.python.org/mailma

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Ron_Adam
On Wed, 06 Apr 2005 08:10:22 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >I don't understand your seeming fixation with wrappers and wrapping. Fixated implies, I'm stuck on a single thing, but I'm not. I am learning as I go, and exploring some possibilities as well. :-) > That's not >the only

Re: Best editor?

2005-04-06 Thread John J. Lee
François Pinard <[EMAIL PROTECTED]> writes: [...] > Overall, Vim is also cleaner than Emacs, and this pleases me. [...] Is this still true when comparing XEmacs vs. vim? (rather than GNU Emacs vs. vim) I've always used GNU Emacs, but I have got the impression that XEmacs is (was?) cleaner in some

Re: Calling a Perl Module from Python ( future direction of Python)

2005-04-06 Thread gf gf
Really! That's a pity... Instead of trying to recreate a repository the size of CPAN, a Python interface to Perl modules is really called for. Instead of fretting over decorator syntax and lispiness, might I suggest that development efforts be directed to this? Developers, are you listening? Gu

Re: Best editor?

2005-04-06 Thread John J. Lee
"ChinStrap" <[EMAIL PROTECTED]> writes: > When not using the interactive prompt, what are you using? I keep > hearing everyone say Emacs, but I can't understand it at all. I keep > trying to learn and understand why so many seem to like it because I > can't understand customization even without go

Re: Installing Python 2.4 on Linux

2005-04-06 Thread David Fraser
Edward Diener wrote: I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Pyt

Re: Best editor?

2005-04-06 Thread John J. Lee
Ville Vainio <[EMAIL PROTECTED]> writes: > > "Miki" == Miki Tebeka <[EMAIL PROTECTED]> writes: > > Miki> Emacs (or VIm in my case) takes time to learn. However when > Miki> you start to understand it and know you way around it'll do > Miki> things no other editor will do for you.

number conversion

2005-04-06 Thread nicksjacobson
I'm writing a program to read in raw data from a WAV file, and write it to an IT file. I got this to work in C by reading the data into an array of unsigned chars called "RawDataAry", then converted it to signed chars by doing the following: signed char *CharAry = malloc(sizeof(signed char) * fra

Re: Decorator Base Class: Needs improvement.

2005-04-06 Thread Steve Holden
Ron_Adam wrote: On Wed, 06 Apr 2005 08:10:22 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: I don't understand your seeming fixation with wrappers and wrapping. Fixated implies, I'm stuck on a single thing, but I'm not. I am learning as I go, and exploring some possibilities as well. :-) That's

Re: Calling a Perl Module from Python ( future direction of Python)

2005-04-06 Thread Jeff Reavis
An interface to Perl already exists: http://www.python.org/moin/PyPerl -jjr -- http://mail.python.org/mailman/listinfo/python-list

Python sleep doesn't work right in a loop?

2005-04-06 Thread ritterhaus
Just a simple bit of code to toggle between two state at intervals... import time for i in range(4): print 'On' time.sleep(1) print 'Off' time.sleep(1) ... SHOULD toggle On and Off four times with one-second pauses. When I run this, the loop pauses the full eight seconds then prin

  1   2   >