mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #17516: use comment syntax for comments, instead of multiline string
This commit is contained in:
parent
1f8898a591
commit
765531d2d0
11 changed files with 493 additions and 507 deletions
|
@ -2,37 +2,35 @@ import unittest
|
|||
from test import support
|
||||
from _testcapi import getargs_keywords, getargs_keyword_only
|
||||
|
||||
"""
|
||||
> How about the following counterproposal. This also changes some of
|
||||
> the other format codes to be a little more regular.
|
||||
>
|
||||
> Code C type Range check
|
||||
>
|
||||
> b unsigned char 0..UCHAR_MAX
|
||||
> h signed short SHRT_MIN..SHRT_MAX
|
||||
> B unsigned char none **
|
||||
> H unsigned short none **
|
||||
> k * unsigned long none
|
||||
> I * unsigned int 0..UINT_MAX
|
||||
|
||||
|
||||
> i int INT_MIN..INT_MAX
|
||||
> l long LONG_MIN..LONG_MAX
|
||||
|
||||
> K * unsigned long long none
|
||||
> L long long LLONG_MIN..LLONG_MAX
|
||||
|
||||
> Notes:
|
||||
>
|
||||
> * New format codes.
|
||||
>
|
||||
> ** Changed from previous "range-and-a-half" to "none"; the
|
||||
> range-and-a-half checking wasn't particularly useful.
|
||||
|
||||
Plus a C API or two, e.g. PyInt_AsLongMask() ->
|
||||
unsigned long and PyInt_AsLongLongMask() -> unsigned
|
||||
long long (if that exists).
|
||||
"""
|
||||
# > How about the following counterproposal. This also changes some of
|
||||
# > the other format codes to be a little more regular.
|
||||
# >
|
||||
# > Code C type Range check
|
||||
# >
|
||||
# > b unsigned char 0..UCHAR_MAX
|
||||
# > h signed short SHRT_MIN..SHRT_MAX
|
||||
# > B unsigned char none **
|
||||
# > H unsigned short none **
|
||||
# > k * unsigned long none
|
||||
# > I * unsigned int 0..UINT_MAX
|
||||
#
|
||||
#
|
||||
# > i int INT_MIN..INT_MAX
|
||||
# > l long LONG_MIN..LONG_MAX
|
||||
#
|
||||
# > K * unsigned long long none
|
||||
# > L long long LLONG_MIN..LLONG_MAX
|
||||
#
|
||||
# > Notes:
|
||||
# >
|
||||
# > * New format codes.
|
||||
# >
|
||||
# > ** Changed from previous "range-and-a-half" to "none"; the
|
||||
# > range-and-a-half checking wasn't particularly useful.
|
||||
#
|
||||
# Plus a C API or two, e.g. PyInt_AsLongMask() ->
|
||||
# unsigned long and PyInt_AsLongLongMask() -> unsigned
|
||||
# long long (if that exists).
|
||||
|
||||
LARGE = 0x7FFFFFFF
|
||||
VERY_LARGE = 0xFF0000121212121212121242
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue