Repository navigation
Removed codepath for Python < 3.6 #11949 - #11953
Conversation
|
@kousikmitra, thanks for your PR! Based on the issue description: [...] even if you are a new contributor lease fix only one of the places linked to below;
to leave a chance for someone else to contribute.I believe the idea was to have one PR per code block highlighted. So, that’s just my understanding, please consider it or not at your convenience. 😊 |
|
@augustogoulart should I create a new pull request then? |
I think the idea was to have simple things for new contributors, and leave some task to other, but if you've done it, that's good. There are still a couple of things I was to flag to go further in subsequent PRs. |
| # The language spec says that dicts preserve order from 3.7, but CPython | ||
| # does so from 3.6, so it seems likely that people will expect that. | ||
| DICT_IS_ORDERED = sys.version_info >= (3, 6) | ||
| DICT_IS_ORDERED = True |
There was a problem hiding this comment.
Once this is merge, then the next step is to look at where DICT_IS_ORDERED is defined, and simplify that. But we can leave that for another day, or another new contributor.
| vals = ('return', 'yield', 'yield from (_ for _ in range(3))') | ||
| async_safe = (True, | ||
| True, | ||
| False) |
There was a problem hiding this comment.
Now that async_safe is constant; once this is merged; there is probably some boolean logic that can be simplified below.
We can leave that for another new contributor.
|
Thanks @augustogoulart for the review and @kousikmitra for the code. The Pull request is good. I can push a change to to that if you are not feeling comfortable doing so. |
|
hey, I am adding the deprecation warning. and I can also resolve other issues if you are okay with that or I can leave those for another contributor. |
|
Seems good ! Let's get that in. |
* master: (28 commits) back to dev release 7.10.0 update github stats update changes in API update whats new Support prompt_toolkit 3.0 as well. Fill in some missing words Expand docs on how cells are executed some more update to wn and migrate to the right file Update the what's new. Fix the issue with %run-ing something with multiprocessing Add a failing test if we %run something with multiprocessing Update readme with links to (som) similar projects. remove unchanging boolean DICT_IS_ORDERED and dependent unreachable code Thanks original work typo Added deprecation warning for enable_win_unicode_console ipython#11953 Removed codepath for Python < 3.6 from test functions ipython#11949 Removed codepath for Python < 3.6 ipython#11949 Deprecate some methods the should not be used anymore ...
* master: (28 commits) back to dev release 7.10.0 update github stats update changes in API update whats new Support prompt_toolkit 3.0 as well. Fill in some missing words Expand docs on how cells are executed some more update to wn and migrate to the right file Update the what's new. Fix the issue with %run-ing something with multiprocessing Add a failing test if we %run something with multiprocessing Update readme with links to (som) similar projects. remove unchanging boolean DICT_IS_ORDERED and dependent unreachable code Thanks original work typo Added deprecation warning for enable_win_unicode_console ipython#11953 Removed codepath for Python < 3.6 from test functions ipython#11949 Removed codepath for Python < 3.6 ipython#11949 Deprecate some methods the should not be used anymore ...
Remove unnecessary checks for python version < 3.6
Closes #11949