Skip to content
Permalink
Branch: master
Commits on Jan 15, 2020
  1. Fix compiler warning on Windows (GH-18012)

    ammaraskar authored and zware committed Jan 15, 2020
    Python-ast.h contains a macro named Yield that conflicts with the Yield macro
    in Windows system headers. While Python-ast.h has an "undef Yield" directive
    to prevent this, it means that Python-ast.h must be included before Windows
    header files or we run into a re-declaration warning. In commit c96be81
    an include for pycore_pystate.h was added which indirectly includes Windows
    header files. In this commit we re-order the includes to fix this warning.
  2. bpo-38630: Fix subprocess.Popen.send_signal() race condition (GH-16984)

    vstinner committed Jan 15, 2020
    On Unix, subprocess.Popen.send_signal() now polls the process status.
    Polling reduces the risk of sending a signal to the wrong process if
    the process completed, the Popen.returncode attribute is still None,
    and the pid has been reassigned (recycled) to a new different
    process.
  3. bpo-1635741: Port _json extension module to multiphase initialization…

    shihai1991 authored and vstinner committed Jan 15, 2020
    … (PEP 489) (GH-17835)
  4. bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)

    vstinner committed Jan 15, 2020
    The function has no return value.
  5. Fix AsyncMock base class in the docs (GH-18008)

    elenaoat authored and cjw296 committed Jan 15, 2020
  6. Improve test coverage for AsyncMock. (GH-17906)

    tirkarthi authored and cjw296 committed Jan 15, 2020
    * Add test for nested async decorator patch.
    * Add test for side_effect and wraps with a function.
    * Add test for side_effect with an exception in the iterable.
Commits on Jan 14, 2020
  1. Allow pgen to produce a DOT format dump of the grammar (GH-18005)

    pablogsal committed Jan 14, 2020
    Originally suggested by Anthony Shaw.
  2. bpo-39329: Add timeout parameter for smtplib.LMTP constructor (GH-17998)

    corona10 authored and vstinner committed Jan 14, 2020
  3. bpo-38901: Allow setting a venv's prompt to the basename of the curre…

    vsajip committed Jan 14, 2020
    …nt directory. (GH-17946)
    
    When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to
    configure the prompt for the created venv.
  4. venv: Suppress warning message when bash hashing is disabled. (GH-17966)

    d-goldin authored and vsajip committed Jan 14, 2020
    When using python's built-in venv activaton script
    warnings are printed when hashing is disabled in
    bash or zsh, like;
    
    `bash: hash: hashing disabled`
    
    This output is not really useful to the end-user and has
    been disabled in `virtualenv` for long.
    
    This commit is based on:
    pypa/virtualenv@28e85bc
  5. Fix documentation in code.py (GH-17988)

    kylepollina authored and tirkarthi committed Jan 14, 2020
  6. bpo-38361: syslog: fixed making default "ident" from sys.argv[0] (GH-…

    vaclavbartos authored and miss-islington committed Jan 14, 2020
    …16557)
    
    The default value of "ident" parameter should be sys.argv[0] with leading path
    components stripped, but it contained the last slash, i.e. '/program' instead
    of 'program'.
    
    BPO issue: https://bugs.python.org/issue38361
    
    
    https://bugs.python.org/issue38361
  7. bpo-39322: Add gc.is_finalized to check if an object has been finalis…

    pablogsal committed Jan 14, 2020
    …ed by the gc (GH-17989)
  8. bpo-39048: Look up __aenter__ before __aexit__ in async with (GH-17609)

    maggyero authored and ncoghlan committed Jan 14, 2020
    * Reorder the __aenter__ and __aexit__ checks for async with
    * Add assertions for async with body being skipped
    * Swap __aexit__ and __aenter__ loading in the documentation
  9. bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (G…

    markshannon committed Jan 14, 2020
    …H-17754)
    
    Break up COMPARE_OP into four logically distinct opcodes:
    * COMPARE_OP for rich comparisons
    * IS_OP for 'is' and 'is not' tests
    * CONTAINS_OP for 'in' and 'is not' tests
    * JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
  10. bpo-39259: smtp.SMTP/SMTP_SSL now reject timeout = 0 (GH-17958)

    corona10 authored and vstinner committed Jan 14, 2020
  11. bpo-39160 Align the verbs, grammar and defaults for `./configure --he…

    tonybaloney authored and ned-deily committed Jan 14, 2020
    …lp` (GH-17747)
Commits on Jan 13, 2020
  1. bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0 (GH-17959)

    corona10 authored and vstinner committed Jan 13, 2020
  2. remove unused __version__ from mock.py (#17977)

    cjw296 committed Jan 13, 2020
    This isn't included in `__all__` and could be a source of confusion.
  3. bpo-38644: Pass tstate to _Py_FinishPendingCalls() (GH-17990)

    vstinner committed Jan 13, 2020
    _Py_FinishPendingCalls() now expects a tstate argument, instead of a
    runtime argument.
  4. bpo-39164: Add private _PyErr_GetExcInfo() function (GH-17752)

    jd authored and vstinner committed Jan 13, 2020
    This adds a new function named _PyErr_GetExcInfo() that is a variation of the
    original PyErr_GetExcInfo() taking a PyThreadState as its first argument.
    That function allows to retrieve the exceptions information of any Python
    thread -- not only the current one.
  5. bpo-39299: Add more tests for mimetypes and its cli. (GH-17949)

    tirkarthi committed Jan 13, 2020
    * Add tests for case insensitive check of types and extensions as fallback.
    * Add tests for data url with no comma.
    * Add tests for read_mime_types.
    * Add tests for the mimetypes cli and refactor __main__ code to private function.
    * Restore mimetypes.knownfiles value at the end of the test.
  6. bpo-20443: Update What's New In Python 3.9 (GH-17986)

    vstinner committed Jan 13, 2020
    The sys.argv[0] change has been reverted.
  7. Cleanup exit code for interpreter. (GH-17756)

    markshannon committed Jan 13, 2020
  8. Remove unused functions in Parser/parsetok.c (GH-17365)

    eamanu authored and pablogsal committed Jan 13, 2020
  9. bpo-39310: Add math.ulp(x) (GH-17965)

    vstinner committed Jan 13, 2020
    Add math.ulp(): return the value of the least significant bit
    of a float.
  10. bpo-39307: Fix memory leak on error path in parsetok (GH-17953)

    alexhenrie authored and pablogsal committed Jan 13, 2020
Commits on Jan 12, 2020
  1. bpo-32021: Support brotli .br encoding in mimetypes (#12200)

    philmcmahon authored and maxking committed Jan 12, 2020
    Add support for brotli encoding in the encoding_map.
  2. bpo-39313: Add an option to RefactoringTool for using exec as a funct…

    isidentical authored and miss-islington committed Jan 12, 2020
    …ion (GH-17967)
    
    https://bugs.python.org/issue39313
    
    
    Automerge-Triggered-By: @pablogsal
  3. Fix outdated comment in _strptime.py (GH-17929)

    cool-RR authored and miss-islington committed Jan 12, 2020
    Can I please get the tags for skipping bpo and skipping a news item?
  4. bpo-3530: Add advice on when to correctly use fix_missing_locations i…

    isidentical and pablogsal committed Jan 12, 2020
    …n the AST docs (GH-17172)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  5. bpo-38293: Allow shallow and deep copying of property objects (GH-16438)

    GudniNatan authored and miss-islington committed Jan 12, 2020
    Copying property objects results in a TypeError. Steps to reproduce:
    
    ```
    >>> import copy
    >>> obj = property()
    >>> copy.copy(obj)
    ````
    
    This affects both shallow and deep copying.  
    My idea for a fix is to add property objects to the list of "atomic" objects in the copy module.
    These already include types like functions and type objects.
    
    I also added property objects to the unit tests test_copy_atomic and test_deepcopy_atomic. This is my first PR, and it's highly likely I've made some mistake, so please be kind :)
    
    
    https://bugs.python.org/issue38293
Older
You can’t perform that action at this time.