[issue10716] Modernize pydoc to use better HTML and separate CSS

2021-10-08 Thread Víctor Terrón
Change by Víctor Terrón : -- nosy: -vterron ___ Python tracker <https://bugs.python.org/issue10716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-20 Thread Víctor Terrón
Víctor Terrón added the comment: Ramchandra, that is not the behavior that I am able to reproduce. Please see the attached example: in the presence of __reduce__(), __getstate__() is not being called whether the class or an instance its pickled. This is also in consonance with what is stated

[issue17492] Increase test coverage for random (up to 99%)

2013-03-19 Thread Víctor Terrón
New submission from Víctor Terrón: I'm attaching a patch to increase the code coverage of the random module to 99% (only one line missing, see issue #17489; it's reported as 89%, however, because of the _test(N=2000) function, which is not executed when the unit tests are run). M

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-19 Thread Víctor Terrón
New submission from Víctor Terrón: The random.Random class implements both the __getstate__() and __reduce__() methods. My knowledge of the pickle module is very limited, but apparently this causes __getstate__() never to get called. Maybe this is a remnant from earlier code, or are both

[issue10716] Modernize pydoc to use better HTML and separate CSS

2012-07-13 Thread Víctor Terrón
Víctor Terrón added the comment: I would like to take on this issue if, as it seems, Ron is no longer working on it. I'm thinking of using HTML5 and maybe replicating the default output of Sphinx. -- nosy: +vterron ___ Python tracker

[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-10-19 Thread Víctor Terrón
Víctor Terrón added the comment: FWIU, only the name of the method, getAnswer, would be a HTML link in the "self.getAnswer()" line that pydoc should generate, while strong (highlighted) text would be used for instance attributes. I have written a patch for that, by checking

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón
Changes by Víctor Terrón : Removed file: http://bugs.python.org/file23404/smtplib.py.diff ___ Python tracker <http://bugs.python.org/issue13163> ___ ___ Python-bugs-list m

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón
Víctor Terrón added the comment: I have added a docstring to _get_socket. My proposed news entry is almost exactly what you suggested (I have just replaced 'identity' with 'identify'): "Issue #13163: Fix smtplib.SMTP._get_socket so that tracebacks correctly identif

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Víctor Terrón
Víctor Terrón added the comment: Patch updated. It is now a two-line patch. How impressive :-) Anyway, I have verified that the entire test suite runs without failure. Should Misc/NEWS be updated for such a trivial modification? -- Added file: http://bugs.python.org/file23404

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Víctor Terrón
Changes by Víctor Terrón : Removed file: http://bugs.python.org/file23397/smtplib.py.diff ___ Python tracker <http://bugs.python.org/issue13163> ___ ___ Python-bugs-list m

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-13 Thread Víctor Terrón
Víctor Terrón added the comment: It was strange it was *that* easy. My newbie apologies, David. Let me take a look at it -- hopefully it will be an adequate first task for a newcomer. -- ___ Python tracker <http://bugs.python.org/issue13