mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
document the class, not its initializer
This commit is contained in:
parent
0e8bd7e1cc
commit
86116e2b75
1 changed files with 4 additions and 4 deletions
|
@ -14,11 +14,11 @@ class Full(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Queue:
|
class Queue:
|
||||||
def __init__(self, maxsize=0):
|
"""Create a queue object with a given maximum size.
|
||||||
"""Initialize a queue object with a given maximum size.
|
|
||||||
|
|
||||||
If maxsize is <= 0, the queue size is infinite.
|
If maxsize is <= 0, the queue size is infinite.
|
||||||
"""
|
"""
|
||||||
|
def __init__(self, maxsize=0):
|
||||||
try:
|
try:
|
||||||
import threading
|
import threading
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue