David CARLIER
0e62efc51e
bpo-42232: mmap module add Darwin specific madvise options. (GH-23076)
2020-11-21 03:39:56 -08:00
Erlend Egeberg Aasland
74b4eda98b
bpo-40077: Convert mmap.mmap static type to a heap type (GH-23108)
2020-11-03 10:38:31 +01:00
Dong-hee Na
3ad52e366f
bpo-1635741: Port mmap module to multiphase initialization (GH-19459)
2020-06-06 00:01:02 +09:00
Ethan Steinberg
21fda91f8d
bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)
...
MAP_POPULATE constant has now been added to the list of exported
mmap module flags.
2020-05-26 23:42:18 +02:00
Batuhan Taskaya
f3a5b7ada0
bpo-39481: remove generic classes from ipaddress/mmap (GH-20045)
...
These were added by mistake (see https://bugs.python.org/issue39481#msg366288 ).
2020-05-11 19:32:40 -07:00
Victor Stinner
4a21e57fe5
bpo-40268: Remove unused structmember.h includes (GH-19530)
...
If only offsetof() is needed: include stddef.h instead.
When structmember.h is used, add a comment explaining that
PyMemberDef is used.
2020-04-15 02:35:41 +02:00
Ethan Smith
7c4185d62d
bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)
2020-04-09 21:25:53 -07:00
Hai Shi
06cd5b6acd
bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746)
2019-10-21 09:31:46 +03:00
Taine Zhao
d8ca2354ed
bpo-34953: Implement mmap.mmap.__repr__ (GH-9891)
2019-10-17 18:41:35 +08:00
Hai Shi
56a45142e7
Fix a possbile refleak in setint() of mmapmodule.c (GH-16136)
2019-09-16 13:56:57 +08:00
Jeroen Demeyer
762f93ff2e
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
2019-07-08 17:19:25 +09:00
Zackery Spytz
08286d52b2
bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152)
...
Also, add a missing call to va_end() in PySys_Audit().
2019-06-21 08:31:59 -07:00
Jeroen Demeyer
530f506ac9
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
...
Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async
2019-05-30 19:13:39 -07:00
Zackery Spytz
02db696732
bpo-32941: Add madvise() for mmap objects (GH-6172)
...
Allow mmap objects to access the madvise() system call.
2019-05-27 18:48:16 +02:00
Steve Dower
b82e17e626
bpo-36842: Implement PEP 578 (GH-12613)
...
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
2019-05-23 08:45:22 -07:00
Lihua Zhao
4fb1502189
bpo-36648: fix mmap issue for VxWorks (GH-12394)
...
The mmap module set MAP_SHARED flag when map anonymous memory, however VxWorks
only support MAP_PRIVATE when map anonymous memory, this commit clear MAP_SHARED
and set MAP_PRIVATE.
2019-05-21 12:50:14 +02:00
Zackery Spytz
14514d9084
bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375)
...
The final addition (cur += step) may overflow, so use size_t for "cur".
"cur" is always positive (even for negative steps), so it is safe to use
size_t here.
Co-Authored-By: Martin Panter <vadmium+py@gmail.com >
2019-05-17 10:13:03 +03:00
Davide Rizzo
dc078947a5
bpo-36139: Fix mmap_object_dealloc(): hold the GIL to call PyMem_Free() (GH-12199)
2019-03-06 18:08:31 +01:00
Davide Rizzo
bb9593af0a
closes bpo-36139: release GIL around munmap(). (GH-12073)
2019-03-06 07:52:34 -08:00
Serhiy Storchaka
d4f9cf5545
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
...
Fix also return type for few other functions (clear, releasebuffer).
2018-11-27 19:34:35 +02:00
Peter Eisentraut
0e0bc4e221
Fix misleading mentions of tp_size in comments (GH-9093)
...
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.
2018-09-10 09:46:08 -07:00
Berker Peksag
e7d4b2f205
bpo-2122: Make mmap.flush() behave same on all platforms (GH-8692)
...
Previously, its behavior was platform-dependent and there was no error checking
under Windows.
2018-08-22 21:21:05 +03:00
Zackery Spytz
e9e3976057
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
...
Raise TypeError instead of SystemError for unsupported operations.
2018-06-05 15:59:41 +03:00
Zackery Spytz
9308dea3e1
Fix typos in mmap() error messages (GH-6173)
2018-03-21 14:02:37 +08:00
Zackery Spytz
d6e1404661
bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c ( #6117 )
2018-03-14 21:08:01 +01:00