[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset df8d2cde63c865446468351f8f648e1c7bd45109 by Antoine Pitrou (Pierre Glaser) in branch 'master': bpo-35911: add cell constructor (GH-11771) https://github.com/python/cpython/commit/df8d2cde63c865446468351f8f648e1c7bd45109 -- ___

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +11738 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +11738, 11739 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Pierre, You'll want to submit your patch as a GitHub pull request. Also your PR will have to contain: - tests for the new Python-facing API - documentation for the new API You may want to read more in the developer's guide: https://devguide.python.org/ --

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Pierre Glaser
Change by Pierre Glaser : Added file: https://bugs.python.org/file48106/test_cell.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue35911] add a cell construtor, and expose the cell type in Lib/types.py

2019-02-06 Thread Pierre Glaser
New submission from Pierre Glaser : cell objects are containers for the free variables of functions defined in a local scope. They are located in a function's __closure__ attribute (when it is not None). A cell is a very simple object, with a single (optional, e.g the cell can be empty) attribut