Skip to content

Removed codepath for Python < 3.6 #11949 - #11953

Merged
Carreau merged 3 commits into
ipython:masterfrom
kousikmitra:master
Nov 21, 2019
Merged

Carreau merged 3 commits into
ipython:masterfrom
kousikmitra:master

Conversation

@kousikmitra

@kousikmitra kousikmitra commented Nov 18, 2019 •

Copy link
Copy Markdown
Contributor

Remove unnecessary checks for python version < 3.6

Closes #11949

@augustogoulart

Copy link
Copy Markdown

@kousikmitra, thanks for your PR!
Just one minor comment (that can be completely ignored depending on what @Carreau's has to say):

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. 😊

@kousikmitra

Copy link
Copy Markdown
Contributor Author

@augustogoulart should I create a new pull request then?

@Carreau

Carreau commented Nov 20, 2019

Copy link
Copy Markdown
Member

I believe the idea was to have one PR per code block highlighted.

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.

Comment thread IPython/lib/pretty.py
# 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

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.

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.

Comment thread IPython/terminal/interactiveshell.py Resolved
vals = ('return', 'yield', 'yield from (_ for _ in range(3))')
async_safe = (True,
True,
False)

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.

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.

@Carreau

Carreau commented Nov 20, 2019

Copy link
Copy Markdown
Member

Thanks @augustogoulart for the review and @kousikmitra for the code. The Pull request is good.
My only concern is to not remove enable_win_unicode_console yet and have some deprecation cycle.

I can push a change to to that if you are not feeling comfortable doing so.

@kousikmitra

Copy link
Copy Markdown
Contributor Author

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.

@Carreau Carreau added this to the 7.10 milestone Nov 21, 2019
@Carreau

Carreau commented Nov 21, 2019 •

Copy link
Copy Markdown
Member

Seems good !

Let's get that in.

@Carreau
Carreau merged commit e382475 into ipython:master Nov 21, 2019
farisachugthai added a commit to farisachugthai/ipython that referenced this pull request Nov 29, 2019
* 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
  ...
farisachugthai added a commit to farisachugthai/ipython that referenced this pull request Nov 30, 2019
* 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
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove codepath for Python < 3.6

3 participants