Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Please bring Model._get_kind() to public Model.get_kind() #222

@GoogleCodeExporter

Description

@GoogleCodeExporter
According to comment:
"Cezary Wagner Could we bring Model._get_kind() to public i.e. Model.get_kind() 
need to construct keys I think so.

Guido van Rossum It is public. It only starts with underscore so that it 
doesn't prevent you from having a property named 'get_kind'. Please use the 
tracker, or the mailing list for suggestions, not the cheat sheet."

I mean public all methods methodName, protected for internal use _methodName, 
private for class use __methodName - so I should never use _* or __* since it 
reserved by API developers.

Sure I could write class theBest.Model(ndb.Model) to extend but think that 
get_kind() should be in ndb.Model and all ndb._* should be not used to give you 
more freedom and make me more safe.


Original issue reported on code.google.com by Cezary.W...@gmail.com on 5 Nov 2012 at 7:33

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions