[IronPython] FlowDocument XAML syntax highlighting and restructured text
Michael Foord
fuzzyman at voidspace.org.uk
Tue Aug 11 03:36:08 CEST 2009
Dino Viehland wrote:
> Michael wrote:
>
>> If I use the unicodedata module from FePy then it *seems* to work.
>> Although I do see a warning that I don't see under CPython:
>>
>> <string>:1: DeprecationWarning: object.__new__() takes no parameters
>>
>> Not dug in to see where it comes from.
>>
>
> It's a new warning in 2.6 - it could be that FePy's unicodedata has
> something like:
>
> class x(object):
> def __new__(cls, *args):
> return object.__new__(cls, *args) # shouldn't pass args
> def __init__(self, *args):
> pass
>
> x(42)
>
>
Nope, no class definitions - it just uses .NET functionality. It's a
very short bit of code really - 77 lines of which 30 lines are a
dictionary defining a category mapping.
Michael
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list