The Texas Python Unconference is Almost Here!

2007-09-03 Thread Jeff Rush
The first regional Python unconference is coming to Houston on September 15-16 (Sat-Sun). Being held at the Texas Learning Computing Center on the University of Houston main campus, this is a FREE event for Pythoneers from all over the Texas region. http://pycamp.python.org/Texas/ And

ShowMeDo.com Announces Winner of Most-Video-Plays of the Month

2007-09-03 Thread Jeff Rush
ShowMeDo.com, a website offering over 361 instructional screencasts about topics both Python and non-Python, has announced their first winner of the month for the most-played video. And the winner is: Learn Django: Create a Wiki in 20 minutes by Siddharta Govindaraj, founder of Silver

Announcing a Bugfix update of YaMA, the meeting assistant

2007-09-03 Thread Atul
Hi, Yet Another Meeting Assistant (YaMA), will help you with the Agenda and Minutes of a Meeting. If you are the assigned minute taker at any meeting, this tool is for you. Checkout http://yama.sourceforge.net/ YaMA is written in Python and Tkinter, is open source software released under GPL,

ShowMeDo.com Announces Winner of Most-Video-Plays of the Month

2007-09-03 Thread O.R.Senthil Kumaran
ShowMeDo.com, a website offering over 361 instructional screencasts about topics both Python and non-Python, has announced their first winner of the month for the most-played video. And the winner is: Learn Django: Create a Wiki in 20 minutes by Siddharta Govindaraj, founder of

Python-URL! - weekly Python news and links (Sep 3)

2007-09-03 Thread Gabriel Genellina
QOTW: If there were a protein that could only be folded by proving the Riemann Hypothesis, the gene that coded for it would quickly get weeded out of the gene pool. - Scott Aaaronson http://scottaaronson.com/blog/?p=266 We read Knuth so you don't have to. - Tim Peters The first

Colorado Python training in October

2007-09-03 Thread lutz
Python author and trainer Mark Lutz will be teaching another 3-day Python class at a conference center in Longmont, Colorado, on October 23-25, 2007. This is a public training session open to individual enrollments, and covers the same topics as the 3-day onsite sessions that Mark teaches, with

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-03 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: A big question mark in my mind is Lisp, which according to aficionados is just as dynamic as Python, but has native compilers that generate code running as fast as highly optimized C. I'm not qualified to judge whether the lessons learnt from Lisp can

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread Evan Klitzke
On Sun, 2007-09-02 at 17:21 -0700, llothar wrote: I'm afraid that the GIL is killing the usefullness of python for some types of applications now where 4,8 oder 64 threads on a chip are here or comming soon. What is the status about that for the future of python? The GIL is an

Re: advice about `correct' use of decorator

2007-09-03 Thread Gabriel Genellina
En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist [EMAIL PROTECTED] escribi�: On 8/24/07, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist [EMAIL PROTECTED] escribi�: def check_user_logged_in(func): def f(*args, **kwargs): if

Re: How does super() work?

2007-09-03 Thread Gabriel Genellina
En Fri, 31 Aug 2007 17:58:24 -0300, Lamonte Harris [EMAIL PROTECTED] escribi�: I've searched Google, and other search engines to try to find out how super() works. Can someone explain in short detail how super() works? I may and may not need to know this information, but it is good to

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread Michele Simionato
On Sep 3, 2:21 am, llothar [EMAIL PROTECTED] wrote: I'm afraid that the GIL is killing the usefullness of python for some types of applications now where 4,8 oder 64 threads on a chip are here or comming soon. What is the status about that for the future of python? This is FAQ. You will find

Re: PYTHONPATH not working on Windows XP (?)

2007-09-03 Thread olivier
Hi, Any suggestions for adding my path to sys.path permanently? You can write a file in Lib/site-packages with a 'pth' extension (the name itself doesn't matter) containing the path you want to add. Example: MyCustomLib.pth: C:/docs/utils And be careful with path separator on win32. It should

Re: How does super() work?

2007-09-03 Thread Michele Simionato
En Fri, 31 Aug 2007 17:58:24 -0300, Lamonte Harris [EMAIL PROTECTED] escribi?: I've searched Google, and other search engines to try to find out how super() works. Can someone explain in short detail how super() works? I may and may not need to know this information, but it is good to

Re: Ayuda

2007-09-03 Thread Gonzalo HIGUERA DÍAZ
2007-08-30, Dr. José Contreras [EMAIL PROTECTED]: Gente Inteligente y Distinguida, soy un aficionado y apelo a Ustedes, para resolver éste problema. Para WebMaster de Google, me solicita instalar o ejecución de pitón, cómo comprenderán no dispongo de ningún guru de web, por lo que solicito en

Re: So what exactly is a complex number?

2007-09-03 Thread Grzegorz Słodkowicz
I was trying to motivate the idea by means of analogy. This is a legitimate thing to do. It helps lead people to a conceptual understanding long before they understand the minutae. You're mixing terms again. Analogy is saying 'something is like something else.' What you are saying is

Re: how can I find out the process ids with a process name

2007-09-03 Thread Michael Bentley
cd /proc for i in ls [0-9]*/status do echo $i `grep '^Name' $i | cut -f2` | sed 's/\/status//g' done Um... cd /proc for i in `ls [0-9]*/status` do echo $i `grep '^Name' $i | cut -f2` | sed 's/\/status//g' done --- Let the wookie win. --

Re: PYTHONPATH not working on Windows XP (?)

2007-09-03 Thread Sergio Correia
Thanks! It worked straightforward, and it's easier than messing with the enviromental variables or the registry. BTW, I'm still wondering how did Autohotkey got included in sys.path (there are no other .pht files on my PC) Regards, Sergio On 9/3/07, olivier [EMAIL PROTECTED] wrote: Hi, Any

Re: Soemthing wrong w/ urllib module or something.

2007-09-03 Thread Tim Golden
Lamonte Harris wrote: Error Message in cmd: Traceback (most recent call last): File wniamp_lastest5_playlist.py, line 25, in module response = urllib2.urlopen(request) File C:\Python25\lib\urllib2.py, line 121, in urlopen return _opener.open(url, data) File

Re: So what exactly is a complex number?

2007-09-03 Thread Evil Bert
Grzegorz Słodkowicz wrote: You're mixing terms again. Analogy is saying 'something is like something else.' Actually, that's a simile. -- http://mail.python.org/mailman/listinfo/python-list

TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
Hi I am new to Python and have recieved this error message when trying to instantiate an object from a class from another file within the same directory and wondered what I have done wrong. I have a Step.py class: class Step(object) def __init__(self, sName): Initialise a new

ShowMeDo.com Announces Winner of Most-Video-Plays of the Month

2007-09-03 Thread Jeff Rush
ShowMeDo.com, a website offering over 361 instructional screencasts about topics both Python and non-Python, has announced their first winner of the month for the most-played video. And the winner is: Learn Django: Create a Wiki in 20 minutes by Siddharta Govindaraj, founder of Silver

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Amit Khemka
On 9/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I am new to Python and have recieved this error message when trying to instantiate an object from a class from another file within the same directory and wondered what I have done wrong. I have a Step.py class: class Step(object)

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
On Sep 3, 9:15 am, Michele Simionato [EMAIL PROTECTED] wrote: On Sep 3, 2:21 am, llothar [EMAIL PROTECTED] wrote: My personal opinion (and I am not the only one in the Python community) is that if you want to scale the way to go is to use processes, not threads, so removing the GIL would be

Re: ShowMeDo.com Announces Winner of Most-Video-Plays of the Month

2007-09-03 Thread Diez B. Roggisch
Jeff Rush wrote: ShowMeDo.com, a website offering over 361 instructional screencasts about topics both Python and non-Python, has announced their first winner of the month for the most-played video. And the winner is: Learn Django: Create a Wiki in 20 minutes by Siddharta

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Lawrence Oluyede
On Sep 3, 10:48 am, [EMAIL PROTECTED] wrote: Hi I am new to Python and have recieved this error message when trying to instantiate an object from a class from another file within the same directory and wondered what I have done wrong. I have a Step.py class: class Step(object) def

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Hi I am new to Python and have recieved this error message when trying to instantiate an object from a class from another file within the same directory and wondered what I have done wrong. I have a Step.py class: class Step(object) def __init__(self,

Re: Weird gcc errors while installing MySQL-python module

2007-09-03 Thread Diez B. Roggisch
Jonas Schneider wrote: Hi guys, I´m experiencing weird error messages while installing MySQL-python with easy_install... I have no idea where the errors come from. Read the whole output at http://pastebin.com/m3859cf40 It´s really a lot... Someone got ideas? The pastebin errormessage

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Bruno Desthuilliers
Amit Khemka a écrit : (snip) The exception is being raised as you are being confused about the names ie: you have a class named Step in a module named Step.py . nitpicking Actually, the module is named 'Step', not 'Setp.py' !-) /nitpicking --

The Texas Python Unconference is Almost Here!

2007-09-03 Thread Jeff Rush
The first regional Python unconference is coming to Houston on September 15-16 (Sat-Sun). Being held at the Texas Learning Computing Center on the University of Houston main campus, this is a FREE event for Pythoneers from all over the Texas region. http://pycamp.python.org/Texas/ And

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Amit Khemka
On 9/3/07, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Amit Khemka a écrit : (snip) The exception is being raised as you are being confused about the names ie: you have a class named Step in a module named Step.py . nitpicking Actually, the module is named 'Step', not 'Setp.py' !-)

Re: Adding attributes stored in a list to a class dynamically.

2007-09-03 Thread Bruno Desthuilliers
Brian Munroe a écrit : On Sep 2, 3:33 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: In a nutshell, like all double-underscore methods, __setattr__ are for overriding behaviour in your own classes. With very few exceptions, you shouldn't need to directly call

SOAP : ZSI error

2007-09-03 Thread linuxprog
hello i need some help with ZSI module i want to use the web service located here www.ebob42.com/cgi-bin/NumberToWordsInDutch.exe/soap/IDutch the wsdl file : http://www.ebob42.com/cgi-bin/NumberToWordsInDutch.exe/wsdl/IDutch that web service is very simple , the function NumToStr converts

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread Ben Finney
Michele Simionato [EMAIL PROTECTED] writes: On Sep 3, 2:21 am, llothar [EMAIL PROTECTED] wrote: I'm afraid that the GIL is killing the usefullness of python for some types of applications now where 4,8 oder 64 threads on a chip are here or comming soon. This is FAQ. You will find

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: advice about `correct' use of decorator

2007-09-03 Thread Ricardo Aráoz
Gabriel Genellina wrote: En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist [EMAIL PROTECTED] escribi�: On 8/24/07, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist [EMAIL PROTECTED] escribi�: def check_user_logged_in(func): def

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-03 Thread king kikapu
I was wondering (and maybe i still do) about this GIL problem. I am relatively new to Python (less than a year) and when i started to think about it i said: Oh, this IS a problem. But when i dig a little more, i found that Ah, maybe it isn't. I strongly believe that the best usage of multiple

Re: metaclasses: timestamping instances

2007-09-03 Thread km
Hi, But why does it show varied difference in the time between a and b instance creations when __metaclass__ hook is used and when not used in class Y ? I dont understand that point ! KM On 9/1/07, Michele Simionato [EMAIL PROTECTED] wrote: On Sep 1, 6:07 pm, Steve Holden [EMAIL PROTECTED]

Re: Does shuffle() produce uniform result ?

2007-09-03 Thread Antoon Pardon
On 2007-08-26, tooru honda [EMAIL PROTECTED] wrote: By incorporating Alex's code, I got another performance boost of 20%. It is mostly due to Alex's more efficient implementation of block random than my own version. If I understand correctly that you are using urandom as a random generator

Re: TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): Check whether data step has been processed

Re: So what exactly is a complex number?

2007-09-03 Thread Wildemar Wildenburger
Grzegorz Słodkowicz wrote: In fact, a proper vector in physics has 4 features: point of application, magnitude, direction and sense. OK, help me out here: What 'direction' does |Ψ (a state-vector in quantum mechanics) have? Also, doesn't sense directly follow from the point of application.

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): Check

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): Check

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): Check

Urgently Required SAP CO-COPA Functional Lead

2007-09-03 Thread HR Head
We urgently require following skill set for singapore client SAP CO-COPA Functional Lead: Person with a strong Costing background. Should have hands on SAP COPA experience Minimum two implementations in Controling based Profitability Analysis (COPA) and Product Costing (COPC) in the SAP COPA

Re: advice about `correct' use of decorator

2007-09-03 Thread Gregor Horvath
Gerardo Herzig schrieb: @is_logued_in def change_pass(): bla bla And so on for all the other functions who needs that the user is still loged in. where obviosly the is_logued_in() function will determine if the dude is still loged in, and THEN execute change_pass(). If the

Re: So what exactly is a complex number?

2007-09-03 Thread Francesco Guerrieri
On 9/3/07, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Grzegorz Słodkowicz wrote: In fact, a proper vector in physics has 4 features: point of application, magnitude, direction and sense. OK, help me out here: What 'direction' does |Ψ (a state-vector in quantum mechanics) have? Also,

Re: So what exactly is a complex number?

2007-09-03 Thread richyjsm
On Sep 2, 6:13 am, Grzegorz S odkowicz [EMAIL PROTECTED] wrote: In fact, a proper vector in physics has 4 features: point of application, magnitude, direction and sense. so whats the point of application of the sum of two vectors? Do tell. --

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Thank you for your help that seems to have done the trick. You are correct Diez B. Roggisch that I come from a java background! I have a new tiny problem I can't understand either. Withing Step.py I have the following method def isCompleted(self): Check

Re: How does super() work?

2007-09-03 Thread Gerardo Herzig
Lamonte Harris wrote: I've searched Google, and other search engines to try to find out how super() works. Can someone explain in short detail how super() works? I may and may not need to know this information, but it is good to know. There is at least one explanation in the python.org

400 Bad Request calling urllib2.urlopen()

2007-09-03 Thread Achim Domma
Hi, I have an url which redirects the client to another url. If I paste the url into a browser, it works fine. If I open it via urllib2.urlopen() I get the following error: Traceback (most recent call last): File ...\crawlRawDocuments.py, line 16, in module body = urlopen(url).read()

Re: Soemthing wrong w/ urllib module or something.

2007-09-03 Thread Tim Golden
[Tim Golden] To do the obvious, can you open a socket connection to the domain you're using? code from socket import socket socket ().connect ((DOMAINHERE, 80)) /code or does it give you the same error? [Lamonte Harris] Yeah I basically got the same error. Traceback (most

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-03 Thread jwrweatherley
Thanks for all the answers to my question. I think what I need to take away from this is that xrange is an object - I thought it was just some loop construct, and that maths is slow in python - so avoid pathological looping.I remember the first time I tried Objective-C on OS X I used the NSNumber

Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-03 Thread Antoon Pardon
On 2007-08-31, herman [EMAIL PROTECTED] wrote: Hi, In my python program, I would to like to spwan 5 threads, for the them for 5 minutes maximum and the continue. Here is my script: threads = [] for j in range(5): t = MyThread()

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-03 Thread Paul Boddie
On 3 Sep, 15:39, [EMAIL PROTECTED] wrote: Thanks for all the answers to my question. I think what I need to take away from this is that xrange is an object Indeed, but using xrange can be faster than converting your for loops to while loops plus a counter; I converted your code to use the

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-03 Thread Bruno Desthuilliers
Martin v. Löwis a écrit : (2) it is a interpretation language Not quite. It's compiled to byte-code - just like Java (would you call Java an 'interpreted language' ?) Python is not implemented like Java. In Java (at least in HotSpot), the byte code is further compiled to machine code before

Re: Automation and scheduling of FrontPage publishing using Python

2007-09-03 Thread [EMAIL PROTECTED]
On Sep 2, 4:22 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 1, 10:48 pm, Jerry [EMAIL PROTECTED] wrote: andrew, I would try looking into Windows automation with Python.http://www.google.com/search?q=windows+automation+pythonshouldget you started. The winGuiAuto package may

Problem with extremely small real number

2007-09-03 Thread Andrea
Hi, I need to calculate this probability P!/{n \choose p}, varying both n and p, n takes values in this range [512:1024] and p in [2:12]. So i write this code in python: def factorial(n): result=1 if n==0: return 1 for i in xrange(1, abs(n)+1): result =

Re: Adding attributes stored in a list to a class dynamically.

2007-09-03 Thread Brian Munroe
On Sep 3, 6:34 am, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: The underscore versions are for customizing the lookup process, not for dynamically looking up names. If your class needs to do something non- standard when you write obj.name, you might need to write methods

How do I get triangles from a vtkPolyData object?

2007-09-03 Thread Grant Edwards
I posted this question to the vtk mailing list last week: I've been Googling and wandering through the class references most of the afternoon, but I can't figure out how to get the triangles out of the vtkPolyData that vtkDelaunay2D produces? I can get the vertex corredinates like this:

Re: Looking for Delaunay triangulation module...

2007-09-03 Thread Grant Edwards
On 2007-09-02, Robert Kern [EMAIL PROTECTED] wrote: Can anybody point me to a Delaunay triangulation module (for Win32)? I'm currently using http://flub.stuffwillmade.org/delny/ under Linux, but I have been unable to find a build for Windows. I don't have the tools (or skills) to build

Re: Problem with extremely small real number

2007-09-03 Thread Duncan Smith
Andrea wrote: Hi, I need to calculate this probability P!/{n \choose p}, varying both n and p, n takes values in this range [512:1024] and p in [2:12]. So i write this code in python: def factorial(n): result=1 if n==0: return 1 for i in xrange(1, abs(n)+1):

Re: Problem with extremely small real number

2007-09-03 Thread Fabio Z Tessitore
Il Mon, 03 Sep 2007 07:56:10 -0700, Andrea ha scritto: [cut] I want to call factorial(2)//binomial(1024,2) for example, in this way trivially I obtain 0 as probability, how can I obtain the probability forcing this division to output extremely small real numbers int to float will help

Re: Problem with extremely small real number

2007-09-03 Thread Arnaud Delobelle
On Sep 3, 3:56 pm, Andrea [EMAIL PROTECTED] wrote: Hi, I need to calculate this probability P!/{n \choose p}, varying both n and p, n takes values in this range [512:1024] and p in [2:12]. So i write this code in python: def factorial(n): result=1 if n==0: return 1

Re: How can I wait for all the threads I spawn for 5 minutes

2007-09-03 Thread Fabio Z Tessitore
[cut] But this code ends up waiting 5 minutes for **each** thread. that is not what I want. I just want to wait for 5 minutes for all threads. how can I do that? I've written a little code for you using threading. Hope it will help you: #! /usr/bin/env python # -*- coding: utf8 -*- import

Re: TypeError: 'module object is not callable'

2007-09-03 Thread christophertidy
The others spottet the error I missed. But I can offer something else: http://dirtsimple.org/2004/12/python-is-not-java.html It's a worthy read for someone coming from Java, needing time to adjust. Diez- Hide quoted text - - Show quoted text - That deffinately was a useful read,

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Marc 'BlackJack' Rintsch
On Mon, 03 Sep 2007 16:13:28 +, christophertidy wrote: Within my main.py file I have class Main(object): stepStore = StepStore() @staticmethod def createDepSteps(): stepStore.addStep([bol7, pre5]) ... @staticmethod def

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: The others spottet the error I missed. But I can offer something else: http://dirtsimple.org/2004/12/python-is-not-java.html It's a worthy read for someone coming from Java, needing time to adjust. Diez- Hide quoted text - - Show quoted text - That

Re: Does shuffle() produce uniform result ?

2007-09-03 Thread Paul Rubin
Antoon Pardon [EMAIL PROTECTED] writes: If I understand correctly that you are using urandom as a random generator I wouldn't trust too much on this performance. Urandom uses the systemwide entropy-pool. If other programs need this pool too, your performance can drop spectaculary. No the

Re: Problem with extremely small real number

2007-09-03 Thread Roberto Bonvallet
On 3 sep, 10:56, Andrea [EMAIL PROTECTED] wrote: def binomial(n, k): assert n0 and isinstance(n, (int, long)) and isinstance(k, (int,long)) Don't use assert to check whether the parameters have the right value. assert should be used to claim that a certain condition always hold in

Re: SOAP : ZSI error

2007-09-03 Thread Boris Borcic
linuxprog wrote: hello i need some help with ZSI module i want to use the web service located here www.ebob42.com/cgi-bin/NumberToWordsInDutch.exe/soap/IDutch the wsdl file : http://www.ebob42.com/cgi-bin/NumberToWordsInDutch.exe/wsdl/IDutch that web service is very simple , the function

Re: So what exactly is a complex number?

2007-09-03 Thread Boris Borcic
Lamonte Harris wrote: Like in math where you put letters that represent numbers for place holders to try to find the answer type complex numbers? Not quite. Relating them to (plane) trigonometry is much closer to the mark. Complex numbers are like a subclass of real numbers that elegantly

Re: 400 Bad Request calling urllib2.urlopen()

2007-09-03 Thread Bjoern Schliessmann
Achim Domma wrote: urllib2.HTTPError: HTTP Error 400: Bad Request I'm using Python 2.5.1 and Google did not help. Any hint on how to fix or debug this problem? Use e. g. wireshark to look at the raw stream data and check if the request is malformed. Regards, Björn -- BOFH excuse #123:

trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
Hello all, I have a question which might be simple or need some work around. I want to do something like this. My class/instance has a dict as a property. I want the instance to catch the change in the dict (change in some values, addition/deletion of key/value etc) to be recognized by the

Re: 400 Bad Request calling urllib2.urlopen()

2007-09-03 Thread O.R.Senthil Kumaran
I have an url which redirects the client to another url. If I paste the url into a browser, it works fine. If I open it via Any redirection is setup using either of the 301, 302, 303, 307 return codes of HTTP. Atleast, thats what standard determines. File C:\Python25\lib\urllib2.py, line

Applying transformation matrix to 3D vertex coordinates

2007-09-03 Thread PhilC
''' Task:- to apply a translation array to an array of 3D vertex coordinates to produce the resulting location of each vertices. Translation array and vertex coordinates taken from a Truespace COB file. The text in the COB file looks like this:-

ShowMeDo.com Announces Winner of Most-Video-Plays of the Month

2007-09-03 Thread O.R.Senthil Kumaran
ShowMeDo.com, a website offering over 361 instructional screencasts about topics both Python and non-Python, has announced their first winner of the month for the most-played video. And the winner is: Learn Django: Create a Wiki in 20 minutes by Siddharta Govindaraj, founder of

Re: list index()

2007-09-03 Thread Thorsten Kampe
* Terry Reedy (Fri, 31 Aug 2007 02:28:36 -0400) Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | On Thu, 30 Aug 2007 17:09:36 +1000, Ben Finney wrote: | [EMAIL PROTECTED] writes: | What's with the index() function of lists throwing an exception on not |

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread Arnaud Delobelle
On Sep 3, 7:00 pm, [EMAIL PROTECTED] wrote: Hello all, I have a question which might be simple or need some work around. I want to do something like this. My class/instance has a dict as a property. I want the instance to catch the change in the dict (change in some values,

Re: list index()

2007-09-03 Thread Thorsten Kampe
* Ben Finney (Thu, 30 Aug 2007 18:02:15 +1000) Bruno Desthuilliers [EMAIL PROTECTED] writes: What's with using your brain instead of whining ? Now now, no need for snappiness. Actually there was. The OP's claim | There are a million situations where you can have an item not be in | a list

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
Arnaud Delobelle [EMAIL PROTECTED] wrote: On Sep 3, 7:00 pm, [EMAIL PROTECTED] wrote: I want to do something like this. My class/instance has a dict as a property. I want the instance to catch the change in the dict (change in some values, addition/deletion of key/value etc) to be

Re: Let's Unite Against Jews and Mongrels!

2007-09-03 Thread devondejohn
On Sep 2, 9:18 am, Richard B. Gilbert [EMAIL PROTECTED] wrote: Zentrader wrote: On Aug 28, 4:50 am, Richard B. Gilbert [EMAIL PROTECTED] wrote: Unless, of course, someone has a working Killbot. If anyone has such a thing, please kill that MI5victim moron as well! I reported MI5victim

Python object - XML

2007-09-03 Thread Samuel
Hi, Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of) Python object(s), manipulate the

Re: Python object - XML

2007-09-03 Thread Jarek Zgoda
Samuel napisał(a): Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of)

Re: TypeError: 'module object is not callable'

2007-09-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) I have another little question before I finish today: I am currently struggling to use a global variable in my static functions. I'll explain further Within my main.py file I have class Main(object): stepStore = StepStore() @staticmethod

Re: Python object - XML

2007-09-03 Thread Samuel
On Sep 3, 10:19 pm, Jarek Zgoda [EMAIL PROTECTED] wrote: Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of) Python object(s), manipulate the instance, and save the result back to XML? Yea, use ElementTree and you'd get a bunch of nested lists of

Re: status of Programming by Contract (PEP 316)?

2007-09-03 Thread Bruno Desthuilliers
Russ a écrit : (snip) Frankly, Mr. Holden, I'm getting a bit tired of the clannish behavior here, where outsiders like me are held to a higher standard than your insider friends. I don't know who you are, nor do I care what you and your little group think about me. If you took time to

Re: Python object - XML

2007-09-03 Thread Laurent Pointal
Samuel wrote: Hi, Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of)

Python-URL! - weekly Python news and links (Sep 3)

2007-09-03 Thread Gabriel Genellina
QOTW: If there were a protein that could only be folded by proving the Riemann Hypothesis, the gene that coded for it would quickly get weeded out of the gene pool. - Scott Aaaronson http://scottaaronson.com/blog/?p=266 We read Knuth so you don't have to. - Tim Peters The first

Colorado Python training in October

2007-09-03 Thread Mark Lutz
Python author and trainer Mark Lutz will be teaching another 3-day Python class at a conference center in Longmont, Colorado, on October 23-25, 2007. This is a public training session open to individual enrollments, and covers the same topics as the 3-day onsite sessions that Mark teaches, with

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread Arnaud Delobelle
On Sep 3, 8:47 pm, [EMAIL PROTECTED] wrote: [...] My intention was to have a propery 'sum' in my object, and which has sum of all the values() of the dict (i have code to make sure that the value of dict are all numeric). I could just the propery being calculated everytime the property got

Re: Let's Unite Against Jews and Mongrels!

2007-09-03 Thread Fit E. Cal
On Sep 3, 12:57 pm, [EMAIL PROTECTED] wrote: On Sep 2, 9:18 am, Richard B. Gilbert [EMAIL PROTECTED] wrote: HEY! NOBODY BASHES THE TOOTH FAIRY! -Shrug- I fucked her. mvm -- http://mail.python.org/mailman/listinfo/python-list

Re: Let's Unite Against Jews and Mongrels!

2007-09-03 Thread Jarek Zgoda
Barry OGrady napisał(a): What could anyone have against mongrels? You clearly don't know how abusive ROR can be. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

ANN: lfm 2.0

2007-09-03 Thread Iñigo Serna
Hi out there, After a few years working silently I'm very pleased to announce here the so much awaited new version of 'lfm'. Last File Manager is a simple but powerful file manager for the UNIX console. It's written in Python, using curses module. Licensed under GNU Public License version 3.

Python411 Podcast: Python for Mobile Interfaces

2007-09-03 Thread UrsusMaximus
Python for Mobile Interfaces is a clarion call for Pythonistas to pioneer the future of alternative user interfaces for mobile phones, PDA's, and wearable computers, including voice recognition, gesture recognition, and wearable computing. www.awaretek.com --

Can you use -getattr- to get a function in the current module?

2007-09-03 Thread Sergio Correia
This works: # Module spam.py import eggs print getattr(eggs, 'omelet')(100) That is, I just call the function omelet inside the module eggs and evaulate it with the argument 100. But what if the function 'omelet' is in the module where I do the getattr (that is, in spam.py). If I do any of

Re: Registering a python function in C

2007-09-03 Thread fernando
Is Maya a different python build than what is contained at python.org? If so, I suggest you get your C program to work with the latest python build from python.org. Then see if you can get it to work with the Maya version. Ok, did that. If I write a normal C++ program and use the python

Re: list index()

2007-09-03 Thread Ben Finney
Thorsten Kampe [EMAIL PROTECTED] writes: * Ben Finney (Thu, 30 Aug 2007 18:02:15 +1000) Bruno Desthuilliers [EMAIL PROTECTED] writes: What's with using your brain instead of whining ? Now now, no need for snappiness. Actually there was. The OP's claim [...] ...is just plain

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread John Machin
On Sep 4, 5:47 am, [EMAIL PROTECTED] wrote: Arnaud Delobelle [EMAIL PROTECTED] wrote: On Sep 3, 7:00 pm, [EMAIL PROTECTED] wrote: I want to do something like this. My class/instance has a dict as a property. I want the instance to catch the change in the dict (change in some values,

Re: SOAP : ZSI error

2007-09-03 Thread Gabriel Genellina
En Mon, 03 Sep 2007 06:43:27 -0300, linuxprog [EMAIL PROTECTED] escribi�: import IDutchservice_services soap = IDutchservice_services.IDutchbindingSOAP(www.ebob42.com/cgi-bin/NumberToWordsInDutch.exe/soap/IDutch) ok = IDutchservice_services.NumToStr0Request() ok.Num=5 print

  1   2   >