FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-35911: add cell constructor by pierreglaser · Pull Request #11771 · python/cpython · GitHub

Repository navigation

bpo-35911: add cell constructor - #11771

Merged
pitrou merged 7 commits into
python:masterfrom
pierreglaser:bpo-35911-add-cell-constructor
Feb 7, 2019
Merged

pitrou merged 7 commits into
python:masterfrom
pierreglaser:bpo-35911-add-cell-constructor

Conversation

pierreglaser commented Feb 6, 2019 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

bpo-35911: Add a cell constructor

This PR adds:

  • a cell.__new__ method, with an optional contents arguments.
  • the cell type in the Lib/types.py module, under the name CellType

Additional docs and tests are also provided.

The rationale behind this PR is explained in detail in the corresponding bpo issue.

https://bugs.python.org/issue35911

pierreglaser changed the title Bpo 35911 add cell constructor bpo-35911 add cell constructor Feb 6, 2019
pitrou changed the title bpo-35911 add cell constructor bpo-35911: add cell constructor Feb 6, 2019
pitrou added the type-feature A feature request or enhancement label Feb 6, 2019

pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

+1, looks like a no-brainer to me.
Will wait a bit for other core devs. Feel free to ping in a few days if no other feedback comes.

pitrou commented Feb 6, 2019

Copy link
Copy Markdown
Member

@1st1 @benjaminp @ncoghlan

ncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. May be worth updating https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy to cross-link the new type when it mentions cell_contents.

pitrou merged commit df8d2cd into python:master Feb 7, 2019

pitrou commented Feb 7, 2019

Copy link
Copy Markdown
Member

Thanks @pierreglaser !

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL