Changes between Initial Version and Version 1 of Ticket #31570, comment 1


Ignore:
Timestamp:
05/12/20 10:46:58 (2 years ago)
Author:
Carlton Gibson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31570, comment 1

    initial v1  
    2323Q: What guarantees that the `__code__` object of the [https://github.com/python/cpython/blob/a63c61168588937c482435d0432c753de4844c46/Lib/gettext.py#L176 generated plural functions] evaluates equal or not? (Current status: no idea: it's not as simple as pointer address, but I can't yet find the implementation so... )
    2424
     25**Update**:
     26
     27* https://github.com/python/cpython/blob/master/Objects/codeobject.c
     28* https://github.com/python/cpython/blob/master/Objects/funcobject.c#L236
     29
     30Are the relevant sources, but that's not to have followed the flow fully.
     31**endupdate**
     32
    2533There are a number of cases in the existing tests where we enter the different plural forms `else`-block, beyond the test added for #30439, so maybe there is a subtle behaviour change here. I'd be very grateful for that test to be able to pin it down.
    2634
Back to Top