[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : After seeing this issue https://bugs.python.org/issue44698, I wanted to run clang on the main branch (c878f5d81772dc6f718d6608c78baa4be9a4f176) with an undefined option enabled. Is the following a bug or false positive? Objects/listobject.c:527:24: runtime error: applying zero offset to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/listobject.c:527:24 in Steps to reproduce. 1. export CC="/usr/bin/clang -fsanitize=undefined" 2. ./configure --with-pydebug --with-openssl=$(brew --prefix openssl) 3. make -j Meta : ➜ clang --version Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin ➜ uname -a Darwin Srinivass-MBP.Dlink 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64 -- messages: 397978 nosy: thatiparthy priority: normal severity: normal status: open title: runtime error: applying zero offset to null pointer in Objects/listobject.c ___ Python tracker <https://bugs.python.org/issue44707> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44598] test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: ran on 3.9.6 branch with OpenSSL 1.1.1k 25 Mar 2021. I see this warning in the console. Please also see the attached log for full details. /Users/srini/workspace/consulting/cpython/Lib/test/support/__init__.py:3105: ResourceWarning: unclosed del self.thread ResourceWarning: Enable tracemalloc to get the object allocation traceback -- nosy: +thatiparthy Added file: https://bugs.python.org/file50159/log ___ Python tracker <https://bugs.python.org/issue44598> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Hasan, Please raise a PR on GitHub. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44573] Organize some data files in the Lib/test directory
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: +1 for Raymond's comment. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue44573> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42830] tempfile mkstemp() leaks file descriptors if os.close() is not called
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I have raised a docs PR. -- ___ Python tracker <https://bugs.python.org/issue42830> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42830] tempfile mkstemp() leaks file descriptors if os.close() is not called
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 3.0 -> 4.0 pull_requests: +25625 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27075 ___ Python tracker <https://bugs.python.org/issue42830> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16321] Move eq.h out of stringlib
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: To add irit's comment, It is *also* used in Objects/unicodeobject.c -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue16321> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43089] The optional argument to random.Random() is called "x" not "seed"
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I think this was discussed before. If my memory serves me right, Guido kept 'x' as is for backward compatibility reasons. Agreed that was a mistake. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue43089> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32313] Wrong inspect.getsource for datetime
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Looks like for `getfile` docs should be updated. On python2.7.17_1, import inspect, datetime print(inspect.getfile(datetime.datetime)) outputs, /usr/local/Cellar/python@2/2.7.17_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so It seems a long time overdue? -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue32313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41551] test.support has way too many imports in libregrtest
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : This issue is inspired from this comment - https://bugs.python.org/msg375367 -- ___ Python tracker <https://bugs.python.org/issue41551> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41551] test.support has way too many imports in libregrtest
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- components: Tests nosy: thatiparthy priority: normal severity: normal status: open title: test.support has way too many imports in libregrtest versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue41551> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40994] Very confusing documenation for abc.Collections
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: English is my second language and I am familiar with the expression “respectively” since it is used very often in high school mathematics. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue40994> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41199] Docstring convention not followed for dataclasses documentation page
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Please go ahead and create a PR. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue41199> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 7.0 -> 8.0 pull_requests: +20532 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21386 ___ Python tracker <https://bugs.python.org/issue41205> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41139] cgi uses the locale encoding for log files
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: My bad. I meant cgi.log(), I pressed submit changes in a hurry. +1 for utf-8. -- ___ Python tracker <https://bugs.python.org/issue41139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41139] cgi uses the locale encoding for log files
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am for keeping this functionality. Unless others in this nosy list think otherwise. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue41139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41137] pdb uses the locale encoding for .pdbrc
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 2.0 -> 3.0 pull_requests: +20411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21263 ___ Python tracker <https://bugs.python.org/issue41137> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: (allhub) ➜ cpython git:(master) ✗ ./python.exe -X tracemalloc=20 -m test test_importlib -m test.test_importlib.test_path.CommonTests.test_importing_module_as_side_effect -v == CPython 3.10.0a0 (heads/master:d0981e61a5, Jul 1 2020, 21:25:34) [Clang 11.0.3 (clang-1103.0.32.62)] == macOS-10.15.5-x86_64-i386-64bit little-endian == cwd: /Users/srini/workspace/consulting/cpython/build/test_python_1601æ == CPU count: 12 == encodings: locale=UTF-8, FS=utf-8 0:00:00 load avg: 2.06 Run tests sequentially 0:00:00 load avg: 2.06 [1/1] test_importlib test_importing_module_as_side_effect (test.test_importlib.test_path.CommonTests) ... ok -- Ran 1 test in 0.061s OK == Tests result: SUCCESS == 1 test OK. Total duration: 6.5 sec Tests result: SUCCESS -- ___ Python tracker <https://bugs.python.org/issue41007> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I can repro on 843c27765652e2322011fb3e5d88f4837de38c06 but I have tried this on latest master d0981e6 and I do not see the warning. can be closed? -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue41007> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +20409 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21261 ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41048] read_mime_types() should read the rule file using UTF-8, not the locale encoding
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +20383 pull_request: https://github.com/python/cpython/pull/21229 ___ Python tracker <https://bugs.python.org/issue41048> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41115] Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: @utk You could have taken some other easy issue from https://bugs.python.org/issue?status=1&@sort=-activity&@columns=id%2Cactivity%2Ctitle%2Ccreator%2Cstatus&@dispname=Easy%20issues&@startwith=0&@group=priority&keywords=6&@action=search&@filter=&@pagesize=50 instead of copy pasting my work. -- ___ Python tracker <https://bugs.python.org/issue41115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41126] Running test suite gives me - python.exe(14198, 0x114352dc0) malloc: can't allocate region
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: It was a success. And yes, this is a duplicate of issue 40928. -- ___ Python tracker <https://bugs.python.org/issue41126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41126] Running test suite gives me - python.exe(14198, 0x114352dc0) malloc: can't allocate region
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- components: +Build versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue41126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41126] Running test suite gives me - python.exe(14198, 0x114352dc0) malloc: can't allocate region
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : While running tests with `./python.exe Lib/test`, I see the following text in the console. Is this a bug? `` python.exe(14198,0x114352dc0) malloc: can't allocate region :*** mach_vm_map(size=842105263157895168, flags: 100) failed (error code=3) python.exe(14198,0x114352dc0) malloc: *** set a breakpoint in malloc_error_break to debug python.exe(14198,0x114352dc0) malloc: can't allocate region :*** mach_vm_map(size=842105263157895168, flags: 100) failed (error code=3) python.exe(14198,0x114352dc0) malloc: *** set a breakpoint in malloc_error_break to debug python.exe(14198,0x114352dc0) malloc: can't allocate region :*** mach_vm_map(size=421052631578947584, flags: 100) failed (error code=3) python.exe(14198,0x114352dc0) malloc: *** set a breakpoint in malloc_error_break to debug python.exe(14198,0x114352dc0) malloc: can't allocate region :*** mach_vm_map(size=421052631578947584, flags: 100) failed (error code=3) python.exe(14198,0x114352dc0) malloc: *** set a breakpoint in malloc_error_break to debug `` My system is macOS Catalina 10.15.5 (19F101). unman -a Darwin Srinivass-MacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64 -- messages: 372420 nosy: thatiparthy priority: normal severity: normal status: open title: Running test suite gives me - python.exe(14198,0x114352dc0) malloc: can't allocate region ___ Python tracker <https://bugs.python.org/issue41126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41115] Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +20323 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21165 ___ Python tracker <https://bugs.python.org/issue41115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41115] Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: This looks like an easy task. Shall I create a PR? -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue41115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41077] Make Cookiejar a bit more pythonic
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41077] Make Cookiejar a bit more pythonic
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am not sure this PR will be accepted. If you are a core dev, and thinks this is not Okay, please feel free close this issue. -- keywords: +patch message_count: 1.0 -> 2.0 pull_requests: +20226 stage: -> patch review versions: +Python 3.10 pull_request: https://github.com/python/cpython/pull/20872 ___ Python tracker <https://bugs.python.org/issue41077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41077] Make Cookiejar a bit more pythonic
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : Title says it all. -- messages: 372087 nosy: thatiparthy priority: normal severity: normal status: open title: Make Cookiejar a bit more pythonic ___ Python tracker <https://bugs.python.org/issue41077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: We can close this? -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue40025> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : The correspondence section between os, os.path vs pathlib is missing two entries. https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module 1. os.link vs path.link_to 2. os.path.listdir vs path.iterdir I think adding them would be a good addition. -- assignee: docs@python components: Documentation messages: 372001 nosy: docs@python, thatiparthy priority: normal severity: normal status: open title: Update documentation for Pathlib type: enhancement versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41048] read_mime_types() should read the rule file using UTF-8, not the locale encoding
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 2.0 -> 3.0 pull_requests: +20173 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20998 ___ Python tracker <https://bugs.python.org/issue41048> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41026] mailbox does not support new Path object
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy nosy_count: 2.0 -> 3.0 pull_requests: +20164 pull_request: https://github.com/python/cpython/pull/20990 ___ Python tracker <https://bugs.python.org/issue41026> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33881] dataclasses should use NFKC to find duplicate members
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am convinced by Raymond’s argument. Hence closing the PR. -- ___ Python tracker <https://bugs.python.org/issue33881> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33881] dataclasses should use NFKC to find duplicate members
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy nosy_count: 4.0 -> 5.0 pull_requests: +20031 pull_request: https://github.com/python/cpython/pull/20837 ___ Python tracker <https://bugs.python.org/issue33881> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Steve, I have done it. And I didn't see your reply. -- ___ Python tracker <https://bugs.python.org/issue40164> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy nosy_count: 9.0 -> 10.0 pull_requests: +20028 pull_request: https://github.com/python/cpython/pull/20834 ___ Python tracker <https://bugs.python.org/issue40164> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35479] multiprocessing.Pool.join() always takes at least 100 ms
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +15744 pull_request: https://github.com/python/cpython/pull/10564 ___ Python tracker <https://bugs.python.org/issue35479> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35379] IDLE's close fails when io.filename set to None
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +15743 stage: -> patch review pull_request: https://github.com/python/cpython/pull/10564 ___ Python tracker <https://bugs.python.org/issue35379> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35406] calendar.nextmonth and calendar.prevmonth functions doesn't check if the month is valid
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I agree with Serhiy, nextmonth() is not a public API,you should not use it. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Yikes, Sorry for the spam. I should have double checked. -- ___ Python tracker <https://bugs.python.org/issue25155> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: This bug is happening for 3.6 too. Please see below, 18:14 $ python --version Python 3.6.3 (upwork) ✔ ~/workspace/personal/assignment [master|✔] 18:16 $ pip install --upgrade pip Exception: Traceback (most recent call last): File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/commands/install.py", line 324, in run requirement_set.prepare_files(finder) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", line 487, in _prepare_file req_to_install, finder) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/req/req_set.py", line 428, in _check_skip_installed req_to_install, upgrade_allowed) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", line 568, in _get_pages page = self._get_page(location) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/index.py", line 792, in get_page "Cache-Control": "max-age=600", File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 488, in get return self.request('GET', url, **kwargs) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/download.py", line 386, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 596, in send r = adapter.send(request, **kwargs) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 423, in send timeout=timeout File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 595, in urlopen chunked=chunked) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 363, in _make_request conn.request(method, url, **httplib_request_kw) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/http/client.py", line 964, in send self.connect() File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 167, in connect conn = self._new_conn() File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 142, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/home/dtdev/virtual/upwork/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py", line 85, in create_connection sock.settimeout(timeout) OverflowError: timestamp too large to convert to C _PyTime_t You are using pip version 9.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue25155> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9821 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35250] Minor parameter documentation mismatch for turtle
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9814 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35250> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35263] Add None handling for get_saved() in IDLE
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9813 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: With the current PR, i think i removed all unused imports in Lib folder. -- ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9807 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I have raised one more PR; I think i am done with this issue. People who are interested can take up from here. , For the record, following are some filters to search; Query to find unused imports -- find . -type f -name \*.py -print | xargs flake8 | grep F401 -- Search query grep -v warnings | grep -v "\.\*" | grep -v tkinter | grep -v sysconfig | grep -v readline | grep -v py3_test_grammar.py | grep -v java | grep -v rlcompleter | grep -v sitecustomize | grep -v __all__ | grep -v test_importlib | grep -v async | grep -v test_future | grep -v circular_import | grep -v dataclasses -- ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9725 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9721 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9720 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9715 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I have raised a partial PR here - https://github.com/python/cpython/pull/10438; if it is merged please take up the rest of the changes mentioned in the issue description. -- ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: -9712 ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9712 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35202] Remove unused imports in standard library
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : Please find the modules where we need to remove. codecs.py:1105:5: F401 'encodings' imported but unused code.py:298:13: F401 'readline' imported but unused platform.py:118:1: F401 'warnings' imported but unused platform.py:509:9: F401 'java.lang' imported but unused pstats.py:562:9: F401 'readline' imported but unused shutil.py:13:1: F401 'io' imported but unused site.py:409:13: F401 'rlcompleter' imported but unused site.py:511:13: F401 'sitecustomize' imported but unused site.py:531:13: F401 'usercustomize' imported but unused trace.py:54:1: F401 're' imported but unused typing.py:21:1: F401 'abc' imported but unused I was just wondering that as a community, do we recommend this practice of cleaning up Or just we keep as is inorder to NOT to break accidental imports? -- messages: 329548 nosy: thatiparthy priority: normal severity: normal status: open title: Remove unused imports in standard library ___ Python tracker <https://bugs.python.org/issue35202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6717] Some problem with recursion handling
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue6717> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35115] UUID objects can't be casted by `hex()`
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35078] Refactor code in calendar.py module
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- title: Allow customization of css class name of a month in calendar module -> Refactor code in calendar.py module ___ Python tracker <https://bugs.python.org/issue35078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35078] Allow customization of css class name of a month in calendar module
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9467 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35078] Allow customization of css class name of a month in calendar module
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- components: Library (Lib) nosy: thatiparthy priority: normal severity: normal status: open title: Allow customization of css class name of a month in calendar module versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue35078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35077] Make TypeError message less ambiguous
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +9464 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35077] Make TypeError message less ambiguous
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: +1. In my early days of python programming i was confused of this message. -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32173] linecache.py add lazycache to __all__ and use dict.clear to clear the cache
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9462 ___ Python tracker <https://bugs.python.org/issue32173> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35059> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2142] difflib.unified_diff(...) produces invalid patches
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue2142> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29341] Missing accepting path-like object in docstrings of os module functions
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue29341> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35048] Can't reassign __class__ despite the assigned class having identical slots
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35048> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35042] Use the role :pep: for the PEP \d+
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am -0 on this. I want to hear a more compelling argument than wanting to leverage an existing feature. IMHO, when i am reading the documentation i never bothered to go into the PEP docs - most of the times. I explicitly visited a PEP when i want to understand the rationale of a feature. My 2 cents. -- ___ Python tracker <https://bugs.python.org/issue35042> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35039] remove unused vars in Lib/turtledemo module
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : This PR removes the variables which are no longer used. -- ___ Python tracker <https://bugs.python.org/issue35039> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35042] Use the role :pep: for the PEP \d+
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: This gives us the hyperlink everywhere a PEP is referenced? -- nosy: +thatiparthy ___ Python tracker <https://bugs.python.org/issue35042> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com