bpo-29941: Add --with-assertions configure flag to enable C assertions. by Yhg1s · Pull Request #980 · python/cpython (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation11 Commits243 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Yhg1s

Defaults to 'no', but as before assertions are implied by --with-pydebug.

@Yhg1s

'no', but as before assertions are implied by --with-pydebug.

@Yhg1s

No change in behaviour if the flag isn't passed. Opinions on whether this should be backported to 3.6? (I would like to set up a --with-assertions buildbot for master + 3.6 to prevent regressions.)

@csabella @orsenthil

@vstinner

On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer.

Skip some inet_pton() tests of test_socket on AIX.

inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself.

@andrewnester @serhiy-storchaka

@orsenthil

@lisroach @rhettinger

@serhiy-storchaka

This hides unwanted implementation details from tracebacks.

@serhiy-storchaka

@serhiy-storchaka

@mdickinson

@strugee @freddrake

@stuarteberg @benjaminp

… with a 'trailer', e.g. zip()[x] (#24)

@orsenthil

@serhiy-storchaka

@warsaw

@serhiy-storchaka

…_(). (python#843)

object.reduce() no longer takes arguments, object.reduce_ex() now requires one argument.

@serhiy-storchaka

@serhiy-storchaka

@JelleZijlstra @berkerpeksag

Documents a few omitted classes and adds NamedTuple methods.

@orsenthil

@MSeifert04 @serhiy-storchaka

…rseTuple*` (python#916)

Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter.

@ncoghlan

The original attempted fix missed an isdir() call in get_base_branch().

@palaviv @berkerpeksag

pythonGH-461)

conn.set_trace_callback() shouldn't be called multiple times when the schema is changing.

This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303.

@CuriousLearner @ncoghlan

The reference to administrative data was confusing to readers, so this simplifies the note to explain that deep copying may copy more then you intended, such as data that you expected to be shared between copies.

@orsenthil

@orsenthil

@soolabettu @ncoghlan

…rror (pythonGH-949)

contextlib._GeneratorContextManager.exit includes a special case to deal with PEP 479 RuntimeErrors created when StopIteration is thrown into the context manager body.

Previously this check was too permissive, and undid one level of chaining on all RuntimeError instances, not just those that wrapped a StopIteration instance.

@xdegaye

…thonGH-1666).

bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (pythonGH-1666).

@shobute @serhiy-storchaka

There was an unneeded space before a closing parenthesis in the unittest.mock documentation.

@zhangyangyu

@bravegnu @serhiy-storchaka

Ran the docstrings through spell checker, and fixed spelling issues.

@nceder @Mariatta

gpshead

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your configure.ac change looks good to me (and configure matches it).

@codecov

@Yhg1s

PTAL; I forgot to add a NEWS entry before (or I was hoping the NEWS file refactor would land sooner), so please check the wording.

@Yhg1s

'no', but as before assertions are implied by --with-pydebug.

@Yhg1s

@Yhg1s

@the-knights-who-say-ni

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

gpshead

@@ -1100,6 +1100,10 @@ Documentation
Build
-----
- bpo-29941: Add ``--with-assertions`` configure flag to explicitly enable
C asertions. Defaults to off, but ``--with-pydebug`` also enables

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C assert() checks via NDEBUG. Defaults to off. --with-pydebug implies --with-assertions.

Side note: are we supposed to put markdown backticks in news entries now? I see others with them so I guess it doesn't hurt. But given I'm used to viewing it as UTF-8 rather than MD it looks suspicious. I don't care either way.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think backticks are ok.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the wording, but avoided mentioning NDEBUG (because it's not using NDEBUG that enables assertions :P). The backticks are reST, not Markdown, and the NEWS file is supposed to be reST.

@Yhg1s

gpshead

@Yhg1s

@Yhg1s

Closing this PR to get rid of the mess.

@Yhg1s Yhg1s mentioned this pull request

May 22, 2017