[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Eric Snow
Eric Snow added the comment: Here's a basic patch. It introduces __main__ in import.rst and then identifies the cases where __spec__ is set to None or otherwise. There are a few :ref: links to labels on other pages that I had trouble with. I'll address those when I put up a new draft after

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: Looks like a reasonable general structure to me. For label references, you don't want to include the leading underscore - that's part of the label syntax, not the label itself. -- ___ Python tracker

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Eric Snow
Eric Snow added the comment: That did the trick, Nick. I swear there's always something I forget about ReST. :) Otherwise do you have any objections to the patch? I imagine there's more we could put in the section (for language spec purposes), but I figure what I have there is good enough

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: is some cases is a typo, but otherwise, yeah, may as well commit this so the website gets updated while we decide what else (if anything) we want to cover. -- ___ Python tracker rep...@bugs.python.org

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21d8222b667f by Eric Snow in branch 'default': Issue #19697: Document cases where __main__.__spec__ is None. http://hg.python.org/cpython/rev/21d8222b667f -- nosy: +python-dev ___ Python tracker

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4972475ae2e7 by Eric Snow in branch '3.4': Issue #19697: Document cases where __main__.__spec__ is None. http://hg.python.org/cpython/rev/4972475ae2e7 -- ___ Python tracker rep...@bugs.python.org

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Eric Snow
Eric Snow added the comment: Wish I had done that in the opposite direction. Anyway, thanks Nick. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue19697] Document the possible values for __main__.__spec__

2014-03-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0427c2ff653d by Nick Coghlan in branch '3.4': Issue #19697: document more __main__.__spec__ quirks http://hg.python.org/cpython/rev/0427c2ff653d New changeset a90254be2da2 by Nick Coghlan in branch 'default': Issue #19697: merge docs from 3.4

[issue19697] Document the possible values for __main__.__spec__

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: I think we need to document this somewhere. Not exactly sure where though - a new subsection in the import reference, perhaps? -- title: refactor pythonrun.c to make use of specs (__main__.__spec__) - Document the possible values for __main__.__spec__