Hello all,
I am trying to use a web services API with Python and SOAPpy as a
client. Some of the method paramters in this web service's WSDL are
asking for an "ArrayOfString" type. Here is my code so far:
#!/usr/bin/python
from SOAPpy import WSDL
wsdlFile =
'http://localhost:8080/axis/services
I've been trying to track down a memory leak (which I initially
attributed erroneously to numpy) and it turns out to be caused by a
memory mapped file. It seems that mmap caches without limit the chunks
it reads, as the memory usage grows to several hundreds MBs according
to the Windows task manage
At Sunday 21/1/2007 00:07, sturlamolden wrote:
Solution to problem 1:
Compile with your compiler or choice, never mind which CRT are used.
Use a 'dumpbin' program, find all references to msvcrt in the binary
DLL file. Create a dll with name "py_crt" that exports these functions
but redirects th
Gabriel Genellina schrieb:
> This would only work, if runtime dll's were compatibles between them,
> and they are not. You can't blindly redirect a call to msvcr71.__xyz to
> msvcr80.__xyz and expect that to work magically - it may have a
> different number of arguments, or different types, or even
http://clippay.blogspot.com
True Pooper...
--
http://mail.python.org/mailman/listinfo/python-list
At Sunday 21/1/2007 05:38, Martin v. Löwis wrote:
>Gabriel Genellina schrieb:
> > This would only work, if runtime dll's were compatibles between them,
> > and they are not. You can't blindly redirect a call to msvcr71.__xyz to
> > msvcr80.__xyz and expect that to work magically - it may have a
>
Nick Maclaren wrote:
> I can't find any description of these. Most are obvious, but some
> are not. Note that this is from the point of view of IMPLEMENTING
> them, not USING them. Specifically:
The Python equivalents of these methods are described in the
reference manual:
http://docs.python.or
Gary Jefferson wrote:
> Thanks for the reply Vinay. I had been reading those docs prior to
> posting, but addFilter/removeFilter only work on individual logger
> instances and handlers. I want to globally enable/disable multiple
> logger instances, based on their namespaces (see the example I
>
I learned some python in windows.
And now I've turned to linux.
I read a book and it teaches how to write shell script with bash,
but I don't feel like the grammar of bash.
Since I know about python,
I want to get a linux shell which use python grammar.
I searched by google and I found pysh, which
Frank Potter wrote:
> I learned some python in windows.
> And now I've turned to linux.
> I read a book and it teaches how to write shell script with bash,
> but I don't feel like the grammar of bash.
> Since I know about python,
> I want to get a linux shell which use python grammar.
> I searched
Gabriel Genellina wrote:
> This would only work, if runtime dll's were compatibles between them,
> and they are not.
It is standard C, defined by ANSI and ISO.
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina schrieb:
> That's a good thing - but is this just by accident, or is documented
> somewhere?
It's documented somewhere (although I can't find the documentation
right now - it explains how you can link object files from a static
library compiled with an older compiler version agai
sturlamolden schrieb:
>> This would only work, if runtime dll's were compatibles between them,
>> and they are not.
>
> It is standard C, defined by ANSI and ISO.
ANSI and ISO don't define the ABI, though. For example, the definition
of the FILE type might (and does) vary across compilers, even
George Sakkis <[EMAIL PROTECTED]> wrote:
> I've been trying to track down a memory leak (which I initially
> attributed erroneously to numpy) and it turns out to be caused by a
> memory mapped file. It seems that mmap caches without limit the chunks
> it reads, as the memory usage grows to seve
I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I
understand there's a Win editor called pythonwin. I believe it's in the
download pywin32-210.win32-py2.5.exe, but I'm not sure if this exe file has
just the editor or all of Python. Comments? If not how do I get the
Py
I'd like to print a tutorial in one fell swoop, but it seems most on the
various sites are page by page embedded descriptions in the page. Any
available as a pdf?
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. tim
Hi,
I want to access a static variable in a staticmethod. The variable can
be redefined by derived classes and that should be reflected in base's
staticmethod. Consider this trivial example-
class Base:
staticvar = 'Base'
@staticmethod
def printname():
# this doesn't work
On 21 Jan 2007 12:49:17 -0800, Ramashish Baranwal
<[EMAIL PROTECTED]> wrote:
> class Base:
> staticvar = 'Base'
>
> @staticmethod
> def printname():
> # this doesn't work
> # print staticvar
> # this does work but derived classes wouldn't behave as I want
>
Nick Craig-Wood wrote:
> George Sakkis <[EMAIL PROTECTED]> wrote:
> > I've been trying to track down a memory leak (which I initially
> > attributed erroneously to numpy) and it turns out to be caused by a
> > memory mapped file. It seems that mmap caches without limit the chunks
> > it reads,
W. Watson wrote:
> I'd like to print a tutorial in one fell swoop, but it seems most on the
> various sites are page by page embedded descriptions in the page. Any
> available as a pdf?
>
> Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
> (121.015 Deg. W, 39.26
George Sakkis schrieb:
> I've been trying to track down a memory leak (which I initially
> attributed erroneously to numpy) and it turns out to be caused by a
> memory mapped file. It seems that mmap caches without limit the chunks
> it reads, as the memory usage grows to several hundreds MBs accor
W. Watson wrote:
> I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I
> understand there's a Win editor called pythonwin. I believe it's in the
> download pywin32-210.win32-py2.5.exe, but I'm not sure if this exe file has
> just the editor or all of Python. Comments? If n
Figured it out. This works:
#!/usr/bin/python
import SOAPpy
wsdlFile =
'http://localhost:8080/axis/services/USD_R11_WebService?WSDL'
server = SOAPpy.WSDL.Proxy(wsdlFile)
server.soapproxy.config.dumpSOAPOut = 1
server.soapproxy.config.dumpSOAPIn = 1
SID = server.login('srvcdesk', 'x'
Hello All:
After trying to find an open source alternative to Matlab (or IDL), I
am currently getting acquainted with Python and, in particular SciPy,
NumPy, and Matplotlib. While I await the delivery of Travis Oliphant's
NumPy manual, I have a quick question (hopefully) regarding how to read
in F
import MySQLdb
class Db:
_db=-1
_cursor=-1
@classmethod
def __init__(self,server,user,password,database):
self._db=MySQLdb.connect(server , user , password , database)
self._cursor=self._db.cursor()
@classmethod
def excecute(self,cmd):
self._curso
Steven Bethard wrote:
> Within a larger pyparsing grammar, I have something that looks like::
>
> wsj/00/wsj_0003.mrg
>
> When parsing this, I'd like to keep around both the full string, and the
> AAA_ substring of it, so I'd like something like::
>
> >>> foo.parseString('wsj/00/wsj_
The pywin32 extension does not contain the python runtime itself, but
comes with many (very useful) classes you can use when interacting with
the windows universe. The editor is based on a component called
scintilla (http://www.scintilla.org/). The referenced site also offers
an editor SciTE based
>
> if __name__ == '__main__':
> gert=Db('localhost','root','**','gert')
> gert.excecute('select * from person')
> for x in range(0,gert.rowcount):
> print gert.fetchone()
> gert.close()
>
> [EMAIL PROTECTED]:~$ python ./Desktop/svn/db/Py/db.py
> Traceback (most recent c
On 21 Jan 2007 14:35:19 -0800, Nanjundi <[EMAIL PROTECTED]> wrote:
> >
> > if __name__ == '__main__':
> > gert=Db('localhost','root','**','gert')
> > gert.excecute('select * from person')
> > for x in range(0,gert.rowcount):
> > print gert.fetchone()
> > gert.close()
> >
I don't know if this is helpfull or not but (or for that matter
current). http://cens.ioc.ee/projects/f2py2e/ offers some suggestions
and it looks like you can use it with c code also.
Tyler wrote:
> Hello All:
>
> After trying to find an open source alternative to Matlab (or IDL), I
> am curren
On 20 Jan 2007 14:19:12 -0800, Isaac Gouy <[EMAIL PROTECTED]> wrote:
>
> Ramon Diaz-Uriarte wrote:
> > On 20 Jan 2007 11:34:46 -0800, Isaac Gouy <[EMAIL PROTECTED]> wrote:
(...)
> > >
> > > And that's why the existence of CINT is such a stark reminder of the
> > > separation between the language
Hi,
I guess you could take a look at pydev extension for eclipse and if you
wan't an almost straight forward installation, you should consider this
link :
http://www.easyeclipse.org/site/distributions/python.html
Regards,
Laurent
W. Watson a écrit :
> I downloaded python-2.5.msi and installed
[EMAIL PROTECTED] wrote:
> I don't know if this is helpfull or not but (or for that matter
> current). http://cens.ioc.ee/projects/f2py2e/ offers some suggestions
> and it looks like you can use it with c code also.
f2py has been folded into numpy.
--
Robert Kern
"I have come to believe that t
Martin v. Löwis wrote:
> George Sakkis schrieb:
> > I've been trying to track down a memory leak (which I initially
> > attributed erroneously to numpy) and it turns out to be caused by a
> > memory mapped file. It seems that mmap caches without limit the chunks
> > it reads, as the memory usage g
Tyler wrote:
> Hello All:
>
> After trying to find an open source alternative to Matlab (or IDL), I
> am currently getting acquainted with Python and, in particular SciPy,
> NumPy, and Matplotlib. While I await the delivery of Travis Oliphant's
> NumPy manual, I have a quick question (hopefully) r
Announcing
--
The 2.8.1.1 release of wxPython is now available for download at
http://wxpython.org/download.php. This release adds a few minor
enhancements and a number of bug fixes designed to further stabalize
the 2.8.x release series.
Source code is available, as well as binaries fo
W. Watson wrote:
> I downloaded python-2.5.msi and installed it. I believe its editor is
> IDE. I understand there's a Win editor called pythonwin. I believe it's
> in the download pywin32-210.win32-py2.5.exe, but I'm not sure if this
> exe file has just the editor or all of Python. Comments? If
George Sakkis schrieb:
>> You must be misinterpreting what you are seeing. It's the operating
>> system that decides what part of a memory-mapped file are held in
>> memory, and that is certainly not without limits.
>
> Sure; what I meant was that that whatever the limit is, it's high
> enough tha
Thanks Richie! That's exactly the reply I was hoping for.
Hooray!
Sean
On Jan 20, 2007, at 9:50 PM, Richie Hindle wrote:
> Hi Sean,
>
>> Thanks Richie -- but actually, what I had in mind was slightly
>> different. I want for my CONTENT pages to only contain the content.
>> So to modify your e
Tyler wrote:
> Hello All:
>
> After trying to find an open source alternative to Matlab (or IDL), I
> am currently getting acquainted with Python and, in particular SciPy,
> NumPy, and Matplotlib. While I await the delivery of Travis Oliphant's
> NumPy manual, I have a quick question (hopefully) re
Tyler wrote:
> Hello All:
>
> After trying to find an open source alternative to Matlab (or IDL), I
> am currently getting acquainted with Python and, in particular SciPy,
> NumPy, and Matplotlib. While I await the delivery of Travis Oliphant's
> NumPy manual, I have a quick question (hopefully) re
On Sun, 21 Jan 2007 14:15:46 +1100, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
>Still, it is better not to lose the indentation in the first place.
Thanks for the tips. But it does happen when copy/pasting code from
either a web page or an e-mail that TABs are messed up, which is not a
problem wit
I've got a ~100 page document I assemble from ~30 OOo .odt files with some
search and replace functions. I then produce a PDF. So far so good.
Now I need to get a barcode from our internal website and insert that. The
barcode will vary based on some parameters. Our internal site provides a
.jp
[EMAIL PROTECTED] wrote:
> W. Watson wrote:
>> I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I
>> understand there's a Win editor called pythonwin. I believe it's in the
>> download pywin32-210.win32-py2.5.exe, but I'm not sure if this exe file has
>> just the editor or
"Gert Cuykens" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> class Db:
>
>_db=-1
>_cursor=-1
>
>@classmethod
>def __init__(self,server,user,password,database):
>self._db=MySQLdb.connect(server , user , password , database)
>self._cursor=self._
Robert Hicks wrote:
> W. Watson wrote:
>> I'd like to print a tutorial in one fell swoop, but it seems most on the
>> various sites are page by page embedded descriptions in the page. Any
>> available as a pdf?
>>
>> Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
>>
I prefer PyScripter too, but would like to know if I can have
'indentation guides' enabled like PythonWin allows.
On 1/21/07, Stef Mientki <[EMAIL PROTECTED]> wrote:
> I tried 2 of them, and only was stable enough: PyScripter
> http://mmm-experts.com/Products.aspx?ProductID=4
--
http://mail.py
"W. Watson" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
Robert Hicks wrote:
> W. Watson wrote:
>> I'd like to print a tutorial in one fell swoop, but it seems most on the
>> various sites are page by page embedded descriptions in the page. Any
>> available as a pdf?
>
> http:
On 1/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> "Gert Cuykens" <[EMAIL PROTECTED]> escribió en el mensaje
> news:[EMAIL PROTECTED]
>
> > class Db:
> >
> >_db=-1
> >_cursor=-1
> >
> >@classmethod
> >def __init__(self,server,user,password,database):
> >self._db=MySQ
Carl Banks wrote:
> > WRITE(90,*) nfault,npoint
>
> Fortran writes this as two arbitrary integers separated by a space.
I wrote a paragraph in my reply explaining why this is wrong. A Fortran
list-directed write can print results in an almost arbitrary format,
depending on the compiler. Many
On 1/22/07, Gert Cuykens <[EMAIL PROTECTED]> wrote:
> On 1/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> > "Gert Cuykens" <[EMAIL PROTECTED]> escribió en el mensaje
> > news:[EMAIL PROTECTED]
> >
> > > class Db:
> > >
> > >_db=-1
> > >_cursor=-1
> > >
> > >@classmethod
> > >
Hello NG,
given this call to roots funtion from pylab
In [342]: roots([0,2,2])
Out[342]: array([-1.])
as far as I understand it [a0,a1,a2] stands for a0+a1*x+a2*x^2
in the above case it yields 2x^2+2x = 2x(1+x)
and the roots are 0 and -1
I am wondering why roots function gives me only the -1
se
import MySQLdb
class Db:
_db=-1
_cursor=-1
rowcount=-1
def __init__(self,server,user,password,database):
self._db=MySQLdb.connect(server , user , password , database)
self._cursor=self._db.cursor()
def excecute(self,cmd):
self._cursor.execute(cmd)
never mind i think i need some sleep lol i did the exact opposite this
time .rowcount() -> .rowcount
--
http://mail.python.org/mailman/listinfo/python-list
Beliavsky wrote:
> Carl Banks wrote:
>
>
>
> > > WRITE(90,*) nfault,npoint
> >
> > Fortran writes this as two arbitrary integers separated by a space.
>
> I wrote a paragraph in my reply explaining why this is wrong.
It's a safe assumption for a line of two integers. It might not
exactly prod
I'm trying to get PyMeld happening but I'm a bit stumped as to how to
make it work with mod_python.
The pymeld docs show examples only for the Python command line
interpreter and show using the print statement to output stuff. But
using mod_python.apache, I think you need to use req.write(so
Carl Banks wrote:
> > A Fortran
> > list-directed write can print results in an almost arbitrary format,
> > depending on the compiler. Many compilers will separate integers by
> > several spaces, not just one, and they could use commas instead of
> > spaces if they wanted.
>
> 1. Hardly any co
Can someone let me know why this won't work? Thanks.
>>> from os import popen
>>> popen('export asdfasdf=hello').read()
''
>>> popen('echo $asdfasdf').read()
'\n'
Thanks.
Stephen
--
http://mail.python.org/mailman/listinfo/python-list
Vinay Sajip wrote:
>
> I don't know enough about your target environment and application to
> necessarily give you the best advice, but I'll make some general
> comments which I hope are useful. You seem to be thinking that loggers
> are binary - i.e. you turn them on or off. But they can be contr
George Sakkis wrote:
> Frank Potter wrote:
>
> > I learned some python in windows.
> > And now I've turned to linux.
> > I read a book and it teaches how to write shell script with bash,
> > but I don't feel like the grammar of bash.
> > Since I know about python,
> > I want to get a linux shell
Beliavsky wrote:
> Carl Banks wrote:
>
>
>
> > > A Fortran
> > > list-directed write can print results in an almost arbitrary format,
> > > depending on the compiler. Many compilers will separate integers by
> > > several spaces, not just one, and they could use commas instead of
> > > spaces if
I tried to install pamie (but I have mostly used python on cygwin on
windows).
In the section " What will you need to run PAMIE", it says I will need
"Mark Hammonds Win32 All"
which I can not find. Can anyone tell me how do I install PAMIE? Do I
need python for
windows that is different from cygwi
Dennis Lee Bieber wrote:
> On Sat, 20 Jan 2007 13:49:52 -0700, Steven Bethard
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>> Within a larger pyparsing grammar, I have something that looks like::
>>
>> wsj/00/wsj_0003.mrg
>>
>> When parsing this, I'd like to keep aroun
Paul McGuire wrote:
> Steven Bethard wrote:
>> Within a larger pyparsing grammar, I have something that looks like::
>>
>> wsj/00/wsj_0003.mrg
>>
>> When parsing this, I'd like to keep around both the full string, and the
>> AAA_ substring of it, so I'd like something like::
>>
>> >>>
Wow! Thanks for the help everyone.
I will look into each of your comments in more detail in the morning,
but I'll mention a few things I guess. The first is, the list-directed
output was not necesarily my choice as some of the code is also used by
my supervisor (and her colleagues) and I had to ke
My python2.5 installation on windows did not come with "win32com".
How do I install/get this module for windows?
Thanks,
--j
Duncan Booth wrote:
> "John" <[EMAIL PROTECTED]> wrote:
>
> > Is there a way
> > to control a browser like firefox from python itself? How about IE?
>
> IE is easy enough
Gary Jefferson wrote:
> I am still a bit confused about Filters, though. It seems they are a
> bit of an anomoly in the hierarchical view of loggers that the API
> supports elsewhere, i.e., filters don't seem to inherit... Or am I
> missing something again? Here's a quick example:
>
> import lo
Xah Lee wrote in 2006-12-22:
> Of Interest:
>
> Introduction to 3D Graphics Programing
> http://xahlee.org/3d/index.html
Folks, i have expanded my tutorial to several pages in the past nearly
two months, and thank you very much for those who have given
encouragement.
I had plans to write pages th
"John" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> My python2.5 installation on windows did not come with "win32com".
> How do I install/get this module for windows?
Look for the pywin32 package at sourceforge.net
--
Gabriel Genellina
--
http://mail.python.org/mailm
stephen_b wrote:
> Can someone let me know why this won't work? Thanks.
>
>
from os import popen
popen('export asdfasdf=hello').read()
>
> ''
>
popen('echo $asdfasdf').read()
>
> '\n'
>
> Thanks.
>
> Stephen
>
Python starts a new shell for each command, so your environment vari
Paddy wrote:
> George Sakkis wrote:
>
>
>>Frank Potter wrote:
>>
>>
>>>I learned some python in windows.
>>>And now I've turned to linux.
>>>I read a book and it teaches how to write shell script with bash,
>>>but I don't feel like the grammar of bash.
>>>Since I know about python,
>>>I want to g
I tried it, didnt work with the python25 distribution msi file that is
on python.org
But activestate python worked. Now I can open IE using COM. What I am
trying
to figure out is how to click an x,y coordinate on a page in IE
automatically
using COM. How about typing something automatically...Any
Frank Potter wrote:
> I learned some python in windows.
> And now I've turned to linux.
> I read a book and it teaches how to write shell script with bash,
> but I don't feel like the grammar of bash.
> Since I know about python,
> I want to get a linux shell which use python grammar.
> I searched
Sam wrote:
> On 21 Jan 2007 12:49:17 -0800, Ramashish Baranwal
> <[EMAIL PROTECTED]> wrote:
> > class Base:
> > staticvar = 'Base'
> >
> > @staticmethod
> > def printname():
> > # this doesn't work
> > # print staticvar
> > # this does work but derived classes wo
Schüle Daniel wrote:
> Hello NG,
>
> given this call to roots funtion from pylab
It's actually from numpy and numpy questions are best asked (and best answered!)
on numpy-discussion.
http://www.scipy.org/Mailing_Lists
> In [342]: roots([0,2,2])
> Out[342]: array([-1.])
>
> as far as I unders
I found this class which was written in 2003.
http://xper.org/wiki/seminar/InternetExplorerAutomation
Is there a better/more complete version around that someone knows of.
Thanks,
--j
--
http://mail.python.org/mailman/listinfo/python-list
Is there an analogue of IE Mechanize in python?
http://search.cpan.org/src/ABELTJE/Win32-IE-Mechanize-0.009/README
Thanks,
--j
On Jan 22, 1:48 am, "John" <[EMAIL PROTECTED]> wrote:
> I found this class which was written in 2003.
>
> http://xper.org/wiki/seminar/InternetExplorerAutomation
>
> Is
Frank Potter wrote:
> I learned some python in windows.
> And now I've turned to linux.
> I read a book and it teaches how to write shell script with bash,
> but I don't feel like the grammar of bash.
> Since I know about python,
> I want to get a linux shell which use python grammar.
> I searched
John wrote:
> Is there an analogue of IE Mechanize in python?
http://www.google.com/search?q=python%20mechanize&btnI=I%27m+Feeling+Lucky
--
http://mail.python.org/mailman/listinfo/python-list
79 matches
Mail list logo