Barney Gale
7bd6ebf696
GH-73991: Prune pathlib.Path.copy() and copy_into() arguments ( #123337 )
...
Remove *ignore* and *on_error* arguments from `pathlib.Path.copy[_into]()`,
because these arguments are under-designed. Specifically:
- *ignore* is appropriated from `shutil.copytree()`, but it's not clear
how it should apply when the user copies a non-directory. We've changed
the callback signature from the `shutil` version, but I'm not confident
the new signature is as good as it can be.
- *on_error* is a generalisation of `shutil.copytree()`'s error handling,
which is to accumulate exceptions and raise a single `shutil.Error` at
the end. It's not obvious which solution is better.
Additionally, this arguments may be challenging to implement in future user
subclasses of `PathBase`, which might utilise a native recursive copying
method.
2024-08-26 17:05:34 +01:00
..
2024-08-25 22:54:06 +00:00
2024-08-23 21:54:12 +05:30
2024-06-14 20:39:50 +02:00
2024-06-13 16:14:50 +02:00
2024-07-30 09:37:58 +02:00
2024-06-13 16:14:50 +02:00
2024-06-12 20:56:42 +02:00
2024-07-31 00:19:48 +02:00
2024-08-06 18:38:33 +00:00
2024-08-17 16:30:52 +03:00
2024-08-25 22:11:59 -04:00
2024-08-15 15:32:05 -04:00
2024-08-13 17:09:38 +01:00
2024-08-09 15:13:24 +02:00
2024-07-30 18:39:54 -07:00
2024-08-26 17:05:34 +01:00
2024-08-07 19:44:18 +00:00
2024-06-13 16:14:50 +02:00
2024-07-27 01:53:44 +00:00
2024-08-26 17:05:34 +01:00
2024-08-21 12:49:23 +00:00
2024-06-19 02:20:54 -04:00
2024-08-11 16:35:51 +00:00
2024-08-21 10:17:38 +03:00
2024-08-11 21:16:41 -07:00
2024-06-16 13:15:03 +01:00
2024-08-11 20:33:33 -04:00
2024-08-16 13:00:29 +08:00
2024-06-19 17:54:13 +01:00
2024-08-23 10:22:35 +01:00
2024-08-23 18:45:03 +03:00
2024-07-19 08:06:02 +00:00
2024-07-04 09:17:00 +02:00
2024-08-11 21:16:41 -07:00
2024-08-11 23:44:51 +00:00
2024-08-07 15:20:38 +02:00
2024-07-02 16:23:17 +05:30
2024-07-10 19:54:27 -07:00
2024-06-16 16:43:57 -04:00
2024-08-23 00:25:33 +01:00
2024-07-15 17:18:37 +00:00
2024-06-24 14:08:12 +02:00
2024-07-19 08:06:02 +00:00
2024-08-18 15:52:25 -04:00
2024-07-03 20:33:56 +05:30
2024-07-19 08:06:02 +00:00
2024-08-11 21:16:41 -07:00
2024-06-13 16:14:50 +02:00
2024-07-19 08:06:02 +00:00
2024-06-10 14:06:18 +03:00
2024-08-21 14:46:24 +01:00
2024-08-07 07:39:16 +01:00
2024-07-30 08:50:30 +00:00
2024-07-19 08:06:53 +03:00
2024-07-23 21:16:50 +00:00
2024-08-12 18:15:57 +03:00
2024-06-07 17:59:34 +01:00
2024-06-15 18:46:39 +00:00
2024-06-13 16:14:50 +02:00
2024-08-20 20:10:15 +03:00
2024-06-06 00:52:40 +03:00
2024-07-27 10:10:42 +00:00
2024-06-13 16:14:50 +02:00
2024-08-07 07:39:16 +01:00
2024-06-12 20:56:42 +02:00
2024-08-16 17:11:24 +01:00
2024-08-10 20:16:34 +01:00
2024-07-08 17:41:01 +01:00
2024-08-07 07:39:16 +01:00
2024-08-05 16:21:32 +03:00
2024-06-13 16:14:50 +02:00
2024-06-05 18:54:50 +01:00
2024-08-07 22:46:54 +03:00
2024-07-19 08:06:02 +00:00
2024-07-23 20:45:21 +03:00
2024-07-19 08:06:02 +00:00
2024-07-19 08:06:02 +00:00
2024-08-21 00:39:24 +00:00
2024-07-16 00:24:18 +02:00
2024-07-31 10:24:15 +02:00
2024-08-16 22:27:44 +02:00
2024-06-12 20:56:42 +02:00
2024-07-19 08:06:02 +00:00
2024-06-13 16:14:50 +02:00
2024-07-30 18:39:54 -07:00
2024-07-22 07:04:17 -07:00
2024-06-15 05:04:14 -06:00
2024-07-26 16:34:13 +02:00
2024-07-30 11:53:07 +03:00
2024-08-19 15:09:03 +00:00
2024-08-13 19:39:12 +03:00
2024-08-11 23:42:57 +00:00
2024-08-07 07:39:16 +01:00
2024-07-23 10:59:28 +01:00
2024-07-30 15:31:05 -04:00