[issue20741] Documentation archives should be available also in tar.xz format

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: I don’t think that consistency or standardization really applies here, it’s not like there are tools that want to process both source and doc archives and are broken by the difference in formats. It could be useful to review the formats used and decide if they

[issue20741] Documentation archives should be available also in tar.xz format

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: Oh to counter my own proposal: formats should not be removed without warnings, there are probably downstream tools that expect specific URL patterns and formats. So adding something very modern to get the smallest size might be good, but not removing existing

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: To have a discussion about this, you should open a thread on discuss. -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46071] Graphlib documentation

2021-12-17 Thread Éric Araujo
Change by Éric Araujo : -- assignee: docs@python -> components: +Library (Lib) -Documentation nosy: -docs@python versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue17005] Add a topological sort algorithm

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: See https://bugs.python.org/issue46071 for request to change the API (I preferred adding a note here than adding all people to nosy there) -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue17

[issue46095] Warning about iterate/modify has unwarranted detail

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: The note does say it’s about mutable sequences like lists. -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46064] Permalinks to underscored documentation entries don't work.

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: I can reproduce. Source code: __debug__¶ HTML IDs should start with a letter, a rule which is generally ignored by browsers because of the amount of pages using numerical IDs for example. I think the HTML5 spec does not require starting with a letter, but I

[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: I am not sure if this sould also be reported to https://github.com/pypa/distutils/ because I don’t know if they build and publish the docs somewhere. -- nosy: +eric.araujo stage: patch review -> commit review versions: +Python 3.10, Python 3.11, Pyt

[issue20741] Documentation archives should be available also in tar.xz format

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: tar is modular and depends on optional external programs to handle compression (tar itself does archival only). gzip is still common, and xz has largely replaced bz2 these days. I would expect it to be installed on most systems. (For HTTP compression there are

[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2021-12-18 Thread Éric Araujo
Change by Éric Araujo : -- components: +Library (Lib) -Distutils nosy: +ncoghlan, pradyunsg -eric.araujo type: -> enhancement ___ Python tracker <https://bugs.python.org/issu

[issue46142] python --help output is too long

2021-12-20 Thread Éric Araujo
New submission from Éric Araujo : >From Serhiy in >https://mail.python.org/archives/list/python-...@python.org/thread/QUUBM7DGSXYWBOLZNWOSCQUDALWJIYZF/ > : The output of "python -h" is 104 lines long now. It was only 51 lines in 3.6. 35% of it is about the -X op

[issue46142] python --help output is too long

2021-12-20 Thread Éric Araujo
Éric Araujo added the comment: Forgot to quote -X help to print help about X options. -- components: +Interpreter Core ___ Python tracker <https://bugs.python.org/issue46

[issue46126] Unittest output drives developers to avoid docstrings

2021-12-24 Thread Éric Araujo
Éric Araujo added the comment: > I presume I don't need to explain why docstrings are nice and preferable over > comments. Actually, can you? Docstrings to document regular modules, classes or functions are a fine tool, especially with tools that extract them (pydoc, sphinx).

[issue46204] Graphlib documentation (general cleanup)

2021-12-31 Thread Éric Araujo
Éric Araujo added the comment: Could you say a little more about this? Precisely: what are the problems you identified? -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46196] documentation for cmd library should include columnize() function

2021-12-31 Thread Éric Araujo
Éric Araujo added the comment: The method is called from one place only, but the fact that it is its own method and has dedicated tests seems to indicate that it was meant as standalone piece of functionality. We can’t be sure of original intent given that no method in the class uses the

[issue46198] Duplicated test name `test_get_unstructured_invalid_ew` in `test__header_value_parser.py`

2021-12-31 Thread Éric Araujo
Éric Araujo added the comment: Also fund a duplicate TestHelpers class in test_enum. A warning for duplicate method is a false positive, because the two methods are used on different python versions. But the first method uses `self.Grades.B` wrongly (should be `Grades.B`) so it will break

[issue46198] Duplicated test name `test_get_unstructured_invalid_ew` in `test__header_value_parser.py`

2021-12-31 Thread Éric Araujo
Éric Araujo added the comment: Sometimes people fix small things in multiple modules, sometimes they create separate tickets to have one patch per module with reviews from different maintainers and so on. For this case, I check pyflakes and found a handful of true positives, so I would

[issue24132] Direct sub-classing of pathlib.Path

2021-12-31 Thread Éric Araujo
Change by Éric Araujo : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue24132> ___ ___ Python-bugs-list mailing list Unsub

[issue46142] python --help output is too long

2021-12-31 Thread Éric Araujo
Éric Araujo added the comment: Do people think the man page should be shortened too? -- ___ Python tracker <https://bugs.python.org/issue46142> ___ ___ Python-bug

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: Question about the implementation: I’ve found the parsing of command-line params in Python/initconfig.c and Python/preconfig.c. Help is handled in initconfig, X options in preconfig. A) could add a value to the right struct for "-X help", set it in

[issue46198] Duplicate and unused code in tests

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: I think most of these are false positives (it’s fine if 10 different tests define a function `f`), so should not be changed just to appease a lint tool. Others are genuine! -- ___ Python tracker <ht

[issue46186] replace `io.IncrementalNewlineDecoder` with non incremental newline decoders

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: Can you describe what the problem is? Is it incorrect in some cases? Is it inefficient? Without a statement of the issue, we can’t discuss a solution :) -- nosy: +eric.araujo versions: +Python 3.11 ___ Python tracker

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: It seems that preconfig is only for some options that change fundamental behaviour (isolated mode, default encoding), so I should be able to detect and handle '-X help' in initconfig. -- ___ Python track

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Change by Éric Araujo : -- keywords: +patch pull_requests: +28546 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30331 ___ Python tracker <https://bugs.python.org/issu

[issue46196] documentation for cmd library should include columnize() function

2022-01-02 Thread Éric Araujo
Éric Araujo added the comment: New changeset ce4d25f3cd0a1c6e65b64015140fb5e1397c8ac5 by Nikita Sobolev in branch 'main': bpo-46196: document method cmd.Cmd.columnize (#30303) https://github.com/python/cpython/commit/ce4d25f3cd0a1c6e65b64015140fb5

[issue46196] documentation for cmd library should include columnize() function

2022-01-02 Thread Éric Araujo
Éric Araujo added the comment: Done, cheers! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2022-01-02 Thread Éric Araujo
Éric Araujo added the comment: Distutils is deprecated, and core Python docs are not the place to show how to use a specific build system (thanks to a lot of work, we now have multiple viable build systems!). -- nosy: +eric.araujo ___ Python

[issue46228] argparse docs: default for prog= in ArgumentParser() should be basename of argv[0], not argv[0], to match behaviour

2022-01-02 Thread Éric Araujo
Change by Éric Araujo : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> patch review type: enhancement -> behavior versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bug

[issue41011] [venv] record which executable and command were used to create a virtual environment

2022-01-04 Thread Éric Araujo
Change by Éric Araujo : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue41011> ___ ___ Python-bugs-list mailing list Unsub

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-04 Thread Éric Araujo
Change by Éric Araujo : -- type: behavior -> enhancement versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44024> ___ ___ Py

[issue32642] add support for path-like objects in sys.path

2022-01-04 Thread Éric Araujo
Éric Araujo added the comment: I’m not an import expert but would have misgivings about having fancy types in sys.path too! It seems so fundamental, and used from C and Python, with a simple interface of a direct list (plus importers and finders etc), that I would understand it pure strings

[issue46148] Optimize pathlib

2022-01-05 Thread Éric Araujo
Éric Araujo added the comment: A note about benchmarks: I think timeit is not the right tool for them, but https://github.com/python/pyperformance is -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2022-01-05 Thread Éric Araujo
Éric Araujo added the comment: > it is useful to build old versions, sometimes 7 year old versions, to confirm > if/when the behaviour regressed. I think the sticking point is this: it is not expected that old versions should work as-is with the newest Python. Can you do your bui

[issue46142] python --help output is too long

2022-01-06 Thread Éric Araujo
Éric Araujo added the comment: Victor said on github that he would prefer `--help-xoptions` to `-X help`. It would align with `--help` and `--help-env`, but not with other `-X abc` options. I think that `--help-X` may be better, as it uses the same form (`X`) rather than the non-word

[issue46227] add pathlib.Path.walk method

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: The idea is interesting, and I agree that glob with a maxi wildcard is not a great solution. There is discussion on the PR about adding walk vs extending iterdir; could you post a message on discuss.python.org and sum up the the discussion? (Pull requests on

[issue46264] 'I'.lower() should give non dotted i for LANG=tr_TR

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: I suppose the casefold method does not help? https://docs.python.org/3.10/library/stdtypes.html#str.casefold -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: Do you have a suggestion on how to fix this? -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46279> ___ ___

[issue46282] print() docs do not indicate its return value

2022-01-07 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46285] http/server.py wont respect its protocol_version

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: Hello and thanks for the report! Could you tell more about what you’re trying to achieve? Some notes: You are not meant to change the code of provided modules, but to instantiate classes with the right parameters, or subclass in your own code to change how

[issue46285] http/server.py wont respect its protocol_version

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: I understand your report better after looking at the code. There is indeed a protocol_version parameter in the test function (which is really a main function, not test), that sets the protocol attribute on the passed handler class. (The class attribute is

[issue46142] python --help output is too long

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: I hard forgotten this bit in the email thread: Serhiy: What do you think about -hh (and maybe —help-full) printing full help? Guidp: Is there enough of a use case for this to bother? Barry: Maybe not. I’d say if it was easy to implement, why not, but if it’s a

[issue46285] http/server.py wont respect its protocol_version

2022-01-09 Thread Éric Araujo
Éric Araujo added the comment: I am a bit confused! The script you attached is to show a problem, but you’re saying there is no problem? -- ___ Python tracker <https://bugs.python.org/issue46

[issue46142] python --help output is too long

2022-01-10 Thread Éric Araujo
Éric Araujo added the comment: > For me, the best CLI is "git help", "git help init", etc. I don’t think that prior art applies here, as python does not have subcommands. `--help` and `--help-env` are straightforward, `-X help` is a bit unusual but at least it’s p

[issue46142] python --help output is too long

2022-01-10 Thread Éric Araujo
Éric Araujo added the comment: BTW on the PR I am asking for help with string formatting, to print an invalid X option (a wchar_t string) using the PyStatus API (needs char). Help from a proper C programmer would be appreciated :) -- ___ Python

[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy

2022-01-10 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +pitrou, rhettinger versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46

[issue46142] python --help output is too long

2022-01-11 Thread Éric Araujo
Éric Araujo added the comment: The PR now has --help-env, --help-xoptions and --help-all ! -- ___ Python tracker <https://bugs.python.org/issue46142> ___ ___

[issue45729] [doc] "history and license" link has wrong target

2022-01-12 Thread Éric Araujo
Éric Araujo added the comment: dev docs direct to `/license.html` which redirects to `/3/license.html` 3.9 docs have the same; wouldn’t it be better to have `/3.9/license.html`? -- ___ Python tracker <https://bugs.python.org/issue45

[issue46247] in xml.dom.minidom, Node and DocumentLS appear to be missing __slots__

2022-01-14 Thread Éric Araujo
Change by Éric Araujo : -- versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46247> ___ ___ Python-bugs-list mailing list Unsub

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: PEP 8 used with statements as an example of use of backslashes, I am proposing this change: https://github.com/python/peps/pull/2244 -- nosy: +eric.araujo versions: +Python 3.10 -Python 3.8 ___ Python tracker <ht

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +Anthony Sottile, BTaskaya, Jeffrey.Kintscher, Julian, Terry Davis, barry, benjamin.peterson, ezio.melotti, georg.brandl, gvanrossum, ishimoto, jack1142, lukasz.langa, ncoghlan, pablogsal, r.david.murray, serhiy.storchaka, steven.daprano, thautwarm

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: [There are two separate events in the ticket log: I added my comment, then noticed I was the only nosy so I found all the prople recently removed by error and re-added them] -- ___ Python tracker <ht

[issue43012] Remove pathlib accessors

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: PR looks good, just needs a look by a pathlib expert. -- nosy: +eric.araujo, eric.smith, eryksun, pitrou ___ Python tracker <https://bugs.python.org/issue43

[issue45959] Teach pprint about dict views

2022-01-17 Thread Éric Araujo
Éric Araujo added the comment: The PR looks good! When the last comments are resolved, unless there is activity from other core devs, I will merge it. -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue45

[issue46455] Deprecate / remove os.name=java

2022-01-21 Thread Éric Araujo
Change by Éric Araujo : -- versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46455> ___ ___ Python-bug

[issue46419] Incomplete Comparison to C++ Methods

2022-01-21 Thread Éric Araujo
Éric Araujo added the comment: Maybe the reference should be removed entirely! Nowadays there may be more people knowing Python and how its methods work than C++. -- nosy: +eric.araujo, gvanrossum ___ Python tracker <https://bugs.python.

[issue46439] Clarify urllib.request.add_header documentation

2022-01-21 Thread Éric Araujo
Éric Araujo added the comment: I think the doc assumes that people will expect headers to be added for redirections, and if not the existence of the method `add_unredirected_header` that’s documented just after would tell it. That said, the addition does no harm, so why not be explicit

[issue46473] importlib.metadata does not honor .egg-link files

2022-01-22 Thread Éric Araujo
Éric Araujo added the comment: It would make sense if importlib only supported official specs. For editable/develop installs, it is https://www.python.org/dev/peps/pep-0660/ which does not mention egg (not egg-link nor egg-info, long since replaced by dist-info). Are you using latest pip

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-22 Thread Éric Araujo
Éric Araujo added the comment: The use of partial may cause bugs! Here is reported that the `protocol` parameter (of the `test` function) is ignored because it’s set on the partial object instead of the handler class: https://bugs.python.org/issue46285 -- nosy: +eric.araujo

[issue46285] protocol_version in http.server.test can be ignored

2022-01-22 Thread Éric Araujo
Éric Araujo added the comment: I think we have a valid bug, and you correctly attributed it to the use of partial! (No worry about your English — thank you for reporting the problem here!) To answer your questions: 1) partial: Imagine we have a function with many parameters: def frob

[issue46285] protocol_version in http.server.test can be ignored

2022-01-22 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +maggyero, matrixise ___ Python tracker <https://bugs.python.org/issue46285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46282] return value of builtins is not clearly indicated

2022-01-25 Thread Éric Araujo
Éric Araujo added the comment: The new title is puzzling; the discussion moved to advertising that all functions default to returning None, this is not related to the built-in status. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46285] protocol_version in http.server.test can be ignored

2022-01-27 Thread Éric Araujo
Éric Araujo added the comment: There is no bug with partial itself. I have tried to explain this and I can’t write it in another way. -- ___ Python tracker <https://bugs.python.org/issue46

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2022-01-28 Thread Éric Araujo
Change by Éric Araujo : -- pull_requests: +29182 pull_request: https://github.com/python/cpython/pull/31001 ___ Python tracker <https://bugs.python.org/issue43

[issue45639] Support webp and aivf image formats in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- title: Support modern image formats in MIME types -> Support webp and aivf image formats in mimetypes ___ Python tracker <https://bugs.python.org/issu

[issue45639] Support webp and avif image formats in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- title: Support webp and aivf image formats in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker <https://bugs.python.org/issu

[issue38902] image/webp support in mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Support webp and avif image formats in mimetypes versions: +Python 3.11 -Python 3.10 ___ Python tra

[issue42049] Add image/webp to list of media types in mimetypes.py

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- superseder: image/webp support in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker <https://bugs.python.org/issu

[issue42205] Add image/webp to list of non-standard mimetypes

2022-02-01 Thread Éric Araujo
Change by Éric Araujo : -- superseder: image/webp support in mimetypes -> Support webp and avif image formats in mimetypes ___ Python tracker <https://bugs.python.org/issu

[issue43012] Remove pathlib accessors

2022-02-02 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +petr.viktorin resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46197] ensurepip bootstrap breaks out of isolated environment

2022-02-02 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and PR. The workflow would be to merge a fix to the main branch for 3.11, then there’s a bot that makes backports for active branches (3.10 and 3.9). More info: https://devguide.python.org/ -- nosy: +eric.araujo

[issue46285] protocol_version in http.server.test can be ignored

2022-02-03 Thread Éric Araujo
Change by Éric Araujo : -- dependencies: +Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46

[issue46635] unittest.defaultTestLoader.discover fails for namespace packages

2022-02-04 Thread Éric Araujo
Change by Éric Araujo : -- components: +Library (Lib) -Distutils nosy: +brett.cannon, eric.snow, ezio.melotti, michael.foord, ncoghlan, rbcollins -dstufft, eric.araujo versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue46

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Éric Araujo
Éric Araujo added the comment: Changing the markup to this should fix the link without changing the text: :func:`~enum.property` Would you like to turn this into a pull request? -- keywords: +easy nosy: +eric.araujo versions: +Python 3.10, Python 3.9

[issue46587] datetime and time tests use non-portable "%4Y" format

2022-02-04 Thread Éric Araujo
Change by Éric Araujo : -- title: datetime and time tests use non-portal "%4Y" format -> datetime and time tests use non-portable "%4Y" format ___ Python tracker <https://

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-07 Thread Éric Araujo
Éric Araujo added the comment: Using a substitution is necessary when we need code markup and a link. For this bug, the simple ~ markup will be enough. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-08 Thread Éric Araujo
Éric Araujo added the comment: The same problem exists for any attribute that has the same name as a builtin, see for example https://docs.python.org/3/library/sys.html#sys.float_info -- ___ Python tracker <https://bugs.python.org/issue46

[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-02-08 Thread Éric Araujo
Éric Araujo added the comment: Would it be horrible to have the timezone instance control this? -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46622] Support decorating a coroutine with functools.cached_property

2022-02-08 Thread Éric Araujo
Change by Éric Araujo : -- versions: -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46622> ___ ___ Python-bugs-list mailin

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-09 Thread Éric Araujo
Éric Araujo added the comment: Yes, I was referring to these two attributes. They should not link to anything: the place I linked *is* the documentation for them. Other instances of this problem could be listed in this ticket and fixed by the same PR (doesn’t matter than enum.property is only

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-10 Thread Éric Araujo
Éric Araujo added the comment: Thinking about it again: The issue is that these tables (for sys.float_info and other named tuples / structseqs) use the const role, which is not meant to identify attributes but to link to them (similar to func, mod, data, etc). In other words we are fixing

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-02-11 Thread Éric Araujo
Éric Araujo added the comment: I remember a discussion about this years ago. urllib is a module that pre-dates the idea of universal parsing for URIs, where the delimiters (like ://) are enough to determine the parts of a URI and give them meaning (host, port, user, path, etc). Backward

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2022-02-11 Thread Éric Araujo
Éric Araujo added the comment: Both active PRs have comments pointing out issues, that’s why this is still open. A clean fix with unit tests and no regression is needed. -- nosy: +eric.araujo versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-02-12 Thread Éric Araujo
Éric Araujo added the comment: In my idea it would not be a list of things that you have to pass piecemeal to request specific behaviour, but another function or a new param (like `parse(string, universal=True)`) that implements universal parsing. We could even handle things like #22852 in

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2022-02-12 Thread Éric Araujo
Éric Araujo added the comment: See also #46337 -- nosy: +eric.araujo versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue22

[issue46646] `address` arg can be `bytes` for `ip_*` functions in `ipaddress` module

2022-02-12 Thread Éric Araujo
Éric Araujo added the comment: Can you dig more to find if the problem is in the code or in the doc? The PEP to add ipaddress should specify this. -- nosy: +eric.araujo, pmoody ___ Python tracker <https://bugs.python.org/issue46

[issue46700] wrong nomenclature (options vs. arguments) in argparse

2022-02-12 Thread Éric Araujo
Éric Araujo added the comment: I’m afraid this is a basic decision of argparse, and one of its reasons for existing as an rework of optparse. -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46

[issue46733] pathlib.Path methods can raise NotImplementedError

2022-02-13 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +eric.araujo, pitrou, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46733> ___ ___ Python-bugs-list mailin

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks again! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46736] Generate HTML 5 with SimpleHTTPRequestHandler.list_directory

2022-02-18 Thread Éric Araujo
Éric Araujo added the comment: Would you like to make a pull request? -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46736> ___ ___ Pytho

[issue46782] Docs error for 3.10

2022-02-19 Thread Éric Araujo
Éric Araujo added the comment: Octal 777 is really the same as decimal 511. If you are calling mkdir and looking at the permissions on the created directory, you may think the mode is wrong because of umask (default permission bitmask that’s applied to the mode). But the numbers are really

[issue26175] Fully implement IOBase abstract on SpooledTemporaryFile

2022-02-25 Thread Éric Araujo
Éric Araujo added the comment: I believe the PR is in good shape. Can someone with expertise in tempfile review it? It would also be useful if the people who had a bug could test the new code. -- nosy: +eric.araujo, giampaolo.rodola versions: +Python 3.11 -Python 3.8

[issue46855] printing a string with strange characters loops forever

2022-02-26 Thread Éric Araujo
Éric Araujo added the comment: Note that the original issue seems to be that you had bytes but pasted it as a unicode string. This works: >>> b = b'Betrag gr\xc3\xb6\xc3\x9fer als Betrag der Original-Transaktion' >>> s = b.decode('utf-8') >>>

[issue46833] Windows installer is unclear and has redundant settings

2022-02-26 Thread Éric Araujo
Change by Éric Araujo : Removed file: https://bugs.python.org/file50645/タイピング練習 (日本語編)|Benesseの大学・短期大学・専門学校の受験、進学情報.pdf ___ Python tracker <https://bugs.python.org/issue46

[issue46833] Windows installer is unclear and has redundant settings

2022-02-26 Thread Éric Araujo
Change by Éric Araujo : -- Removed message: https://bugs.python.org/msg414082 ___ Python tracker <https://bugs.python.org/issue46833> ___ ___ Python-bugs-list m

[issue46847] functools.update_wrapper doesn't understand partial objects and annotations

2022-02-26 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46846] functools.partial objects should set __signature__ and _annotations__

2022-03-06 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46846> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12914] Add cram function to textwrap

2011-09-12 Thread Éric Araujo
Éric Araujo added the comment: > if the API were to be expanded, perhaps it should be as a part of a > focuse[d], thoughtful effort to provide a more generic set of text > formatting transformations perhaps modeled on deep experiences with > similar modules in other languages. (a

[issue12301] Use :role:`sys.thing` instead of ``sys.thing`` throughout

2011-09-12 Thread Éric Araujo
Éric Araujo added the comment: Thanks Bryce, I will start from your patch. (BTW, you used func instead of data for sys.stdout.) -- stage: needs patch -> patch review title: Use :data:`sys.thing` instead of ``sys.thing`` throughout -> Use :role:`sys.thing` instead of ``sys

[issue12913] Add a debugging howto

2011-09-12 Thread Éric Araujo
Éric Araujo added the comment: [Terry] > If you write 'How to debug Python code' rather than just "How to use pdb", That is my intention. > I would start with the use of print statements You, Ezio and I concur :) > and binary search. I’m not familiar with that te

[issue12841] Incorrect tarfile.py extraction

2011-09-12 Thread Éric Araujo
Éric Araujo added the comment: I understand. Unit tests can work with file permissions, ownership and links, but they can’t create different filesystems or ask for superuser rights. test_shutil contains a few tests that purport to test cross-filesystems usage but may or may not actually do

  1   2   3   4   5   6   7   8   9   10   >