Re: Re: Ctypes and freeing memory

2006-10-06 Thread Oliver Andrich
rience I am now in heaven. :) Sadly, I can't provide my team members an equal solution in the Java world, cause one of them starts to hate me for assigning him on another JNI job in our project. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Ctypes and freeing memory

2006-10-03 Thread Oliver Andrich
memory, and the returned string isn't helpful either. :) > If it doesn't, then you can use a more literal translation of the C > code, and use a c_void_p instead, using ctypes.string_at(description) > to get a string out of the buffer. This works and is a great tip! Thanks a lo

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Oliver Andrich
influence this recommondation. Step up as an admin for Roundup. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Ctypes and freeing memory

2006-10-03 Thread Oliver Andrich
have to think about a different solution? Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXML not supported, what to use next?

2006-10-02 Thread Oliver Andrich
y nice choice. And it is also our "backup" choice, when lxml is not available on a system. Best regards,Oliver-- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
brary, and is not documented in the public interface. Thanks and Regards, Oliver. -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
On 9/24/06, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > Oliver Andrich <[EMAIL PROTECTED]> wrote: > > - ExceptionType is an enum > > - MagickWand is somewhat strange, but so far it works fine without any > > type mangling. > > > > How would I wrap

ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
) - ExceptionType is an enum - MagickWand is somewhat strange, but so far it works fine without any type mangling. How would I wrap this thing using ctypes? Can anybody help me with that? Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --

Question about decorators (with context?)

2006-09-24 Thread Oliver Andrich
think of a solution, where I have to do something like that. @my_funky_decorator(wand=) def read_image(self, filename): pass So, I like to ask, if someone could enlighten me how to implement the easy decorator I mentioned in my first "example". Thanks and best regards, Oliver --

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Oliver Andrich
Hi, if you enjoyed Hibernate or got intrigued by it, go and look into SQLOject (http://www.sqlobject.org/). And you will be less intrigued by Hibernate, but will start to really like SQLObject. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --

Re: How to separate directory list and file list?

2005-10-23 Thread Oliver Andrich
t is the best solution, but it looks nice. :) path = "/home/test" files = [fn for fn in os.listdir(path) if os.path.isfile(os.path.join(path, fn))] This gives you just the list of files in a given directory. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about inheritance...

2005-10-22 Thread Oliver Andrich
tc...? even there would exist a way to accomplish that, I would suggest to rethink your class hierachy. Such requirements can show serious design problems. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Nufox : Xul + Python

2005-10-02 Thread Oliver Andrich
ive in France so the site is close when i'am at work > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Jabber client?

2005-09-08 Thread Oliver Andrich
Hi Paul, take this one. http://xmpppy.sourceforge.net/ It is used inside gajim, my favorite jabber client. http://gajim.org/ It works like a charm. And I am also using xmpppy for some monitoring tools, that alert our admins. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --

Re: SOAPpy and http authentication

2005-08-02 Thread Oliver Andrich
hat way, but then the wsdl retrieval is done using the authentication, but all the service calls are done without. This is something, that is also puzzling me. So far I can perfectly live with SOAPProxy, but it would be nice to solve this puzzle. Best regards, Oliver -- Oliver Andrich <[EMAIL P

Re: PEP on path module for standard library

2005-07-22 Thread Oliver Andrich
am a so called Java hacker, I highly appreciate path as a module for my python projects and in my eyes it is the natural way to address files/paths. At least it is more natural to me then the os, os.path, etc. pp. bundle, that has grown over the time. I would love to see path inside Python's

Re: CONNCET TO SOAP SERVICE

2005-07-19 Thread Oliver Andrich
gt; tél support : 03 59 56 60 68 > > Email : [EMAIL PROTECTED] > > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- Oliver Andrich <[EMAIL PROTECTED]> --- http://fitheach.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
Yes, this and the coersion problems Diez mentioned were the problems I faced. Now I have written a little cleanup method, that removes the bad characters from the input and finally I guess I have macroman encoded files. But we will see, as soon as I try to open them on the Mac. But now I am more or

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
("\n\n") f.write(caption) f.close() Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://fitheach.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
> I know this isn't your question, but why write: > > > data = apply(string.replace, [data, html, char]) > > when you could write > > data = data.replace(html, char) > > ?? Cause I guess, that I am already blind. Thanks. Oliver -- Oliver A

Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
dinal not in range(128) And this continues, when I try to write to a file in macroman encoding. As I am pretty sure, that I am doing something completely wrong and I also haven't found a trace in the fantastic cookbook, I like to ask for help here. :) I am also pretty sure, that I do s

Re: search/replace in Python

2005-05-27 Thread Oliver Andrich
Hi, 2005/5/28, Vamsee Krishna Gomatam <[EMAIL PROTECTED]>: > Hello, > I'm having some problems understanding Regexps in Python. I want > to replace "PHRASE" with > "http://www.google.com/search?q=PHRASE>PHRASE" in a block of > text. How can I achieve this in Python? Sorry for the naive que