1. 18 Sep, 2019 1 commit
  2. 17 Sep, 2019 17 commits
  3. 16 Sep, 2019 12 commits
  4. 15 Sep, 2019 4 commits
  5. 14 Sep, 2019 6 commits
    • Kyle Stanley's avatar
      bpo-37635: Update arg name for seek() in IO tutorial (GH-16147) · ff603f6c
      Kyle Stanley authored
      
      
      Typically, the second positional argument for ``seek()`` is *whence*. That is the POSIX standard name (http://man7.org/linux/man-pages/man3/lseek.3p.html) and the name listed in the documentation for ``io`` module (https://docs.python.org/3/library/io.html#io.IOBase.seek). 
      
      The tutorial for IO is the only location where the second positional argument for ``seek()`` is referred to as *from_what*. I suspect this was created at an early point in Python's history, and was never updated (as this section predates the GitHub repository):
      
      ```
      $ git grep "from_what"
      Doc/tutorial/inputoutput.rst:To change the file object's position, use ``f.seek(offset, from_what)``.  The position is computed
      Doc/tutorial/inputoutput.rst:the *from_what* argument.  A *from_what* value of 0 measures from the beginning
      Doc/tutorial/inputoutput.rst:the reference point.  *from_what* can be omitted and defaults to 0, using the
      ```
      
      For consistency, I am suggesting that the tutorial be updated to use the same argument name as the IO documentation and POSIX standard for ``seek()``, particularly since this is the only location where *from_what* is being used.
      
      Note: In the POSIX standard, *whence* is technically the third positional argument, but the first argument *fildes* (file descriptor) is implicit in Python.
      
      
      https://bugs.python.org/issue37635
      ff603f6c
    • Christian Heimes's avatar
      bpo-38153: detect shake independently from sha3 (GH-16143) · eb2b0c69
      Christian Heimes authored
      XOF digests (SHAKE) are not available in OpenSSL 1.1.0 but SHA3 fixed-length digests are.
      Signed-off-by: default avatarChristian Heimes <christian@python.org>
      eb2b0c69
    • Dino Viehland's avatar
      bpo-38116: Convert select module to PEP-384 (#15971) · f919054e
      Dino Viehland authored
      * Convert select module to PEP-384
      
      Summary: Do the necessary versions to be Pyro-compatible, including migrating `PyType_Ready` to `PyType_FromSpec` and moving static data into a new `_selectstate` struct.
      
      * 📜🤖 Added by blurb_it.
      
      * Fixup Mac OS/X build
      f919054e
    • Eddie Elizondo's avatar
      Fix leaks in Python-ast.c (#16127) · 0247e80f
      Eddie Elizondo authored
      0247e80f
    • Serhiy Storchaka's avatar
      bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) · 279f4467
      Serhiy Storchaka authored
      In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
      (like in the optional third parameter of getattr). "None" should be used if None is accepted
      as argument and passing None has the same effect as not passing the argument at all.
      279f4467
    • Zackery Spytz's avatar
      bpo-37953: Fix deprecation warnings in test_typing (GH-16133) · d057b896
      Zackery Spytz authored
      
      
      self.assertEquals() is deprecated.
      
      ```
      ./python -We -m test test_typing
      Run tests sequentially
      0:00:00 load avg: 0.23 [1/1] test_typing
      test test_typing failed -- Traceback (most recent call last):
        File "/home/lubuntu2/cpython/Lib/test/test_typing.py", line 2382, in test_forward_equality_gth
          self.assertEquals(Union[c1, c1_gth], Union[c1])
        File "/home/lubuntu2/cpython/Lib/unittest/case.py", line 1390, in deprecated_func
          warnings.warn(
      DeprecationWarning: Please use assertEqual instead.
      
      test_typing failed
      
      == Tests result: FAILURE ==
      
      1 test failed:
          test_typing
      
      Total duration: 140 ms
      Tests result: FAILURE
      ```
      
      
      
      https://bugs.python.org/issue37953
      d057b896