Comments (4)
Unicode tests added to PR #20.
from wordnik-python.
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.
Comparing my site-packages\wordnik for each machine, both match except for line 100 of swagger.py (in sanitizeForSerialization(self, obj)
)
wordnik-python/wordnik/swagger.py
Line 100 in 536de5b
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.
@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)
- `related-words` does not support the `same-context` type HOT 5
- Broken packaging (IMHO) HOT 5
- Package installs PHP instead of Python HOT 4
- getDefinitions throws AttributeError for missing limit value HOT 2
- Python 3.x support HOT 4
- InvalidSyntax on Python 3 (True/False attribute) HOT 3
- Missing API methods HOT 1
- package seems to be broken HOT 4
- Could we have a LICENSE file here please? HOT 1
- Update PyPI HOT 6
- Missing custom abort message via generated API client
- Use name_with_underscore instead of CamelCase
- wordnik for python3 HOT 1
- The word "Variable" is spelt wrong in the README. HOT 1
- ImportError: No module named 'models' HOT 1
- DateTime parse error while querying word of the day
- API doesn't honor proxy settings HOT 2
- Codebase no longer provides distribution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordnik-python.