[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread Eric V. Smith

Eric V. Smith added the comment:

We won't do that, because then we'd have two functions that do the same thing. 
There's no sense having to learn two functions, just to achieve consistency. 
Sorry.

--

___
Python tracker 

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



[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread zaazbb

zaazbb added the comment:

how about add a unitive style function name, for a compatibility reason, keep 
the old function exists also.

for example, add int.tobytes(), and keep int.to_bytes() exists.

--

___
Python tracker 

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



[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread Eric V. Smith

Eric V. Smith added the comment:

There's no particular reason, we just weren't careful about enforcing a 
consistent style, especially on older code.

But whatever the reason, it's now too late to change this.

--
nosy: +eric.smith
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread jf

Changes by jf :


--
title: why not use the same style func name. eg: int.to_bytes (with underline 
or not) and array.tobytes(). -> why not use the same style func name. eg: 
int.to_bytes (with underline) and array.tobytes(without underline).

___
Python tracker 

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