Re: Background process for ssh port forwarding

2005-10-01 Thread Fredrik Lundh
Jesse Rosenthal wrote: > If I end this with 'connection.interact()', I will end up logged in to the > forwarding server. But what I really want is to go on and run rsync to > localhost port 2022, which will forward to my_server port 22. So, how can > I put the ssh connection I set up in hostforwar

Re: What encoding is used when initializing sys.argv?

2005-10-01 Thread Tim Roberts
Neil Hodgson <[EMAIL PROTECTED]> wrote: > >Petr Prikryl: > >> ... I have discovered that >> I do not understand what encoding should be used >> to convert the sys.argv into unicode. > >Martin mentioned CP_ACP. In Python on Windows, this can be accessed >as the "mbcs" codec. > >import sys >prin

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Bengt Richter
On 30 Sep 2005 05:23:35 -0700, Paul Rubin wrote: >Steven D'Aprano <[EMAIL PROTECTED]> writes: >> > It's not easy if the base classes change after you check your code in. >> > You shouldn't need to know about that if it happens. Modularity, remember? >> >> Yes. And if y

Re: Recursive Property of Octal Numbers

2005-10-01 Thread Dan Christensen
James Stroud <[EMAIL PROTECTED]> writes: > I'm very curious about what is going on here. I'm sure my curiosity has > something to do with ignorance of some fundamental concept of computer > science (maybe that 8 is just a vertical infinity?): > > py> b = '\xb6' > py> b[0] > '\xb6' > py> b[0][0]

Re: How is wxWindows related to Python?

2005-10-01 Thread Sathyaish
Thanks, guys. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Help

2005-10-01 Thread Peter
Ivan Shevanski wrote: >To continue with my previous problems, now I'm trying out classes. But I >have a problem (which I bet is easily solveable) that I really don't get. >The numerous tutorials I've looked at just confsed me.For intance: > > > class Xyz: >... def y

Re: How is wxWindows related to Python?

2005-10-01 Thread Brett Hoerner
I guess it is referring to the closely related (maybe even same dev group? I don't know why the wxWindows docs would mention Python unless they specifically support the wxPython project, too.) "wxWindows + Python = wxPython wxPython is a Python extension module that provides a set of bindings fro

Re: How is wxWindows related to Python?

2005-10-01 Thread Benji York
Sathyaish wrote: > However, I do not understand its correlation with Python. The > documentation page says, "wxWindows 2.4.2: A portable C++ and Python > GUI toolkit." So, my question is, "How is wxWindows related to Python?" "Pure" wxWindows (actually it's been renamed wxWidgets at the demand of

Re: How is wxWindows related to Python?

2005-10-01 Thread Jaime Wyant
That is a reference to wxPython. wxPython is a thin wrapper around the wxWidgets c++ library. But really, it has grown quite a bit lately and has a bunch of neato widgets that aren't included with wxWidgets c++. Visit www.wxpython.org. jw On 1 Oct 2005 18:36:06 -0700, Sathyaish <[EMAIL PROTECT

Re: PyWin SendMessage

2005-10-01 Thread Tim Roberts
Gonzalo Monzón <[EMAIL PROTECTED]> wrote: > >Hi Gerd, > >I'm not really sure of, but I think you must use a message value in >range of WM_USER or WM_APP so this fact maybe let the receiver window >getting bad data... No. WM_COPYDATA is designed specifically for his use case -- interprocess com

How is wxWindows related to Python?

2005-10-01 Thread Sathyaish
My question will sound daft to the good old craftsmen, but they will excuse my nescience on the subject. I come new to the Pythonic world from the land of .NET languages, VB6 and some familiarity in C and C++. I just read about wxWindows last night. From my understanding, it is a GUI framework lik

Re: Soap Question (WSDL)

2005-10-01 Thread Armin
Thanks for the comment everyone. I was considering to write my own soap interface to Flickr as apposed to use the ready to go libraries for Flickr as Fredrik pointed out. I got to get FlickrClient to work. Nonetheless, I am excited to use soap services for my needs. Thanks for your support, Armin

Re: Class Help

2005-10-01 Thread Steven D'Aprano
On Sat, 01 Oct 2005 18:58:45 -0400, Ivan Shevanski wrote: > To continue with my previous problems, now I'm trying out classes. But I > have a problem (which I bet is easily solveable) that I really don't get. > The numerous tutorials I've looked at just confsed me.For intance: [code snipped]

Re: Python 3! Finally!

2005-10-01 Thread Tom Anderson
On Fri, 30 Sep 2005, Stefan Behnel wrote: > I just firefoxed to Python.org and clicked on the bz2 link at > http://python.org/2.4.2/ and what did I get? > > Python-3.4.2.tar.bz2 !! > > Python 3 - what we've all been waiting for, finally, it's there! Not only that, but they've skipped the tiresome

Re: User-defined augmented assignment

2005-10-01 Thread Tom Anderson
On Thu, 29 Sep 2005, Pierre Barbier de Reuille wrote: > a discussion began on python-dev about this. It began by a bug report, > but is shifted and it now belongs to this discussion group. > > The problem I find with augmented assignment is it's too complex, it's > badly explained, it's error-pro

Re: A rather unpythonic way of doing things

2005-10-01 Thread Tom Anderson
On Thu, 29 Sep 2005, Peter Corbett wrote: > One of my friends has recently taken up Python, and was griping a bit > about the language (it's too "prescriptive" for his tastes). In > particular, he didn't like the way that Python expressions were a bit > crippled. So I delved a bit into the lang

Re: Printing and prompting adds a mysterious extra space

2005-10-01 Thread Christoph Haas
On Sat, Oct 01, 2005 at 05:09:48PM -0500, [EMAIL PROTECTED] wrote: > Use sys.stdout.write instead of print. It will solve these problems you are > having. > > If you really want to know what's going on, read the language manual, > http://docs.python.org/ref/print.html It explains the behavior of

Re: Class Help

2005-10-01 Thread Ron Adam
Ron Adam wrote: > Also, > > In your example 'q' is assigned the value 2, but as soon as the method > 'y' exits, it is lost. To keep it around you want to assign it to self.y. Ooops, That should say ... "To keep it around you want to assign it to self.q." <---self.q Cheers, Ron -- http

Background process for ssh port forwarding

2005-10-01 Thread Jesse Rosenthal
Hello all, I'm writing a script which will backup data from my machine to a server using rsync. It checks to see if I am on the local network. If I am, it runs rsync over ssh to 192.168.2.6 using the pexpect module to log in. That's the easy part. Now, when I'm not on the local network, I first w

Re: Class Help

2005-10-01 Thread Jean-François Doyon
You have to crate an instanciation of the class before you can use one. So you want to do: instance = Xyz() instance.y() You won't get any output though, might want to do: class Xyz: def y(self): print 'y worked!' it's more satisfying :) Basically, look into the difference betwe

Re: Class Help

2005-10-01 Thread marduk
On Sat, 2005-10-01 at 18:58 -0400, Ivan Shevanski wrote: > To continue with my previous problems, now I'm trying out classes. But I > have a problem (which I bet is easily solveable) that I really don't get. > The numerous tutorials I've looked at just confsed me.For intance: > > >>>class Xyz:

Re: Class Help

2005-10-01 Thread Ron Adam
Ivan Shevanski wrote: > To continue with my previous problems, now I'm trying out classes. But > I have a problem (which I bet is easily solveable) that I really don't > get. The numerous tutorials I've looked at just confsed me.For intance: > class Xyz: > > ... def y(self): > ...

Class Help

2005-10-01 Thread Ivan Shevanski
To continue with my previous problems, now I'm trying out classes. But I have a problem (which I bet is easily solveable) that I really don't get. The numerous tutorials I've looked at just confsed me.For intance: >>>class Xyz: ... def y(self): ... q = 2 ... >>>Xyz.y() Tracebac

Re: Printing and prompting adds a mysterious extra space

2005-10-01 Thread jepler
Use sys.stdout.write instead of print. It will solve these problems you are having. If you really want to know what's going on, read the language manual, http://docs.python.org/ref/print.html It explains the behavior of this extra space, which is output by a successive 'print' statement. The imp

Re: Nufox : Xul + Python

2005-10-01 Thread Michael
Lars Heuer wrote: >> Oops: > >> http://artyprog.noip.org:8080 > > > Again Oops: :)) > > http://artyprog.no-ip.org:8080 Looks intriguing, but the examples on the site won't work for me. I suspect they won't for anyone else either, because the code in the webpages appears to try and contact a se

Re: Printing and prompting adds a mysterious extra space

2005-10-01 Thread Christoph Haas
On Sat, Oct 01, 2005 at 01:17:41PM -0700, [EMAIL PROTECTED] wrote: > Christoph Haas wrote: > > I'm writing a simple interactive program to maintain a database. > > The goal was to print "> " at the beginning of the line, wait for > > user input and then deal with it. Minimal test program: > > > > i

Re: Zope3 Examples?

2005-10-01 Thread Jaime Wyant
If you're experimenting with frameworks, try out django. I've only completed a few parts of the tutorial. However, what amazes me is how much I got for so little code. It's slick. http://www.djangoproject.com/ jw On 9/30/05, Markus Wankus <[EMAIL PROTECTED]> wrote: > Gerhard Häring wrote: > >

Re: OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-10-01 Thread Running Bare
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > When TV is turned off by a power failure, lots of people that > usually never have sex start making love, and lots of people that > usually use contraception lose their minds and forget about it. > > 9 months later more babies are born, unless that's

Re: Printing and prompting adds a mysterious extra space

2005-10-01 Thread [EMAIL PROTECTED]
Christoph Haas wrote: > Evening... > > I'm writing a simple interactive program to maintain a database. > The goal was to print "> " at the beginning of the line, wait for > user input and then deal with it. Minimal test program: > > import sys; print ">", ; print sys.stdin.readline() > > However

Re: Not defined

2005-10-01 Thread Rob
Thanks for the replies gives me something to chew on. Regards Gramps -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Phases of the moon

2005-10-01 Thread Sherm Pendley
Bart Lateur <[EMAIL PROTECTED]> writes: > As a similar example: I've been told by various women independently, > that "there are more babies born near a full moon." > > So... is there a correlation between insanity and babies being born? :) If you weren't insane before the baby was born, you wil

Re: Nufox : Xul + Python

2005-10-01 Thread bearophileHUGS
Nufox seems a really interesting thing (probably it can even be used to design GUIs for local desktop apps), but the site seems down at the moment. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Printing and prompting adds a mysterious extra space

2005-10-01 Thread Christoph Haas
Evening... I'm writing a simple interactive program to maintain a database. The goal was to print "> " at the beginning of the line, wait for user input and then deal with it. Minimal test program: import sys; print ">", ; print sys.stdin.readline() However when I run the program and enter "foob

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread en.karpachov
On 30 Sep 2005 22:11:46 + John J. Lee wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > > That would make a good Onion (www.TheOnion.com) headline: "Users > > Discover Computer Security Conflicts with Desire for Convenience" > > :-) The Onion, yay. > > Area Man Forgets Work Password, Will

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-01 Thread en.karpachov
On Fri, 30 Sep 2005 21:28:26 -0400 Terry Reedy wrote: > > The lesson for me is to spend much less time on Python discussion and much > more on unfinished projects. So even if I never use the new syntax, I will > have gained something ;-) QOTW? -- jk -- http://mail.python.org/mailman/listinf

Re: Will python never intend to support private,protected and public?

2005-10-01 Thread en.karpachov
On 30 Sep 2005 15:00:39 -0700 Paul Rubin wrote: > Rocco Moretti <[EMAIL PROTECTED]> writes: > > There is little in the way of technical problems that are solved by > > language level enforcement of private variables. The issues in > > question are mostly social ones, and if you're not reading and

Re: OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-10-01 Thread Ulrich Hobelmann
Paul F. Dietz wrote: > Bart Lateur wrote: > >> As a similar example: I've been told by various women independently, >> that "there are more babies born near a full moon." > > That's also a myth. Right, everybody knows that it's not natural (moon) light that influences reproductive behavior, it'

Re: Help with syntax warnings

2005-10-01 Thread Peter Otten
Ivan Shevanski wrote: > Well I've been experimenting with the warning filter and it doesn't seem > to be working. . .I think it has something to do with the fact that > warnings are issued during the compiling and not during the excecution. . > .So the filter would come in to late to block them? A

Re: Nufox : Xul + Python

2005-10-01 Thread Lars Heuer
Hi, > Oops: > http://artyprog.noip.org:8080 Again Oops: :)) http://artyprog.no-ip.org:8080 Best regards, Lars -- http://semagia.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-10-01 Thread Paul F. Dietz
Bart Lateur wrote: > As a similar example: I've been told by various women independently, > that "there are more babies born near a full moon." That's also a myth. Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Phases of the moon

2005-10-01 Thread Mike Meyer
Bart Lateur <[EMAIL PROTECTED]> writes: > Steven D'Aprano wrote: > >>A skeptical policeman who says he doesn't actually believe the moon >>affects behaviour nevertheless reports that "last weekend" things were >>really crazy, and it was a full moon. Somebody writes in to correct him: >>no, the ful

Re: Nufox : Xul + Python

2005-10-01 Thread salvatore . didio
Oops: http://artyprog.noip.org:8080 -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Unless your compiler detects and flags passing private variables to >> external functions all you've got is a convention that you don't pass >> private variables to external functions. > Yes, the point is tha

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-01 Thread Ron Adam
Reinhold Birkenfeld wrote: > Ron Adam >>I think I'm going to make it a habit to put parentheses around these >>things just as if they were required. > Yes, that's the best way to make it readable and understandable. > > Reinhold Now that the syntax is settled, I wonder if further discussion

Re: A Moronicity of Guido van Rossum

2005-10-01 Thread gene tani
(posted c.l.python ONLY) Xah (may i call you Xah?) SOrry to say, but your older posts were much funnier: http://groups.google.com/group/comp.lang.lisp/browse_frm/thread/15f7015d23a6758e/9ee26da60295d7c8?lnk=st&q=&rnum=5&hl=en#9ee26da60295d7c8 (also seems your anti-cult cult really hasn't gotten

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-01 Thread Sam
Leif K-Brooks writes: Sam wrote: And "foo if bar" is Perl-ish; yet, even Perl has the ? : operators. What _isn't_ Perl-ish? BASIC? pgp7WNg5zZz7a.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with syntax warnings

2005-10-01 Thread Fredrik Lundh
Ivan Shevanski wrote: > Well I've been experimenting with the warning filter and it doesn't seem to > be working. . .I think it has something to do with the fact that warnings > are issued during the compiling and not during the excecution. . .So the > filter would come in to late to block them? A

Re: Help with syntax warnings

2005-10-01 Thread Ivan Shevanski
Well I've been experimenting with the warning filter and it doesn't seem to be working. . .I think it has something to do with the fact that warnings are issued during the compiling and not during the excecution. . .So the filter would come in to late to block them? Any ideas? -Ivan __

Re: A Moronicity of Guido van Rossum

2005-10-01 Thread Xah Lee
the programers in the industry, including bigwigs such as Guido or that Larry Wall fuckhead, really don't know shit about computer languages. Sometimes i get pissed by Stephen Wolfram's megalomaniac cries, but in many ways, i think his statements about the fucking moronicities of the academicians a

Re: Python 3! Finally!

2005-10-01 Thread Duncan Booth
Stefan Behnel wrote: > Hi! > > I just firefoxed to Python.org and clicked on the bz2 link at > http://python.org/2.4.2/ and what did I get? > > Python-3.4.2.tar.bz2 !! > > Python 3 - what we've all been waiting for, finally, it's there! > > Weird, though, the md5sum is the same as for the Pyth

Re: OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-10-01 Thread Bart Lateur
Steven D'Aprano wrote: >A skeptical policeman who says he doesn't actually believe the moon >affects behaviour nevertheless reports that "last weekend" things were >really crazy, and it was a full moon. Somebody writes in to correct him: >no, the full moon is actually "tomorrow". As a similar exa

Re: list.join()... re.join()...? Do they exist? (newbie questions...)

2005-10-01 Thread Benji York
googleboy wrote: > To get it to work I did this: > > > List[0] = list0 > List[1] = list1 > List[2] = list2 > List[3] = list3 > cat_list = list0 + '|' + flatblurb + '|' + flatcontents + '|' + flates > + '\n' > file.write(concat_list) > > But it seems to me that there is probably something more py

list.join()... re.join()...? Do they exist? (newbie questions...)

2005-10-01 Thread googleboy
Hi. In some google posts I searched suggested that there was a list.join() thing that I assume works like string.join [which I notice is now deprecated in favour of S.join()] It seems that I have been misled. I start with a text file that I split up to run some formatting over the various sectio

Re: Not defined

2005-10-01 Thread Pekka Karjalainen
I looked around a bit and found the answer. At least the change I recommend below worked for me. In article <[EMAIL PROTECTED]>, Rob wrote: >When trying the basic tutorial for cgkit I always seem to get a not defined >error as follows. > >Pythonwin GUI > from cgkit import * This is "from cg

Re: Not defined

2005-10-01 Thread Kent Johnson
Rob wrote: > When trying the basic tutorial for cgkit I always seem to get a not defined > error as follows. > > Pythonwin GUI > > from cgkit import * Sphere() > > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'Sphere' is not defined Which version of c

Re: Not defined

2005-10-01 Thread Pekka Karjalainen
In article <[EMAIL PROTECTED]>, Rob wrote: >Forgive me please if this is not the proper place for this ? I am trying to >keep an active brain :) Seems proper to me :) You can see what you've just imported by using the built-in dir() function. Here's an example from my PyWin window: >>> dir() [

Re: Where to find python c-sources

2005-10-01 Thread Michael
John J. Lee wrote: > "Tor Erik Sønvisen" <[EMAIL PROTECTED]> writes: >> "Erik Max Francis" <[EMAIL PROTECTED]> wrote in message >> > Tor Erik S�nvisen wrote: >> >> I need to browse the socket-module source-code. I believe it's >> >> contained in the file socketmodule.c, but I can't locate this file

Re: pywordnet install problems

2005-10-01 Thread vdrab
hello Steve, I had WordNet 2.0 installed but just now I tried it with 1.7.1 as well and the result was the same. It's a shame, glossing over the pywordnet page really made me want to give it a try. Are there any workarounds you can recommend ? I had a quick look at the wordnet.py file, and it look

Nufox : Xul + Python

2005-10-01 Thread salvatore . didio
Hello, You can test Nufox (with Firefox) at : http://artyprog.no-ip.org Regards -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 308 accepted - new conditional expressions

2005-10-01 Thread John J. Lee
"Michele Simionato" <[EMAIL PROTECTED]> writes: [...] > Guido could have decided two years ago, sparing us the PEP 308 ordalia. > So, I am happy that at the end we will have a conditional operator, but > I am not happy of how the process worked out. It was just an enormous > waste of resources that

Re: Google Not Universal Panacea [was: Re: Where to find python c-sources]

2005-10-01 Thread Erik Max Francis
Steve Holden wrote: > I don't think "The source tarball on python.org" could claim to be > telling him "exactly where it was" given that my copy of the web site > has 341 MB of stuff in it. He doesn't have to search through the whole thing, there's a link on the front page, so this 341 MB figu

Re: Recursive Property of Octal Numbers

2005-10-01 Thread Paul Rubin
James Stroud <[EMAIL PROTECTED]> writes: > I'm very curious about what is going on here. I'm sure my curiosity has > something to do with ignorance of some fundamental concept of computer > science (maybe that 8 is just a vertical infinity?): Python doesn't have a character type. A character is

Re: Google Not Universal Panacea [was: Re: Where to find python c-sources]

2005-10-01 Thread Steve Holden
Erik Max Francis wrote: > Steve Holden wrote: > > >>While a snappish "go and look it up on Google" might suffice for a >>mouthy apprentice who's just asked their thirteenth question in the last >>half hour, it's (shall we say) a little on the brusque side for someone >>who only appears on the

Re: Recursive Property of Octal Numbers

2005-10-01 Thread PoD
On Fri, 30 Sep 2005 15:40:51 -0700, James Stroud wrote: > I'm very curious about what is going on here. I'm sure my curiosity has > something to do with ignorance of some fundamental concept of computer > science (maybe that 8 is just a vertical infinity?): > > py> b = '\xb6' > py> b[0] > '\xb6

Recursive Property of Octal Numbers

2005-10-01 Thread James Stroud
I'm very curious about what is going on here. I'm sure my curiosity has something to do with ignorance of some fundamental concept of computer science (maybe that 8 is just a vertical infinity?): py> b = '\xb6' py> b[0] '\xb6' py> b[0][0] '\xb6' py> b[0][0][0] '\xb6' py> b[0][0][0][0] '\xb6' py>

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > A cautionary tale of what happens when religious wars enter programming > debates. For all I know, Paul Rubin is intelligent, gentle, kind to > animals and small children, generous, charitable and modest. Don't bet on it. > But touch his religious bel

Re: A Moronicity of Guido van Rossum

2005-10-01 Thread Gerrit Holl
Tony Meyer wrote: > X-Spambayes-Classification: ham; 0.008 > > On 30/09/2005, at 10:56 PM, Gerrit Holl wrote: > > Tony Meyer wrote: > >> X-Spambayes-Classification: ham; 0.048 > > Unless I'm misreading things, that's *my* message that scored 0.048 > (the "from:addr:ihug.co.nz", "from:name:tony

Not defined

2005-10-01 Thread Rob
When trying the basic tutorial for cgkit I always seem to get a not defined error as follows. Pythonwin GUI >>> from cgkit import * >>> Sphere() Traceback (most recent call last): File "", line 1, in ? NameError: name 'Sphere' is not defined >>> b=Box(name="Cube", pos=(1.5,2,0)) Traceback (mos

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > Unless your compiler detects and flags passing private variables to > external functions all you've got is a convention that you don't pass > private variables to external functions. Yes, the point is that it's something that you can check for by examining

Re: what does 0 mean in MyApp(0)

2005-10-01 Thread vincent wehren
"Alex" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Thanks for the replies. It seems that I have three options | 1. app=MyApp() | 2. app=MyApp(0) | 3. app=MyApp('myfile.txt') | | 1. In the first case the output stream will be set to stdout/stderr, | which means that errors w

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-01 Thread Leif K-Brooks
Sam wrote: > And "foo if bar" is Perl-ish; yet, even Perl has the ? : operators. What _isn't_ Perl-ish? -- http://mail.python.org/mailman/listinfo/python-list