Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NativeString[Line] a distinct type #74

Closed
jamadden opened this issue Sep 22, 2018 · 0 comments
Closed

Make NativeString[Line] a distinct type #74

jamadden opened this issue Sep 22, 2018 · 0 comments

Comments

@jamadden
Copy link
Member

Especially now that we document the implementation class of fields, having NativeString[Line] be simple aliases of either Bytes or Text[Line] is confusing and misleading, because what you see in the documentation is Bytes or Text, but that's not what you need to put in source code.

The idea would be to do something like

class NativeString(Text if PY3 else Bytes):
    """The native `str` type"""

We'd probably also want a INativeString interface...

I noticed the confusing documentation in zope.configuration.

jamadden added a commit that referenced this issue Sep 22, 2018
This facilitates documentation and interactive exploration.

Fixes #74.
jamadden added a commit that referenced this issue Sep 22, 2018
This facilitates documentation and interactive exploration.

Fixes #74.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant