[issue37256] urllib.request.Request documentation erroneously refers to the "final two"
Sanyam Khurana added the comment: Thanks for the bug report Alan & for the PR Ngalim! I've checked the current docs and this is a valid bug. I've also reviewed the Pull request and it looks good to me. @Mariatta, @Senthil can you please have a look at this? Many thanks! -- nosy: +CuriousLearner, Mariatta, orsenthil versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue37256> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37775] update doc of compileall
Sanyam Khurana added the comment: I've checked and approved this PR. This needs a core-review now. Thanks, Hai for your contribution. -- nosy: +CuriousLearner, Mariatta ___ Python tracker <https://bugs.python.org/issue37775> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37853] [urllib.parse.urlparse] It does not correctly parse the URL with basic authentication.
Sanyam Khurana added the comment: Duplicate of Issue 37854 Fatih, Thank you for your report. I'm marking this one as a duplicate of another. Request you to not create multiple issues at once for the same thing. Thank you! -- nosy: +CuriousLearner resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37853> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37854] [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic authentication.
Sanyam Khurana added the comment: Closed Issue 37853 as a duplicate. Adding Fatih's comment from there for urllib.parse.urlparse - No problem for these: "http://localhost:9100"; "http://user:password@localhost:9100"; But, these are problematic: "http://use#r:password@localhost:9100"; "http://user:pass#word@localhost:9100"; ``` from urllib.parse import urlparse url = "http://us#er:123@localhost:9001/RPC2"; u = urlparse(url) print(u) # ParseResult(scheme='http', netloc='us', path='', params='', query='', fragment='er:123@localhost:9001/RPC2') ``` -- -- nosy: +CuriousLearner versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue37854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40358] pathlib's relative_to should behave like os.path.relpath
Change by Sanyam Khurana : -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue40358> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21914] Create unit tests for Turtle guionly
Change by Sanyam Khurana : -- pull_requests: +13409 ___ Python tracker <https://bugs.python.org/issue21914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36168] DOC: Fix capitalization in string.rst
Sanyam Khurana added the comment: Mariatta, I see it also needs a backport to 3.8 We can close it once the backport is completed. -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue36168> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36168] DOC: Fix capitalization in string.rst
Sanyam Khurana added the comment: Backport successfully completed. Marking this as fixed. Congrats on your first patch, Krishna! Thank you, everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36168> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12128] Allow an abc.abstractproperty to be overridden by an instance data attribute
Sanyam Khurana added the comment: I was trying to search the mailing list archives for the URL posted by Eric: http://mail.python.org/pipermail/python-list/2011-May/1272604.html But I couldn't find it. Also that URL shows 404. Eric, is it possible for you to post the correct link? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue12128> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16837] Number ABC can be instantiated
Sanyam Khurana added the comment: Hi Alexander, Can you please address the reviews and turn this patch into a GitHub PR, please? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue16837> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16837] Number ABC can be instantiated
Sanyam Khurana added the comment: I'm changing the versions to Python 3.8 and 3.9 for this bug. -- versions: +Python 3.8, Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue16837> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37785] argparse uses %s in gettext calls causing xgettext warnings
Sanyam Khurana added the comment: Hi Jakub, Welcome and thank you for contributing. I've added a suggestion on your pull request. Python 3.6 and Python 3.5 are in security fixes stage, so I've removed those tags from this bug. -- nosy: +CuriousLearner type: -> behavior versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue37785> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode
Sanyam Khurana added the comment: Removing 3.5 as it is in security fix mode. Also, the PR just contains the test case that would trigger the condition and not the actual code. -- nosy: +CuriousLearner stage: -> patch review versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue26543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode
Sanyam Khurana added the comment: Hey ankostis, Please let us know if you've time to complete the PR. Thank you :) -- ___ Python tracker <https://bugs.python.org/issue26543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32912] Raise non-silent warning for invalid escape sequences
Change by Sanyam Khurana : -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue32912> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34331] Incorrectly pluralized abstract class error message
Sanyam Khurana added the comment: Adding 3.9 to this bug. I've reviewed the PR and it looks good to me. -- nosy: +CuriousLearner versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue34331> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19692] Rename Py_SAFE_DOWNCAST
Change by Sanyam Khurana : -- nosy: +CuriousLearner versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.4 ___ Python tracker <https://bugs.python.org/issue19692> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37819] as_integer_ratio() missing from fractions.Fraction()
Change by Sanyam Khurana : -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue37819> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode
Change by Sanyam Khurana : -- pull_requests: +14935 pull_request: https://github.com/python/cpython/pull/15206 ___ Python tracker <https://bugs.python.org/issue26543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37785] argparse uses %s in gettext calls causing xgettext warnings
Sanyam Khurana added the comment: Hi Eric, This is with reference to https://bugs.python.org/issue10528. I've looked at the PR and it's ready for a core-review: https://github.com/python/cpython/pull/15161 Can you please take a look at this? Many thanks! -- nosy: +bethard, eric.araujo ___ Python tracker <https://bugs.python.org/issue37785> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30721] Show expected input for right shift operator usage in custom "print" error message
New submission from Sanyam Khurana: While working on issue: http://bugs.python.org/issue30597 to enhance the custom error message by showing expected output in Python3 syntax when someone uses Python2 syntax, a PR was raised: https://github.com/python/cpython/pull/2009, where we just handled the case for print with soft-space and excessive white-space. In the implementation discussion, an issue was raised to handle the case with right shift operator by Nick as in here: http://bugs.python.org/issue30597#msg295484 Nick suggested here about the possible patch: https://github.com/python/cpython/pull/2009#issuecomment-307539241 -- messages: 296518 nosy: CuriousLearner, ncoghlan priority: normal severity: normal status: open title: Show expected input for right shift operator usage in custom "print" error message type: enhancement versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30721> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30721] Show expected input for right shift operator usage in custom "print" error message
Changes by Sanyam Khurana : -- pull_requests: +2390 ___ Python tracker <http://bugs.python.org/issue30721> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30721] Show expected input for right shift operator usage in custom "print" error message
Sanyam Khurana added the comment: Ah, sorry for that. I'll just fix that right away in a few mins :) -- ___ Python tracker <http://bugs.python.org/issue30721> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30721] Show expected input for right shift operator usage in custom "print" error message
Changes by Sanyam Khurana : -- pull_requests: +3165 ___ Python tracker <http://bugs.python.org/issue30721> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25439] Add type checks to urllib.request.Request
Change by Sanyam Khurana : -- assignee: -> CuriousLearner nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue25439> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25439] Add type checks to urllib.request.Request
Sanyam Khurana added the comment: I'm working on applying the patch cleanly to master branch for this. Also adding 3.8 and 3.7 as candidates for the bug. -- versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue25439> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25439] Add type checks to urllib.request.Request
Change by Sanyam Khurana : -- pull_requests: +9862 ___ Python tracker <https://bugs.python.org/issue25439> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25439] Add type checks to urllib.request.Request
Sanyam Khurana added the comment: PR is up for a review: https://github.com/python/cpython/pull/10616 -- ___ Python tracker <https://bugs.python.org/issue25439> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Change by Sanyam Khurana : -- pull_requests: +9886, 9887 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Change by Sanyam Khurana : -- pull_requests: +9886 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Sanyam Khurana added the comment: > Unfortunately I was reminded a few days ago that there is a commit hook that > prevents patches containing trailing whitespace from being committed to the > repository. Is this still the case? I tried to figure out writing the test case, but I can't wrap my head around showing the trailing whitespace without putting it anywhere in the code. Also, can you have a look at the PR, please? -- nosy: +CuriousLearner stage: patch review -> test needed versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Sanyam Khurana added the comment: Thanks for your suggestion, Tim. I've fixed the patch and it is ready for review at https://github.com/python/cpython/pull/10639 -- ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Change by Sanyam Khurana : -- assignee: -> CuriousLearner ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.
Sanyam Khurana added the comment: Hey R. David Murray, Where do you think the unit test for `doctest` should be placed? Should it be in `test_doctest.py`? -- assignee: -> CuriousLearner versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue24925> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35614] Broken help() on metaclasses
Change by Sanyam Khurana : -- keywords: +patch, patch pull_requests: +10670, 10671 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35614> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35614] Broken help() on metaclasses
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +10670 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35614> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35614] Broken help() on metaclasses
Change by Sanyam Khurana : -- keywords: +patch, patch, patch pull_requests: +10670, 10671, 10672 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35614> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Change by Sanyam Khurana : -- pull_requests: +10999 ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Change by Sanyam Khurana : -- pull_requests: +10999, 11000 ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace
Sanyam Khurana added the comment: Hi Victor, Senthil reverted the backport commit on 2.7 branch. Is there a way I can test reference leaks in CPython? Is it using valgrind or some other tool? Can you please point me to that? I can then see if I can fix this on 2.7 Thanks! -- ___ Python tracker <https://bugs.python.org/issue24746> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Change by Sanyam Khurana : -- pull_requests: +11416 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Change by Sanyam Khurana : -- pull_requests: +11416, 11417 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Change by Sanyam Khurana : -- pull_requests: +11416, 11417, 11418 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29710] Incorrect representation caveat on bitwise operation docs
Sanyam Khurana added the comment: Hi, I'm working on this issue. -- nosy: +CuriousLearner ___ Python tracker <http://bugs.python.org/issue29710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29710] Incorrect representation caveat on bitwise operation docs
Changes by Sanyam Khurana : -- pull_requests: +1784 ___ Python tracker <http://bugs.python.org/issue29710> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25910] Fixing links in documentation
Sanyam Khurana added the comment: Hi, If this work is not being actively worked on, can I work on this and fix the remaining links? -- nosy: +CuriousLearner ___ Python tracker <http://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24744] Lack of type checks in pkgutil.walk_packages and friends
Sanyam Khurana added the comment: Hi r.david.murray, What error do you think should be raised in this case, when path is an instance of str? I'll issue a PR once I know what end results are expected. -- nosy: +CuriousLearner ___ Python tracker <http://bugs.python.org/issue24744> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24744] Lack of type checks in pkgutil.walk_packages and friends
Changes by Sanyam Khurana : -- pull_requests: +2006 ___ Python tracker <http://bugs.python.org/issue24744> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25910] Fixing links in documentation
Changes by Sanyam Khurana : -- pull_requests: +2010 ___ Python tracker <http://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24744] Lack of type checks in pkgutil.walk_packages and friends
Sanyam Khurana added the comment: I've updated the PR with required changes along with the test. Please have a look and let me know if any changes are needed. -- ___ Python tracker <http://bugs.python.org/issue24744> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30597] Show expected input in custom "print" error message
Sanyam Khurana added the comment: Hi Nick, Can I work on this issue? -- nosy: +CuriousLearner ___ Python tracker <http://bugs.python.org/issue30597> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30597] Show expected input in custom "print" error message
Changes by Sanyam Khurana : -- pull_requests: +2075 ___ Python tracker <http://bugs.python.org/issue30597> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4502] Allowing get_pre_input_hook from Readline
Sanyam Khurana added the comment: I'm working on applying this patch cleanly and writing a test for this. However, it seems I'm unable to import `readline` in compiled version of Python. I'm trying to provide a path to the installation of readline in my system using LDFLAGS, and then reconfiguring and recompiling, but seems like it didn't work. Can someone provide me a pointer here, please? -- assignee: -> CuriousLearner nosy: +CuriousLearner versions: +Python 3.8 -Python 3.3 ___ Python tracker <https://bugs.python.org/issue4502> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6911] Document changes in asynchat
Sanyam Khurana added the comment: Given that Python 2.x and async chat is deprecated in favor of new async io, we're better in closing this issue, rather than trying to apply this cleanly on the master branch. -- nosy: +CuriousLearner resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue6911> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33187] Document ElementInclude (XInclude) support in ElementTree
Sanyam Khurana added the comment: Hello Anjali, This PR is still lurking for your updates from almost 11 months. Please let us know if you're still working on this, else, we'll get this in. Thanks for your work! -- ___ Python tracker <https://bugs.python.org/issue33187> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36822] Minor grammatical fix in glossary.rst
New submission from Sanyam Khurana : While working on translations, I saw a minor grammatical error in `Doc/glossary.rst`: ``` * The default Python prompt of the interactive shell when entering code for an indented code block ... ``` should be ``` * The default Python prompt of the interactive shell when entering the code for an indented code block ... ``` Attaching the path with this. -- assignee: docs@python components: Documentation messages: 341665 nosy: CuriousLearner, docs@python priority: normal severity: normal stage: needs patch status: open title: Minor grammatical fix in glossary.rst type: enhancement versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue36822> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36822] Minor grammatical fix in glossary.rst
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +13058 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue36822> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18387] Add 'symbols' link to pydoc's html menu bar.
Sanyam Khurana added the comment: Hey Ron, Friendly ping :) Can you please convert this into a pull request? -- nosy: +CuriousLearner versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue18387> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36836] Test Suite not working on 3.4 and 3.5 on MacOS Mojave
New submission from Sanyam Khurana : I was testing this issue: https://bugs.python.org/issue10598 I checked both Python 3.4, 3.5, 3.6 and tagged commit v3.7.0 but I'm not able to run the test suite on any of them. I'm currently working on MacOS Mojave 10.14.4 I landed on issue https://bugs.python.org/issue36432 which was superseeded by https://bugs.python.org/issue34602 while searching for the error I got: ``` $ make test running build running build_ext building '_ssl' extension gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I./Include -I. -I/usr/local/include -I/Users/sanyamkhurana/cpython/Include -I/Users/sanyamkhurana/cpython -c /Users/sanyamkhurana/cpython/Modules/_ssl.c -o build/temp.macosx-10.14-x86_64-3.6-pydebug/Users/sanyamkhurana/cpython/Modules/_ssl.o gcc -bundle -undefined dynamic_lookup build/temp.macosx-10.14-x86_64-3.6-pydebug/Users/sanyamkhurana/cpython/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.macosx-10.14-x86_64-3.6-pydebug/_ssl.cpython-36dm-darwin.so ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) building '_hashlib' extension gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I./Include -I. -I/usr/local/include -I/Users/sanyamkhurana/cpython/Include -I/Users/sanyamkhurana/cpython -c /Users/sanyamkhurana/cpython/Modules/_hashopenssl.c -o build/temp.macosx-10.14-x86_64-3.6-pydebug/Users/sanyamkhurana/cpython/Modules/_hashopenssl.o gcc -bundle -undefined dynamic_lookup build/temp.macosx-10.14-x86_64-3.6-pydebug/Users/sanyamkhurana/cpython/Modules/_hashopenssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.macosx-10.14-x86_64-3.6-pydebug/_hashlib.cpython-36dm-darwin.so ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) building '_tkinter' extension gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -DWITH_APPINIT=1 -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/X11R6/include -I./Include -I. -I/usr/local/include -I/Users/sanyamkhurana/cpython/Include -I/Users/sanyamkhurana/cpython -c /Users/sanyamkhurana/cpython/Modules/_tkinter.c -o build/temp.macosx-10.14-x86_64-3.6-pydebug/Users/sanyamkhurana/cpython/Modules/_tkinter.o -framework Tk clang: warning: -framework Tk: 'linker' input unused [-Wunused-command-line-argument] In file included from /Users/sanyamkhurana/cpython/Modules/_tkinter.c:50: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found # include ^~~~ 1 error generated. Python build finished successfully! The necessary bits to build these optional modules were not found: _dbm _sqlite3 nis ossaudiodev spwd zlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: atexitpwd time Failed to build these modules: _hashlib _ssl _tkinter running build_scripts copying and adjusting /Users/sanyamkhurana/cpython/Tools/scripts/pydoc3 -> build/scripts-3.6 copying and adjusting /Users/sanyamkhurana/cpython/Tools/scripts/idle3 -> build/scripts-3.6 copying and adjusting /Users/sanyamkhurana/cpython/Tools/scripts/2to3 -> build/scripts-3.6 copying and adjusting /Users/sanyamkhurana/cpython/Tools/scripts/pyvenv -> build/scripts-3.6 changing mode of build/scripts-3.6/pydoc3 from 644 to 755 changing mode of build/scripts-3.6/idle3 from 644 to 755 changing mode of build/scripts-3.6/2to3 from 644 to 755 changing mode of build/scripts-3.6/pyvenv from 644 to 755 renaming build/scripts-3.6/pydoc3 to build/scripts-3.6/pydoc3.6 renaming build/scripts-3.6/idle3 to build/scripts-3.6/idle3.6 renaming build/scripts-3.6/2to3 to build/scripts-3.6/2to3-3.6 renaming build/scripts-3.6/pyvenv to build/scripts-3.6/pyvenv-3.6 ./python.exe -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.ve
[issue36836] Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave
Change by Sanyam Khurana : -- title: Test Suite not working on 3.4 and 3.5 on MacOS Mojave -> Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave ___ Python tracker <https://bugs.python.org/issue36836> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave
Sanyam Khurana added the comment: I had to clean-up my build a bit, and it seems like it's not really happening on 3.6, but it is still an issue with 3.4, 3.5, etc. I've added a PR for 3.5 to resolve the issue. -- assignee: -> CuriousLearner title: Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave -> Test Suite not working on 3.4, 3.5 on MacOS Mojave versions: -Python 3.6 ___ Python tracker <https://bugs.python.org/issue36836> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +13083 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36836> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave
Sanyam Khurana added the comment: The issue does not seem to be on 3.7 and master branch, so I'm closing the bug as well as the pull request. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue36836> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18387] Add 'symbols' link to pydoc's html menu bar.
Change by Sanyam Khurana : -- pull_requests: +13135 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue18387> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36822] Minor grammatical fix in glossary.rst
Change by Sanyam Khurana : -- pull_requests: +13170 ___ Python tracker <https://bugs.python.org/issue36822> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25910] How many "critical"-level open issues are there?
Sanyam Khurana added the comment: Victor, there is just one last thing to do in here. All the links pointing to Github (that are build automatically) are permanently redirected from https://github.com/python/cpython/tree/master/* to https://github.com/python/cpython/blob/master/* I will issue a separate PR for it, and then we're good to close this issue. PS: Guido, I'm not sure about the title change either. -- ___ Python tracker <https://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32685] Erroneous suggestion in print statement
Sanyam Khurana added the comment: Thanks for the report Mayank! As we discussed offline, it is indeed reproducible if someone uses `print` on the same line (such as in this case, where a loop is used). I will look into this issue. -- ___ Python tracker <https://bugs.python.org/issue32685> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32685] Erroneous suggestion in print statement
Change by Sanyam Khurana : -- pull_requests: +5217 ___ Python tracker <https://bugs.python.org/issue32685> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8525] Display exception's subclasses in help()
Change by Sanyam Khurana : -- assignee: -> CuriousLearner versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue8525> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24255] Replace debuglevel-related logic with logging
Sanyam Khurana added the comment: Hey Erin, Can you please convert your patch to a PR on Github? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue24255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33014] Clarify doc string for str.isidentifier()
Sanyam Khurana added the comment: Hey David, I'm working on this issue. Will submit a PR in a while :) -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue33014> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3014] file_dealloc() assumes errno is set when EOF is returned
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +5849 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue3014> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +5850 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33014> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring
Sanyam Khurana added the comment: Carol, Yes, I've raised a PR. Currently, I've updated the docs for `str.isidentifier` clarifying the usage of `keyword.iskeyword` For updating the docstring of `keyword.iskeyword`, I saw that `Lib/Keyword.py` defines this on line 55: `iskeyword = frozenset(kwlist).__contains__` The docstring of the file says that it is automatically generated from `graminit.c`. I observed that file and have no clue on how to proceed to have the doc string updated. Can someone provide me a pointer on this please? -- keywords: -patch stage: patch review -> needs patch ___ Python tracker <https://bugs.python.org/issue33014> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.
Sanyam Khurana added the comment: Hey Jurjen, Do you mind converting your patch in a Pull request please? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue24925> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols
Sanyam Khurana added the comment: Hi Haypo, I'd like to work on a patch for this issue. Can you please guide me how the tests are configured for buildbots? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue31810> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +4023 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31810> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path
Sanyam Khurana added the comment: Hey, seems like this bug is not updated for a while. Can I work on this? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue21862> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path
Sanyam Khurana added the comment: Thanks for the heads up! I'll do that ;) -- ___ Python tracker <https://bugs.python.org/issue21862> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path
Change by Sanyam Khurana : -- pull_requests: +4259 ___ Python tracker <https://bugs.python.org/issue21862> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module
Sanyam Khurana added the comment: Hey ncoghlan, Does this issue makes sense to be worked on for Python 3.7? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue19982> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path
Sanyam Khurana added the comment: Thanks a lot Antoine and Nick :) -- ___ Python tracker <https://bugs.python.org/issue21862> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10598] Add test for curses haskey replacement
Sanyam Khurana added the comment: Is this bug still valid or we can just close it? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue10598> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16055] incorrect error text for int(base=1000, x='1')
Change by Sanyam Khurana : -- pull_requests: +4325 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue16055> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32028] Syntactically wrong suggestions by the new custom print statement error message
Sanyam Khurana added the comment: Sure, let me have a look at it and work on fix. -- ___ Python tracker <https://bugs.python.org/issue32028> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22671] Typo in class io.BufferedIOBase docs
Change by Sanyam Khurana : -- pull_requests: +4496 ___ Python tracker <https://bugs.python.org/issue22671> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25910] Fixing links in documentation
Change by Sanyam Khurana : -- pull_requests: +4582 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32197] Compiling against master branch fails; error: expected expression SET_DECODE_ERROR
New submission from Sanyam Khurana : The current master branch at commit af5a895073c24637c094772b27526b94a12ec897 fails while building the interpreter. The following is the traceback while running `make` after `./configure --with-pydebug` gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include-DPy_BUILD_CORE -o Modules/main.o Modules/main.c Modules/main.c:904:20: error: expected expression return SET_DECODE_ERROR("PYTHONEXECUTABLE environment " ^ Modules/main.c:46:5: note: expanded from macro 'SET_DECODE_ERROR' do { \ ^ 1 error generated. make: *** [Modules/main.o] Error 1 -- messages: 307427 nosy: CuriousLearner priority: normal severity: normal status: open title: Compiling against master branch fails; error: expected expression SET_DECODE_ERROR type: crash versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue32197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32197] Compiling against master branch fails; error: expected expression SET_DECODE_ERROR
Sanyam Khurana added the comment: I used git bisect to track down the commit that broke the build. Seems like this is the SHA: ebac19dad6263141d5db0a2c923efe049dba99d2 ebac19dad6263141d5db0a2c923efe049dba99d2 is the first bad commit commit ebac19dad6263141d5db0a2c923efe049dba99d2 Author: Victor Stinner Date: Fri Dec 1 20:09:52 2017 +0100 bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667) Changes: * _PyPathConfig_Fini() cannot be called in Py_FinalizeEx(). Py_Initialize() and Py_Finalize() can be called multiple times, but it must not "forget" parameters set by Py_SetProgramName(), Py_SetPath() or Py_SetPythonHome(), whereas _PyPathConfig_Fini() clear all these parameters. * config_get_program_name() and calculate_program_full_path() now also decode paths using Py_DecodeLocale() to use the surrogateescape error handler, rather than decoding using mbstowcs() which is strict. * Change _Py_CheckPython3() prototype: () => (void) * Truncate a few lines which were too long :04 04 de4ec929ff3fcd3c6455d8dae4d16e47fdd32ad5 8b289341f1b5e68757ac3b111a7f11808f5de1ec M Include :04 04 ecddc93b37f74818d85f6d8e8ab0e0c57e893c03 c51971a3af2b6f163e625505265277410bb9eedd M Modules :04 04 b92d30ac6375b7dde865a878e701684dd400e742 7d5d8810407060f32c9cbce20dcfc6f9d425524f M PC :04 04 537f9e0e6a27b41178fe7b828a8da99c63cc2d9b b14940c66180023a3704ad3949367db3e82ca832 M Python -- ___ Python tracker <https://bugs.python.org/issue32197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32197] Compiling against master branch fails; error: expected expression SET_DECODE_ERROR
Sanyam Khurana added the comment: I tried to resolve the issue by trying to figure out the syntax for the SET_DECODE_ERROR macro. I tried to call a function from the macro, and eventually do the checking in that function. Second way I tried was to replace statement for macro instead of using do-while for placing the if-else clause. I was stuck at the issue that at the point when the compiler tries to replace the macro with actual code, `pymain` wasn't defined. If someone could provide a pointer on this, it would be really helpful and I'll try to work on a patch. One simplest possible solution would be not use macro and simply use the code at the 3 places where it is being used. But I'll defer this anti-DRY approach if we can have a better solution. -- ___ Python tracker <https://bugs.python.org/issue32197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32197] Compiling against master branch fails; error: expected expression SET_DECODE_ERROR
Sanyam Khurana added the comment: Even a simple use of ternary operator instead of using if-else inside do-while to handle the macro like: #define SET_DECODE_ERROR(NAME, LEN) \ pymain->err = ((LEN) == (size_t)-2) \ ? _Py_INIT_USER_ERR("cannot decode " #NAME) \ : _Py_INIT_NO_MEMORY() , throws the error `undeclared identifier pymain`: gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include-DPy_BUILD_CORE -o Modules/main.o Modules/main.c Modules/main.c:899:20: error: use of undeclared identifier 'pymain' return SET_DECODE_ERROR("PYTHONEXECUTABLE environment " ^ Modules/main.c:46:5: note: expanded from macro 'SET_DECODE_ERROR' pymain->err = ((LEN) == (size_t)-2) \ ^ 1 error generated. make: *** [Modules/main.o] Error 1 I'm still trying to figure out a solution for this. -- ___ Python tracker <https://bugs.python.org/issue32197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32028] Syntactically wrong suggestions by the new custom print statement error message
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +4601 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue32028> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32197] Compiling against master branch fails; error: expected expression SET_DECODE_ERROR
Sanyam Khurana added the comment: Hey Victor, thanks for the update. I was confused about how the macro was replaced in the previous version. -- ___ Python tracker <https://bugs.python.org/issue32197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Sanyam Khurana added the comment: I'll work on a fix for this and issue a PR. -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Sanyam Khurana added the comment: Nick, I think the error messages are incorrect. We expect error message to be `takes no argument` rather than `takes exactly one argument`. Can you please confirm that? I think for the class without any method overrides, the functionality should be something like this: >>> class C: ... pass ... >>> C(42) Traceback (most recent call last): File "", line 1, in TypeError: C() takes no arguments >>> C.__new__(C, 42) Traceback (most recent call last): File "", line 1, in TypeError: C() takes no arguments >>> C().__init__(42) Traceback (most recent call last): File "", line 1, in TypeError: C().__init__() takes no arguments >>> object.__new__(C, 42) Traceback (most recent call last): File "", line 1, in TypeError: C() takes no arguments >>> object.__init__(C(), 42) Traceback (most recent call last): File "", line 1, in TypeError: C().__init__() takes no arguments Is that correct? -- ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Change by Sanyam Khurana : -- pull_requests: +4643 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()
Sanyam Khurana added the comment: Ezra, can you please convert your patch to a Pull Request on Github? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue15045> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19678] smtpd.py: channel should be passed to process_message
Sanyam Khurana added the comment: Leslie, would you like to work on a patch for this? -- nosy: +CuriousLearner ___ Python tracker <https://bugs.python.org/issue19678> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31506] Improve the error message logic for object_new & object_init
Sanyam Khurana added the comment: Serhiy, can you please elaborate on that a bit? I'll try to fix this. -- ___ Python tracker <https://bugs.python.org/issue31506> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22671] Typo in class io.BufferedIOBase docs
Change by Sanyam Khurana : -- pull_requests: +4708 ___ Python tracker <https://bugs.python.org/issue22671> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com