Go to file
Daniel Garcia a7b11641fe Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory
- Update patch fix_configure_rst.patch
- Update to 3.11.7:
  - Core and Builtins
    - gh-112625: Fixes a bug where a bytearray object could be cleared
      while iterating over an argument in the bytearray.join() method
      that could result in reading memory after it was freed.
    - gh-112388: Fix an error that was causing the parser to try to
      overwrite tokenizer errors. Patch by pablo Galindo
    - gh-112387: Fix error positions for decoded strings with
      backwards tokenize errors. Patch by Pablo Galindo
    - gh-112266: Change docstrings of __dict__ and __weakref__.
    - gh-109181: Speed up Traceback object creation by lazily compute
      the line number. Patch by Pablo Galindo
    - gh-102388: Fix a bug where iso2022_jp_3 and iso2022_jp_2004
      codecs read out of bounds
    - gh-111366: Fix an issue in the codeop that was causing
      SyntaxError exceptions raised in the presence of invalid syntax
      to not contain precise error messages. Patch by Pablo Galindo
    - gh-111380: Fix a bug that was causing SyntaxWarning to appear
      twice when parsing if invalid syntax is encountered later. Patch
      by Pablo galindo
    - gh-88116: Traceback location ranges involving wide unicode
      characters (like emoji and asian characters) now are properly
      highlighted. Patch by Batuhan Taskaya and Pablo Galindo.
    - gh-94438: Fix a regression that prevented jumping across is None
      and is not None when debugging. Patch by Savannah Ostrowski.
    - gh-110696: Fix incorrect error message for invalid argument
      unpacking. Patch by Pablo Galindo
    - gh-110237: Fix missing error checks for calls to PyList_Append
      in _PyEval_MatchClass.
    - gh-109216: Fix possible memory leak in BUILD_MAP.
  - Library
    - gh-112618: Fix a caching bug relating to typing.Annotated.
      Annotated[str, True] is no longer identical to Annotated[str,
      1].
    - gh-112509: Fix edge cases that could cause a key to be present
      in both the __required_keys__ and __optional_keys__ attributes
      of a typing.TypedDict. Patch by Jelle Zijlstra.
    - gh-94722: Fix bug where comparison between instances of DocTest
      fails if one of them has None as its lineno.
    - gh-112105: Make readline.set_completer_delims() work with
      libedit
    - gh-111942: Fix SystemError in the TextIOWrapper constructor with
      non-encodable “errors” argument in non-debug mode.
    - gh-109538: Issue warning message instead of having RuntimeError
      be displayed when event loop has already been closed at
      StreamWriter.__del__().
    - gh-111942: Fix crashes in io.TextIOWrapper.reconfigure() when
      pass invalid arguments, e.g. non-string encoding.
    - gh-111804: Remove posix.fallocate() under WASI as the underlying
      posix_fallocate() is not available in WASI preview2.
    - gh-111841: Fix truncating arguments on an embedded null
      character in os.putenv() and os.unsetenv() on Windows.
    - gh-111541: Fix doctest for SyntaxError not-builtin subclasses.
    - gh-110894: Call loop exception handler for exceptions in
      client_connected_cb of asyncio.start_server() so that
      applications can handle it. Patch by Kumar Aditya.
    - gh-111531: Fix reference leaks in bind_class() and bind_all()
      methods of tkinter widgets.
    - gh-111356: Added io.text_encoding(), io.DEFAULT_BUFFER_SIZE, and
      io.IncrementalNewlineDecoder to io.__all__.
    - gh-68166: Remove mention of not supported “vsapi” element type
      in tkinter.ttk.Style.element_create(). Add tests for
      element_create() and other ttk.Style methods. Add examples for
      element_create() in the documentation.
    - gh-111251: Fix _blake2 not checking for errors when
      initializing.
    - gh-111174: Fix crash in io.BytesIO.getbuffer() called repeatedly
      for empty BytesIO.
    - gh-111187: Postpone removal version for
      locale.getdefaultlocale() to Python 3.15.
    - gh-111159: Fix doctest output comparison for exceptions with
      notes.
    - gh-110910: Fix invalid state handling in asyncio.TaskGroup and
      asyncio.Timeout. They now raise proper RuntimeError if they are
      improperly used and are left in consistent state after this.
    - gh-111092: Make turtledemo run without default root enabled.
    - gh-110590: Fix a bug in _sre.compile() where TypeError would be
      overwritten by OverflowError when the code argument was a list
      of non-ints.
    - gh-65052: Prevent pdb from crashing when trying to display
      undisplayable objects
    - gh-110519: Deprecation warning about non-integer number in
      gettext now alwais refers to the line in the user code where
      gettext function or method is used. Previously it could refer to
      a line in gettext code.
    - gh-110378: contextmanager() and asynccontextmanager() context
      managers now close an invalid underlying generator object that
      yields more then one value.
    - gh-110365: Fix termios.tcsetattr() bug that was overwritting
      existing errors during parsing integers from term list.
    - gh-110196: Add __reduce__ method to IPv6Address in order to keep
      scope_id
    - gh-109747: Improve errors for unsupported look-behind patterns.
      Now re.error is raised instead of OverflowError or RuntimeError
      for too large width of look-behind pattern.
    - gh-109786: Fix possible reference leaks and crash when re-enter
      the __next__() method of itertools.pairwise.
    - gh-108791: Improved error handling in pdb command line
      interface, making it produce more concise error messages.
    - gh-73561: Omit the interface scope from an IPv6 address when
      used as Host header by http.client.
    - gh-86826: zipinfo now supports the full range of values in the
      TZ string determined by RFC 8536 and detects all invalid
      formats. Both Python and C implementations now raise exceptions
      of the same type on invalid data.
    - bpo-41422: Fixed memory leaks of pickle.Pickler and
      pickle.Unpickler involving cyclic references via the internal
      memo mapping.
    - bpo-40262: The ssl.SSLSocket.recv_into() method no longer
      requires the buffer argument to implement __len__ and supports
      buffers with arbitrary item size.
    - bpo-35191: Fix unexpected integer truncation in
      socket.setblocking() which caused it to interpret multiples of
      2**32 as False.
  - Documentation
    - gh-108826: dis module command-line interface is now mentioned in
      documentation.
  - Tests
    - gh-110367: Make regrtest --verbose3 option compatible with
      --huntrleaks -jN options. The ./python -m test -j1 -R 3:3
      --verbose3 command now works as expected. Patch by Victor
      Stinner.
    - gh-111309: distutils tests can now be run via unittest.
    - gh-111165: Remove no longer used functions run_unittest() and
      run_doctest() and class BasicTestRunner from the test.support
      module.
    - gh-110932: Fix regrtest if the SOURCE_DATE_EPOCH environment
      variable is defined: use the variable value as the random seed.
      Patch by Victor Stinner.
    - gh-110995: test_gdb: Fix detection of gdb built without Python
      scripting support. Patch by Victor Stinner.
    - gh-110918: Test case matching patterns specified by options
      --match, --ignore, --matchfile and --ignorefile are now tested
      in the order of specification, and the last match determines
      whether the test case be run or ignored.
    - gh-110647: Fix test_stress_modifying_handlers() of test_signal.
      Patch by Victor Stinner.
    - gh-103053: Fix test_tools.test_freeze on FreeBSD: run “make
      distclean” instead of “make clean” in the copied source
      directory to remove also the “python” program. Patch by Victor
      Stinner.
    - gh-110167: Fix a deadlock in test_socket when server fails with
      a timeout but the client is still running in its thread. Don’t
      hold a lock to call cleanup functions in doCleanups(). One of
      the cleanup function waits until the client completes, whereas
      the client could deadlock if it called addCleanup() in such
      situation. Patch by Victor Stinner.
    - gh-110388: Add tests for tty.
    - gh-81002: Add tests for termios.
    - gh-110267: Add tests for pickling and copying PyStructSequence
      objects. Patched by Xuehai Pan.
    - gh-109974: Fix race conditions in test_threading lock tests.
      Wait until a condition is met rather than using time.sleep()
      with a hardcoded number of seconds. Patch by Victor Stinner.
    - gh-109972: Split test_gdb.py file into a test_gdb package made
      of multiple tests, so tests can now be run in parallel. Patch by
      Victor Stinner.
    - gh-104736: Fix test_gdb on Python built with LLVM clang 16 on
      Linux ppc64le (ex: Fedora 38). Search patterns in gdb “bt”
      command output to detect when gdb fails to retrieve the
      traceback. For example, skip a test if Backtrace stopped: frame
      did not save the PC is found. Patch by Victor Stinner.
    - gh-108927: Fixed order dependence in running tests in the same
      process when a test that has submodules (e.g. test_importlib)
      follows a test that imports its submodule (e.g.
      test_importlib.util) and precedes a test (e.g. test_unittest or
      test_compileall) that uses that submodule.
  - Build
    - gh-103053: “make check-clean-src” now also checks if the
      “python” program is found in the source directory: fail with an
      error if it does exist. Patch by Victor Stinner.
    - gh-109191: Fix compile error when building with recent versions
      of libedit.
  - IDLE
    - bpo-35668: Add docstrings to the IDLE debugger module. Fix two
      bugs: initialize Idb.botframe (should be in Bdb); in
      Idb.in_rpc_code, check whether prev_frame is None before trying
      to use it. Greatly expand test_debugger.
  - C API
    - gh-112438: Fix support of format units “es”, “et”, “es#”, and
      “et#” in nested tuples in PyArg_ParseTuple()-like functions.
    - gh-109521: PyImport_GetImporter() now sets RuntimeError if it
      fails to get sys.path_hooks or sys.path_importer_cache or they
      are not list and dict correspondingly. Previously it could
      return NULL without setting error in obscure cases, crash or
      raise SystemError if these attributes have wrong type.

OBS-URL: https://build.opensuse.org/request/show/1133399
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=89
2023-12-15 12:09:56 +00:00
_multibuild OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
.gitattributes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
.gitignore OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
baselibs.conf Fix baselibs.conf 2022-05-09 15:13:18 +00:00
bluez-devel-vendor.tar.xz - Refresh bluez-devel-vendor.tar.xz 2022-05-10 16:49:16 +00:00
bpo-31046_ensurepip_honours_prefix.patch Accepting request 1126597 from home:dgarcia:branches:devel:languages:python:Factory 2023-11-15 12:57:57 +00:00
CVE-2023-27043-email-parsing-errors.patch - Add Revert-gh105127-left-tests.patch (gh#python/cpython!106941) 2023-08-03 14:58:20 +00:00
distutils-reproducible-compile.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
externally_managed.in Accepting request 1102676 from home:dirkmueller:Factory 2023-08-07 14:46:39 +00:00
F00251-change-user-install-location.patch Readjust patches. 2022-05-10 11:17:42 +00:00
fix_configure_rst.patch Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory 2023-12-15 12:09:56 +00:00
idle3.appdata.xml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
idle3.desktop OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
import_failed.map - fix import_failed.map to refer to the python 3.11 package versions 2022-08-20 21:31:49 +00:00
import_failed.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
macros.python3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
no-skipif-doctests.patch Readjust patches 2023-07-18 15:10:43 +00:00
PACKAGING-NOTES OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
pre_checkin.sh OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
python311-rpmlintrc - Don't fail on Sphinx build warnings. 2023-01-19 10:07:22 +00:00
python311.changes Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory 2023-12-15 12:09:56 +00:00
python311.spec Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory 2023-12-15 12:09:56 +00:00
python-3.3.0b1-fix_date_time_compiler.patch - Update to 3.11.1: 2022-12-08 15:05:06 +00:00
python-3.3.0b1-localpath.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
python-3.3.0b1-test-posix_fadvise.patch - Update to 3.11.0b2: 2022-05-31 20:57:46 +00:00
Python-3.11.6.tar.xz Accepting request 1126597 from home:dgarcia:branches:devel:languages:python:Factory 2023-11-15 12:57:57 +00:00
Python-3.11.6.tar.xz.asc Accepting request 1126597 from home:dgarcia:branches:devel:languages:python:Factory 2023-11-15 12:57:57 +00:00
Python-3.11.7.tar.xz Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory 2023-12-15 12:09:56 +00:00
Python-3.11.7.tar.xz.asc Accepting request 1133399 from home:dgarcia:branches:devel:languages:python:Factory 2023-12-15 12:09:56 +00:00
python.keyring OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
README.SUSE OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
Revert-gh105127-left-tests.patch - Add Revert-gh105127-left-tests.patch (gh#python/cpython!106941) 2023-08-03 14:58:20 +00:00
skip_if_buildbot-extend.patch Fix the patch 2023-05-03 07:07:31 +00:00
skip-test_pyobject_freed_is_freed.patch Ajust patches 2023-04-27 22:23:56 +00:00
skipped_tests.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=2 2022-05-09 15:04:49 +00:00
subprocess-raise-timeout.patch Fix patches 2023-06-28 19:55:36 +00:00
support-expat-CVE-2022-25236-patched.patch - Update to 3.11.0rc2: 2022-09-15 09:14:50 +00:00

Python 3 in SUSE
==============

* Subpackages *

Python 3 is split into several subpackages, based on external dependencies.
The main package 'python3' has soft dependencies on all subpackages needed to
assemble the standard library; however, these might not all be installed by default.

If you attempt to import a module that is currently not installed, an ImportError is thrown,
with instructions to install the missing subpackage. Installing the subpackage might result
in installing libraries that the subpackage requires to function.


* ensurepip *

The 'ensurepip' module from Python 3 standard library (PEP 453) is supposed to deploy
a bundled copy of the pip installer. This makes no sense in a managed distribution like SUSE.
Instead, you need to install package 'python3-pip'. Usually this will be installed automatically
with 'python3'.

Using 'ensurepip' when pip is not installed will result in an ImportError with instructions
to install 'python3-pip'.


* Documentation *

You can find documentation in seprarate packages: python3-doc and
python3-doc-pdf. These contan following documents:

    Tutorial, What's New in Python, Global Module Index, Library Reference,
    Macintosh Module Reference, Installing Python Modules, Distributing Python
    Modules, Language Reference, Extending and Embedding, Python/C API,
    Documenting Python 

The python3-doc package constains many text files from source tarball.


* Interactive mode *

Interactive mode is by default enhanced with of history and command completion.
If you don't like these features, you can unset the PYTHONSTARTUP variable
in your .profile or disable it system wide in /etc/profile.d/python.sh.