[issue38481] Class static property not static

2019-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: When you assign to self.num, you're creating an instance variable which hides the class variable. Instead, assign directly to the class variable: class D: num = 0 def __init__(self): D.num += 1 print('D num', self.num) for i in range(5

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix also released in 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix released in 3.8.0 and 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (3.7.5 is released with this fix) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue38481] Class static property not static

2019-10-15 Thread 楚艺
New submission from 楚艺 <1090217...@qq.com>: code: -- class D: num = 0 def __init__(self): self.num += 1 print('D num', self.num) for i in range(5): D() ---

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import resource >>> high = 300 * 1024 * 1024 >>> resource.setrlimit(resource.RLIMIT_MEMLOCK, (high, high)) Traceback (most recent call last): File "", line 1, in ValueError: not allowed to raise maximum limit >>> Internally

[issue38235] Docs of logging module says argument is named "lvl". TypeError.

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 6eb554583218cda9a145982a41c30612968a942f by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38235: Correct some arguments names in logging documentation (GH-16571) (GH-16577) https://github.com/python/cpython/commit/6eb554583218cda9a145982a41c

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset ab22c8bc488e822d03c4778b30ec60131ea35c63 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38344: Fix syntax in activate.bat (GH-16533) https://github.com/python/cpython/commit/ab22c8bc488e822d03c4778b30ec60131ea35c63 -- ___

[issue38391] Typo in tutorial code (does not compile)

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset e9c65b4ae765ccd381eccdfc4617dc46899406e1 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38391: Fixing a typo for Py_DECREF (GH-16616) https://github.com/python/cpython/commit/e9c65b4ae765ccd381eccdfc4617dc46899406e1 -- nosy: +ned.

[issue26510] [argparse] Add required argument to add_subparsers

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset f168c17b075b4103eaf1f619acd3bca3890fbac7 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588) https://github.com/python/cpython/commit/f168c17b075b4103eaf1f619acd3bca3890fbac

[issue32996] Improve What's New in 3.7

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 49e650b2489da861d4c49b41787160f30d8259bf by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-32996: Documentation fix-up. (GH-16646) https://github.com/python/cpython/commit/49e650b2489da861d4c49b41787160f30d8259bf --

[issue28556] typing.py upgrades

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset bd9a70c2c177d2f99f63d87b865e6e9c2936ba2e by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743) https://github.com/python/cpython/commit/bd9a70c2c177d2f99f63d87b865e6e

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 88204a3908663a574919f9c17278bcabed0598fa by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463) https://github.com/python/cpython/commit/88204a3908663a574919f9c17278bcabed0598fa

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 2a405598bbccbc42710dc5ecf3d44c8de4c16582 by Ned Deily (Abhilash Raj) in branch '3.7': [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727) https://github.com/python/cpython/c

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 1c61f2cc7ab44591b1832307a4022c927502d446 by Ned Deily (Vinay Sajip) in branch '3.7': bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672) https://github.com/python/cpython/commit/1c61f2cc7ab44591b183230

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 2a405598bbccbc42710dc5ecf3d44c8de4c16582 by Ned Deily (Abhilash Raj) in branch '3.7': [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727) https://github.com/python/cpython/c

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset ae41f629e187e1f0cf4d62f5a7b181c64da26466 by Ned Deily (Ricardo Bánffy) in branch '3.7': [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647) https://github.com/python/cpython/commit/ae41f629e187e1f0cf

[issue36953] Remove collections ABCs?

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 42b16b2a867ad3f6c022476076da3d6ea789021b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-36953: Delay removal of ABCs from collections. (GH-13409) https://github.com/python/cpython/commit/42b16b2a867ad3f6c022476076da3d6ea789021b --

[issue11410] Use GCC visibility attrs in PyAPI_*

2019-10-15 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 0b60f64e4343913b4931dc27379d9808e5b78fe1 by Vinay Sajip in branch 'master': bpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows. (GH-16347) https://github.com/python/cpython/commit/0b60f64e4343913b4931dc27379d9808e

[issue38479] Segmentation fault: 11 Python3.6 on Macbook

2019-10-15 Thread Ned Deily
Ned Deily added the comment: Your system appears to be running Cylance, which I gather is some sort of third-party virus protection system; from the system crash trace, the crash ssems to have happened in /Library/Application Support/Cylance/Desktop/CyMemDef.dylib which presumably is part of

<    1   2