]> granicus.if.org Git - python/log
python
8 years agoIssue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Alexander Belopolsky [Wed, 28 Sep 2016 00:27:55 +0000 (20:27 -0400)]
Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.

Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.

8 years agoIssue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Alexander Belopolsky [Wed, 28 Sep 2016 00:26:39 +0000 (20:26 -0400)]
Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.

Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.

8 years agoUpdate typing.py and test_typing.py from upstream (https://github.com/python/typing...
Guido van Rossum [Tue, 27 Sep 2016 22:22:40 +0000 (15:22 -0700)]
Update typing.py and test_typing.py from upstream (https://github.com/python/typing) (merge 3.5->3.6)

8 years agoUpdate typing.py and test_typing.py from upstream (https://github.com/python/typing)
Guido van Rossum [Tue, 27 Sep 2016 22:20:12 +0000 (15:20 -0700)]
Update typing.py and test_typing.py from upstream (https://github.com/python/typing)

8 years agoIssue #28283: Merge from 3.5
Berker Peksag [Tue, 27 Sep 2016 21:40:18 +0000 (00:40 +0300)]
Issue #28283: Merge from 3.5

8 years agoIssue #28283: Remove flaky test test_sock_connect_sock_write_race
Berker Peksag [Tue, 27 Sep 2016 21:39:36 +0000 (00:39 +0300)]
Issue #28283: Remove flaky test test_sock_connect_sock_write_race

8 years agoIssue #20947: Fixed a gcc warning with -Wstrict-overflow.
Serhiy Storchaka [Tue, 27 Sep 2016 19:04:45 +0000 (22:04 +0300)]
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.

8 years agoIssue #20947: Fixed a gcc warning with -Wstrict-overflow.
Serhiy Storchaka [Tue, 27 Sep 2016 19:03:51 +0000 (22:03 +0300)]
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.

8 years agoIssue #21578: Fixed misleading error message when ImportError called with
Serhiy Storchaka [Tue, 27 Sep 2016 17:51:04 +0000 (20:51 +0300)]
Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.

8 years agoIssue #21578: Fixed misleading error message when ImportError called with
Serhiy Storchaka [Tue, 27 Sep 2016 17:45:35 +0000 (20:45 +0300)]
Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.

8 years agoIssue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Serhiy Storchaka [Tue, 27 Sep 2016 17:23:41 +0000 (20:23 +0300)]
Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.

8 years agoIssue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Serhiy Storchaka [Tue, 27 Sep 2016 17:14:26 +0000 (20:14 +0300)]
Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.

8 years agoIssue #26439: Merge ctypes doc from 3.5 into 3.6
Martin Panter [Tue, 27 Sep 2016 05:26:12 +0000 (05:26 +0000)]
Issue #26439: Merge ctypes doc from 3.5 into 3.6

8 years agoIssue #26439: Document that RTLD_NOW is always added
Martin Panter [Tue, 27 Sep 2016 05:10:40 +0000 (05:10 +0000)]
Issue #26439: Document that RTLD_NOW is always added

8 years agoIssue #18844: Make the number of selections a keyword-only argument for random.choices().
Raymond Hettinger [Tue, 27 Sep 2016 04:45:57 +0000 (21:45 -0700)]
Issue #18844: Make the number of selections a keyword-only argument for random.choices().

8 years agoIssue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
Serhiy Storchaka [Mon, 26 Sep 2016 21:14:24 +0000 (00:14 +0300)]
Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.

8 years agoIssue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
Serhiy Storchaka [Mon, 26 Sep 2016 21:10:03 +0000 (00:10 +0300)]
Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.

8 years agoIssue #10673: Merge from 3.5
Berker Peksag [Mon, 26 Sep 2016 20:22:44 +0000 (23:22 +0300)]
Issue #10673: Merge from 3.5

8 years agoIssue #10673: Document that Process.exitcode can be used to determine timeout
Berker Peksag [Mon, 26 Sep 2016 20:22:22 +0000 (23:22 +0300)]
Issue #10673: Document that Process.exitcode can be used to determine timeout

Patch by Tom Clark.

8 years agoIssue #27914: Fixed a comment in PyModule_ExcDef.
Serhiy Storchaka [Mon, 26 Sep 2016 20:14:44 +0000 (23:14 +0300)]
Issue #27914: Fixed a comment in PyModule_ExcDef.
Patch by Xiang Zhang.

8 years agoIssue #18893: Merge from 3.5
Berker Peksag [Mon, 26 Sep 2016 20:07:38 +0000 (23:07 +0300)]
Issue #18893: Merge from 3.5

8 years agoIssue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py
Berker Peksag [Mon, 26 Sep 2016 20:06:32 +0000 (23:06 +0300)]
Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py

Patch by Madison May.

8 years agoissue #28144: Decrease empty_keys_struct's dk_refcnt
Serhiy Storchaka [Mon, 26 Sep 2016 20:01:23 +0000 (23:01 +0300)]
issue #28144: Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more.
Patch by Xiang Zhang.

8 years agoMerge from 3.5
Berker Peksag [Mon, 26 Sep 2016 19:50:32 +0000 (22:50 +0300)]
Merge from 3.5

8 years agoDocument that os.mknod() is not available on Windows
Berker Peksag [Mon, 26 Sep 2016 19:50:11 +0000 (22:50 +0300)]
Document that os.mknod() is not available on Windows

Reported by Regina Ochotzki on docs@p.o.

8 years agoMerge from 3.5
Berker Peksag [Mon, 26 Sep 2016 19:44:32 +0000 (22:44 +0300)]
Merge from 3.5

8 years agoos.genenvb() is not availabnle under Windows
Berker Peksag [Mon, 26 Sep 2016 19:44:07 +0000 (22:44 +0300)]
os.genenvb() is not availabnle under Windows

8 years agoIssue #28194: Clean up some checks in dict implementation.
Serhiy Storchaka [Mon, 26 Sep 2016 18:29:34 +0000 (21:29 +0300)]
Issue #28194: Clean up some checks in dict implementation.
Patch by Xiang Zhang.

8 years agoIssues #25909, #28211: Restored correct documentation of PyMapping_Items,
Serhiy Storchaka [Mon, 26 Sep 2016 17:53:27 +0000 (20:53 +0300)]
Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
PyMapping_Keys and PyMapping_Values.  Based on patch by Xiang Zhang.

8 years agoIssues #25909, #28211: Restored correct documentation of PyMapping_Items,
Serhiy Storchaka [Mon, 26 Sep 2016 17:52:41 +0000 (20:52 +0300)]
Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
PyMapping_Keys and PyMapping_Values.  Based on patch by Xiang Zhang.

8 years agoIssue #28277: remove linefeed character from iomodule.h. Patch by Michael Felt
Christian Heimes [Mon, 26 Sep 2016 12:08:47 +0000 (14:08 +0200)]
Issue #28277: remove linefeed character from iomodule.h. Patch by Michael Felt

8 years agoIssue #11957: Restored re tests for passing count and maxsplit as positional
Serhiy Storchaka [Sun, 25 Sep 2016 17:39:04 +0000 (20:39 +0300)]
Issue #11957: Restored re tests for passing count and maxsplit as positional
arguments.

8 years agoIssue #11957: Restored re tests for passing count and maxsplit as positional
Serhiy Storchaka [Sun, 25 Sep 2016 17:36:23 +0000 (20:36 +0300)]
Issue #11957: Restored re tests for passing count and maxsplit as positional
arguments.

8 years agoIssue #27611: Fixed support of default root window in the tkinter.tix module.
Serhiy Storchaka [Sun, 25 Sep 2016 13:52:13 +0000 (16:52 +0300)]
Issue #27611: Fixed support of default root window in the tkinter.tix module.
Added the master parameter in the DisplayStyle constructor.

8 years agoIssue #27611: Fixed support of default root window in the tkinter.tix module.
Serhiy Storchaka [Sun, 25 Sep 2016 13:46:10 +0000 (16:46 +0300)]
Issue #27611: Fixed support of default root window in the tkinter.tix module.

8 years agoRemove mention of asyncio.timeout context manager (it was removed)
Guido van Rossum [Sat, 24 Sep 2016 16:31:23 +0000 (09:31 -0700)]
Remove mention of asyncio.timeout context manager (it was removed)

8 years agoIssue #28203: Merge from 3.5
Mark Dickinson [Sat, 24 Sep 2016 14:28:34 +0000 (15:28 +0100)]
Issue #28203: Merge from 3.5

8 years agoIssue #28203: Fix incorrect type in error message from complex(1.0, {2:3}). Patch...
Mark Dickinson [Sat, 24 Sep 2016 14:26:36 +0000 (15:26 +0100)]
Issue #28203: Fix incorrect type in error message from complex(1.0, {2:3}). Patch by Soumya Sharma.

8 years agoWrite configure message to AS_MESSAGE_FD
Christian Heimes [Sat, 24 Sep 2016 10:34:25 +0000 (12:34 +0200)]
Write configure message to AS_MESSAGE_FD

8 years agoTypo
Christian Heimes [Sat, 24 Sep 2016 10:07:21 +0000 (12:07 +0200)]
Typo

8 years agoFinish GC code for SSLSession and increase test coverage
Christian Heimes [Sat, 24 Sep 2016 08:48:05 +0000 (10:48 +0200)]
Finish GC code for SSLSession and increase test coverage

8 years agoIssue #28221: Merge SSL test cleanup from 3.5 into 3.6
Martin Panter [Sat, 24 Sep 2016 03:03:07 +0000 (03:03 +0000)]
Issue #28221: Merge SSL test cleanup from 3.5 into 3.6

8 years agoIssue #28221: Remove unused assignment from test_asyncore_server()
Martin Panter [Fri, 23 Sep 2016 23:45:56 +0000 (23:45 +0000)]
Issue #28221: Remove unused assignment from test_asyncore_server()

The later value of FOO is fine. The test just needs to verify that the server
converted it to lowercase.

8 years agoIssue #28100: Refactor error messages, patch by Ivan Levkivskyi
Christian Heimes [Fri, 23 Sep 2016 18:26:30 +0000 (20:26 +0200)]
Issue #28100: Refactor error messages, patch by Ivan Levkivskyi

8 years agoIncrease buffer for readlink() in case OS will support longer names one day.
Christian Heimes [Fri, 23 Sep 2016 18:24:39 +0000 (20:24 +0200)]
Increase buffer for readlink() in case OS will support longer names one day.

8 years agoIncrease buffer for readlink() in case OS will support longer names one day.
Christian Heimes [Fri, 23 Sep 2016 18:24:28 +0000 (20:24 +0200)]
Increase buffer for readlink() in case OS will support longer names one day.

8 years agoAdd an extra byte for null in case we ever get very long unicode names.
Christian Heimes [Fri, 23 Sep 2016 18:21:20 +0000 (20:21 +0200)]
Add an extra byte for null in case we ever get very long unicode names.

8 years agoAdd an extra byte for null in case we ever get very long unicode names.
Christian Heimes [Fri, 23 Sep 2016 18:20:27 +0000 (20:20 +0200)]
Add an extra byte for null in case we ever get very long unicode names.

8 years agoAdd test cases for internal SHA3 helpers
Christian Heimes [Fri, 23 Sep 2016 09:32:30 +0000 (11:32 +0200)]
Add test cases for internal SHA3 helpers

8 years agoMerge 3.5 (issue #27829)
Victor Stinner [Fri, 23 Sep 2016 09:15:50 +0000 (11:15 +0200)]
Merge 3.5 (issue #27829)

8 years agoIssue #27829: regrtest -W displays stderr if env changed
Victor Stinner [Fri, 23 Sep 2016 09:13:53 +0000 (11:13 +0200)]
Issue #27829: regrtest -W displays stderr if env changed

regrtest -W hides output if a test pass, but also when env changed and so the
env changed warning is hidden. So it's hard to debug. With this change, stderr
is now always displayed when a test doesn't pass.

8 years agoremove unneeded cast
Benjamin Peterson [Fri, 23 Sep 2016 06:39:59 +0000 (23:39 -0700)]
remove unneeded cast

8 years agoIssue #28251: Improvements to help manuals on Windows.
Steve Dower [Fri, 23 Sep 2016 00:09:56 +0000 (17:09 -0700)]
Issue #28251: Improvements to help manuals on Windows.

8 years agoIssue #28251: Improvements to help manuals on Windows.
Steve Dower [Fri, 23 Sep 2016 00:07:56 +0000 (17:07 -0700)]
Issue #28251: Improvements to help manuals on Windows.

8 years agoNull merge
Serhiy Storchaka [Thu, 22 Sep 2016 17:01:15 +0000 (20:01 +0300)]
Null merge

8 years agoSilence GCC warning.
Serhiy Storchaka [Thu, 22 Sep 2016 16:59:46 +0000 (19:59 +0300)]
Silence GCC warning.

The code was correct, but GCC is not enough clever.

8 years agoIssue #28086: Single var-positional argument of tuple subtype was passed
Serhiy Storchaka [Thu, 22 Sep 2016 16:41:20 +0000 (19:41 +0300)]
Issue #28086: Single var-positional argument of tuple subtype was passed
unscathed to the C-defined function.  Now it is converted to exact tuple.

8 years agoMake Lib/test/ssltests.py more useful and faster for OpenSSL testing
Christian Heimes [Thu, 22 Sep 2016 14:49:51 +0000 (16:49 +0200)]
Make Lib/test/ssltests.py more useful and faster for OpenSSL testing

8 years agoMake Lib/test/ssltests.py more useful and faster for OpenSSL testing
Christian Heimes [Thu, 22 Sep 2016 14:49:35 +0000 (16:49 +0200)]
Make Lib/test/ssltests.py more useful and faster for OpenSSL testing

8 years agoMerge socketserver fixes from 3.5 into 3.6
Martin Panter [Thu, 22 Sep 2016 10:33:51 +0000 (10:33 +0000)]
Merge socketserver fixes from 3.5 into 3.6

8 years agoIssue #27348: Merge exception formatting fix from 3.5 into 3.6
Martin Panter [Thu, 22 Sep 2016 10:33:21 +0000 (10:33 +0000)]
Issue #27348: Merge exception formatting fix from 3.5 into 3.6

8 years agoFix references to Python 3’s socketserver (lowercase) module
Martin Panter [Thu, 22 Sep 2016 09:37:56 +0000 (09:37 +0000)]
Fix references to Python 3’s socketserver (lowercase) module

8 years agoIssue #27348: Restore “Exception: None” formatting in traceback module
Martin Panter [Thu, 22 Sep 2016 09:37:39 +0000 (09:37 +0000)]
Issue #27348: Restore “Exception: None” formatting in traceback module

This fixes a regression caused by revision 73afda5a4e4c. Also reverts the
decimal test workaround added in revision 5f3dd0a2b1ab.

Remove test_without_exception(). According to revision ecaafc32c500, this was
added in Python 2 so that print_exc() would output “None” when called with no
exception set. However print_exc() never worked like this in Python 3, and
the use case is not documented.

Restore TracebackCases class name (instead of SyntaxTracebackCases), because
the class also tests other exceptions.

8 years agoExtend the test to lower pickle protocols.
Serhiy Storchaka [Thu, 22 Sep 2016 08:42:38 +0000 (11:42 +0300)]
Extend the test to lower pickle protocols.

8 years agoExtend the test to lower pickle protocols.
Serhiy Storchaka [Thu, 22 Sep 2016 08:39:25 +0000 (11:39 +0300)]
Extend the test to lower pickle protocols.

8 years agoIssue #25651: Merge from 3.5
Berker Peksag [Wed, 21 Sep 2016 16:35:28 +0000 (19:35 +0300)]
Issue #25651: Merge from 3.5

8 years agoIssue #25651: Allow falsy values to be used for msg parameter of subTest()
Berker Peksag [Wed, 21 Sep 2016 16:34:15 +0000 (19:34 +0300)]
Issue #25651: Allow falsy values to be used for msg parameter of subTest()

8 years agoMerge heads
Serhiy Storchaka [Wed, 21 Sep 2016 12:56:57 +0000 (15:56 +0300)]
Merge heads

8 years agolcov: ignore more 3rd party code and internal test/debug/dummy files
Christian Heimes [Wed, 21 Sep 2016 12:55:43 +0000 (14:55 +0200)]
lcov: ignore more 3rd party code and internal test/debug/dummy files

8 years agoIssue #28214: Now __set_name__ is looked up on the class instead of the
Serhiy Storchaka [Wed, 21 Sep 2016 12:54:59 +0000 (15:54 +0300)]
Issue #28214: Now __set_name__ is looked up on the class instead of the
instance.

8 years agoDon't define PY_WITH_KECCAK
Christian Heimes [Wed, 21 Sep 2016 12:36:44 +0000 (14:36 +0200)]
Don't define PY_WITH_KECCAK

8 years agoMerge 3.5
Victor Stinner [Wed, 21 Sep 2016 12:13:53 +0000 (14:13 +0200)]
Merge 3.5

8 years agoFix PyUnicode_FromFormatV() error handling
Victor Stinner [Wed, 21 Sep 2016 12:13:14 +0000 (14:13 +0200)]
Fix PyUnicode_FromFormatV() error handling

Issue #28233: Fix a memory leak if the format string contains a non-ASCII
character, destroy the unicode writer.

8 years agova_end() all va_copy()ed va_lists.
Christian Heimes [Wed, 21 Sep 2016 09:37:27 +0000 (11:37 +0200)]
va_end() all va_copy()ed va_lists.

8 years agoMerge 3.5
Victor Stinner [Wed, 21 Sep 2016 07:16:31 +0000 (09:16 +0200)]
Merge 3.5

8 years agotest_asynico: fix test_sock_connect_sock_write_race()
Victor Stinner [Wed, 21 Sep 2016 07:15:36 +0000 (09:15 +0200)]
test_asynico: fix test_sock_connect_sock_write_race()

Issue #28176: Increase timeout from 10 seconds to 60 seconds.

8 years agoreplace usage of Py_VA_COPY with the (C99) standard va_copy
Benjamin Peterson [Wed, 21 Sep 2016 03:39:33 +0000 (20:39 -0700)]
replace usage of Py_VA_COPY with the (C99) standard va_copy

8 years agoFix memleak in os.getrandom()
Victor Stinner [Tue, 20 Sep 2016 21:00:59 +0000 (23:00 +0200)]
Fix memleak in os.getrandom()

Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is
interrupted by a signal and a signal handler raises a Python exception.

Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a
Python bytes object.

8 years ago(Merge 3.5) Catch EPERM error in py_getrandom()
Victor Stinner [Tue, 20 Sep 2016 20:49:52 +0000 (22:49 +0200)]
(Merge 3.5) Catch EPERM error in py_getrandom()

Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.

8 years agoCatch EPERM error in py_getrandom()
Victor Stinner [Tue, 20 Sep 2016 20:46:02 +0000 (22:46 +0200)]
Catch EPERM error in py_getrandom()

Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.

8 years agoCleanup random.c
Victor Stinner [Tue, 20 Sep 2016 20:26:18 +0000 (22:26 +0200)]
Cleanup random.c

Issue #27955: modify py_getrnadom() and dev_urandom()

* Add comments from Python 3.7
* PEP 7 style: add {...}

8 years agoMake 3.7 the current dev version in the html version of the docs.
Ned Deily [Tue, 20 Sep 2016 19:00:53 +0000 (15:00 -0400)]
Make 3.7 the current dev version in the html version of the docs.

8 years agoMake 3.7 the current dev version in the html version of the docs.
Ned Deily [Tue, 20 Sep 2016 19:00:07 +0000 (15:00 -0400)]
Make 3.7 the current dev version in the html version of the docs.

8 years agorevert expat changes
Benjamin Peterson [Tue, 20 Sep 2016 05:20:13 +0000 (22:20 -0700)]
revert expat changes

8 years agomerge 3.5 (#28184)
Benjamin Peterson [Tue, 20 Sep 2016 05:17:16 +0000 (22:17 -0700)]
merge 3.5 (#28184)

8 years agoremove trailing whitespace
Benjamin Peterson [Tue, 20 Sep 2016 05:16:36 +0000 (22:16 -0700)]
remove trailing whitespace

8 years agoMERGE: Docs: Correctly link to the methods
Jesus Cea [Mon, 19 Sep 2016 22:02:44 +0000 (00:02 +0200)]
MERGE: Docs: Correctly link to the methods

8 years agoDocs: Correctly link to the methods
Jesus Cea [Mon, 19 Sep 2016 22:01:53 +0000 (00:01 +0200)]
Docs: Correctly link to the methods

8 years agoFix memory leak in path_converter()
Victor Stinner [Mon, 19 Sep 2016 09:55:44 +0000 (11:55 +0200)]
Fix memory leak in path_converter()

Issue #28200: Replace PyUnicode_AsWideCharString() with
PyUnicode_AsUnicodeAndSize().

8 years agodelete dead code
Benjamin Peterson [Mon, 19 Sep 2016 06:49:51 +0000 (23:49 -0700)]
delete dead code

8 years agomerge 3.5 (#24022)
Benjamin Peterson [Mon, 19 Sep 2016 06:44:02 +0000 (23:44 -0700)]
merge 3.5 (#24022)

8 years agomerge 3.4
Benjamin Peterson [Mon, 19 Sep 2016 06:43:18 +0000 (23:43 -0700)]
merge 3.4

8 years agoproperly handle the single null-byte file (closes #24022)
Benjamin Peterson [Mon, 19 Sep 2016 06:41:11 +0000 (23:41 -0700)]
properly handle the single null-byte file (closes #24022)

8 years agomerge
Raymond Hettinger [Mon, 19 Sep 2016 04:46:08 +0000 (21:46 -0700)]
merge

8 years agoIssue #28189: dictitems_contains no longer swallows compare errors.
Raymond Hettinger [Mon, 19 Sep 2016 04:45:11 +0000 (21:45 -0700)]
Issue #28189: dictitems_contains no longer swallows compare errors.
 (Patch by Xiang Zhang)

8 years agoIssue #28193: Use lru_cache in the re module.
Raymond Hettinger [Mon, 19 Sep 2016 03:17:21 +0000 (20:17 -0700)]
Issue #28193: Use lru_cache in the re module.

8 years agocorrect silly spelling problem
Benjamin Peterson [Mon, 19 Sep 2016 02:24:52 +0000 (19:24 -0700)]
correct silly spelling problem

8 years agoreplace obmalloc's homegrown uptr and uchar types with standard ones
Benjamin Peterson [Mon, 19 Sep 2016 02:22:22 +0000 (19:22 -0700)]
replace obmalloc's homegrown uptr and uchar types with standard ones

8 years agoimprovements to code that checks whether Python (obmalloc) allocated an address
Benjamin Peterson [Mon, 19 Sep 2016 02:12:48 +0000 (19:12 -0700)]
improvements to code that checks whether Python (obmalloc) allocated an address

- Rename Py_ADDRESS_IN_RANGE to address_in_range and make it a static
  function instead of macro. Any compiler worth its salt will inline this
  function.
- Remove the duplicated function version of Py_ADDRESS_IN_RANGE used when memory
  analysis was active. Instead, we can simply mark address_in_range as allergic
  to dynamic memory checking. We can now remove the
  __attribute__((no_address_safety_analysis)) from _PyObject_Free and
  _PyObject_Realloc. All the badness is contained in address_in_range now.
- Fix the code that tried to only read pool->arenaindex once. Putting something
  in a variable is no guarantee that it won't be read multiple times. We must
  use volatile for that.

8 years agostop using Py_LL and Py_ULL
Benjamin Peterson [Mon, 19 Sep 2016 01:12:21 +0000 (18:12 -0700)]
stop using Py_LL and Py_ULL