[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 60b3a5615c4e by Mark Dickinson in branch '2.7':
Issue #12164: Document (in docstring) that str.translate accepts None for the 
first argument.
http://hg.python.org/cpython/rev/60b3a5615c4e

--
nosy: +python-dev

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-25 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution: accepted - fixed
status: open - closed

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-04 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks for the patches!  Here's a slight expansion of the wording on your 
second patch:

 Return a copy of the string S, where all characters occurring
 in the optional argument deletechars are removed, and the
 remaining characters have been mapped through the given
 translation table, which must be a string of length 256 or None.
 If the table argument is None, no translation is applied and
 the translation simply removes the characters in deletechars.

What do you think?

--
assignee: docs@python - mark.dickinson

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-04 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

 What do you think?

Sounds very good to my native Finnish ears :)

--

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-04 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - accepted

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-31 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

I added a patch a few days ago. How does it look?

--

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-31 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

After discussing with Ezio Melotti, I attached another patch with a different 
wording.

Mark: As a native English speaker, which one you prefer?

--
Added file: http://bugs.python.org/file22206/str_translate_docstring_2.patch

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-26 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
keywords: +patch
nosy: +petri.lehtinen
Added file: http://bugs.python.org/file22122/str_translate_docstring.patch

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-23 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

In Python 2.6 and 2.7, str.translate accepts None as a first argument.  That's 
documented in the docs, but not in the str.translate docstring.

--
assignee: docs@python
components: Documentation
messages: 136720
nosy: docs@python, mark.dickinson
priority: normal
severity: normal
status: open
title: str.translate docstring doesn't mention that 'table' can be None
versions: Python 2.7

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