Dong-hee Na
1b55b65638
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
6 years ago
Victor Stinner
60ac6ed557
bpo-39573: Use Py_SET_SIZE() function (GH-18402)
Replace direct acccess to PyVarObject.ob_size with usage of
the Py_SET_SIZE() function.
6 years ago
Batuhan Taşkaya
d0c92e81aa
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
6 years ago
Hansraj Das
2798b60c55
Typo fix - implemention should be implementation (GH-16806)
6 years ago
Min ho Kim
c4cacc8c5e
Fix typos in comments, docs and test names ( #15018 )
* Fix typos in comments, docs and test names
* Update test_pyparse.py
account for change in string length
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: Dealloccte -> Deallocate
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Update posixmodule checksum.
* Reverse idlelib changes.
6 years ago
Jeroen Demeyer
351c67416b
bpo-35983: skip trashcan for subclasses (GH-11841)
Add new trashcan macros to deal with a double deallocation that could occur when the `tp_dealloc` of a subclass calls the `tp_dealloc` of a base class and that base class uses the trashcan mechanism.
Patch by Jeroen Demeyer.
7 years ago
Serhiy Storchaka
d53fe5f407
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
7 years ago
Victor Stinner
a42de742e7
bpo-35059: Cast void* to PyObject* (GH-10650)
Don't pass void* to Python macros: use _PyObject_CAST().
7 years ago
Victor Stinner
bcda8f1d42
bpo-35081: Add Include/internal/pycore_object.h (GH-10640)
Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() from
Include/objimpl.h to Include/internal/pycore_object.h.
7 years ago
Victor Stinner
621cebe81b
bpo-35081: Rename internal headers (GH-10275)
Rename Include/internal/ headers:
* pycore_hash.h -> pycore_pyhash.h
* pycore_lifecycle.h -> pycore_pylifecycle.h
* pycore_mem.h -> pycore_pymem.h
* pycore_state.h -> pycore_pystate.h
Add missing headers to Makefile.pre.in and PCbuild:
* pycore_condvar.h.
* pycore_hamt.h
* pycore_pyhash.h
7 years ago
Victor Stinner
27e2d1f219
bpo-35081: Add pycore_ prefix to internal header files (GH-10263)
* Rename Include/internal/ header files:
* pyatomic.h -> pycore_atomic.h
* ceval.h -> pycore_ceval.h
* condvar.h -> pycore_condvar.h
* context.h -> pycore_context.h
* pygetopt.h -> pycore_getopt.h
* gil.h -> pycore_gil.h
* hamt.h -> pycore_hamt.h
* hash.h -> pycore_hash.h
* mem.h -> pycore_mem.h
* pystate.h -> pycore_state.h
* warnings.h -> pycore_warnings.h
* PCbuild project, Makefile.pre.in, Modules/Setup: add the
Include/internal/ directory to the search paths of header files.
* Update includes. For example, replace #include "internal/mem.h"
with #include "pycore_mem.h".
7 years ago
Zackery Spytz
d8c3e820b4
Fix GCC warning in Python/hamt.c (GH-7618)
8 years ago
Yury Selivanov
378c53cc31
bpo-33803: Fix a crash in hamt.c ( #7504 )
8 years ago
Ville Skyttä
61f82e0e33
Spelling fixes to docs, docstrings, and comments (GH-6374)
8 years ago
Xiang Zhang
3c7ac7ea20
Add two missing error checks in hamt.c (GH-5851)
8 years ago
Serhiy Storchaka
bfe4fd5f2e
Fix some warnings produced by different compilers. ( #5593 )
8 years ago
Yury Selivanov
55e0839f26
bpo-32436: Fix compiler warning ( #5483 )
8 years ago
Dmitry Alimov
01a0cb8916
Fix typo in hamt.c comments ( #5478 )
8 years ago
Yury Selivanov
b647d7039d
bpo-32707: Fix warnings in hamt.c ( #5430 )
8 years ago
Yury Selivanov
6ab62920c8
bpo-32436: Fix a refleak; var GC tracking; a GCC warning ( #5326 )
The refleak in question wasn't really important, as context vars
are usually created at the toplevel and live as long as the interpreter
lives, so the context var name isn't ever GCed anyways.
8 years ago
Dmitry Alimov
93a6119f08
Fix 3rd level node's binary representation in HAMT algorithm description ( #5319 )
8 years ago
Yury Selivanov
b7a80d543e
bpo-32436: Don't use native popcount() (also fixes bpo-32641) ( #5292 )
8 years ago
Yury Selivanov
0bad4d63c6
bpo-32436: Fix potential NULL dereference ( #5286 )
8 years ago
Yury Selivanov
83c8675edb
bpo-32436: Remove a redundant assert ( #5275 )
8 years ago
Yury Selivanov
f23746a934
bpo-32436: Implement PEP 567 ( #5027 )
8 years ago