Git Product home page Git Product logo

Comments (4)

hugovk avatar hugovk commented on August 22, 2024

Unicode tests added to PR #20.

from wordnik-python.

hugovk avatar hugovk commented on August 22, 2024

So, on my Mac:
These tests fail too, when run from a folder with freshly downloaded source.
They pass when using the installed version of Wordnik.
My real code works too, and uses the installed version of Wordnik.

On Windows:
Tests fail from downloaded Wordnik.
Real code fails using installed Wordnik.

I'll investigate further.

from wordnik-python.

hugovk avatar hugovk commented on August 22, 2024

Comparing my site-packages\wordnik for each machine, both match except for line 100 of swagger.py (in sanitizeForSerialization(self, obj))

elif type(obj) in [str, int, long, float, bool]:

PC and latest source have:
elif type(obj) in [str, int, long, float, bool]:
Mac has:
elif type(obj) in [str, int, long, float, bool, unicode]:

I'm not entirely sure where that unicode came from. All the other source files have April 15th timestamps but swagger.py has April 16th. It's possible it's a change I made but forgot about. (At this time I switched from the older Wordnik Python library/API to the new one, and perhaps this was in the old one?)

Anyway, the tests pass and Unicode words can be successfully added to Wordnik lists. I'll make a pull request with a changed swagger.py.

from wordnik-python.

mrjf avatar mrjf commented on August 22, 2024

@hugovk Thanks for the great error report and PRs! I've merged yours and added some more tests and fixes for unicode in 5c589c0 . Much appreciated.

from wordnik-python.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.