[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2021-09-02 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: I am wondering why the change was not backported to 3.6 and 3.7? It introduces different behavior. For instance, I need to keep duplicate keys from JSON data (because it is allowed by the RFC and it is a missing feature for tools such like HTTPie). Have

[issue42108] HTTPSConnection hangs forever when the percentage completed of the upload drops from 100 to 0

2020-11-05 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42108> ___ ___ Python-bugs-

[issue42108] HTTPSConnection hangs forever when the percentage completed of the upload drops from 100 to 0

2020-11-05 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: So, after several weeks we found the issue. And it is not related to Python but a missing TCP keep alive option not set. -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issu

[issue42108] HTTPSConnection hangs forever when the percentage completed of the upload drops from 100 to 0

2020-10-21 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : I will try to summarize my findings. I do not think having real data is revelant here, it seems to be a behavior issue. I was originally using the `requests` module to `POST` some small data. The server will then do its stuff and it would take about 5

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2020-08-02 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: The ticket could be closed, right? The fix was merged quite some time ago. -- nosy: +Tiger-222 ___ Python tracker <https://bugs.python.org/issue26

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-23 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- nosy: +Tiger-222 ___ Python tracker <https://bugs.python.org/issue18378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: Attached a simple reproduction script. -- Added file: https://bugs.python.org/file48477/unwrapable_ob.py ___ Python tracker <https://bugs.python.org/issue25

[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +14551 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14756 ___ Python tracker <https://bugs.python.org/issu

[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: Working on it at EuroPython 2019. FTR I tested on Python 3.6.9, 3.7.4 and 3.9.0a0 without issue. I think this was fixed with https://github.com/rtweeks/werkzeug/commit/c643980b93e9bde4431cd99ece30f07e00160f84. But the doctest issue remains

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2019-05-20 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- pull_requests: +13350 ___ Python tracker <https://bugs.python.org/issue26185> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2019-03-26 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- title: OSes inconsistency whith datetime.fromtimestamp(t) when t < 0 -> Inconsistencies with datetime.fromtimestamp(t) when t < 0 ___ Python tracker <https://bugs.python.or

[issue36439] OSes inconsistency whith datetime.fromtimestamp(t) when t < 0

2019-03-26 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- title: [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6 -> OSes inconsistency whith datetime.fromtimestamp(t) when t < 0 ___ Python tracker <https://bugs.python.or

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: And also reproduced on 3.8.0a3. -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue36439> ___ ___

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: Reproduced on 3.6.8 and 3.7.3. -- type: -> behavior versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issu

[issue36439] [Windows] datetime.fromtimestamp(t) when t < 0 fails on Python 3.6

2019-03-26 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : A similar issue was resolved with issue29097 (with 0 <= t <= 86399). Here, we have an inconsistency between OSes when using datetime.fromtimestamp(t) when t < 0. Tested on Python 3.6.7. GNU/Linux: >>> datetime.fromtimestamp(-1) date

[issue31658] xml.sax.parse won't accept path objects

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue31658> ___ ___ Python-bugs-list mailin

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue30235> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32689> ___ ___ Python-bugs-list mailin

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: There is another place where the use of Path objects is not yet working: when move() is given a directory as argument. A patch is in review in issue32689. -- ___ Python tracker <https://bugs.python.

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- nosy: +Tiger-222 ___ Python tracker <https://bugs.python.org/issue30235> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue35643> ___ ___ Python-bugs-

[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- resolution: fixed -> status: closed -> open versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/i

[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch, patch pull_requests: +10801, 10802 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +10801 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35643> ___ _

[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : This warning is emitted on Modules/_sha3/cleanup.py, line 11: SyntaxWarning: invalid escape sequence \ CPP2 = re.compile("\ //(.*)") -- components: Extension Modules messages: 332888 nosy: Tiger-222 priority: normal severi

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: OK then I updated the PR to only update code that would really leak resources. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: I saw it but it is quite old and targetting 3.5. I opended this issue to target only distutils, easier to eventually backport than a big patch on a lot of files. -- ___ Python tracker <https://bugs.python.

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +10157 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35416> ___ _

[issue35416] Fix potential resource warnings in distutils

2018-12-05 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : I am looking to clean-up potential ResourceWarnings in distutils. The patch will provide 2 changes: - ensure file descriptor are always closed when it is not the case - and uniformization of the "with open(...)" use --

[issue34500] Fix ResourceWarning in difflib.py

2018-08-25 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: This is a little patch to mostly keep aligned with https://github.com/google/python-fire/pull/135. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34500] Fix ResourceWarning in difflib.py

2018-08-25 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +8397 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34500> ___ _

[issue34500] Fix ResourceWarning in difflib.py

2018-08-25 Thread Mickaël Schoentgen
New submission from Mickaël Schoentgen : Fix 2 unclosed files in the documentation and the difflib.py script: diff.py:77: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpnby8pemn' mode='U' encoding='UTF-8'> fromlines = open(fromfile, 'U').readlines() diff

[issue31658] xml.sax.parse won't accept path objects

2018-07-30 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- keywords: +patch pull_requests: +8078 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31658> ___ _