Change by Malcolm Smith :
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue31196>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Malcolm Smith added the comment:
FYI: I have created issue 33689 for the non-Windows-specific issue.
--
___
Python tracker
<https://bugs.python.org/issue29
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,
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
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."
Malcolm Smith <malcolm.sm...@gmail.com> added the comment:
Related: Issue15795
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
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
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
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
Changes by Malcolm Smith <malcolm.sm...@gmail.com>:
--
nosy: +Malcolm Smith
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15360>
___
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
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
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
20 matches
Mail list logo