[issue26187] sqlite3 trace callback prints duplicate line
Anish Shah added the comment: I can work on this. -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26187> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26187] sqlite3 trace callback prints duplicate line
Changes by Anish Shah : -- pull_requests: +360 ___ Python tracker <http://bugs.python.org/issue26187> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29693] DeprecationWarning/SyntaxError in test_import
Anish Shah added the comment: I will try to work on this! :) -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue29693> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29693] DeprecationWarning/SyntaxError in test_import
Anish Shah added the comment: I'm not able to reproduce the SyntaxError on latest commit 902e9c50e31209e796b6bbe26f8d2f57ec12071b on master branch. -- ___ Python tracker <http://bugs.python.org/issue29693> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29693] DeprecationWarning/SyntaxError in test_import
Changes by Anish Shah : -- pull_requests: +350 ___ Python tracker <http://bugs.python.org/issue29693> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27645] Supporting native backup facility of SQLite
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue27645> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25346] test_regrtest fails because 'sys' is not imported.
Changes by Anish Shah : -- components: Tests files: test_regrtest.patch keywords: patch nosy: Anish Shah, python-dev, steve.dower priority: normal severity: normal status: open title: test_regrtest fails because 'sys' is not imported. versions: Python 3.6 Added file: http://bugs.python.org/file40722/test_regrtest.patch ___ Python tracker <http://bugs.python.org/issue25346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Anish Shah added the comment: will try to create a patch for this issue in a day. Thanks! -- nosy: +Anish.Shah ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Changes by Anish Shah : -- keywords: +patch Added file: http://bugs.python.org/file41310/remove_Py_InitModule_from_docs.patch ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Anish Shah added the comment: Can anyone review the patch? -- ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Anish Shah added the comment: It should be done in a separate issue, right? Or should I include it in this patch? -- ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Anish Shah added the comment: @brett.cannon Thanks! I have updated the patch. I removed "_PyImport_FixupExtension" from docs. -- Added file: http://bugs.python.org/file41404/issue12484.patch ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26182] Deprecation warnings for the future async and await keywords
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26182> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24780] unittest assertEqual difference output foiled by newlines
Anish Shah added the comment: I would like to work on this.. -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue24780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Anish Shah added the comment: I have submitted a patch. I have replace `PyExc_PendingDeprecationWarning` to `PyExc_DeprecationWarning` in Objects/genobject.c Can anyone please review? -- keywords: +patch Added file: http://bugs.python.org/file41783/issue26136.patch ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26182] Deprecation warnings for the future async and await keywords
Anish Shah added the comment: I would like to work on this, if it is okay with Marco? I look at the history of parsetok.c file and I think I can solve this issue. Also, I have a doubt - PEP 492 says that "async and await names will be softly deprecated in CPython 3.5 and 3.6". What exactly does "softly deprecate" mean? is it just same as throwing a warning? -- ___ Python tracker <http://bugs.python.org/issue26182> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24780] unittest assertEqual difference output foiled by newlines
Anish Shah added the comment: The problem is in `difflib.ndiff` function. When the string does not have a trailing newline, we get an unreadable output. After applying my patch, the following is the output of test2.py (submitted by Elena.Oat). == FAIL: test_notrailingnewline_0 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 8, in test_notrailingnewline_0 self.assertEqual("abcDefehiJkl", "abcdefGhijkl") AssertionError: 'abcDefehiJkl' != 'abcdefGhijkl' - abcDefehiJkl ?^ ^ ^ + abcdefGhijkl ?^ ^ ^ == FAIL: test_notrailingnewline_1 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 14, in test_notrailingnewline_1 self.assertEqual("a\nbcdf", "a\nbddf") AssertionError: 'a\nbcdf' != 'a\nbddf' a - bcdf ? ^ + bddf ? ^ == FAIL: test_notrailingnewline_2 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 18, in test_notrailingnewline_2 self.assertEqual("a\nbcdf", "a\nbddg") AssertionError: 'a\nbcdf' != 'a\nbddg' a - bcdf + bddg == FAIL: test_starting_and_ending_newline_0 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 12, in test_starting_and_ending_newline_0 self.assertEqual("\nabcDefehiJkl\n", "\nabcdefGhijkl\n") AssertionError: '\nabcDefehiJkl\n' != '\nabcdefGhijkl\n' - abcDefehiJkl ?^ ^ ^ + abcdefGhijkl ?^ ^ ^ == FAIL: test_startingnewline_0 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 10, in test_startingnewline_0 self.assertEqual("\nabcDefehiJkl", "\nabcdefGhijkl") AssertionError: '\nabcDefehiJkl' != '\nabcdefGhijkl' - abcDefehiJkl ?^ ^ ^ + abcdefGhijkl ?^ ^ ^ == FAIL: test_trailingnewline_0 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 6, in test_trailingnewline_0 self.assertEqual("abcDefehiJkl\n", "abcdefGhijkl\n") AssertionError: 'abcDefehiJkl\n' != 'abcdefGhijkl\n' - abcDefehiJkl ?^ ^ ^ + abcdefGhijkl ?^ ^ ^ == FAIL: test_trailingnewline_1 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 16, in test_trailingnewline_1 self.assertEqual("a\nbcdf\n", "a\nbddf\n") AssertionError: 'a\nbcdf\n' != 'a\nbddf\n' a - bcdf ? ^ + bddf ? ^ == FAIL: test_trailingnewline_2 (__main__.AssertEqualTest) -- Traceback (most recent call last): File "test.py", line 20, in test_trailingnewline_2 self.assertEqual("a\nbcdf\n", "a\nbddg\n") AssertionError: 'a\nbcdf\n' != 'a\nbddg\n' a - bcdf + bddg -- Ran 8 tests in 0.004s FAILED (failures=8) -- keywords: +patch Added file: http://bugs.python.org/file41782/issue24780.patch ___ Python tracker <http://bugs.python.org/issue24780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Anish Shah added the comment: Yes @martin.panter, the tests were failing. But, I didn't know where the tests for PendingDeprecationWarning were added. Thanks for telling the changeset. I have updated the patch. Can you please have a look? -- Added file: http://bugs.python.org/file41794/issue26136_20160203.patch ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Anish Shah added the comment: Thanks @martin.panter. I learnt something new, I didn't know about annotate before. I have updated the patch. Thanks again. -- Added file: http://bugs.python.org/file41800/issue26136_20160204.patch ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26283] zipfile can not handle the path build by os.path.join()
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26283> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26252] Add an example to importlib docs on setting up an importer
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26252> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26282] Add support for partial keyword arguments in extension functions
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26282> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26263] Serialize array.array to JSON by default
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26269] zipfile should call lstat instead of stat if available
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26269> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21573] Clean up turtle.py code formatting
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue21573> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Anish Shah added the comment: @martin.panter Any reviews for the patch? Is it ready to merge? -- ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Anish Shah added the comment: We just need to use '\-' instead of '-'. ``` >>> regex = re.compile("[a-z]") >>> bool(regex.match('b')) True >>> regex = re.compile("[a\-z]") >>> bool(regex.match('b')) False ``` I have uploaded a patch. Let me know if this needs some tests too? -- keywords: +patch Added file: http://bugs.python.org/file41836/issue26302_20160206.patch ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Anish Shah added the comment: @serhiy.storchaka OK, I have used re.escape instead of '\'. And I have added a test too. Also, may I know why '\' can not be in _LegalChars, so that I can remember this for future purpose? -- Added file: http://bugs.python.org/file41837/issue26302_20160206-2.patch ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26136] DeprecationWarning for PEP 479 (generator_stop)
Anish Shah added the comment: @martin.panter I have fixed the What's New docs. I have updated the patch. Thanks! -- Added file: http://bugs.python.org/file41840/issue26136_20160207.patch ___ Python tracker <http://bugs.python.org/issue26136> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Anish Shah added the comment: I ran regex and issuperset version on a random string. The regex one gives better performance. So, I have included the re.escape in the patch. >>> random_str = ''.join(random.choice(_LegalChars) for _ in range(10 ** 8)) >>> is_legal_key = re.compile('[%s]+' % re.escape(_LegalChars)).fullmatch >>> Timer("is_legal_key(random_str)", setup="from __main__ import random_str, >>> is_legal_key").timeit(1) 0.316825238437 >>> def is_legal_key(key): ... return key and set(_LegalChars).issuperset(key) ... >>> Timer("is_legal_key(random_str)", setup="from __main__ import random_str, >>> is_legal_key").timeit(1) 4.3335622880001665 Also, I have updated the patch. Can you please review it? :) -- Added file: http://bugs.python.org/file41841/issue26302_20160207.patch ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Anish Shah added the comment: _LegalKeyChars contains "\-" whereas _LegalChars just contains "-". On Sun, Feb 7, 2016 at 4:33 PM, Martin Panter wrote: > > Martin Panter added the comment: > > I take that back about _CookiePattern having the same bug; it uses a > different input variable. But it is strange that _LegalKeyChars lists a > comma, but _LegalChars omits it. > > -- > > ___ > Python tracker > <http://bugs.python.org/issue26302> > ___ > -- ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26282] Add support for partial keyword arguments in extension functions
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26282> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26209] TypeError in smtpd module with string arguments
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26209] TypeError in smtpd module with string arguments
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26302] cookies module allows commas in keys
Anish Shah added the comment: Is this patch ready to merge? -- ___ Python tracker <http://bugs.python.org/issue26302> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26149] Suggest PyCharm Community as an editor for Unix platforms
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26149> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26386] tkinter - Treeview - .selection_add and selection_toggle
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26386> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22234] urllib.parse.urlparse accepts any falsy value as an url
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue22234> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26396] Create json.JSONType
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker <http://bugs.python.org/issue26396> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()
Anish Shah added the comment: Hi Brett, I'm looking for some issues to solve. Is this issue confirmed? Can I work on this? -- ___ Python tracker <http://bugs.python.org/issue26281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26386] tkinter - Treeview - .selection_add and selection_toggle
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26386> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26283] zipfile can not handle the path build by os.path.join()
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26283> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26269] zipfile should call lstat instead of stat if available
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26269> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26252] Add an example to importlib docs on setting up an importer
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue26252> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26553] Write HTTP in uppercase
Anish Shah added the comment: Patch for http.client in Python3 -- Added file: http://bugs.python.org/file42160/issue26553-python3.patch ___ Python tracker <http://bugs.python.org/issue26553> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26553] Write HTTP in uppercase
Anish Shah added the comment: Patch for urllib and httplib in Python 2 -- keywords: +patch nosy: +anish.shah Added file: http://bugs.python.org/file42159/issue26553.patch ___ Python tracker <http://bugs.python.org/issue26553> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22234] urllib.parse.urlparse accepts any falsy value as an url
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker <http://bugs.python.org/issue22234> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com