Mercurial > pylearn
changeset 1513:2b3cff882382
Tell to use isinstance(x, basestring).
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Tue, 13 Sep 2011 14:02:33 -0400 |
parents | 7f166d01bf8e |
children | 97ec0d3248ca |
files | doc/v2_planning/API_coding_style.txt |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/v2_planning/API_coding_style.txt Mon Sep 12 11:59:55 2011 -0400 +++ b/doc/v2_planning/API_coding_style.txt Tue Sep 13 14:02:33 2011 -0400 @@ -444,6 +444,11 @@ if __name__ == '__main__': sys.exit(main()) + * Avoid isinstance(x, str) as this don't work with unicode string, use: + + .. code-block:: python + + isinstance(x, basestring) The ``logging`` Module vs. the ``warning`` Module =================================================