Add Ellipsis constant to the list of recognized tokens#44959
Add Ellipsis constant to the list of recognized tokens#44959malfet wants to merge 2 commits intopytorch:masterfrom
Ellipsis constant to the list of recognized tokens#44959Conversation
`Ellipsis` is the same as ellipsis literl `...`
facebook-github-bot
left a comment
There was a problem hiding this comment.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Ellipsis constant to the list of recognized tokenEllipsis constant to the list of recognized tokens
|
What's the motivation for this? Is there a particular example of code that does not compile but should compile? We should probably add tests for this. |
Codecov Report
@@ Coverage Diff @@
## master #44959 +/- ##
=======================================
Coverage 67.85% 67.86%
=======================================
Files 384 384
Lines 49919 49919
=======================================
+ Hits 33873 33876 +3
+ Misses 16046 16043 -3
Continue to review full report at Codecov.
|
facebook-github-bot
left a comment
There was a problem hiding this comment.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@SplitInfinity this PR is a prep for a bigger effort to add homogenous tuple support to jit script, see #44774 In particularly this PR (or #44958 ) prevents a crash while trying to parse |
💊 CI failures summary and remediationsAs of commit 3ae1ee1 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
suo
left a comment
There was a problem hiding this comment.
lgtm; can we add some basic tests to ensure that the ellipsis token works as intended?
@suo, will add them as part of PR that adds support for variable length Tuples. |
Summary: Per https://docs.python.org/3.6/library/constants.html > `Ellipsis` is the same as ellipsis literal `...` Pull Request resolved: pytorch#44959 Reviewed By: suo Differential Revision: D23785660 Pulled By: malfet fbshipit-source-id: f68461849e7d16ef68042eb96566f2c936c06b0f
Per https://docs.python.org/3.6/library/constants.html