[pyicu-dev] towards release 1.0
Andi Vajda
vajda at osafoundation.org
Wed Mar 31 15:19:28 PDT 2010
On Mar 31, 2010, at 14:49, F Wolff <friedel at translate.org.za> wrote:
> Op Wo, 2010-03-31 om 10:29 -0700 skryf Andi Vajda:
>> On Wed, 31 Mar 2010, F Wolff wrote:
>>
>>> I get lots of warnings about "deprecated conversion from string
>>> constant
>>> to ?char*?" (I can give the complete output if you want), but it
>>> eventually fails with
>>
>> If you're using a gcc 4.x compiler, add -Wno-write-strings to the
>> CFLAGS for
>> your platform in setup.py to silence these warnings.
>>
>>> search.cpp:594: error: ?USEARCH_ELEMENT_COMPARISON? was not
>>> declared in this scope
>>> search.cpp:601: error: ?USEARCH_STANDARD_ELEMENT_COMPARISON? was
>>> not declared in this scope
>>> search.cpp:602: error: ?USEARCH_PATTERN_BASE_WEIGHT_IS_WILDCARD?
>>> was not declared in this scope
>>> search.cpp:603: error: ?USEARCH_ANY_BASE_WEIGHT_IS_WILDCARD? was
>>> not declared in this scope
>>> error: command 'gcc' failed with exit status 1
>>>
>>> I don't see USEARCH_ELEMENT_COMPARISON (or any of the other three)
>>> anywhere in my installed header files for icu.
>>
>> Yes, these are in fact 4.4 features. I had mistakenly
>> conditionalized them
>> on 4.0. Now fixed in trunk rev 131.
>>
>>> Does that help? I'm not sure what else you would need, so feel
>>> free to
>>> ask for any extra information.
>>
>> Yes, this is what I need.
>
> Warnings and errors gone now. Now looking through the Python API for
> the first time. Thanks for the help!
>
> The first thing that strikes me, is that I'll need to get familiar
> with
> the C API before I can use this.
> Would it be possible to get some of the
> C documentation into the docstrings? It would make it more useful in
> itself, and will be more accessible to programmers who don't know C
> that
> well.
The README file explains where to find the C++ API docs (as opposed to
the C one, PyICU wraps ICU C++ classes) and how they correspond to the
python wrappers. It also explains how pythonic features, such as
iterators, string coversion, etc... are supported.
If you find holes or bugs in this file, please send them along.
As for copying the ICU docs, hmmm, patches are welcome.
> Talking about PEPs - just checking: do we want to keep the camel case
> capitalisation to stay close to the C library?
The wrapped class names and method names match exactly, where
possible, the ICU C++ ones. This is so that api docs can be matched
against, for example. The C api functions are _not_ wrapped by PyICU.
> I might be able to help with some of this if I have a good example
> to go
> by. Is this something that everybody wants?
What are you actually proposing ?
Andi..
>
> Friedel
>
>
> --
> Recently on my blog:
> http://translate.org.za/blogs/friedel/en/content/provisionaly-done-localisation-guide-amharic
>
> _______________________________________________
> pyicu-dev mailing list
> pyicu-dev at osafoundation.org
> http://lists.osafoundation.org/cgi-bin/mailman/listinfo/pyicu-dev
More information about the pyicu-dev
mailing list