Re: Bug in fixed_point?!

2010-12-21 Thread C Barrington-Leigh
On Dec 21, 9:36 am, Robert Kern wrote: > When you do, please provide the information that Terry Reedy asked for. > Sorry; quite right. For completeness I'll post here as well as over on scipy. Here's the actual code: - from scipy import optimize from math import exp xxroot= o

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread John Nagle
On 12/21/2010 11:26 AM, Anurag Chourasia wrote: Thanks for the response all. I tried exploring suds (which seems to be the current) and i hit problems right away. I will now try urllib or httplib. I have asked for help in the suds forum. Hope somebody replies. When i try to create a client, th

Re: Funny __future__ imports

2010-12-21 Thread Emile van Sebille
On 12/21/2010 6:38 PM MRAB said... On 21/12/2010 22:17, Daniel da Silva wrote: from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! from __future__ import time_machine ImportError: time_machine in use by import from __future__ import improved

Re: Funny __future__ imports

2010-12-21 Thread MRAB
On 21/12/2010 22:17, Daniel da Silva wrote: from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! from __future__ import time_machine ImportError: time_machine in use by import -- http://mail.python.org/mailman/listinfo/python-list

Re: [python-committers] [RELEASED] Python 3.2 beta 2

2010-12-21 Thread Nick Coghlan
On Wed, Dec 22, 2010 at 6:18 AM, Georg Brandl wrote: > Since PEP 3003, the Moratorium on Language Changes, is in effect, there > are no changes in Python's syntax and built-in types in Python 3.2. Minor nit - we actually did tweak a few of the builtin types a bit (mostly the stuff to improve Sequ

Specialisation / Interests

2010-12-21 Thread Jon Clements
Hi all, Was thinking tonight (now this morning my time): What would we consider the "long time" posters on c.l.p consider what they respond to and offer serious advice on. For instance: - Raymond Hettinger for algo's in collections and itertools - MRAB for regex's (never seen him duck a post whe

Re: True lists in python?

2010-12-21 Thread Arnaud Delobelle
Duncan Booth writes: > I guess you might be able to do it with a double-linked list provided > that when traversing the list you always keep two nodes around to > determine the direction. e.g. instead of asking for node6.nextNode() you > ask for node6.nextNode(previous=node1) and then the code

Funny __future__ imports

2010-12-21 Thread Daniel da Silva
from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 beta 2

2010-12-21 Thread Martin v. Loewis
Am 21.12.2010 22:56, schrieb Luis M. González: > I wonder if Unladen Swallow is still being considered for merger with > Python 3.3. > Is it? 3.2 isn't even released yet, and 3.3 will appear 18 months after it (so in Summer 2012). It's much too early to tell. OTOH, to answer you literal question:

Re: Python 3.2 beta 2

2010-12-21 Thread Luis M . González
I wonder if Unladen Swallow is still being considered for merger with Python 3.3. Is it? On Dec 21, 4:18 pm, Georg Brandl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On behalf of the Python development team, I'm happy to announce the > second beta preview release of Python 3.2.

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread Ian Kelly
On 12/21/2010 12:10 PM, John Nagle wrote: The original SOAPpy was at http://sourceforge.net/projects/soapy/files/ but was apparently abandoned in 2001. Someone else picked it up and moved it to http://sourceforge.net/projects/pywebsvcs/files/SOAP.py/ These are unrelated projects, AFACT. The

Re: Scanning directories for new files?

2010-12-21 Thread GrayShark
On Tue, 21 Dec 2010 14:17:40 -0500, Matty Sarro wrote: > Hey everyone. > I'm in the midst of writing a parser to clean up incoming files, remove > extra data that isn't needed, normalize some values, etc. The base files > will be uploaded via FTP. > How does one go about scanning a directory for n

Re: If/then style question

2010-12-21 Thread Francesco
I'd bet you would stress your point Steven! But you don't need to persuade me, I do already agree. I just meant to say that, when the advantage is little, there's no need to rewrite a working function. And that with modern CPUs, if tests take so little time, that even some redundant one is not

Re: Scanning directories for new files?

2010-12-21 Thread Martin Gregorie
On Tue, 21 Dec 2010 14:17:40 -0500, Matty Sarro wrote: > Hey everyone. > I'm in the midst of writing a parser to clean up incoming files, remove > extra data that isn't needed, normalize some values, etc. The base files > will be uploaded via FTP. > How does one go about scanning a directory for n

Re: Scanning directories for new files?

2010-12-21 Thread Stefan Sonnenberg-Carstens
Am 21.12.2010 20:17, schrieb Matty Sarro: Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new files? For now we'r

Re: Scanning directories for new files?

2010-12-21 Thread Jon Clements
On Dec 21, 7:17 pm, Matty Sarro wrote: > Hey everyone. > I'm in the midst of writing a parser to clean up incoming files, > remove extra data that isn't needed, normalize some values, etc. The > base files will be uploaded via FTP. > How does one go about scanning a directory for new files? For no

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread Anurag Chourasia
Thanks for the response all. I tried exploring suds (which seems to be the current) and i hit problems right away. I will now try urllib or httplib. I have asked for help in the suds forum. Hope somebody replies. When i try to create a client, the error is as follows. >>> from suds.client impor

Scanning directories for new files?

2010-12-21 Thread Matty Sarro
Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new files? For now we're looking to run it as a cron job but eventu

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread John Nagle
On 12/20/2010 11:45 PM, Ian Kelly wrote: On 12/20/2010 11:34 PM, John Nagle wrote: SOAPpy is way out of date. The last update on SourceForge was in 2001. 2007, actually: http://sourceforge.net/projects/pywebsvcs/files/ And there is repository activity within the past 9 months. Still, point ta

seeking pygtk bindings for gtkdatabox

2010-12-21 Thread GrayShark
Hello, a search for the python bindings for gtkdatabox lead no where. Anyone know of who is maintaining/working/siting such a package? Thanks in advance. Steven -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.2 beta 2

2010-12-21 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the second beta preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x li

Re: help with link parsing?

2010-12-21 Thread Jon Clements
On Dec 20, 7:14 pm, "Littlefield, Tyler" wrote: > Hello all, > I have a question. I guess this worked pre 2.6; I don't remember the > last time I used it, but it was a while ago, and now it's failing. > Anyone mind looking at it and telling me what's going wrong? Also, is > there a quick way to ma

Re: class inheritance

2010-12-21 Thread Ethan Furman
JLundell wrote: On Saturday, March 13, 2010 9:03:36 AM UTC-8, Jonathan Lundell wrote: I've got a subclass of fractions.Fraction called Value; it's a mostly trivial class, except that it overrides __eq__ to mean 'nearly equal'. However, since Fraction's operations result in a Fraction, not a Valu

Re: Bug in fixed_point?!

2010-12-21 Thread Robert Kern
On 12/20/10 10:03 PM, C Barrington-Leigh wrote: I cannot figure out what I'm doing wrong. The following does not return a fixed point: from scipy import optimize xxroot= optimize.fixed_point(lambda xx: exp(-2.0*xx)/2.0, 1.0, args=(), xtol=1e-12, maxiter=500) print ' %f solves fixed point, ie f(

Re: Modifying an existing excel spreadsheet

2010-12-21 Thread Jon Clements
On Dec 20, 9:56 pm, Ed Keith wrote: > I have a user supplied 'template' Excel spreadsheet. I need to create a new > excel spreadsheet based on the supplied template, with data filled in. > > I found the tools > herehttp://www.python-excel.org/, andhttp://sourceforge.net/projects/pyexcelerator/.

Re: On 07/13/2010 02:18 PM, Adam Mercer wrote:That version of M2Crypto does not

2010-12-21 Thread Robert Schuon
I was getting the same error trying to build M2Crypto 0.20.2 for Python 2.5 on a Win 7 laptop, so I pulled down the trunk, and it did build properly using minGW and Swig. However, when I try to "python setup.py install", python simply gives the same complaint that python was built in visual stu

how to inter-working on process in window

2010-12-21 Thread haloha
Hi all how do i send an ESC key into a process on window i already get a pid of process but i dont know how to send ESC key into process Please help Ha -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to parse a HUGE(1gb) xml file

2010-12-21 Thread Stefan Behnel
spaceman-spiff, 20.12.2010 21:29: I am sorry i left out what exactly i am trying to do. 0. Goal :I am looking for a specific element..there are several 10s/100s occurrences of that element in the 1gb xml file. The contents of the xml, is just a dump of config parameters from a packet switch( a

Re: Redundant importing of modules

2010-12-21 Thread bruno.desthuilli...@gmail.com
On 21 déc, 03:03, Steve Holden wrote: > On 12/20/2010 8:36 PM, Jshgwave wrote:> > > When writing a function that uses a module such as NumPy, it is tempting > > to include the statement "import numpy" or "import numpy as np" in the > > definition of the function, in case the  function is used in a

Re: Trying to parse a HUGE(1gb) xml file

2010-12-21 Thread Stefan Behnel
Adam Tauno Williams, 20.12.2010 20:49: On Mon, 2010-12-20 at 11:34 -0800, spaceman-spiff wrote: This is a rather long post, but i wanted to include all the details& everything i have tried so far myself, so please bear with me& read the entire boringly long post. I am trying to parse a ginormou