Skip to content

Conversation

@refack
Copy link
Contributor

@refackrefack commented Jan 15, 2019

  • Code before and after this PR generates the exact same output.
  • Tested with python2 (2.6 & 2.7) and python3 (3.6 & 3.7)
  • Passes make lint-py PYTHON=python2 and make lint-py PYTHON=python3
  • Whitespace changes are to comply with PEP8

/CC @nodejs/python

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Jan 15, 2019
@refackrefack added the python PRs and issues that require attention from people who are familiar with Python. label Jan 15, 2019
@cclauss
Copy link
Contributor

cclauss commented Feb 2, 2019

Fascinating what upstream did... v8/v8@7164251

@BridgeAR
Copy link
Member

BridgeAR commented Mar 5, 2019

@nodejs/python @nodejs/tooling @nodejs/build PTAL

@cclauss
Copy link
Contributor

Linter errors...

src/node_native_module.h:25: Lines should be <= 80 characters long [whitespace/line_length] [2] src/node_native_module.h:96: Lines should be <= 80 characters long [whitespace/line_length] [2] 

@refackrefackforce-pushed the tweak-js2c-2 branch 4 times, most recently from 1e23681 to 14912d8CompareApril 4, 2019 23:03
@refackrefack mentioned this pull request Apr 4, 2019
3 tasks
@nodejs-github-bot

This comment has been minimized.

@refack
Copy link
ContributorAuthor

@nodejs/python PTAL I've addressed most of the comments, and cleaned this up some more.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

# 2. turn pseudo-booleans strings into Booleans
config=re.sub('"true"', 'true', config)
config=re.sub('"false"', 'false', config)
returnconfig
Copy link
Contributor

@cclausscclaussApr 5, 2019

Choose a reason for hiding this comment

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

# four lines --> one...# normalize string literals from ' into " and turn pseudo-booleans strings into Booleansreturnconfig.replace('\'', '"').replace('"true"', 'true').replace('"false"', 'false')

Copy link
Contributor

@cclausscclauss left a comment

Choose a reason for hiding this comment

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

Great work!

@refackrefack self-assigned this Apr 5, 2019
@refack
Copy link
ContributorAuthor

@nodejs/python @nodejs/build-files PTAL.

@BridgeAR
Copy link
Member

This requires a rebase.

@refackrefackforce-pushed the tweak-js2c-2 branch 3 times, most recently from 2c3d1e7 to 2627feaCompareApril 15, 2019 22:22
@nodejsnodejs deleted a comment from nodejs-github-botApr 15, 2019
@nodejsnodejs deleted a comment from nodejs-github-botApr 15, 2019
@nodejs-github-bot

This comment has been minimized.

@nodejsnodejs deleted a comment from nodejs-github-botApr 15, 2019
@nodejsnodejs deleted a comment from nodejs-github-botApr 15, 2019
@Trott
Copy link
Member

This looks good to me but my Python expertise is limited. Would much prefer it land with a review from @nodejs/python, but I'll give it a somewhat-rubber stamp LGTM if no one more informed steps in to review/approve/oppose/whatever it.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

* add explicit `--target` argument to enable succinct gyp declaration * simplify js2c semantics PR-URL: nodejs#25518 Reviewed-By: Christian Clauss <[email protected]>
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@refackrefack merged commit bfbc035 into nodejs:masterMay 18, 2019
@refackrefack deleted the tweak-js2c-2 branch May 18, 2019 18:00
targos pushed a commit that referenced this pull request May 20, 2019
* add explicit `--target` argument to enable succinct gyp declaration * simplify js2c semantics PR-URL: #25518 Reviewed-By: Christian Clauss <[email protected]>
@BridgeARBridgeAR mentioned this pull request May 21, 2019
4 tasks
@joyeecheung
Copy link
Member

This landed as tools: refactor js2c.py for maximal python3 compat even though it contains changes that make every lib source uint16_t which is not required for python 3. compat, and it's not mentioned at all in the commit message..

@refack
Copy link
ContributorAuthor

@joyeecheung you are right. That was not the intention of this PR and it's probably a rebasing artifact. I intended to move all the one-bye/two-byte changes to #27095 (we're we agreed to shelf that change)...
I'll post a correction ASAP.

@refackrefack mentioned this pull request May 30, 2019
3 tasks
@refack
Copy link
ContributorAuthor

Regression fix in #27980

@refackrefack removed their assignment Jun 6, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.pythonPRs and issues that require attention from people who are familiar with Python.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@refack@nodejs-github-bot@cclauss@BridgeAR@Trott@joyeecheung@thefourtheye