[issue12734] Request for property support in Python re lib

2021-01-26 Thread John Mark Vandenberg
Change by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker <https://bugs.python.org/issue12734> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25699] Easier way to specify reduced globals for doctest

2016-10-02 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: pyflakes does assume doctest run with a copy of the module scope. However when there is an __all__, the module scope as seen by other modules 'should' be only items in __all__. If a doctest is included in documentation, it 'should' only use names

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Well, it wasnt my intention to remove the vendor package. There were two versions, and I assume it would remove the older package which wasnt supplied by the vendor, but it removed both. Anyways, I see that most of the code path is in https

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: After uninstalling pip on Fedora 24, ensurepip get_records_to_pack returns None, causing rewheel.rewheel_from_record to raise TypeError: 'NoneType' object is not iterable. While this is probably not a scenario that CPython supports directly, it would

[issue22888] ensurepip and distutils' build_scripts fails on Windows when path to Python contains accented characters

2016-08-31 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22888> ___ _

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-08-31 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25758> ___ _

[issue27364] Deprecate invalid unicode escape sequences

2016-08-23 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27364> ___ _

[issue27494] 2to3 parser failure caused by a comma after a generator expression

2016-07-12 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27494> ___ _

[issue27187] Relax __all__ location requirement in PEP 8

2016-06-07 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: The revised text says __dunder__ should appear before any imports, however __future__ imports must appear first for obvious reasons. Does this need to be mentioned in the pep? -- ___ Python tracker <

[issue27187] Relax __all__ location requirement in PEP 8

2016-06-02 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27187> ___ _

[issue22247] More incomplete module.__all__ lists

2016-05-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22247> ___ _

[issue26632] __all__ decorator

2016-05-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26632> ___ _

[issue26204] compiler: ignore constants used as statements (don't emit LOAD_CONST+POP_TOP)

2016-02-08 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26204> ___ _

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2016-02-08 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24294> ___ _

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-12-23 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: In pyflakes we've looked at some of the strange scenarios where a raise without argument is 'legal'. A patch to report errors for some of these was rejected because they are legal. See https://github.com/pyflakes/pyflakes/pull/57 The worst example

[issue25381] Doc: Use of old description of raise in Python3

2015-12-23 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25381> ___ _

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-12-16 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25034> ___ _

[issue2636] Adding a new regex module (compatible with re)

2015-12-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2636> ___ _

[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25216> ___ _

[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: This looks a lot like the patch on http://bugs.python.org/issue850482 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue850482] Enhance frame handing in warnings.warn()

2015-12-10 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: See similar http://bugs.python.org/issue25216 -- nosy: +jayvdb ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/is

[issue25493] warnings.warn: wrong stacklevel causes import of local file "sys"

2015-12-09 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: It seems like there is already sufficient detection of invalid stack levels in warnings.warn, and one of the code paths does `module = ""` and later another does `filename = module`, so `filename` can be intentionally junk data, which will

[issue25699] Easier way to specify reduced globals for doctest

2015-11-22 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: Currently doctest.testmod `globals` defaults to including everything in the module scope, and tools like pyflakes assume that doctests run with globals as a copy of __dict__ . It is relatively simple to exclude everything using doctest.testmod(globs

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-07 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Could it issue a UnicodeWarning? -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue1650090] doctest doesn't find nested functions

2015-11-07 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.1, Python 3.2 Added file: http://bugs.python.org/file40977/doctest_nested_functions-py3.6.diff ___ Python tracker <rep...@bugs.p

[issue1650090] doctest doesn't find nested functions

2015-11-07 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: Added file: http://bugs.python.org/file40978/doctest_nested_functions-py3.6.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.o

[issue1650090] doctest doesn't find nested functions

2015-11-03 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.o

[issue2275] urllib/httplib header capitalization

2015-11-03 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.pytho

[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2015-11-03 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue12790] doctest.testmod does not run tests in functools.partial functions

2015-11-03 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25515] Always use os.urandom for generating uuid4s

2015-10-29 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25506] test_pprint reuses test_user_dict

2015-10-29 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: test_pprint defined test_user_dict twice, once for UserDict, and the second for UserList. -- components: Library (Lib), Tests files: test_pprint-fix.diff keywords: patch messages: 253663 nosy: John.Mark.Vandenberg, serhiy.storchaka priority

[issue25505] undefined name 'window' in Tools/scripts/fixdiv.py

2015-10-29 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +serhiy.storchaka ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25504] undefined name 'modules' in Tools/freeze/checkextensions_win32.py

2015-10-29 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: All versions of Tools/freeze/checkextensions_win32.py have had an error due to accessing 'modules.sourceFiles' instead of 'module.sourceFiles'. https://hg.python.org/cpython/diff/8e9d5e5103f5/Tools/freeze/checkextensions_win32.py#l1.96 Presumably

[issue25505] undefined name 'window' in Tools/scripts/fixdiv.py

2015-10-29 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: Added file: http://bugs.python.org/file40889/fixdiv-remove-truncate.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25505] undefined name 'window' in Tools/scripts/fixdiv.py

2015-10-29 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: Tools/scripts/fixdiv.py 's `FileContext.truncate` has used `window` since it was created, when it is supposed to use self.window. https://hg.python.org/cpython/annotate/60f290a7eae8/Tools/scripts/fixdiv.py#l195 `truncate` is unused, so an alternative

[issue25506] test_pprint reuses test_user_dict

2015-10-29 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Sorry; the first patch includes unrelated fixes. -- Added file: http://bugs.python.org/file40892/test_pprint-fix.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2015-10-28 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Not surprising also occurs on Python 3.2, 3.3, & 3.6. I'm not sure whether fixes like this are suitable to be merged into 3.2/3.3.(is there a document describing this?) -- nosy: +John.Mark.Vandenberg versions: +Python 3.2, Python 3.3, Python

[issue25503] inspect.getdoc does find inherited property __doc__

2015-10-28 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: inspect.getdoc's helper _finddoc raises an AttributeError on encountering a property, which is silently discarded. >>> class Foo(object): ... @property ... def foo(self): ... """foobar.""" ...

[issue25502] unnecessary re-imports

2015-10-28 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: Added file: http://bugs.python.org/file40886/re-imports.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25502] unnecessary re-imports

2015-10-28 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: The following four modules re-import another module unnecessarily as it is already imported in the global scope. Lib/getpass.py : msvcrt Lib/pickletools.py : sys Lib/smtplib.py : sys PC/testpy.py : os In each case, the import being removed

[issue25486] Resurrect inspect.getargspec() in 3.6

2015-10-28 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25503] inspect.getdoc does find inherited property __doc__

2015-10-28 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +serhiy.storchaka ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25494] Four quotes used to begin docstring

2015-10-27 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: Introduced in the initial version of statistics was """" starting a docstring https://hg.python.org/cpython/annotate/685e044bed5e/Lib/statistics.py#l380 Somewhere the fourth quote is dropped, as it doesnt appear in the docs: https

[issue25494] Four quotes used to begin docstring

2015-10-27 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: The additional quotation mark is shown in help() >>> help(statistics.median_grouped) Help on function median_grouped in module statistics: median_grouped(data, interval=1) "Return the 50th percentile (median) of grouped c

[issue25494] Four quotes used to begin docstring

2015-10-27 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Thank you for clarifying that. Does that mean that this issue should not be assigned to docs@python and should not have a Component of 'Documentation'? -- ___ Python tracker <rep...@bugs.python.org>

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2015-09-18 Thread John Mark Vandenberg
Changes by John Mark Vandenberg <jay...@gmail.com>: -- nosy: +John.Mark.Vandenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue24667] OrderedDict.popitem() raises KeyError

2015-07-19 Thread John Mark Vandenberg
Changes by John Mark Vandenberg jay...@gmail.com: -- nosy: +John.Mark.Vandenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667