[issue15795] Zipfile.extractall does not preserve file permissions

2022-04-04 Thread Éric Araujo

Éric Araujo  added the comment:

On second thought, maybe no fix should be backported.
Changing behaviour silently might break things, changing with a new option puts 
the change in a grey fix/enhancement area, so maybe better to let current 
versions as they are, with the bug/limitation noted in the documentation, and 
give control in 3.11 only.

--

___
Python tracker 
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15795] Zipfile.extractall does not preserve file permissions

2022-04-04 Thread Éric Araujo

Change by Éric Araujo :


--
versions: +Python 3.11 -Python 3.10

___
Python tracker 
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15795] Zipfile.extractall does not preserve file permissions

2022-04-04 Thread Éric Araujo

Éric Araujo  added the comment:

The new PR uses new constants*, so could not be backported as is (see my 
previous message).


(*side question: should the constants use an enum?)

--

___
Python tracker 
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-04-03 Thread Éric Araujo

Éric Araujo  added the comment:

Bad idea: pass `zulu=True`

It is short, memorable if you know about it, otherwise obscure enough to push 
people to read the docs and be clear about what it does.

Also strange and far from obvious, so a bad idea.  Unless… ?

--

___
Python tracker 
<https://bugs.python.org/issue46614>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-03-31 Thread Éric Araujo

Éric Araujo  added the comment:

I would like to know what Senthil is thinking before the PR with options à la 
carte are merged!

--

___
Python tracker 
<https://bugs.python.org/issue46337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46126] Unittest output drives developers to avoid docstrings

2022-03-23 Thread Éric Araujo

Éric Araujo  added the comment:

I think the situation and the discussion should be summarized on python-dev!

--

___
Python tracker 
<https://bugs.python.org/issue46126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46833>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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')
>>> print(s)
Betrag größer als Betrag der Original-Transaktion

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46855>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 
<https://bugs.python.org/issue26175>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 equivalent, we 
are only talking about a doc presentation issue here, not any problem in code.

--

___
Python tracker 
<https://bugs.python.org/issue46782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue46436>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46700>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46646>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue22852>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that mode (although ironically, 
correct behaviour for that requires having a registry of schemes).

--

___
Python tracker 
<https://bugs.python.org/issue46337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 
<https://bugs.python.org/issue2>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 compat for urllib is always a concern; someone said at the time that 
it could be good to have a new module for modern, generic parsing, but that 
hasn’t happened.  Maybe a new parse function, or new parameter to the existing 
one, could be easier to add.

--
nosy: +brett.cannon, eric.araujo, lukasz.langa, orsenthil
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 an issue that a wrong target is used, but we should 
not be linking for a target at all, this is the target.  So if we can’t use the 
equivalent of directives function, module, etc (that define the targets of 
func, mod, etc), then maybe they should be just ``name``, not :role:`name`.

--

___
Python tracker 
<https://bugs.python.org/issue46586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for 3.11, the backport PRs 
can be a little different), or tracked in a separate ticket if that seems more 
convenient.

--

___
Python tracker 
<https://bugs.python.org/issue46586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46614>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue46587>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 
<https://bugs.python.org/issue46586>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46635>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 
<https://bugs.python.org/issue46197>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue43012>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue42205>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue42049>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue38902>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45639>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45639>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue43112>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46282>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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(source, target, backup=False): ...

and we want to call it many times without passing backup=True every time; we 
can make a lambda:

  frob_backup = lambda source, target: frob(source, target, backup=True)
  # later in the file
  frob_backup(src1, tgt1)
  frob_backup(src2, tgt2)

or a partial:

  frob_backup = partial(frob, backup=True)
  # then
  frob_backup(src3, tgt3)

As you can see, they both work in the same way.  They are equivalent ways of 
making a shortcut to call a function with some parameters pre-defined.  When 
called, the lambda will call the frob function and return its return value.  
When called, the partial object will call the frob function and return its 
return value.


2) closures:

Closures are variables that are resolved in the parent scope (namespace) of the 
normal scope.
A function (including a function created by a lambda) can have closures.

  def make_callback(backup_default):  
  callback = lambda source, target: frob(source, target, backup_default)
  return callback

Here when callback is called, the backup_default variable is not found in the 
local variables of the callback function, but in the scope of make_callback.  
It will be true or false depending on how make_callback was called.


3) http.server.test

There aren’t any closures in http.server.test; the issue is that HandlerClass 
(defined in the `if name is main` block and passed to `test`) is a proper 
handler class in one case, or a partial object!  So inside test, setting 
attributes on the passed handler class will do nothing if that class is 
actually a partial instance.  When it is called, it will return an instance of 
SimpleHttpRequestHandler, which won’t see the protocol attribute that we wanted.


Conclusion:
- maybe we should pass all parameters to test instead of smuggling through 
params
- setting class attributes seems fishy to me
- cgi handler and regular handler should have the same features (see #46436)

--
nosy: +Jelle Zijlstra
resolution: not a bug -> 
stage: resolved -> needs patch
status: closed -> open
title: http/server.py wont respect its protocol_version -> protocol_version in 
http.server.test can be ignored
versions: +Python 3.10, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 
<https://bugs.python.org/issue46436>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, and pyproject.toml?  I would expect pip to follow the 
PEP too.

--

___
Python tracker 
<https://bugs.python.org/issue46473>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46439>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue46419>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45959>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue43012>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue12782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, ulope

___
Python tracker 
<https://bugs.python.org/issue12782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue12782>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45729>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46336>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 part of the optional `-X` options, `--help-full` or `-all` would 
be way to preserve the behaviour of printing full usage with one option.

--

___
Python tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
pain, don't bother.


The option parsing code is easy to edit, and the function would only need to 
call the other usage functions with a blank line inbetween.  Should I add it?

--

___
Python tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 changed, which seems like a 
bug!)  The BaseHTTPRequestHandler class does have support for HTTP 1.1 (adds 
automatic keep-alive).

So if we ignore the distraction that OP changed the source code, and imaging 
instead that they called `test(protocol="HTTP/1.1")`, then there would be a bug 
if the requests went out as HTTP/1.0.

Hugo, can you attach a minimal reproducer?  (a python script as small as 
possible to show the problem — don’t edit code in http.server but call the 
http.server.test function with your own code)

--

___
Python tracker 
<https://bugs.python.org/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
some methods work.

Supporting HTTP 1/1 is not just changing the protocol string, but also about 
supporting the actual behaviours defined in the 1.1 spec!

If the module has a parameter for version and it doesn’t work, then you can 
report a bug.  If there is no such parameter, you can open a feature request to 
ask for HTTP 1.1 support.

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46264>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the CPython repo are only used to discuss 
implementation, not for debating ideas or proposing features.)

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46227>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 `xoptions`.

What do people think?

--

___
Python tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 build and test with the 
Python version that was current 7 years ago?

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue37330>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 were required and not Paths (and not all 
path-likes).

--
nosy: +eric.araujo
versions: +Python 3.11 -Python 3.7

___
Python tracker 
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue46228>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue46005>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue46196>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/ce4d25f3cd0a1c6e65b64015140fb5e1397c8ac5


--

___
Python tracker 
<https://bugs.python.org/issue46196>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue46186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue46198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 preconfig, 
handle it in initconfig (by printing X options help and exiting, maybe reusing 
the existing print help function or writing a very similar one next to it)
B) or detect the option in preconfig, print and exit right there

Which option is best?

--
nosy: +vstinner

___
Python tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 retitle the ticket to be about duplicate methods in 
tests.

--
Added file: https://bugs.python.org/file50534/duplicate-test-methods.diff

___
Python tracker 
<https://bugs.python.org/issue46198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 when python 3.12 is started!

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 `_` prefix naming convention, but I think 
it’s fine to document the function and so make it officially public now.

--
nosy: +eric.araujo
type:  -> enhancement

___
Python tracker 
<https://bugs.python.org/issue46196>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46204>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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).  I don’t see the same 
need for test functions.

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46126>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 option, and 30% about environment
variables. Also some lines in the -X option description are too long
(102 columns). Both topics are "advanced" and mostly interested for
debugging. I suggest to move them out of the main help output.  […]

Guido:

-X opt : implementation-specific option; use -X help to list options.

We could also see if we can put the help text for each of the supported -X
flags in the table defining these flags […]

GvR again:

--help-env […] prints info about env vars (new flag)


I would enjoy trying to make a patch around next week!

--
messages: 408981
nosy: eric.araujo, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: python --help output is too long
type: enhancement
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46142>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46119>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 new competitors, brotli and zstd, but I haven’t 
seen these used to compress files.)

--

___
Python tracker 
<https://bugs.python.org/issue20741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue46044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 haven’t 
found that stated clearly.

--
nosy: +eric.araujo

___
Python tracker 
<https://bugs.python.org/issue46064>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46095>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue17005>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46071>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue46068>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >