傅立业(Chris Fu)
94f458f2df
Add trackfd onto mmap.mmap constructor ( #13000 )
2024-11-11 18:32:00 -08:00
Stephen Morton
7b794ef343
remove unneeded fake base classes from mmap.mmap ( #12807 )
2024-10-14 23:38:35 +01:00
Max Muoto
b20dd41bec
Add MAP_NORESERVE for Linux ( #12385 )
2024-07-20 21:38:30 -07:00
Max Muoto
9f9a461bc1
Add mmap MacOS constants for 3.13 ( #12374 )
2024-07-20 12:17:05 -07:00
Max Muoto
989e25043c
More accurate mmap.seekable type for 3.13 ( #12264 )
2024-07-02 19:12:01 -07:00
Alex Waygood
3ab03deec3
Upgrade to latest 3.12 and 3.13 versions for stubtest ( #12131 )
2024-06-12 05:16:39 -06:00
Amin Alaee
321c0ce75e
math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062 )
2024-05-30 14:56:22 +02:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Alex Waygood
205cfcfca6
Fix availability of some constants for Windows ( #10818 )
2023-10-01 16:27:55 -07:00
Nikita Sobolev
c9835481e3
Add MAP_STACK to mmap module ( #10792 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-28 11:12:41 +01:00
Jelle Zijlstra
c0a0c34020
Use PEP 688 ( #10225 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-27 19:55:30 -07:00
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Avasam
c70d303985
Audit stdlib object annotations ( #9519 )
2023-01-17 15:40:00 +00:00
Samuel T
796bdc2eb0
Improve accuracy of six byte index methods ( #9117 )
2022-11-09 19:22:33 -08:00
Shantanu
5b1ef8b119
mmap: add MADV_FREE on darwin ( #7923 )
...
Co-authored-by: hauntsaninja <>
2022-05-22 15:30:09 -07:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
db6f912c77
Improve mmap.mmap.__enter__ ( #7461 )
...
It returns `Self` at runtime, not `mmap.mmap`, so inheriting from `AbstractContextManager` doesn't really do anything for us.
2022-03-08 07:47:56 -08:00
Alex Waygood
947724a5cb
stdlib: Add several missing @abstractmethod decorators ( #7443 )
2022-03-06 16:41:13 -08:00
Alex Waygood
f4967618dd
Fix positional-only differences in many stdlib modules ( #7226 )
2022-02-15 15:14:06 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Versus
556e623a81
Add mmap.MAP_POPULATE from 3.10 ( #6964 )
2022-01-20 14:30:27 +01:00
Alex Waygood
a9cfd23fc3
Further reduce use of deprecated contextlib aliases ( #6370 )
2021-11-23 15:25:39 -08:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Charly C
389b92cb04
fix the stub files for the stdlib mmap module ( #5705 )
...
In Python 3:
- The `mmap` type is `Iterable[int]`, not `Iterable[bytes]`.
- The `read_byte` method returns an `int`, and the `write_byte` method only accepts an `int` as its first and only argument.
- The `__setitem__` method accepts any `ReadableBuffer` object, not just `bytes`.
In both Python 2 and 3:
- The `__delitem__` method always raises a `TypeError`, so the proper return type is `NoReturn`.
- The `mmap` type isn't generic, so I've simplified the stubs by removing the unnecessary `_mmap` class.
2021-06-29 08:01:32 -07:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
hatal175
244fc622e6
Add workflow stubtests for macos ( #5384 )
...
* Add macos to stubtest
* Add general darwin stubtest exception file
* Adding exceptions and platform ifs
2021-05-09 23:24:00 +03:00
hatal175
2dc02ae8a9
Fix stubtest issues ( #5360 )
...
* Fix some stubtest issues
* Remove MADV_SOFT_OFFLINE
2021-05-07 19:10:03 +03:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00