Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-129667: Update annotation in documentation#129669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changes fromall commits
3dd34eb
da0750d
ec2398f
f2f86ab
ab580de
c24d1a1
f576ea5
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -112,7 +112,7 @@ Interactive Interpreter Objects | ||
with it. | ||
.. method:: InteractiveInterpreter.showsyntaxerror(filename=None, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I don't really know whatkwargs means here so I would appreciate that it's documented in a separate PR as well. | ||
Display the syntax error that just occurred. This does not display a stack | ||
trace because there isn't one for syntax errors. If *filename* is given, it is | ||
@@ -166,7 +166,7 @@ interpreter objects as well as the following additions. | ||
Print an exit message when exiting. | ||
.. method:: InteractiveConsole.push(line, filename=None, _symbol="single") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think we should have a separate PR for re-documenting Finally, | ||
Push a line of source text to the interpreter. The line should not have a | ||
trailing newline; it may have internal newlines. The line is appended to a | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -147,7 +147,7 @@ And:: | ||
executor.submit(wait_on_future) | ||
.. class:: ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=(), **ctxkwargs) | ||
donBarbos marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
An :class:`Executor` subclass that uses a pool of at most *max_workers* | ||
threads to execute calls asynchronously. | ||
@@ -194,6 +194,10 @@ And:: | ||
Default value of *max_workers* is changed to | ||
``min(32, (os.process_cpu_count() or 1) + 4)``. | ||
.. versionchanged:: next | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It's not "next" as this was added in a previous release (just find the major.minor version where it was added, I think it's still 3.14) | ||
Added *ctxkwargs* to pass additional arguments to ``cls.prepare_context`` | ||
donBarbos marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
class method. | ||
.. _threadpoolexecutor-example: | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -34,14 +34,16 @@ handler. Code to create and run the server looks like this:: | ||
httpd.serve_forever() | ||
.. class:: HTTPServer(server_address, RequestHandlerClass, \ | ||
bind_and_activate=True) | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
This class builds on the :class:`~socketserver.TCPServer` class by storing | ||
the server address as instance variables named :attr:`server_name` and | ||
:attr:`server_port`. The server is accessible by the handler, typically | ||
through the handler's :attr:`server` instance variable. | ||
.. class:: ThreadingHTTPServer(server_address, RequestHandlerClass, \ | ||
bind_and_activate=True) | ||
This class is identical to HTTPServer but uses threads to handle | ||
requests by using the :class:`~socketserver.ThreadingMixIn`. This | ||
@@ -281,14 +283,14 @@ provides three different variants: | ||
HTTP code associated with the response. If a size of the response is | ||
available, then it should be passed as the *size* parameter. | ||
.. method:: log_error(format, *args) | ||
Logs an error when a request cannot be fulfilled. By default, it passes | ||
the message to :meth:`log_message`, so it takes the same arguments | ||
(*format* and additional values). | ||
.. method:: log_message(format,*args) | ||
Logs an arbitrary message to ``sys.stderr``. This is typically overridden | ||
to create custom error logging mechanisms. The *format* argument is a | ||
Uh oh!
There was an error while loading.Please reload this page.