[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
miss-islington added the comment: New changeset 8b5d191386350d28a0f20283dcb366cf50f82b97 by Miss Islington (bot) in branch '3.6': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/8b5d191386350d28a0f20283dcb366cf50f82b97 --

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
miss-islington added the comment: New changeset 892df9d15aae08d4033faeb34698e3c550c85854 by Miss Islington (bot) in branch '3.7': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/892df9d15aae08d4033faeb34698e3c550c85854 --

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7844 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7843 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
INADA Naoki added the comment: New changeset 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2 by INADA Naoki in branch 'master': bpo-33967: Fix wrong use of assertRaises (GH-8306) https://github.com/python/cpython/commit/56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2 -- _

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7840, 7841 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7840 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The purpose of using assertRaisesRegexp() was testing the error message. assertRaises() doesn't do this. Needed to restore the appropriate assertion method, but using a non-deprecated alias: assertRaisesRegex(). -- nosy: +serhiy.storchaka resolutio

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0a820a203032e3b1b9413afba45acd8f79f27f81 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296) https://github.com/python/cpython/commit/0a820a203032e3b1b9413afba45a

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 336c9539a90e0f5df5bcc5b444b8400a58820583 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8295) https://github.com/python/cpython/commit/336c9539a90e0f5df5bcc5b444b8

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7830 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-11 Thread INADA Naoki
INADA Naoki added the comment: New changeset 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece by INADA Naoki (Zackery Spytz) in branch 'master': bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) https://github.com/python/cpython/commit/9e9b2c32a34594e901b5b9a03c561a2a2bf63ece -

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-11 Thread Zackery Spytz
Zackery Spytz added the comment: The test added in this change uses the deprecated method assertRaisesRegexp(), so -Werror will cause test_functools to fail. PR 8261 fixes this. -- nosy: +ZackerySpytz ___ Python tracker

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-11 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7794 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset 6ceab46a602c6653356d67d7479391fba0b35697 by Miss Islington (bot) in branch '3.6': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/6ceab46a602c6653356d67d7479391fba0b35697

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
miss-islington added the comment: New changeset df9f633f94e97fc43e0235cb2be076491ea7f67f by Miss Islington (bot) in branch '3.7': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/df9f633f94e97fc43e0235cb2be076491ea7f67f

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7759 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +7758 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-10 Thread INADA Naoki
INADA Naoki added the comment: New changeset 445f1b35ce8461268438c8a6b327ddc764287e05 by INADA Naoki (Dong-hee Na) in branch 'master': bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) https://github.com/python/cpython/commit/445f1b35ce8461268438c8a6b327ddc764287e05 ---

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-09 Thread INADA Naoki
INADA Naoki added the comment: Signature mismatch should raise TypeError, not IndexError. I think this should be backported to 3.6 and 3.7. -- nosy: +inada.naoki versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7739 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-07 Thread Dong-hee Na
Dong-hee Na added the comment: @doerwalter Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-06-26 Thread Walter Dörwald
New submission from Walter Dörwald : When I call a function decorated with functools.singledispatch without an argument, I get the following: $ python Python 3.6.5 (default, Jun 17 2018, 12:13:06) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "cr