1. 31 Jul, 2018 4 commits
    • Serhiy Storchaka's avatar
      bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) · f1d36d8e
      Serhiy Storchaka authored
      * help(hashlib) didn't work because of incorrect module name in blake2b and
        blake2s classes.
      * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly
        accepted keyword argument "string" for binary data, but documented as
        accepting the "data" keyword argument. Now this parameter is positional-only.
      * Keyword-only parameters in blake2b() and blake2s() were not documented as
        keyword-only.
      * Default value for some parameters of blake2b() and blake2s() was None,
        which is not acceptable value.
      * The length argument for shake_*.digest() was wrapped out to 32 bits.
      * The argument for shake_128.digest() and shake_128.hexdigest() was not
        positional-only as intended.
      * TypeError messages for incorrect arguments in all constructors sha3_*(),
        shake_*() and keccak_*() incorrectly referred to sha3_224.
      
      Also made the following enhancements:
      
      * More accurately specified input and result types for strings, bytes and
        bytes-like objects.
      * Unified positional parameter names for update() and constructors.
      * Improved formatting.
      f1d36d8e
    • Serhiy Storchaka's avatar
      Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a... · 4b8a7f51
      Serhiy Storchaka authored
       Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241)
      
      This reverts commit af810b35.
      
      This is not valid syntax (see bpo-32012).
      4b8a7f51
    • Serhiy Storchaka's avatar
      bpo-1617161: Make the hash and equality of methods not depending on the value of self. (GH-7848) · ac20e0f9
      Serhiy Storchaka authored
      * The hash of BuiltinMethodType instances no longer depends on the hash
        of __self__. It depends now on the hash of id(__self__).
      * The hash and equality of ModuleType and MethodWrapperType instances no
        longer depend on the hash and equality of __self__. They depend now on
        the hash and equality of id(__self__).
      * MethodWrapperType instances no longer support ordering.
      ac20e0f9
    • INADA Naoki's avatar
      c48e26dc
  2. 30 Jul, 2018 6 commits
  3. 29 Jul, 2018 6 commits
  4. 28 Jul, 2018 9 commits
  5. 27 Jul, 2018 4 commits
  6. 26 Jul, 2018 10 commits
  7. 25 Jul, 2018 1 commit
    • chason's avatar
      bpo-32663 Make SMTPUTF8SimTests run (#5314) · 48ed88a9
      chason authored
      Enable and fix SMTPUTF8SimTests in test_smtplib.
      
      The tests for SMTPUTF8SimTests in test_smtplib.py were not actually
      being run because test_smtplib was still using the 'test_main' pattern,
      and the class was never added to test_main.
      
      Additionally, one of the tests needed to be moved to the non-UTF8 server
      class because it relies on the server not being UTF-8 compatible (and it
      had a bug in in).
      48ed88a9