É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
Change by Éric Araujo :
--
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsub
É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/issue15
É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
É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/issue46
Éric Araujo added the comment:
I think the situation and the discussion should be summarized on python-dev!
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue46846>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue46847>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Éric Araujo :
Removed file: https://bugs.python.org/file50645/タイピング練習
(日本語編)|Benesseの大学・短期大学・専門学校の受験、進学情報.pdf
___
Python tracker
<https://bugs.python.org/issue46
Change by Éric Araujo :
--
Removed message: https://bugs.python.org/msg414082
___
Python tracker
<https://bugs.python.org/issue46833>
___
___
Python-bugs-list m
É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')
>>>
É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
É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
Éric Araujo added the comment:
Would you like to make a pull request?
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue46736>
___
___
Pytho
Éric Araujo added the comment:
Thanks again!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Éric Araujo :
--
nosy: +eric.araujo, pitrou, serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46733>
___
___
Python-bugs-list mailin
É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
É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
É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
É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
É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
É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
É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
É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
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
É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
É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
É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
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://
É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
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
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
É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
Change by Éric Araujo :
--
nosy: +petr.viktorin
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
Change by Éric Araujo :
--
pull_requests: +29182
pull_request: https://github.com/python/cpython/pull/31001
___
Python tracker
<https://bugs.python.org/issue43
É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
É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
Change by Éric Araujo :
--
nosy: +maggyero, matrixise
___
Python tracker
<https://bugs.python.org/issue46285>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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
É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
É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
É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.
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
É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
É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
É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
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
É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
Change by Éric Araujo :
--
versions: -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue46247>
___
___
Python-bugs-list mailing list
Unsub
É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
Éric Araujo added the comment:
The PR now has --help-env, --help-xoptions and --help-all !
--
___
Python tracker
<https://bugs.python.org/issue46142>
___
___
Change by Éric Araujo :
--
nosy: +pitrou, rhettinger
versions: +Python 3.10, Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46
É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
É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
É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
É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
É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
É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
Change by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue46282>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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>
___
___
É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
É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
É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
É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
É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
É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
Change by Éric Araujo :
--
type: behavior -> enhancement
versions: -Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue44024>
___
___
Py
Change by Éric Araujo :
--
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue41011>
___
___
Python-bugs-list mailing list
Unsub
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
É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
Éric Araujo added the comment:
Done, cheers!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
É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
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
É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
É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
É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
É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
Éric Araujo added the comment:
Do people think the man page should be shortened too?
--
___
Python tracker
<https://bugs.python.org/issue46142>
___
___
Python-bug
Change by Éric Araujo :
--
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue24132>
___
___
Python-bugs-list mailing list
Unsub
É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
É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
É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
É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
É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).
É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
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
Change by Éric Araujo :
--
components: +Library (Lib) -Distutils
nosy: +ncoghlan, pradyunsg -eric.araujo
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issu
É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
É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
É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
É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
É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
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
É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
1 - 100 of 4321 matches
Mail list logo