New submission from Stephen Rosen :
If you use the `http.server` simple server and handler to serve a directory,
navigating to a directory name without a trailing slash will trigger a 301 to
add the trailing slash.
For example, if "foo/" is a directory under the file server, a GET
Change by Stephen Rosen :
--
keywords: +patch
pull_requests: +24395
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25705
___
Python tracker
<https://bugs.python.org/issu
Stephen Rosen added the comment:
Ach! Sorry! I didn't even realize this but the issue only arises when you are
modifying the handler to set the protocol to HTTP/1.1 .
In HTTP/1.0 , there's no notion of persistent connections, so the issue does
not arise.
But when the protoc
Stephen Rosen added the comment:
Thanks for working with me to reproduce and understand the issue. I'm a little
surprised that with the sample which sets the protocol version you're still not
seeing the issue.
If I create a directory tree, e.g.
repro
├── foo/
└── server.py
where
Stephen Rosen added the comment:
Probably >90% of the use-cases for chaining classmethod are a read-only class
property.
It's important enough that some tools (e.g. sphinx) even have special-cased
support for classmethod(property(...)).
Perhaps the general case of classmethod(de
Stephen Rosen added the comment:
Can a note be added to the Queue.get() documentation?
This behavior has been known to be at least potentially confusing for a decade,
and there's no mention of it in the documentation.
--
nosy: +Stephen Rosen
versions: +Python 2.7 -Pytho