Re: notes from n3p / cwm integration

>
>> The way to invode N3Parser without it opening anything is an ugly hack.
>
>
> Would it be better to have it pass on None, and then make whatever's
> calling it transform "nowhere" into None, perhaps? What's your use case
> for it?
>
Yeah. `None' would probably work fine. I can't imagine why it wouldn't. 
For that matter, I don't know why I was using a string yesterday. Cwm 
wants to open the file for you, and just give the parser a string to 
parse. On the other hand, the parser still needs the URI the document is 
from, so when my class call's its parent's __init__(), it needs to lie 
to said parent about the URI even though it know it. Then it sets 
self.data to what cwm gives it.


Yosi

Received on Friday, 21 January 2005 14:22:10 UTC