[issue36908] "This module is always available" is confusing
Kushal Das added the comment: In future we should do the similar change for any module. This will be helpful for new beginners. -- nosy: +kushal.das ___ Python tracker <https://bugs.python.org/issue36908> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36908] "This module is always available" is confusing
Kushal Das added the comment: New changeset 6faad355db6c2bd4a0ade7868f245b42c04f5337 by Kushal Das (Ned Batchelder) in branch 'master': bpo-36908: 'This module is always available' isn't helpful. (#13297) https://github.com/python/cpython/commit/6faad355db6c2bd4a0ade7868f245b42c04f5337 -- ___ Python tracker <https://bugs.python.org/issue36908> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30431] input function truncates prompt by NULL byte
Changes by Kushal Das : -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue30431> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30431] input function truncates prompt by NULL byte
Kushal Das added the comment: I am picking this up. -- assignee: -> kushal.das ___ Python tracker <http://bugs.python.org/issue30431> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30431] input function truncates prompt by NULL byte
Changes by Kushal Das : -- pull_requests: +1828 ___ Python tracker <http://bugs.python.org/issue30431> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Kushal Das added the comment: New changeset 93fc20b73eea3da0b6305aaee951e5dd22d5c408 by Kushal Das (Berker Peksag) in branch 'master': bpo-30376: Update outdated WindowObject references (#1630) https://github.com/python/cpython/commit/93fc20b73eea3da0b6305aaee951e5dd22d5c408 -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Changes by Kushal Das : -- pull_requests: +1835 ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Changes by Kushal Das : -- pull_requests: +1836 ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Kushal Das added the comment: New changeset 8af0a214be7c0c921ba5ce5c11043dd5b5da9211 by Kushal Das in branch '3.5': [3.5] bpo-30376: Update outdated WindowObject references (GH-1630) (#1747) https://github.com/python/cpython/commit/8af0a214be7c0c921ba5ce5c11043dd5b5da9211 -- ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Kushal Das added the comment: New changeset 9bcf81da1436468c3c5e500ae36678a2ad675e32 by Kushal Das in branch '3.6': [3.6] bpo-30376: Update outdated WindowObject references (GH-1630) (#1746) https://github.com/python/cpython/commit/9bcf81da1436468c3c5e500ae36678a2ad675e32 -- ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30376] Curses documentation refers to incorrect type
Kushal Das added the comment: Thanks for filing the bug, fixed now. Thank you Berker for the quick patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue30376> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30442] Skip test_xml_etree under coverage
New submission from Kushal Das: test test_xml_etree failed -- Traceback (most recent call last): File "/home/travis/build/python/cpython/Lib/test/test_xml_etree.py", line 1553, in test_bug_xmltoolkit63 self.assertEqual(sys.getrefcount(None), count) AssertionError: 522146 != 522143 Under coverage (in our travis CI) test_xml_etree fails for refcount. Brett suggests to skip this test in case running under coverage. -- assignee: kushal.das messages: 294271 nosy: kushal.das priority: normal severity: normal status: open title: Skip test_xml_etree under coverage type: behavior versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30442> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30442] Skip test_xml_etree under coverage
Changes by Kushal Das : -- pull_requests: +1848 ___ Python tracker <http://bugs.python.org/issue30442> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30442] Skip test_xml_etree under coverage
Kushal Das added the comment: New changeset 1de4705d00168afa8c5b6741af02e21fc609af58 by Kushal Das in branch 'master': bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) https://github.com/python/cpython/commit/1de4705d00168afa8c5b6741af02e21fc609af58 -- ___ Python tracker <http://bugs.python.org/issue30442> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24758] unittest.mock.Mock's new "unsafe" feature needs a better error message
Kushal Das added the comment: New changeset b9b08cd948de97d756a199b60becce8397a8c882 by Kushal Das (Zackery Spytz) in branch 'master': bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991) https://github.com/python/cpython/commit/b9b08cd948de97d756a199b60becce8397a8c882 -- nosy: +kushal.das ___ Python tracker <https://bugs.python.org/issue24758> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15615] More tests for JSON decoder to test Exceptions
New submission from Kushal Das: Added two more tests in json module to test exception cases. test_extra_data: this test checks the error condition when we have extra data in the stream. test_invalid_escape: this test checks for the invalid escape sequence in the stream -- components: Tests files: json_tests.patch keywords: patch messages: 167863 nosy: kushaldas priority: normal severity: normal status: open title: More tests for JSON decoder to test Exceptions type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file26755/json_tests.patch ___ Python tracker <http://bugs.python.org/issue15615> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15615] More tests for JSON decoder to test Exceptions
Kushal Das added the comment: Contributor's agreement signed and sent to the given email address. Thanks for the input. -- ___ Python tracker <http://bugs.python.org/issue15615> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16053] "strict" parameter is not documented in csv module
Kushal Das added the comment: csv.Dialect.strict is now documented. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27340/csv_doc.patch ___ Python tracker <http://bugs.python.org/issue16053> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode
Kushal Das added the comment: The implementation clearly says that default method should return a serializable object or calls the base implementation to raise TypeError. So I don't think any of the examples is a bug. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16057> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16071] fix link to email.message.Message in mailbox docs
Kushal Das added the comment: But the whole 18.4.2 is mount mailbox.Message so, it seems to be correct documentation. email.Message.Message is properly mentioned in the 4th line properly. I don't think it is bug. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16071> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16053] "strict" parameter is not documented in csv module
Kushal Das added the comment: Updated with new patch -- Added file: http://bugs.python.org/file27341/csv_doc.patch ___ Python tracker <http://bugs.python.org/issue16053> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16074] bad error message in os.rename
Kushal Das added the comment: Now the printing the source name instead of the destination as the bug described. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27342/os_rename.patch ___ Python tracker <http://bugs.python.org/issue16074> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16074] bad error message in os.rename
Kushal Das added the comment: Just for record the same issue can be seen in a Linux box also. I tested in a Fedora 17 system. -- ___ Python tracker <http://bugs.python.org/issue16074> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16074] bad error message in os.rename
Changes by Kushal Das : Removed file: http://bugs.python.org/file27342/os_rename.patch ___ Python tracker <http://bugs.python.org/issue16074> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode
Kushal Das added the comment: Ok, I will submit a patch. -- ___ Python tracker <http://bugs.python.org/issue16057> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16115] test that executable arg to Popen() takes precedence over args[0] arg
Kushal Das added the comment: Attached patch which has a new test called test_executable_precedence to test precedence of executable argument over args[0]. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27407/executable_precedence.patch ___ Python tracker <http://bugs.python.org/issue16115> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode
Kushal Das added the comment: Patch to update docstring and documentation with explicit saying that calling JSONEncoder.default raises a TypeError -- keywords: +patch Added file: http://bugs.python.org/file27408/explicit_json_doc_update_for_encoder_default.patch ___ Python tracker <http://bugs.python.org/issue16057> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16057] Subclasses of JSONEncoder should not be insturcted to call JSONEncoder.decode
Kushal Das added the comment: The previous patch should be back committed to all 3.x and 2.7 branch. -- ___ Python tracker <http://bugs.python.org/issue16057> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16125] open accepts arbitrary mode strings as long as they contain U
Kushal Das added the comment: I am working on patch for this. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16125> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16125] open accepts arbitrary mode strings as long as they contain U
Kushal Das added the comment: Patch to update mode parsing of open call. All tests seem to be running ok. File changed: Objects/fileobject.c -- keywords: +patch Added file: http://bugs.python.org/file27411/open_mode2.patch ___ Python tracker <http://bugs.python.org/issue16125> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16130] "Porting to Python 3.3" needs to be fixed in "What's new In Python 3.4"
Kushal Das added the comment: Documentation patch to show correct Python version. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27418/issue_16130.patch ___ Python tracker <http://bugs.python.org/issue16130> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.
Kushal Das added the comment: Can not reproduce this on 2.7.3 on Fedora 17, x86_64. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16137> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16115] test that executable arg to Popen() takes precedence over args
Kushal Das added the comment: On Saturday, October 6, 2012, Andrew Svetlov wrote: > > Andrew Svetlov added the comment: > > Committed. Thank you, Kushal Das. > BTW, please fill http://www.python.org/psf/contrib/ as contributor of > Python project. > We would to get that agreement from everybody who has pushed any patch. > Thanks again. Hi, I already filled and sent it. Thanks for the commit. Kushal -- title: test that executable arg to Popen() takes precedence over args[0] arg -> test that executable arg to Popen() takes precedence over args ___ Python tracker <http://bugs.python.org/issue16115> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15880] os.path.split() and long UNC names
Kushal Das added the comment: splitunc is deprecated since 3.1. It is also written in the code that "Paths containing drive letters never have an UNC part" -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue15880> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14039] Add "metavar" argument to add_subparsers() in argparse
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue14039> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16061] performance regression in string replace for 3.3
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16061> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16125] open accepts arbitrary mode strings as long as they contain U
Kushal Das added the comment: So, should I submit a new patch which will just put a warning ? -- ___ Python tracker <http://bugs.python.org/issue16125> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16238] Automatically remove build directory when build options changed
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16245> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16268] dir(closure) claims that a closure has no __dir__, only to work later after manually invoking __dir__ from its type
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16268> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: Here is a patch which stops the breakage in getpass for python3. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file34766/issue21169.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: Version 2 of the patch with a test update. -- Added file: http://bugs.python.org/file34767/issue21169_v2.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21170] Incorrect signature for unittest.TestResult.startTestRun(), .stopTestRun()
Kushal Das added the comment: Here is a patch which fixes the documentation for unittest. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file34772/issue21170.patch ___ Python tracker <http://bugs.python.org/issue21170> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21182] json.loads errors out on valid JSON
Kushal Das added the comment: It is not a valid JSON. You may want to validate it against http://jsonlint.com/ What you have inside the string (single quotes) is the JSON representation but not the string representation which json.loads is supposed to parse. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue21182> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: Updated patch with discovering of currect locale and corresponding test case. -- Added file: http://bugs.python.org/file34775/issue21169_v3.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: New patch with actual test case :) -- Added file: http://bugs.python.org/file34776/issue21169_v4.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: Here is a new patch which uses stream.encoding instead getting the encoding from the locale as suggested by David. It also contains the new test. -- Added file: http://bugs.python.org/file34807/issue21169_v5.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: New patchset with updated test, now sending ascii stream into the call as argument. -- Added file: http://bugs.python.org/file34810/issue21169_v6.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21169] getpass.getpass() fails with non-ASCII characters in prompt
Kushal Das added the comment: Another patch with docs update and one line code comment. -- Added file: http://bugs.python.org/file34815/issue21169_v7.patch ___ Python tracker <http://bugs.python.org/issue21169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17498] error responses from server are masked in smtplib when server closes connection
Kushal Das added the comment: New version of the patch which can be successfully applied to tip. -- Added file: http://bugs.python.org/file34817/issue17498_v2.patch ___ Python tracker <http://bugs.python.org/issue17498> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17660] mock.patch could whitelist builtins to not need create=True
Kushal Das added the comment: Updated patch with builtins module. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34825/issue17660_v3.patch ___ Python tracker <http://bugs.python.org/issue17660> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17826] Setting a side_effect on mock from create_autospec doesn't work
Kushal Das added the comment: New patch with fix in proper place for side_effect for functions (includes test case). -- versions: +Python 3.3 -Python 3.5 Added file: http://bugs.python.org/file34838/issue17826_v3.patch ___ Python tracker <http://bugs.python.org/issue17826> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17861] put opcode information in one place
Kushal Das added the comment: New patch with .hgtouch file details. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34842/issue17861_v3.patch ___ Python tracker <http://bugs.python.org/issue17861> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21222] Mock create_autospec with name argument fails
New submission from Kushal Das: >>> from unittest import mock >>> def b(): ... print("hello") ... >>> q = mock.create_autospec(b, name="a") Traceback (most recent call last): File "", line 1, in File "/home/kdas/code/python/cpython3/Lib/unittest/mock.py", line 2092, in create_autospec name=_name, **_kwargs) TypeError: type object got multiple values for keyword argument 'name' The issue was originally reported on mock bug tracker. I am working on a patch for the same. -- components: Library (Lib) messages: 216190 nosy: kushaldas priority: normal severity: normal status: open title: Mock create_autospec with name argument fails type: behavior versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue21222> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21222] Mock create_autospec with name argument fails
Kushal Das added the comment: Fix for the issue with test case. We are checking name in keyword arguments, if found replace _name with it and delete it from keyword arguments. -- keywords: +patch Added file: http://bugs.python.org/file34854/issue21222.patch ___ Python tracker <http://bugs.python.org/issue21222> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17861] put opcode information in one place
Kushal Das added the comment: New patch with proper changesets. -- Added file: http://bugs.python.org/file34855/issue17861_v4.patch ___ Python tracker <http://bugs.python.org/issue17861> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
Kushal Das added the comment: You should have a look at the following guides: https://docs.python.org/devguide/docquality.html https://docs.python.org/devguide/patch.html -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue21229> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17861] put opcode information in one place
Kushal Das added the comment: New patch from a clean repo, with changed opcode.h -- Added file: http://bugs.python.org/file34872/issue17861_v5.patch ___ Python tracker <http://bugs.python.org/issue17861> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21222] Mock create_autospec with name argument fails
Kushal Das added the comment: New patchset with changes made as suggested. -- Added file: http://bugs.python.org/file34881/issue21222_v2.patch ___ Python tracker <http://bugs.python.org/issue21222> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17861] put opcode information in one place
Kushal Das added the comment: New patch with changes as suggested by Brett. -- Added file: http://bugs.python.org/file34883/issue17861_v6.patch ___ Python tracker <http://bugs.python.org/issue17861> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21238] unittest.mock.Mock should not allow you to use non-existent assert methods
Kushal Das added the comment: Patch with docs and test changes. -- keywords: +patch Added file: http://bugs.python.org/file34912/issue21238.patch ___ Python tracker <http://bugs.python.org/issue21238> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21256] Sort keyword arguments in mock _format_call_signature
Kushal Das added the comment: Patch uploaded for the same. -- keywords: +patch Added file: http://bugs.python.org/file34914/issue21256.patch ___ Python tracker <http://bugs.python.org/issue21256> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21262] assert_not_called method for mocks
Kushal Das added the comment: Patch with required changes. Code, docs, test and Misc/NEWS entry. -- keywords: +patch Added file: http://bugs.python.org/file34921/issue21262.patch ___ Python tracker <http://bugs.python.org/issue21262> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21256] Sort keyword arguments in mock _format_call_signature
Kushal Das added the comment: New patch with test and news entry. -- Added file: http://bugs.python.org/file34998/issue21256_v2.patch ___ Python tracker <http://bugs.python.org/issue21256> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16459] sys.stdout.write printing length of string
Kushal Das added the comment: sys.stdout.write returns the length of the string it printed. try these: x = sys.stdout.write("abc") print x or from console python -c 'import sys ; sys.stdout.write("abc")' -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16459> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16493] Document the 'optimize' argument to compile()
Kushal Das added the comment: I will submit a patch if no one is working on it. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16493> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16493] Document the 'optimize' argument to compile()
Kushal Das added the comment: I guess somebody already did the work http://docs.python.org/3.4/library/functions.html?highlight=compile#compile ? -- ___ Python tracker <http://bugs.python.org/issue16493> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16799] switch regrtest from getopt options to argparse Namespace
Kushal Das added the comment: The patches look good. Applied successfully and tests ran ok. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue16799> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17080] A better error message for float()
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue17080> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19167] sqlite3 cursor.description varies across Linux (3.3.1), Win32 (3.3.2), when selecting from a view.
Kushal Das added the comment: Looking at the code, it seems to be a sqlite issue. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue19167> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19716] test that touch doesn't change file contents
Kushal Das added the comment: i will submit a patch tomorrow. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue19716> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19716] test that touch doesn't change file contents
Kushal Das added the comment: Patch to check no change in file content after pathlib.touch(). -- keywords: +patch Added file: http://bugs.python.org/file32792/issue19716_v1.patch ___ Python tracker <http://bugs.python.org/issue19716> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21270] unittest.mock.call object has inherited count method
Kushal Das added the comment: To start with I am overriding count and index method. Do you think this is enough? -- ___ Python tracker <http://bugs.python.org/issue21270> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21270] unittest.mock.call object has inherited count method
Kushal Das added the comment: Forgot to attach the patch. Includes NEWS entry. Overriden methods count() and index(). -- keywords: +patch Added file: http://bugs.python.org/file36581/issue21270.patch ___ Python tracker <http://bugs.python.org/issue21270> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21270] unittest.mock.call object has inherited count method
Kushal Das added the comment: Uploading the second version of the patch. -- Added file: http://bugs.python.org/file36630/issue21270_v2.patch ___ Python tracker <http://bugs.python.org/issue21270> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20842] pkgutil docs should reference glossary terms not PEP 302
Kushal Das added the comment: Will submit a patch for this. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue20842> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29274] Change “tests cases” → “test cases”
Kushal Das added the comment: The patch looks good to me. -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue29274> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28735] Mock is equal to ANY but MagicMock is not
Kushal Das added the comment: >From a checkout in last week. Python 3.7.0a0 (default:c163a76163f7, Jan 15 2017, 22:20:24) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from unittest import mock >>> mock.ANY == mock.Mock() True >>> mock.ANY == mock.MagicMock() True -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue28735> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28735] Mock is equal to ANY but MagicMock is not
Kushal Das added the comment: Now I understood, thanks. I think I should have more coffee before commenting on bugs :) -- ___ Python tracker <http://bugs.python.org/issue28735> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21271] reset_mock needs parameters to also reset return_value and side_effect
Kushal Das added the comment: Fixed in https://hg.python.org/cpython/rev/b110dd3d6cea -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue21271> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19234] socket.fileno() documentation
Kushal Das added the comment: Adds more lines to explain the behavior of socket.fileno() in case of error. -- keywords: +patch nosy: +kushal.das Added file: http://bugs.python.org/file43103/issue19234.patch ___ Python tracker <http://bugs.python.org/issue19234> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25548] Show the address in the repr for class objects
Kushal Das added the comment: Attaching the patch for the same. Had to update the test cases for the following tests to have this behavior as expected. test_functools test_cmd_line_script test_ctypes test_defaultdict test_descr test_descrtut test_doctest test_generators test_genexps test_metaclass test_pprint test_reprlib test_statistics test_trace test_wsgiref -- keywords: +patch nosy: +kushal.das Added file: http://bugs.python.org/file43119/issue25548.patch ___ Python tracker <http://bugs.python.org/issue25548> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25548] Show the address in the repr for class objects
Kushal Das added the comment: Uploading the new patch with a new test case for the same. -- Added file: http://bugs.python.org/file43151/issue25548v2.patch ___ Python tracker <http://bugs.python.org/issue25548> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25548] Show the address in the repr for class objects
Kushal Das added the comment: Hey Raymond, I am uploading the patch which I almost committed along with whats new update :) I am also reassigning the ticket to you so that you can decide the next steps. -- assignee: kushal.das -> rhettinger Added file: http://bugs.python.org/file43153/issue25548v4.patch ___ Python tracker <http://bugs.python.org/issue25548> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25548] Show the address in the repr for class objects
Kushal Das added the comment: The NEWS file got a typo. Thanks for noticing that. This change did require a lot of updates to the tests. If rest of the people agrees to revert this change, then we should go ahead and do it. Just wondering if Raymond has anything to add. -- ___ Python tracker <http://bugs.python.org/issue25548> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27584] New addition of vSockets to the python socket module
Kushal Das added the comment: The patch can be applied, and build successfully. I have ran the current test suite[1]. The two failed tests do not seem to be have anything to do with this patch (read the end of the consoleText output). I think the thing remaining is the new test cases, and NEWS file update. [1] https://ci.centos.org/job/cPython-build-patch/24/consoleText -- nosy: +kushal.das ___ Python tracker <http://bugs.python.org/issue27584> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17256] code example in C API docsshould be highlighted
Kushal Das added the comment: Following patch solves the problem. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29154/issue17256.patch ___ Python tracker <http://bugs.python.org/issue17256> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17227] devguide: buggy heading numbers
Kushal Das added the comment: Adding a patch to fix this issue. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29155/issue17227.patch ___ Python tracker <http://bugs.python.org/issue17227> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17227] devguide: buggy heading numbers
Kushal Das added the comment: >I had tried this, but doesn't this make the contents in the left side bar >unwieldy (and perhaps also on the devguide index page) -- is that what we >want? I was under the assumption that the purpose of the tocdepth directive >was to avoid that. Yes, missed that issue. Trying to find any other solution if possible. -- ___ Python tracker <http://bugs.python.org/issue17227> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17227] devguide: buggy heading numbers
Kushal Das added the comment: I found that http://docs.python.org/devguide/stdlibchanges.html also has left side bar text with full index just like my patch does. For FAQ the problem is title texts are kind of long so they look bad. -- ___ Python tracker <http://bugs.python.org/issue17227> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Kushal Das added the comment: Attaching patch with the initial documentation of the macros. It also fixes the typo in the title of stable API section. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file29258/issue15465.patch ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Kushal Das added the comment: Adding the updated patch with changes as suggested in the review -- Added file: http://bugs.python.org/file29260/issue15465v2.patch ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Kushal Das added the comment: version 3 of the patch where sys.hexversion table is moved and now a link to api and abi versioning given. -- Added file: http://bugs.python.org/file29277/issue15465v3.patch ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Changes by Kushal Das : Added file: http://bugs.python.org/file29313/issue15465v4.patch ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Kushal Das added the comment: version 4 of the patch contains a new column in table as Bytes as suggested by Ezio Melotti -- ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15465] Improved documentation for C API version info
Kushal Das added the comment: Attached version 5 of the patch with changes based on suggestions of ncoghlan -- Added file: http://bugs.python.org/file29321/issue15465v5.patch ___ Python tracker <http://bugs.python.org/issue15465> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17409] resource.setrlimit doesn't respect -1
Kushal Das added the comment: On Fedora 17, x86_64 ./python Python 3.4.0a0 (default:fb50eb64e097, Feb 22 2013, 11:43:18) [GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import resource [92450 refs, 32257 blocks] >>> resource.setrlimit(resource.RLIMIT_NOFILE, (10, -1)) Traceback (most recent call last): File "", line 1, in ValueError: not allowed to raise maximum limit -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue17409> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17358] imp.load_module() leads to the improper caching of the 'file' argument
Kushal Das added the comment: Working on a patch for this. -- nosy: +kushaldas ___ Python tracker <http://bugs.python.org/issue17358> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17358] imp.load_module() leads to the improper caching of the 'file' argument
Kushal Das added the comment: Can not reproduce it :( -- ___ Python tracker <http://bugs.python.org/issue17358> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5713] smtplib gets out of sync if server returns a 421 status
Kushal Das added the comment: Here is a patch along with test case update which can be cleanly applied into default. -- nosy: +kushaldas Added file: http://bugs.python.org/file29507/issue5713.patch ___ Python tracker <http://bugs.python.org/issue5713> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com