Skip to content
Permalink
Branch: master
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
  6. bpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-1…

    aeros authored and miss-islington committed Jan 12, 2020
    …6552)
    
    Motivation for this PR (comment from @vstinner in bpo issue):
    ```
    Warning seen o AMD64 Ubuntu Shared 3.x buildbot:
    https://buildbot.python.org/all/#/builders/141/builds/2593
    
    test_devnull_output (test.test_a=syncio.test_subprocess.SubprocessThreadedWatcherTests) ...
    Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
    ```
    The following implementation details for the new method are TBD:
    
    1) Public vs private
    
    2) Inclusion in `close()`
    
    3) Name
    
    4) Coroutine vs subroutine method
    
    5) *timeout* parameter
    
    If it's a private method, 3, 4, and 5 are significantly less important.
    
    I started with the most minimal implementation that fixes the dangling threads without modifying the regression tests, which I think is particularly important. I typically try to avoid directly modifying existing tests as much as possible unless it's necessary to do so. However, I am open to changing any part of this.
    
    
    https://bugs.python.org/issue38356
  7. bpo-12159: Document sys.maxsize limit in len() function reference (GH…

    Zac-HD authored and vstinner committed Jan 12, 2020
  8. bpo-16575: Disabled checks for union types being passed by value. (GH…

    vsajip committed Jan 12, 2020
    …-17960)
    
    Although the underlying libffi issue remains open, adding these
    checks have caused problems in third-party projects which are in
    widespread use. See the issue for examples.
    
    The corresponding tests have also been skipped.
  9. bpo-39288: Add math.nextafter(x, y) (GH-17937)

    vstinner committed Jan 12, 2020
    Return the next floating-point value after x towards y.
Commits on Jan 11, 2020
  1. bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0 (GH-17936)

    corona10 authored and vstinner committed Jan 11, 2020
    nntplib.NNTP and nntplib.NNTP_SSL now raise a ValueError
    if the given timeout for their constructor is zero to
    prevent the creation of a non-blocking socket.
  2. bpo-39297: Update for importlib_metadata 1.4. (GH-17947)

    jaraco and blurb-it committed Jan 11, 2020
    * bpo-39297: Update for importlib_metadata 1.4. Includes performance updates.
    
    * 📜🤖 Added by blurb_it.
    
    * Update blurb
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
  3. bpo-39259: nntplib.NNTP/NNTP_SSL refactoring (GH-17939)

    corona10 authored and vstinner committed Jan 11, 2020
  4. Fix host in address of socket.create_server example. (GH-17706)

    tirkarthi committed Jan 11, 2020
    Host as None in address raises TypeError since it should be string, bytes or bytearray.
Commits on Jan 10, 2020
  1. bpo-39292: Add missing syslog facility codes. (GH-17945)

    vsajip committed Jan 10, 2020
  2. bpo-39200: Correct the error message for min/max builtin function (GH…

    corona10 authored and vstinner committed Jan 10, 2020
    …-17814)
    
    Correct the error message when calling the min() or max() with
    no arguments.
  3. bpo-39259: poplib now rejects timeout = 0 (GH-17912)

    corona10 authored and vstinner committed Jan 10, 2020
    poplib.POP3 and poplib.POP3_SSL now raise a ValueError
    if the given timeout for their constructor is zero to
    prevent the creation of a non-blocking socket.
  4. bpo-39166: Fix trace of last iteration of async for loops (#17800)

    pablogsal authored and markshannon committed Jan 10, 2020
Commits on Jan 9, 2020
  1. bpo-39235: Fix end location for genexp in call args (GH-17925)

    gvanrossum authored and miss-islington committed Jan 9, 2020
    The fix changes copy_location() to require an extra node from which to extract the end location, and fixing all 5 call sites.
    
    
    https://bugs.python.org/issue39235
  2. Fix typo in test's docstring (GH-17856)

    blueyed authored and tirkarthi committed Jan 9, 2020
    * Fix typo in test's docstring. contination -> continuation.
  3. bpo-25172: Reduce scope of crypt import tests (GH-17881)

    zooba committed Jan 9, 2020
  4. Add test cases for dataclasses. (#17909)

    tirkarthi authored and ericvsmith committed Jan 9, 2020
    * Add test cases for dataclasses.
    
    * Add test for repr output of field.
    * Add test for ValueError to be raised when both default and default_factory are passed.
  5. bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (

    encukou authored and miss-islington committed Jan 9, 2020
    GH-17896)
    
    \+ this also adds a stronger warning against sharing objects between (sub-)interpreters.
    
    
    
    https://bugs.python.org/issue39161
Older
You can’t perform that action at this time.