New submission from Frank Millman :
weakref.WeakKeyDictionary.keyrefs() -
The documentation says 'Return an iterable of the weak references to the keys'.
I was not sure if this would expose me to the 'dictionary changed size while
iterating' error, so I checked the sour
New submission from Frank Millman:
If you call up online documentation for Python3.6, and select
modules>h>hashlib, it takes you to 15.2. hashlib — BLAKE2 hash functions
It should take you to 15.1. hashlib — Secure hashes and message digests
--
assignee: docs@python
comp
New submission from Frank Millman:
dir(queue.Queue()) shows an attribute 'unfinished_tasks'.
It appears to be the counter referred to in the docs to 'join()', but it is not
documented itself.
I would like to make use of it, but I don't know if it is part of the offi
New submission from Frank Millman:
18.5.1.15. Server
close()
"The sockets that represent existing incoming client connections are leaved
open."
I think this should say 'are left open'.
--
assignee: docs@python
components: Documentation
messages: 2585
Frank Millman added the comment:
Lists and tuples are described like this -
class list([iterable])
Lists may be constructed in several ways:
[...]
class tuple([iterable])
Tuples may be constructed in a number of ways:
[...]
I think a similar approach to Dicts and Sets could make sense
New submission from Frank Millman:
This is from the documentation at Section 4.6.4. Lists
"""
Lists may be constructed in several ways:
Using a pair of square brackets to denote the empty list: []
Using square brackets, separating items with commas: [a], [a, b, c]
Using a lis
New submission from Frank Millman:
Using copy.copy on a byte string returns a new copy instead of the original
immutable object. Using copy.deepcopy returns the original, as expected.
Testing with timeit, copy.copy is much slower than copy.deepcopy.
>>> import copy
>>>
New submission from Frank Millman :
sqlite3/dbapi2.py contains the following -
def convert_timestamp(val):
datepart, timepart = val.split(b" ")
timepart_full = timepart.split(b".")
[...]
if len(timepart_full) == 2:
New submission from Frank Millman :
At the top of my program I have 'from __future__ import unicode_literals'.
The relevant lines from my program read -
from multiprocessing.managers import BaseManager
class MyManager(BaseManager): pass
MyManager.register('my_functio
New submission from Frank Millman :
At the top of my program, I have 'from __future__ import
unicode_literals'.
I subclassed Process, and passed "name='test'" as an argument. I got
the following traceback.
Traceback (most recent call last):
File "F:\jun
New submission from Frank Millman:
I spotted a minor bug in the documentation to SimpleXMLRPCServer.
Background:
xmlrpclib.py has the following -
# This class is available as ServerProxy and Server. New code
should
# use ServerProxy, to avoid confusion
11 matches
Mail list logo