| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -447,6 +447,11 @@ Alternative Generator | |||
| 447 | 447 | Override this method in subclasses to customise the | |
| 448 | 448 | :meth:`~random.getrandbits` behaviour of :class:`!Random` instances. | |
| 449 | 449 | ||
| 450 | + .. method:: Random.randbytes(n) | ||
| 451 | + | ||
| 452 | + Override this method in subclasses to customise the | ||
| 453 | + :meth:`~random.randbytes` behaviour of :class:`!Random` instances. | ||
| 454 | + | ||
| 450 | 455 | ||
| 451 | 456 | .. class:: SystemRandom([seed]) | |
| 452 | 457 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,6 +74,5 @@ Doc/whatsnew/3.5.rst | |||
| 74 | 74 | Doc/whatsnew/3.6.rst | |
| 75 | 75 | Doc/whatsnew/3.7.rst | |
| 76 | 76 | Doc/whatsnew/3.8.rst | |
| 77 | - Doc/whatsnew/3.9.rst | ||
| 78 | 77 | Doc/whatsnew/3.10.rst | |
| 79 | 78 | Doc/whatsnew/3.11.rst | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -423,8 +423,8 @@ digests. It skips MD5 on platforms that block MD5 digest. | |||
| 423 | 423 | fcntl | |
| 424 | 424 | ----- | |
| 425 | 425 | ||
| 426 | - Added constants :const:`~fcntl.F_OFD_GETLK`, :const:`~fcntl.F_OFD_SETLK` | ||
| 427 | - and :const:`~fcntl.F_OFD_SETLKW`. | ||
| 426 | + Added constants :const:`!fcntl.F_OFD_GETLK`, :const:`!fcntl.F_OFD_SETLK` | ||
| 427 | + and :const:`!fcntl.F_OFD_SETLKW`. | ||
| 428 | 428 | (Contributed by Donghee Na in :issue:`38602`.) | |
| 429 | 429 | ||
| 430 | 430 | ftplib | |
@@ -644,7 +644,7 @@ attribute. | |||
| 644 | 644 | random | |
| 645 | 645 | ------ | |
| 646 | 646 | ||
| 647 | - Added a new :attr:`random.Random.randbytes` method: generate random bytes. | ||
| 647 | + Added a new :meth:`random.Random.randbytes` method: generate random bytes. | ||
| 648 | 648 | (Contributed by Victor Stinner in :issue:`40286`.) | |
| 649 | 649 | ||
| 650 | 650 | signal | |
@@ -776,7 +776,7 @@ Optimizations | |||
| 776 | 776 | :pep:`590` vectorcall protocol. | |
| 777 | 777 | (Contributed by Donghee Na, Mark Shannon, Jeroen Demeyer and Petr Viktorin in :issue:`37207`.) | |
| 778 | 778 | ||
| 779 | - * Optimized :func:`~set.difference_update` for the case when the other set | ||
| 779 | + * Optimized :meth:`!set.difference_update` for the case when the other set | ||
| 780 | 780 | is much larger than the base set. | |
| 781 | 781 | (Suggested by Evgeny Kapun with code contributed by Michele Orrù in :issue:`8425`.) | |
| 782 | 782 | ||
@@ -1139,7 +1139,7 @@ Changes in the Python API | |||
| 1139 | 1139 | (Contributed by Christian Heimes in :issue:`36384`). | |
| 1140 | 1140 | ||
| 1141 | 1141 | * :func:`codecs.lookup` now normalizes the encoding name the same way as | |
| 1142 | - :func:`encodings.normalize_encoding`, except that :func:`codecs.lookup` also | ||
| 1142 | + :func:`!encodings.normalize_encoding`, except that :func:`codecs.lookup` also | ||
| 1143 | 1143 | converts the name to lower case. For example, ``"latex+latin1"`` encoding | |
| 1144 | 1144 | name is now normalized to ``"latex_latin1"``. | |
| 1145 | 1145 | (Contributed by Jordon Xu in :issue:`37751`.) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments