diff options
| author | robot-contrib <[email protected]> | 2023-10-17 12:01:23 +0300 | 
|---|---|---|
| committer | robot-contrib <[email protected]> | 2023-10-17 13:04:07 +0300 | 
| commit | 76c7d125f60269c763b56795389abf92a99fa16e (patch) | |
| tree | 36630cad94f93a941e0549598f7b8aaa159747f0 /contrib/python | |
| parent | f657d570ad791fac09e4581d8f9a8696dcec39e3 (diff) | |
Update contrib/python/ipython/py3 to 8.16.1
Diffstat (limited to 'contrib/python')
| -rw-r--r-- | contrib/python/ipython/py3/.dist-info/METADATA | 2 | ||||
| -rw-r--r-- | contrib/python/ipython/py3/IPython/core/displayhook.py | 17 | ||||
| -rw-r--r-- | contrib/python/ipython/py3/IPython/core/release.py | 2 | ||||
| -rw-r--r-- | contrib/python/ipython/py3/IPython/utils/_sysinfo.py | 2 | ||||
| -rw-r--r-- | contrib/python/ipython/py3/ya.make | 2 | 
5 files changed, 16 insertions, 9 deletions
diff --git a/contrib/python/ipython/py3/.dist-info/METADATA b/contrib/python/ipython/py3/.dist-info/METADATA index 3107f0547a8..a3e7a39c413 100644 --- a/contrib/python/ipython/py3/.dist-info/METADATA +++ b/contrib/python/ipython/py3/.dist-info/METADATA @@ -1,6 +1,6 @@  Metadata-Version: 2.1  Name: ipython -Version: 8.16.0 +Version: 8.16.1  Summary: IPython: Productive Interactive Computing  Home-page: https://ipython.org  Author: The IPython Development Team diff --git a/contrib/python/ipython/py3/IPython/core/displayhook.py b/contrib/python/ipython/py3/IPython/core/displayhook.py index 1ea8d8506f5..b411f116139 100644 --- a/contrib/python/ipython/py3/IPython/core/displayhook.py +++ b/contrib/python/ipython/py3/IPython/core/displayhook.py @@ -51,7 +51,7 @@ class DisplayHook(Configurable):          # we need a reference to the user-level namespace          self.shell = shell - +                  self._,self.__,self.___ = '','',''          # these are deliberately global: @@ -83,9 +83,15 @@ class DisplayHook(Configurable):      def quiet(self):          """Should we silence the display hook because of ';'?""" -        if self.exec_result is not None: -            return self.semicolon_at_end_of_expression(self.exec_result.info.raw_cell) -        return False +        # do not print output if input ends in ';' +         +        try: +            cell = self.shell.history_manager.input_hist_parsed[-1] +        except IndexError: +            # some uses of ipshellembed may fail here +            return False +         +        return self.semicolon_at_end_of_expression(cell)      @staticmethod      def semicolon_at_end_of_expression(expression): @@ -274,12 +280,13 @@ class DisplayHook(Configurable):          cull_count = max(int(sz * self.cull_fraction), 2)          warn('Output cache limit (currently {sz} entries) hit.\n'               'Flushing oldest {cull_count} entries.'.format(sz=sz, cull_count=cull_count)) - +                  for i, n in enumerate(sorted(oh)):              if i >= cull_count:                  break              self.shell.user_ns.pop('_%i' % n, None)              oh.pop(n, None) +              def flush(self):          if not self.do_full_cache: diff --git a/contrib/python/ipython/py3/IPython/core/release.py b/contrib/python/ipython/py3/IPython/core/release.py index 4d0a244e40e..152ebcb87bb 100644 --- a/contrib/python/ipython/py3/IPython/core/release.py +++ b/contrib/python/ipython/py3/IPython/core/release.py @@ -17,7 +17,7 @@  # version  _version_major = 8  _version_minor = 16 -_version_patch = 0 +_version_patch = 1  _version_extra = ".dev"  # _version_extra = "rc1"  _version_extra = ""  # Uncomment this for full releases diff --git a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py index c1310937d1b..5e2eeadcf3e 100644 --- a/contrib/python/ipython/py3/IPython/utils/_sysinfo.py +++ b/contrib/python/ipython/py3/IPython/utils/_sysinfo.py @@ -1,2 +1,2 @@  # GENERATED BY setup.py -commit = "a6c67bdf4" +commit = "a2af83ddf" diff --git a/contrib/python/ipython/py3/ya.make b/contrib/python/ipython/py3/ya.make index e8cca25a188..14754c30919 100644 --- a/contrib/python/ipython/py3/ya.make +++ b/contrib/python/ipython/py3/ya.make @@ -2,7 +2,7 @@  PY3_LIBRARY() -VERSION(8.16.0) +VERSION(8.16.1)  LICENSE(BSD-3-Clause)  | 
