[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c6491d91d59a by Serhiy Storchaka in branch '2.7':
Issue #23071: Added missing names to codecs.__all__.  Patch by Martin Panter.
https://hg.python.org/cpython/rev/c6491d91d59a

New changeset 2b642f2ca391 by Serhiy Storchaka in branch '3.4':
Issue #23071: Added missing names to codecs.__all__.  Patch by Martin Panter.
https://hg.python.org/cpython/rev/2b642f2ca391

New changeset 73086376ed3c by Serhiy Storchaka in branch 'default':
Issue #23071: Added missing names to codecs.__all__.  Patch by Martin Panter.
https://hg.python.org/cpython/rev/73086376ed3c

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your patch Martin.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Berker Peksag

Berker Peksag added the comment:

In 3.4, namereplace_errors needs to be removed in the test:

https://hg.python.org/cpython/rev/2b642f2ca391#l2.17

==
FAIL: test_all (test.test_codecs.CodecsModuleTest)
--
Traceback (most recent call last):
  File 
/usr/home/buildbot/python/3.4.koobs-freebsd9/build/Lib/test/test_codecs.py, 
line 1668, in test_all
self.assertCountEqual(api, codecs.__all__)
AssertionError: Element counts were not equal:
First has 1, Second has 0:  'namereplace_errors'

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.4/builds/645/steps/test/logs/stdio

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1ab04bcd03bf by Serhiy Storchaka in branch '3.4':
Issue #23071: namereplace_errors was added only in 3.5.
https://hg.python.org/cpython/rev/1ab04bcd03bf

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Hmm, I have no ideas how I missed this when ran tests. Thank you Berker.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

+1

--
nosy: +lemburg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-17 Thread Martin Panter

Martin Panter added the comment:

Here is the patch (against the default branch)

--
keywords: +patch
Added file: http://bugs.python.org/file37486/codecs-all.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-17 Thread Berker Peksag

Berker Peksag added the comment:

Thanks! Could you also add a test? See PublicAPITests in 
Lib/test/test_shutil.py as an example.

--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-17 Thread Martin Panter

Martin Panter added the comment:

This patch includes a new test; although this kind of testing won’t detect when 
someone adds a new API and forgets to add it to __all__.

--
Added file: http://bugs.python.org/file37491/codecs-all.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-16 Thread Martin Panter

New submission from Martin Panter:

First ones I noticed were codecs.encode() and codecs.decode(). Here is a list 
of other candidates, although they are not all documented, so maybe should not 
all be in __all__.

 import codecs
 public = (a for a in dir(codecs) if not a.startswith(_))
 sorted(set(public).difference(codecs.__all__))
['BufferedIncrementalDecoder', 'BufferedIncrementalEncoder', 'Codec', 
'CodecInfo', 'IncrementalDecoder', 'IncrementalEncoder', 'StreamReader', 
'StreamReaderWriter', 'StreamRecoder', 'StreamWriter', 'ascii_decode', 
'ascii_encode', 'backslashreplace_errors', 'builtins', 'charmap_build', 
'charmap_decode', 'charmap_encode', 'decode', 'encode', 'escape_decode', 
'escape_encode', 'getdecoder', 'getencoder', 'getincrementaldecoder', 
'getincrementalencoder', 'getreader', 'getwriter', 'iterdecode', 'iterencode', 
'latin_1_decode', 'latin_1_encode', 'make_encoding_map', 'make_identity_dict', 
'raw_unicode_escape_decode', 'raw_unicode_escape_encode', 'readbuffer_encode', 
'sys', 'unicode_escape_decode', 'unicode_escape_encode', 
'unicode_internal_decode', 'unicode_internal_encode', 'utf_16_be_decode', 
'utf_16_be_encode', 'utf_16_decode', 'utf_16_encode', 'utf_16_ex_decode', 
'utf_16_le_decode', 'utf_16_le_encode', 'utf_32_be_decode', 'utf_32_be_encode', 
'utf_32_decode', 'utf_32_encode', 'utf_32_ex_de
 code', 'utf_32_le_decode', 'utf_32_le_encode', 'utf_7_decode', 'utf_7_encode', 
'utf_8_decode', 'utf_8_encode']

--
components: Library (Lib)
messages: 232800
nosy: vadmium
priority: normal
severity: normal
status: open
title: codecs.__all__ incomplete
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-16 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, only documented names should be in __all__. Do you want to provide a patch 
Martin? Suggestion: first filter names which are contained in codecs.rst.

--
keywords: +easy
nosy: +serhiy.storchaka
stage:  - needs patch
versions: +Python 2.7, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23071] codecs.__all__ incomplete

2014-12-16 Thread Martin Panter

Martin Panter added the comment:

Okay I will try and make a patch for this once I have finished a patch to 
revise the documentation for Issue 19548

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com