Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/curses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ Mouse

Return ``True`` if the mouse driver has been successfully initialized.

Availability: ncurses 5.8 or later.
Availability: if the underlying curses library provides ``has_mouse()``.

.. versionadded:: next

Expand Down
5 changes: 0 additions & 5 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1111,11 +1111,6 @@ iterations of the loop.
Works as :opcode:`STORE_NAME`, but stores the name as a global.


.. opcode:: DELETE_GLOBAL (namei)

Deletes a global name.


.. opcode:: LOAD_CONST (consti)

Pushes ``co_consts[consti]`` onto the stack.
Expand Down
9 changes: 6 additions & 3 deletions Doc/library/shutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ Directory and files operations

The destination location must be writable; otherwise, an :exc:`OSError`
exception will be raised. If *dst* already exists, it will be replaced.
Special files such as character or block devices and pipes cannot be
copied with this function.
Special files such as character or block devices, pipes, and sockets cannot
be copied with this function.

If *follow_symlinks* is false and *src* is a symbolic link,
a new symbolic link will be created instead of copying the
Expand All @@ -87,10 +87,13 @@ Directory and files operations
copy the file more efficiently. See
:ref:`shutil-platform-dependent-efficient-copy-operations` section.

.. versionchanged:: 3.15
:exc:`SpecialFileError` is now also raised for sockets and device files.

.. exception:: SpecialFileError

This exception is raised when :func:`copyfile` or :func:`copytree` attempt
to copy a named pipe.
to copy a named pipe, socket, or device file.

.. versionadded:: 2.7

Expand Down
1 change: 1 addition & 0 deletions Doc/tools/removed-ids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ c-api/file.html: deprecated-api

# Removed sections
library/asyncio-task.html: terminating-a-task-group
library/dis.html: opcode-DELETE_GLOBAL
library/dis.html: opcode-DELETE_NAME
library/asyncio-llapi-index.html: event-loop-policies

Expand Down
8 changes: 8 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,14 @@ shelve
(Contributed by Furkan Onder in :gh:`99631`.)


shutil
------

* :func:`shutil.copyfile` now also raises :exc:`~shutil.SpecialFileError` for
sockets and device files.
(Contributed by Savannah Ostrowski in :gh:`142693`.)


socket
------

Expand Down
3 changes: 2 additions & 1 deletion Include/internal/pycore_magic_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ Known values:
Python 3.16a0 3700 (Initial version)
Python 3.16a0 3701 (Add CONSTANT_EMPTY_TUPLE to LOAD_COMMON_CONSTANT)
Python 3.16a1 3702 (Replace DELETE_NAME with PUSH_NULL; STORE_NAME)
Python 3.16a1 3703 (Replace DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL)


Python 3.17 will start with 3750
Expand All @@ -313,7 +314,7 @@ PC/launcher.c must also be updated.

*/

#define PYC_MAGIC_NUMBER 3702
#define PYC_MAGIC_NUMBER 3703
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
(little-endian) and then appending b'\r\n'. */
#define PYC_MAGIC_NUMBER_TOKEN \
Expand Down
10 changes: 2 additions & 8 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading