ANNOUNCE: pydf 0.9.8.3

2005-08-05 Thread garabik-news-2005-05
After a long time, a new version of pydf is available. pydf displays the amount of used and available space on your filesystems, just like df, but in colours. The output format is completely customizable. Pydf was written and works on Linux, but should work also on other modern UNIX systems.

Re: time.strftime %T missing in 2.3

2005-08-05 Thread Andy Leszczynski
Robert Kern wrote: Andy Leszczynski wrote: Python 2.2/Unix time.strftime(%T) '22:12:15' time.strftime(%X) '22:12:17' Python 2.3/Windows time.strftime(%X) '22:12:47' time.strftime(%T) '' From http://docs.python.org/lib/node252.html The full set of format codes

Re: IronPython 0.9 Released

2005-08-05 Thread EP
Luis M. Gonzalez Announced: IronPython 0.9 Released(8/2/2005 10:28:41 AM) http://www.microsoft.com/downloads/details.aspx?familyid=cf5ae627-5df1-4f8a-ba8b-d64f0676f43fdisplaylang=en MS website says: System Requirements * Supported Operating Systems: Windows Server 2003; Windows XP

Re: IronPython 0.9 Released

2005-08-05 Thread EP
Oops. Nevermind. [like the old Saturday Night Live] Original Message From: EP [EMAIL PROTECTED] To: python-list@python.org Date: Thu, Aug-4-2005 10:09 PM Subject: Re: IronPython 0.9 Released Luis M. Gonzalez Announced: IronPython 0.9 Released(8/2/2005

Re: Advanced concurrancy

2005-08-05 Thread Stefan Rank
on 04.08.2005 11:15 Matt Hammond said the following: Hi Stefan, It seems as though all components basically have to do busy waiting now. You are right - components are, for the most part, busy-waiting. Which is not a good thing! So do you plan on including a kind of scheduler-aware

PEP-343 - Context Managment variant

2005-08-05 Thread falcon
Sorry. I was wrong about global statement. Then examples seems to be even more intricate: def Synhronised(lock,func): lock.acquire() try: func() finally: lock.release() lock=Lock() def Here_I_work(*a): return 1 # Stub def asd(a): return

Re: Newbie Program

2005-08-05 Thread Devan L
Eric wrote: I am reading a book on Python and ran across and exercise that I just can't seem to figure out. Its pretty simple, but I just can't get past a certain point. The task is to create a program that flips a coin 100 times and keeps track of the total of heads and tails which is

Re: installing python2.4.1

2005-08-05 Thread Belyh G.P.
Grig Gheorghiu wrote: I had a similar problem when trying to compile Python 2.4.1 on AIX. The configure script complained about not finding 'cc_r'. I simply did 'ln -s /usr/bin/gcc /usr/bin/cc_r' and that solved my problem. You may consider doing the same for cclplus. Grig Thank for your

Re: IronPython 0.9 Released

2005-08-05 Thread could ildg
Why is iron python runs so fast but jython runs so slow while C# and java seem very much the same? On 8/5/05, EP [EMAIL PROTECTED] wrote: Oops. Nevermind. [like the old Saturday Night Live] Original Message From: EP [EMAIL PROTECTED] To:

Re: Wheel-reinvention with Python

2005-08-05 Thread Torsten Bronger
Hallöchen! Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: [...] You didn't answer the question

Re: using Pyro for network games

2005-08-05 Thread garabik-news-2005-05
Michael Rybak [EMAIL PROTECTED] wrote: gn20kjss Do not use pyro, use simple UDP protocol. gn20kjss I've written networked tetris in python, communicating via gn20kjss UDP protocol, and used it successfully on very congested lines. Would you please be so kind to share that with me? That would

Re: Euclid's Algorithm in Python?

2005-08-05 Thread Antoon Pardon
Op 2005-08-05, Jordan Rastrick schreef [EMAIL PROTECTED]: Raising an assertion error for a b is a bit of overkill, since its not really a case of bad input. So normally you see Euclid done like this: def gcd(a,b): # All lowercase for a function is a bit more conventional. if a b:

Re: IronPython 0.9 Released

2005-08-05 Thread EP
I've got both 1.1 and 2.0 on this machine... Note that the warning applies to /language/: as in English or French... You can not install French if you have an English version installed. yes, my apologies to all things Iron and or Python. language and version can be confusing if one stays

Re: Reliable destruction

2005-08-05 Thread Pierre-Eric . Melchy
Hello, your idea sounds good and handles the exception on teardown as well. (I did not think about the if XXX!=None check in teardown()) I will now provide each of the instruments with an explicit shutdown() method which frees the interface card as well. These methods will be called in a finally

Re: [ANN] pylint 0.7

2005-08-05 Thread Sylvain Thenault
On Thu, 04 Aug 2005 14:50:18 -0400, François Pinard wrote: [Sylvain Thénault] I'm pleased to announce a new release of PyLint. Bonjour Sylvain. J'ai la compulsion de dire bonjour, et merci! (On peut me tutoyer sans problème.) Bonjour ! C'est une compulsion plutôt sympathique ! ;) Ce

Re: [ANN] pylint 0.7

2005-08-05 Thread Sylvain Thénault
On Thu, 04 Aug 2005 14:50:18 -0400, François Pinard wrote: [Sylvain Thénault] I'm pleased to announce a new release of PyLint. Bonjour Sylvain. J'ai la compulsion de dire bonjour, et merci! (On peut me tutoyer sans problème.) Bonjour ! C'est une compulsion plutôt sympathique ! ;) Ce

Re: Py: a very dangerous language

2005-08-05 Thread Benjamin Niemann
Luis M. Gonzalez wrote: This is great! It's absolutely useless, like a real therapist, but it's free! Never heard of Eliza? Even Emacs has it built in (Menu Help - Emacs Psychiatrist). -- Benjamin Niemann Email: pink at odahoda dot de WWW: http://www.odahoda.de/ --

Re: time.strftime %T missing in 2.3

2005-08-05 Thread Michael Hoffman
Andy Leszczynski wrote: I accept that, but still pain. Took me a while to filter out the problem in the code running on the Unix and not on M$. This is one of the reasons I usually use Cygwin Python when I can. Stuff is much less likely to mysteriously break when moving from UNIX to

Some question about setuptools module

2005-08-05 Thread limodou
I'm new to setuptools. One question is: Recently I want to use setuptools for a project. My command line is just like : python setup.py sdist --formats=gztar But I found some deleted files also included in the package. These files are .pyc suffixed. I use subversion. I checked the setuptools'

Re: Art of Unit Testing

2005-08-05 Thread Michael Hudson
Terry Reedy [EMAIL PROTECTED] writes: Paul Rubin http://phr.cx@NOSPAM.invalid wrote in message news:[EMAIL PROTECTED] I knew there was some other one before unittest came along but I thought unittest was supposed to replace the older stuff. I believe unittest was an alternative rather than

Re: Some question about setuptools module

2005-08-05 Thread Robert Kern
limodou wrote: I'm sorry may be this letter is not suit for this maillist. You'll get better help on the Distutils-SIG list. http://mail.python.org/mailman/listinfo/distutils-sig/ Phillip Eby hangs out there for the care and feeding of setuptools adopters. -- Robert Kern [EMAIL PROTECTED]

Re: installing python2.4.1

2005-08-05 Thread TPJ
There are two things I don't like about messages you got. checking for g++ ... no and C++ compiler cannot create executables There are two possibilities I can think of now. The first is you have no g++ installed. In this case you should install it (I think it would be very easy, you could

Re: Some question about setuptools module

2005-08-05 Thread limodou
2005/8/5, Robert Kern [EMAIL PROTECTED]: limodou wrote: I'm sorry may be this letter is not suit for this maillist. You'll get better help on the Distutils-SIG list. http://mail.python.org/mailman/listinfo/distutils-sig/ Phillip Eby hangs out there for the care and feeding of

Re: Parallel arithmetic?

2005-08-05 Thread jburgy
Dennis Lee Bieber wrote: On Thu, 04 Aug 2005 20:59:33 -0500, Terrance N. Phillip [EMAIL PROTECTED] declaimed the following in comp.lang.python: Thank-you very much for all the excellent replies. I'm thinking of using this to determine if a sequence is a run (as in a card game). If I've

Re: Newbie Program

2005-08-05 Thread Daniel Schüle
Eric schrieb: I am reading a book on Python and ran across and exercise that I just can't seem to figure out. Its pretty simple, but I just can't get past a certain point. The task is to create a program that flips a coin 100 times and keeps track of the total of heads and tails which is

Re: Py: a very dangerous language

2005-08-05 Thread Michael Hudson
Benjamin Niemann [EMAIL PROTECTED] writes: Luis M. Gonzalez wrote: This is great! It's absolutely useless, like a real therapist, but it's free! Never heard of Eliza? Even Emacs has it built in (Menu Help - Emacs Psychiatrist). M-x psytab return Cheers, mwh -- Gullible editorial

The ONLY thing that prevents me from using Python

2005-08-05 Thread Kevin
I have been using java (jsp/servlets), vb/asp and perl for a few years. Almost all my projects are web site development related, and many of my clients' web sites are hosted on those shared web hosting services. The problem is that it's difficult to find hosting services with Python installed and

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Bill Mill
snip I really wish Python could be more widely available on web server machines. This is just my own experience and I would like to hear your comments. I would like a pony... no, wait, even better, a unicorn! Peace Bill Mill bill.mill at gmail.com PS (the gist is, why don't you offer some

why no arg, abs methods for comlex type?

2005-08-05 Thread Daniel Schüle
Hello all, I often have to deal with complex numbers using python iteractive as calculator I wonder why there are no methods like arg, abs well one can use c = 1+1j abs(c) In my opinion it would also be nice to have the possibility to write it as c.abs() it looks more OO unfortunately there

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Daniel Schüle
I would also like to see some more functions to make calculations with complex number more convenient e.g. c = 27 c = 27+0j -- http://mail.python.org/mailman/listinfo/python-list

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Benji York
Kevin wrote: I have been using java (jsp/servlets), vb/asp and perl for a few years. Almost all my projects are web site development related, and many of my clients' web sites are hosted on those shared web hosting services. The problem is that it's difficult to find hosting services with

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Istvan Albert
There are plenty of webhosts that offer python, do a little research. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's CSV reader

2005-08-05 Thread Andrew McLean
In article [EMAIL PROTECTED], Stephan [EMAIL PROTECTED] writes Thank you all for these interesting examples and methods! You are welcome. One point. I think there have been at least two different interpretations of precisely what you task is. I had assumed that all the different header lines

Help on Swig

2005-08-05 Thread Gurpreet Sachdeva
Hi, I am facing a problem with swig while using Pointers: Array.c #includestdio.h void Array(int *ptr) { int i; for (i = 0; i 6; i++) { printf(Index: %d - %d\n,i, *(ptr + i)); } } Array.i %module Array %{ extern void Array(int *ptr); #includestdio.h %} extern void

Re: time.clock() or time.time()

2005-08-05 Thread Magnus Lycka
Shane Hathaway wrote: However, isn't this thoroughly un-Pythonic? No wonder people have to ask. Only if they've never read KR, and I thought that was compulsory! ;^) There are a few python libraries, such as time and math, that are basically just thin wrappers around standard C libraries. In

Re: Filtering terminal commands on linux

2005-08-05 Thread Adriaan Renting
Thank you very much for you answer. We are using gear for a couple of reasons, the most improtant being that we use it in a production environment and it's the only package with commercial support under Linux that supports Dual Layer DVDs. (at least according to the person that made the decision

An editable buffer for the Python shell (similar to '\e' on sql prompts)

2005-08-05 Thread Steve
Hi, When working in the python command shell, I often end up writing more than 10+ lines of indented code before making a stupid typo. This got irritating enough for me to do something about it. So, here's an 'InteractiveConsole with an editable buffer'.

Re: An editable buffer for the Python shell (similar to '\e' on sql prompts)

2005-08-05 Thread Robert Kern
Steve wrote: Hi, When working in the python command shell, I often end up writing more than 10+ lines of indented code before making a stupid typo. This got irritating enough for me to do something about it. So, here's an 'InteractiveConsole with an editable buffer'.

Re: API class creation

2005-08-05 Thread kman3048
Thanks, that helped a lot. Anybody who wants to attempt the same might find the source code tree of Python i.e. file src/Modules/cdmodule.c helpful. --Matt Daniel Dittmar wrote: kman3048 wrote: Hello, as a relative newcomer to Python API programming I've got a problem: To extend

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Terry Reedy
Kevin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The problem is that it's difficult to find hosting services with Python installed and supported. The Python Wiki has lists of both free and commercial hosting services. The top page is http://wiki.python.org/moin/PythonHosting.

Oreilly CodeZoo

2005-08-05 Thread gene tani
http://radar.oreilly.com/archives/2005/08/codezoo_program_1.html http://python.codezoo.com/ Nice to see that python is in-demand, but what is the rationale for another ASPN cookbook/Parnassus / pypackage / dmoz type repository? -- http://mail.python.org/mailman/listinfo/python-list

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Roy Smith
Kevin [EMAIL PROTECTED] wrote: The problem is that it's difficult to find hosting services with Python installed and supported. I just googled for [web hosting python] and got 1,250,000 hits. I can personally recommend panix.com, but there's plenty of other choices too. --

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Kevin wrote: cut, can't get as many python web hosters as I want Well, for some strange reason I have never found that to be a problem. But that is perhaps because I'm an administrator and I want full root access, install the OS as I see fit and don't want others on the same (virtual)box. So

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Terry Reedy
Daniel Schüle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I wonder why there are no methods like arg, abs well one can use c = 1+1j abs(c) In my opinion it would also be nice to have the possibility to write it as c.abs() it looks more OO Python is object based but not

newbie question; output from simple print statement

2005-08-05 Thread epost2
Can someone explain to me the output of this simple script? I wonder why ['test1.txt'] is printed before files in c:\, and also why None shows up? in file test.py: def main(): print files in c:\ :%s % ListFiles(c:\) def ListFiles(path): for root,dirs,files in

Making a timebomb

2005-08-05 Thread callmebill
I have a server that right now runs infinitely. I'd like to make it die after some amount of time. I was thinking of having a timebomb thread that starts when the server starts. The timebomb sits, and sleeps for the specified timeout period (e.g., 5 hours), then does something to make the main

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Dan Sommers
On Fri, 05 Aug 2005 15:42:41 +0200, Daniel Schüle [EMAIL PROTECTED] wrote: Hello all, I often have to deal with complex numbers using python iteractive as calculator I wonder why there are no methods like arg, abs well one can use c = 1+1j abs(c) In my opinion it would also be nice to

minidom xml non ascii / unicode files

2005-08-05 Thread webdev
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3 script that grabs some web pages from the web, regex parse the data and stores it localy to xml file for

Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread stephen
Is there a better way of doing this so that I don't have to go through every permutation of possible arguments (the example here from the matplotlib 'plot' function): def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''): if linecolor and linewidth: plot(xvalues, yvalues,

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Dan Bishop
Terry Reedy wrote: Daniel Schüle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ... unfortunately there is no arg method to get the angle of the complex number I agree that this is a deficiency. I would think .angle() should be a no-param method like .conjugate(), though its

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Kevin
Thank you all for the messages. I agree with Bill on that I was just whining here. I should do a bit more research. I guess I am just getting accustomed to the endless supplies of asp/php hosting services. All I need to do is shopping for the lowest price/good service. But it's not the case for

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread Robert Kern
[EMAIL PROTECTED] wrote: Is there a better way of doing this so that I don't have to go through every permutation of possible arguments (the example here from the matplotlib 'plot' function): Usually, you would just make the defaults for linecolor and linewidth the same as the defaults for

Re: newbie question; output from simple print statement

2005-08-05 Thread Paul Watson
[EMAIL PROTECTED] wrote: Can someone explain to me the output of this simple script? I wonder why ['test1.txt'] is printed before files in c:\, and also why None shows up? in file test.py: def main(): print files in c:\ :%s % ListFiles(c:\) def

Do I need to have site.py available or not ?

2005-08-05 Thread marcus . obrien
Hi, on startup my embedded python comes up with import site failed use -v. Later python crashes on Pyrun_file(). This is the first time I have used python and I would like to know does it require site.py to be read in, and has anyone got an idea how to pass in the -v without using the python -v

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Daniel Schüle
Hi Terry, In my opinion it would also be nice to have the possibility to write it as c.abs() it looks more OO Python is object based but not rigidly OO in syntax or looks. This is an intentional design decision. Not being gratuitiously redundant is another. I agree, redundancy

Re: newbie question; output from simple print statement

2005-08-05 Thread epost2
thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Daniel Schüle
c = 1+1j c.arg(angle_mode = cmath.GRAD) - 45.0 Is that right? The result looks more like Degrees... maybe I confuse, in german one would say 45 Grad I took a freedom to translate it directly :) well, my calculator shows a D which most likely stands for Degree, I cannot tell for sure

Re: Euclid's Algorithm in Python?

2005-08-05 Thread jepler
On Thu, Aug 04, 2005 at 08:13:11PM -0700, Jordan Rastrick wrote: Raising an assertion error for a b is a bit of overkill, since its not really a case of bad input. So normally you see Euclid done like this: [snipped] My point was not so much that this was the ultimate implementation of GCD,

Re: Oreilly CodeZoo

2005-08-05 Thread Hamish Macpherson
A sexy design? But yes, there are quite a few out there. -- http://mail.python.org/mailman/listinfo/python-list

Syntax error after upgrading to Python 2.4

2005-08-05 Thread frr
Hi, After upgrading to 2.4 (from 2.3), I'm getting a weird syntax error: import themes Traceback (most recent call last): File interactive input, line 1, in ? File themes.py, line 564 font = self.font.makeBlackAndWhite(), additive = self.additive,

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Magnus Lycka
Martin P. Hellwig wrote: Kevin wrote: cut, can't get as many python web hosters as I want Well, for some strange reason I have never found that to be a problem. If you develop software for an external customer, and they have an existing web site run by some ISP that you have no control over,

Re: Making a timebomb

2005-08-05 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I have a server that right now runs infinitely. I'd like to make it die after some amount of time. I was thinking of having a timebomb thread that starts when the server starts. The timebomb sits, and sleeps for the specified timeout period (e.g., 5 hours), then

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread en.karpachov
On 5 Aug 2005 08:34:32 -0700 [EMAIL PROTECTED] wrote: Is there a better way of doing this so that I don't have to go through every permutation of possible arguments (the example here from the matplotlib 'plot' function): def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''):

Suggestions for optimizing my code

2005-08-05 Thread drife
Hello, I am looking for suggestions for how I might optimize my code (make it execute faster), and make it more streamlined/ elegent. But before describing my code, I want to state that I am not a computer scientist (I am an atmospheric scientist), and have but a rudimentary understanding of OO

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread John Hunter
stephen == stephen [EMAIL PROTECTED] writes: stephen Is there a better way of doing this so that I don't have stephen to go through every permutation of possible arguments stephen (the example here from the matplotlib 'plot' function): You can make linecolor=None and

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Magnus Lycka wrote: Martin P. Hellwig wrote: Kevin wrote: cut, can't get as many python web hosters as I want Well, for some strange reason I have never found that to be a problem. If you develop software for an external customer, and they have an existing web site run by some ISP

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Paul McGuire
Just because a hosting service doesn't list Python on their web page doesn't mean that it's not available. My company's service (LunarPages) supports Python, and only recently has it started appearing on their online literature. Once you find your service based on price/support/etc., send them

Re: minidom xml non ascii / unicode files

2005-08-05 Thread Benjamin Niemann
webdev wrote: lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3 script that grabs some web pages from the web, regex parse the data and stores it

Re: Making a timebomb

2005-08-05 Thread Benjamin Niemann
[EMAIL PROTECTED] wrote: I have a server that right now runs infinitely. I'd like to make it die after some amount of time. I was thinking of having a timebomb thread that starts when the server starts. The timebomb sits, and sleeps for the specified timeout period (e.g., 5 hours), then

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread Bengt Richter
On 5 Aug 2005 08:34:32 -0700, [EMAIL PROTECTED] wrote: Is there a better way of doing this so that I don't have to go through every permutation of possible arguments (the example here from the matplotlib 'plot' function): def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''): if

Re: Suggestions for optimizing my code

2005-08-05 Thread Wojciech Mula
drife wrote: [...] for row in range(len(Y)): for col in range(0,row): In this case you should use 'xrange' instead 'range'. w. -- http://mail.python.org/mailman/listinfo/python-list

Re: socket and os.system

2005-08-05 Thread Donn Cave
In article [EMAIL PROTECTED], Peter Hansen [EMAIL PROTECTED] wrote: mfaujour wrote: I HAVE THIS PYTHON PROGRAMM: [snip] socket.error: (98, 'Address already in use') DOES SOMEONE HAS AN IDEA ? PLEASE learn to

Re: Suggestions for optimizing my code

2005-08-05 Thread Robert Kern
drife wrote: Hello, I am looking for suggestions for how I might optimize my code (make it execute faster), and make it more streamlined/ elegent. But before describing my code, I want to state that I am not a computer scientist (I am an atmospheric scientist), and have but a rudimentary

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-08-05 Thread Ruben Baumann
windozbloz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bye Bye Billy Bob... I'm back with one more question, then I'll chill. I have scoured the news and net for info about Borlands KYLIX 3 and have found little technical info about it. Their screen shots are very impressive,

Re: pain

2005-08-05 Thread Kent Johnson
Mike Meyer wrote: Grant Edwards [EMAIL PROTECTED] writes: On 2005-08-03, Mage [EMAIL PROTECTED] wrote: Isn't jython slower (I mean performance) than java? As well as I understand jython code will be interpreted twice. The compiled jython will pay a performance penalty for being dynamic.

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread fuzzylollipop
lazy newbie programmers, that is what the world needs more of for sure! -- http://mail.python.org/mailman/listinfo/python-list

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread D H
I would highly recommend user-mode linux (UML) hosting, like bytemark or Linode: http://user-mode-linux.sourceforge.net/uses.html Starting around the same price as average shared hosting, you get your own virtual linux box (i recommend debian), on which you can install java, mod_python, php,

Re: Passing a variable number of arguments to a wrapped function.

2005-08-05 Thread stephen
Using 'plot(*args, **kwargs)' does seem to work just fine. Thanks to all for their suggestions. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Erik Max Francis
Daniel Schüle wrote: what do you think about it? maybe there exists some proposals aiming this goal? Derive your own subclass of complex and define those methods. -- Erik Max Francis [EMAIL PROTECTED] http://www.alcyone.com/max/ San Jose, CA, USA 37 20 N 121 53 W AIM erikmaxfrancis I

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Erik Max Francis
Daniel Schüle wrote: maybe I confuse, in german one would say 45 Grad I took a freedom to translate it directly :) well, my calculator shows a D which most likely stands for Degree, I cannot tell for sure Probably. In English, you have degrees and gradians, which aren't the same thing;

Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-05 Thread [EMAIL PROTECTED]
I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a candidate for Python 3000 yet? Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Art of Unit Testing

2005-08-05 Thread Christoph Zwerschke
I had tested the above only with Python 2.4 but I just noticed it does not work with Python 2.3. The following works also with Python 2.3: import unittest class MyTestCase(unittest.TestCase): def setUp(self): print setUp, def tearDown(self): print tearDown, def

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Reinhold Birkenfeld
Erik Max Francis wrote: Daniel Schüle wrote: maybe I confuse, in german one would say 45 Grad I took a freedom to translate it directly :) well, my calculator shows a D which most likely stands for Degree, I cannot tell for sure Probably. In English, you have degrees and gradians, which

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Terry Reedy
Daniel Schüle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I agree that this is a deficiency. I would think .angle() should be a I don't know what nomenclature is used in english speaking mathematical world for angle of a complex number I learned it in german as Arg(z) .. Arg

Re: Do I need to have site.py available or not ?

2005-08-05 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, on startup my embedded python comes up with import site failed use -v. Later python crashes on Pyrun_file(). This is the first time I have used python and I would like to know does it require site.py to be read in, and has anyone

Re: Syntax error after upgrading to Python 2.4

2005-08-05 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] After upgrading to 2.4 (from 2.3), I'm getting a weird syntax error: import themes Traceback (most recent call last): File interactive input, line 1, in ? File themes.py, line 564 font = self.font.makeBlackAndWhite(),

How to get ScrollRegion to adjust w/ window-size?

2005-08-05 Thread syed_saqib_ali
Below is a simple code snippet showing a Tkinter Window bearing a canvas and 2 connected scrollbars (Vertical Horizontal). Works fine. When you shrink/resize the window the scrollbars adjust accordingly. However, what I really want to happen is that the area of the canvas that the scrollbars

Re: why no arg, abs methods for comlex type?

2005-08-05 Thread Daniel Schüle
[...] I am aware of the usage of argument to mean the angle in polar representation, but I don't like it. The word argument already has two other meanings, one in common English, the other in math/CS. The latter meaning is the inputs to a function, and that is how the word is used in

Re: Do I need to have site.py available or not ?

2005-08-05 Thread Reinhold Birkenfeld
Terry Reedy wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, on startup my embedded python comes up with import site failed use -v. Later python crashes on Pyrun_file(). This is the first time I have used python and I would like to know does it require site.py to be

ANN : dxPython 0.3.0

2005-08-05 Thread Gang Seong Lee
Just opened simple webpage. dxPython ~~ dxPython is a set of interface modules to use DirectX C++ libraries from standard Python programming language. http://dxpython.pythonworld.net/ Comments, suggestions are welcome. Gang Seong LEE [EMAIL PROTECTED] --

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-05 Thread D H
[EMAIL PROTECTED] wrote: I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a candidate for Python 3000 yet? It is likely that more people would find

Re: Making a timebomb

2005-08-05 Thread Cantankerous Old Git
[EMAIL PROTECTED] wrote: I have a server that right now runs infinitely. I'd like to make it die after some amount of time. I was thinking of having a timebomb thread that starts when the server starts. The timebomb sits, and sleeps for the specified timeout period (e.g., 5 hours), then

Creating a virtual file system

2005-08-05 Thread Atila Olah
I'm working on a project to implement a simple cross-platform file sharing protocol (using Python) that is similar to HTTP, and I have to write a GUI for Windows and Linux. But let's start with the harder one: Windows. My question is: How do I implement a virtual partition that acts like a real

Re: minidom xml non ascii / unicode files

2005-08-05 Thread Martin v. Löwis
webdev wrote: 1. when fetching a web page from the net, how am i supposed to know how it's encoded.. And can i decode it to unicode and encode it back to a byte string so i can use it in my code, with the charsets i want, like utf-8.. ? It depends on the content type. If the HTTP header

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-05 Thread Atila Olah
I think D H is right. Or even if you'd find out that most of the people would better like 'modulescope' or 'module', (what is, i think, imposible), you'd destroy the backward-compatibility with older versions of Puthon if you implement it. But it won't be implemented. Trust me. --

Re: ANN : dxPython 0.3.0

2005-08-05 Thread Atila Olah
In my opinion, you shoud make an (100%) English version of the site, if you want more developers to join worldwide. -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-05 Thread John Roth
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a candidate for Python 3000 yet? Chris A much

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or'module' better?)

2005-08-05 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've heard 2 people complain that word 'global' is confusing. I did to at first. Perhaps 'modulescope' or 'module' would be better? Global is an somewhat short adjective that plausibly becomes a noun when pluralized. That is hard

Problem with new python (2.4.1) installation

2005-08-05 Thread john . coppens
Hello people. After installing python 2.4.1 (previous version 2.3.4), and installing pygtk 2.6.2, I get the following error message (almost with any program I try to run): ImportError: could not import atk Trying to start PythonCAD, I also get: Traceback (most recent call last): File

Re: Wheel-reinvention with Python

2005-08-05 Thread Mike Meyer
Torsten Bronger [EMAIL PROTECTED] writes: Hallöchen! Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes:

  1   2   >