python-stringcase icon indicating copy to clipboard operation
python-stringcase copied to clipboard

Bug in version of stringcase pushed on pypi

Open flou opened this issue 8 years ago • 2 comments

Hello,

I think that the version of stringcase currently available on Pypi contains a bug. The camelcase function removes more characters than needed:

$ virtualenv .venv
New python executable in /Users/flou/.venv/bin/python2.7
Also creating executable in /Users/flou/.venv/bin/python
Installing setuptools, pip, wheel...done.

$ source .venv/bin/activate
(.venv) $ pip install stringcase
Collecting stringcase
Installing collected packages: stringcase
Successfully installed stringcase-1.2.0

(.venv) $ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import stringcase
>>> stringcase.camelcase('foo-bar')
'foar'
>>> stringcase.pascalcase('foo-bar')
'Foar'

flou avatar Aug 08 '17 13:08 flou

I did not consider my PR release ready, as stated in the comments: https://github.com/okunishinishi/python-stringcase/pull/6

Especially since I modified the CamelCase method, as one suggestion to address https://github.com/okunishinishi/python-stringcase/issues/5

We need to discuss changes and the rerelease.

pykong avatar Aug 08 '17 15:08 pykong

Bug still there, 4 years later, just FYI

lexruster avatar Oct 27 '21 19:10 lexruster