[issue38401] Make dataclass attribute docstrings accessible

2019-10-07 Thread John Parejko
New submission from John Parejko : Dataclasses provide a very straightforward way to specify structured data. One can trivally document a dataclass's attributes via triple-quoted attribute docstrings per PEP 257. However, those docstrings are not accessible to pydoc, so they are lost

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread John Parejko
New submission from John Parejko : The new dataclasses.dataclass is very useful for describing the properties of a class, but it appears that Mocks of such decorated classes do not catch the members that are defined in the dataclass. I believe the root cause of this is the fact

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-15 Thread John Parejko
John Parejko added the comment: Were you able to make any progress on this? Do you need any help? -- nosy: +parejkoj-3 ___ Python tracker <https://bugs.python.org/issue23

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-27 Thread John Parejko
John Parejko added the comment: Adding to the list of "I just ran into this". The patch submitted by fov seems straightforward enough: what can we do to help shepherd it along? -- nosy: +John Parejko2 ___ Python tracker <https://bu

[issue20608] 'SyntaxError: invalid token' is unfriendly

2017-01-03 Thread John Parejko
John Parejko added the comment: I had filed issue 29146 but eventually found this, which has patches to fix the exception messages. Could someone please look at this and get it incorporated into python? -- ___ Python tracker <rep...@bugs.python.

[issue20608] 'SyntaxError: invalid token' is unfriendly

2017-01-03 Thread John Parejko
Changes by John Parejko <parej...@gmail.com>: -- nosy: +John Parejko ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20608> ___ _

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
John Parejko added the comment: Ah, I finally found a related issue, and it looks like it has patches! https://bugs.python.org/issue20608 If someone could check that over and merge it, that would be wonderful! -- ___ Python tracker <

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
New submission from John Parejko: As described in PEP-3127, the "leading-zeros" formatting for octal was removed from python 3. This is a good thing(tm), but the recommendation of that PEP to improve the error message of the raised exception[1] was apparently never implemented.