Re: [IronPython] fepy's expat.py with xmpp?

2011-01-31 Thread Doug Blank
FYI, I ended up avoiding the whole issue by replacing both python-xmpp
and pyexpat with a stand-alone open source XMPP library, agsXMPP. It
works quite nicely, especially with the xmppd.py server, on all
platforms.

-Doug

On Sat, Jan 29, 2011 at 5:48 PM, Douglas Blank  wrote:
> Anyone have any luck using fepy's pyexpat.py managed code replacement with
> xmpp.py on IronPython?
>
> I'm having some trouble getting the xmpp client to talk to the xmppd
> server, even though the CPython version works fine. About the only
> difference, I think, is pyexpat.py.
>
> In fepy's pyexpat, I don't understand how:
>
>    def Parse(self, data, isfinal=False):
>        self._data.append(data)
>        if isfinal:
>            data = "".join(self._data)
>            self._data = None
>            self._parse(data)
>
> will do any parsing until later, but I'm pretty sure that the CPython
> version starts parsing right away.
>
> Am I missing something obvious? Any pointers appreciated!
>
> -Doug
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] fepy's expat.py with xmpp?

2011-01-29 Thread Douglas Blank
Anyone have any luck using fepy's pyexpat.py managed code replacement with
xmpp.py on IronPython?

I'm having some trouble getting the xmpp client to talk to the xmppd
server, even though the CPython version works fine. About the only
difference, I think, is pyexpat.py.

In fepy's pyexpat, I don't understand how:

def Parse(self, data, isfinal=False):
self._data.append(data)
if isfinal:
data = "".join(self._data)
self._data = None
self._parse(data)

will do any parsing until later, but I'm pretty sure that the CPython
version starts parsing right away.

Am I missing something obvious? Any pointers appreciated!

-Doug
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com