[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Change by Malcolm Smith : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue31196> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Malcolm Smith added the comment: I think it's unlikely that anyone is depending on the ability to enter blank lines in a "try" block in an InteractiveConsole, especially when blank lines terminate the input in almost every other context. Conversely, everyone who's ever entered a

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Malcolm Smith added the comment: I agree that both behaviors are reasonable. However, the InteractiveConsole documentation says it should "closely emulate the behavior of the interactive Python interpreter". Since people are familiar with the native interpreter, any difference i

[issue34931] os.path.splitext with more dots

2020-05-28 Thread Malcolm Smith
Malcolm Smith added the comment: > Try for example create/rename .somename.jpg file in Ubuntu. > It is normal image with .jpg extension. You could open it etc. > > You can't use standard python splitext() function to detect extension. Yes you can (Python 3.8.2): >>> sp

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-03-14 Thread Malcolm Smith
Malcolm Smith added the comment: It's definitely a bug and not a documentation lapse. There's no reason why blank lines should have that effect, and no indication in the code that this was intentional. -- ___ Python tracker <ht

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2020-02-29 Thread Malcolm Smith
Malcolm Smith added the comment: It looks like this has now been done and released. Can the issue be closed? -- nosy: +Malcolm Smith ___ Python tracker <https://bugs.python.org/issue34

[issue34592] cdll.LoadLibrary allows None as an argument

2020-02-10 Thread Malcolm Smith
Malcolm Smith added the comment: This isn't documented, but CDLL(None) is translated to dlopen(NULL), which "causes a search for a symbol in the main program, followed by all shared libraries loaded at program startup, and then all shared libraries loaded by dlopen() with the

[issue10948] Trouble with dir_util created dir cache

2019-01-04 Thread Malcolm Smith
Malcolm Smith added the comment: Please reopen this issue. The distutils2 project has now been abandoned, so that's no longer a justification for taking no action. At the very least, the documentation should be fixed to either warn about this surprising behavior, or make it clear

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Malcolm Smith
Malcolm Smith added the comment: FYI: I have created issue 33689 for the non-Windows-specific issue. -- ___ Python tracker <https://bugs.python.org/issue29

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2018-05-29 Thread Malcolm Smith
New submission from Malcolm Smith : The `site` module documentation says that in .pth files, "Blank lines and lines beginning with # are skipped.". However, the implementation does not actually skip blank lines. It then joins the empty string to the site-packages directory,

[issue29326] Blank lines in ._pth file are not ignored

2018-05-29 Thread Malcolm Smith
Malcolm Smith added the comment: > I'm not aware of any such issue with .pth files - the underscore in ._pth is > deliberate. An identical issue *does* exist for .pth files. As you can see from examining site.addpackage, it does not ignore blank lines as the documentation says. A

[issue32640] Python 2.7 str.join documentation is incorrect

2018-01-23 Thread Malcolm Smith
New submission from Malcolm Smith <malcolm.sm...@gmail.com>: At some point the Python 3 documentation of str.join has been copied to Python 2. This includes the sentence "A TypeError will be raised if there are any non-string values in iterable, including bytes objects."

[issue32170] Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata

2017-11-29 Thread Malcolm Smith
Malcolm Smith <malcolm.sm...@gmail.com> added the comment: Related: Issue15795 -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32170] Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata

2017-11-29 Thread Malcolm Smith
New submission from Malcolm Smith <malcolm.sm...@gmail.com>: The documentation explicitly says "file information is extracted as accurately as possible". But the `zipfile` module doesn't actually extract any metadata at all. I assume this text was copied and pasted from the

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2017-08-13 Thread Malcolm Smith
New submission from Malcolm Smith: The standard interpreter is more eager to give an error on incomplete input, while the InteractiveConsole will keep on prompting for more: Python 3.5.3 (default, Apr 10 2017, 07:53:16) [GCC 6.3.0 64 bit (AMD64)] on win32 Type "help", "copyr

[issue23674] super() documentation isn't very clear

2017-07-14 Thread Malcolm Smith
Malcolm Smith added the comment: I agree that the first two paragraphs are confusing. It's clearly not true to say "The search order is same as that used by getattr() except that the type itself is skipped", because as noted above, everything *earlier* than the type in the MRO is al

[issue15360] Behavior of assigning to __dict__ is not documented

2017-07-13 Thread Malcolm Smith
Changes by Malcolm Smith <malcolm.sm...@gmail.com>: -- nosy: +Malcolm Smith ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15360> ___

[issue30840] Contrary to documentation, relative imports cannot pass through the top level

2017-07-03 Thread Malcolm Smith
New submission from Malcolm Smith: https://docs.python.org/3/reference/simple_stmts.html#the-import-statement defers the full specification of relative imports to PEP 328. PEP 328 gives the example "from ...sys import path" in a second-level package, and notes "while that las

[issue30372] Status of __builtins__ is not totally clear

2017-05-15 Thread Malcolm Smith
New submission from Malcolm Smith: https://docs.python.org/3.6/reference/executionmodel.html#builtins-and-restricted-execution describes the various things you can do with __builtins__, but then says "Users should not touch __builtins__; it is strictly an implementation detail." If

[issue23662] Cookie.domain is undocumented

2015-03-14 Thread Malcolm Smith
New submission from Malcolm Smith: This is a fundamental attribute of a cookie, which will be set even if the server doesn't specify it, yet it doesn't appear in the documentation either of 2.x cookielib or 3.x http.cookiejar. -- assignee: docs@python components: Documentation