Re: [Python-Dev] PEP 575: Unifying function/method classes

2018-04-15 Thread Jeroen Demeyer
On 2018-04-14 23:14, Guido van Rossum wrote: That actually sounds like a pretty big problem. I'm sure there is lots of code that doesn't *just* duck-type nor calls inspect but uses isinstance() to decide how to extract the desired information. In the CPython standard library, the *only* fixes

Re: [Python-Dev] PEP 575: Unifying function/method classes

2018-04-15 Thread Nick Coghlan
On 15 April 2018 at 22:50, Jeroen Demeyer wrote: > On 2018-04-14 23:14, Guido van Rossum wrote: >> >> That actually sounds like a pretty big problem. I'm sure there is lots >> of code that doesn't *just* duck-type nor calls inspect but uses >> isinstance() to decide how to

Re: [Python-Dev] PEP 575: Unifying function/method classes

2018-04-15 Thread Serhiy Storchaka
15.04.18 16:09, Nick Coghlan пише: On 15 April 2018 at 22:50, Jeroen Demeyer wrote: I've been told that there might also be a problem with Random._randbelow, even though it doesn't cause test failures. From Raymond's description (and from an initial reading of the code),

[Python-Dev] Translating sample programs in documentation

2018-04-15 Thread Xuan Wu
Excuse me if this was discussed before, but in French and Japanese translations, all the sample programs seem to have identifiers in English still. According to "PEP 545 -- Python Documentation Translations", as I understand .po files are used for translations. May I ask if there's technical

Re: [Python-Dev] PEP 575: Unifying function/method classes

2018-04-15 Thread Raymond Hettinger
> On Apr 15, 2018, at 5:50 AM, Jeroen Demeyer wrote: > > On 2018-04-14 23:14, Guido van Rossum wrote: >> That actually sounds like a pretty big problem. I'm sure there is lots >> of code that doesn't *just* duck-type nor calls inspect but uses >> isinstance() to decide how

Re: [Python-Dev] Translating sample programs in documentation

2018-04-15 Thread Shell Xu
Well, I'm not sure weather or not this is what you're looking for, but pep-8 (https://www.python.org/dev/peps/pep-0008/) suggest like this: For Python 3.0 and beyond, the following policy is prescribed for the standard library (see PEP 3131): All identifiers in the Python standard library MUST