New submission from John-Mark Gurney :
The documentation for Traversable.name says it is a method, not a property:
https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable.name
The issue is that with Python 3.9.7 (default, Nov 1 2021, 11:26:33), using a
standard posix
John-Mark Gurney added the comment:
So, just looked at the patch, but it's missing the documentation part of it.
Also, yes, you can add the doc as another line, but now that's two lines (yes,
you can add semicolons to make it one line, but that might surprise some
people).
I
John-Mark Gurney added the comment:
Though this suggestion does work, I am not a fan of this solution.
The issue is that it separates the doc from the definition. This works well if
you have only a field fields in the class, But if you get 10-20+ fields, it
moves away the docs and makes it
Change by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<https://bugs.python.org/issue12734>
___
___
Python-bugs-list mailing list
Unsubscribe:
John-Mark Gurney added the comment:
As I said, I expect it to work similar to how property works:
```
>>> class Foo:
... def getx(self):
... return 5
... x = property(getx, doc='document the x property')
...
>>> help(Foo)
Help on class Foo in module __main__
New submission from John-Mark Gurney :
per: https://bugs.python.org/issue38401
There is not a way to document fields of a dataclass.
I propose that instead of making a language change, that an additional
parameter to the field be added in similar vein to property.
This currently works
New submission from John-Mark Gurney :
If I create a coro from an async iterator, then wait_for it w/ a timeout, but
shielded, so it won't get canceled, and then await upon it, it returns invalid
data.
See the attached test case.
The reason I do the following is to make sure that an
New submission from John-Mark :
The `configure` script for building what appears to be any version of python
(I've manually checked 2.7, 3.6.6, and master) uses simple substring-in-path
checks to determine the compiler vendor. This is problematic because it is very
easy for it to pr
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'
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
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
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue25758>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue22888>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27364>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27494>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
<h
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27187>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue22247>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue26632>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue24294>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue26204>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue25381>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
w
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue25034>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Mark Vandenberg added the comment:
See similar http://bugs.python.org/issue25216
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue850
John Mark Vandenberg added the comment:
This looks a lot like the patch on http://bugs.python.org/issue850482
--
___
Python tracker
<http://bugs.python.org/issue25
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue2636>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue25216>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 be
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
Changes by John Mark Vandenberg :
Added file: http://bugs.python.org/file40978/doctest_nested_functions-py3.6.diff
___
Python tracker
<http://bugs.python.org/issue1650
Changes by John Mark Vandenberg :
--
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
<http://bugs.python.org/issue1650
John Mark Vandenberg added the comment:
Could it issue a UnicodeWarning?
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue25
John Mark Vandenberg added the comment:
Might be useful to add a note to PEP 257 that f-strings are not valid as
docstrings .
Or should f-strings be valid docstrings and raise an error if any variables
present in the f-string do not exist in the outer scope?
--
nosy
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue2275>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue24925>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue12790>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue1650090>
___
___
Python-bugs-list mailin
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue25515>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue25505>
___
___
Python-bugs-list mailing list
Unsub
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
<http://bugs.python.org/issue25
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
Changes by John Mark Vandenberg :
Added file: http://bugs.python.org/file40889/fixdiv-remove-truncate.diff
___
Python tracker
<http://bugs.python.org/issue25505>
___
___
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 altern
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.
Changes by John Mark Vandenberg :
Added file: http://bugs.python.org/file40886/re-imports.diff
___
Python tracker
<http://bugs.python.org/issue25502>
___
___
Python-bug
Changes by John Mark Vandenberg :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue25503>
___
___
Python-bugs-list mailing list
Unsub
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."""
...
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue25486>
___
___
Python-bugs-list mailing list
Unsub
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 in the
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, P
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
<http://bugs.python.o
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
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
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue19003>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue24667>
___
___
Python-bugs-list mailing list
Unsub
New submission from John-Mark Bell:
In low-memory scenarios, the Python 2.7 interpreter may crash as a result of
failing to correctly check the return value from mmap in new_arena().
This changeset appears to be the point at which this issue was introduced:
http://hg.python.org/cpython/rev
John Mark Schofield added the comment:
I'd also suggest changing the title to "Documentation for many functions in os
module is incomplete." I didn't because I don't know if that would be
considered rude. (I'
John Mark Schofield added the comment:
Please don't close this as "invalid."
Most (all?) of the functions in the os module have positional-only arguments,
which are documented in exactly the same manner as arguments which can be
supplied using a keyword.
As someone reading th
New submission from John Mark Schofield :
SUMMARY: When you attempt to start a thread, and you're unable to (you
get thread.error) it leaves a thread stuck in an "initial" state that
never exits. (threading.enumerate() shows the threads and lists their
status as "initial.&q
John-Mark Gurney added the comment:
I think this is a good patch. It gives more useful pretty XML output.
I would suggest that possibly this routine be moved to xml.dom or
xml.dom.utils instead of being part of minidom since it should not be
minidom specific.
There is one bug in the patch in
61 matches
Mail list logo