Changes by Éric Araujo <mer...@netwok.org>:
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Éric Araujo added the comment:
New changeset aaf6fc0982c916cb71d9e0afcd7dda4ba495793b by Éric Araujo (Anthony
Sottile) in branch 'master':
bpo-26510: make argparse subparsers required by default (#3027)
https://github.com/python/cpython/commit/aaf6fc0982c916cb71d9e0afcd7dda4ba495793b
Changes by Éric Araujo <mer...@netwok.org>:
--
assignee: -> merwok
nosy: +merwok
stage: -> commit review
versions: +Python 3.7 -Python 3.5
___
Python tracker <rep...@bugs.python.org>
<https://bugs.
Changes by Éric Araujo <mer...@netwok.org>:
--
keywords: +needs review
versions: +Python 3.7 -Python 3.5
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pytho
Éric Araujo added the comment:
Yeah, it was interesting to explore but there are significant drawbacks and not
enough benefit. Thanks for the guidance all!
--
resolution: -> rejected
stage: patch review -> resolved
status: open -&g
Éric Araujo added the comment:
(Nick and Guido! «My proposal is to make str(x) return x.__name__ for exactly
these three types of objects: modules, classes, and functions.»)
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.p
Éric Araujo added the comment:
Martin Panter
> I’m a bit confused. In the current patch, the new type_str() function
> appears to use the “qualname” (which I support), but some of the test
> changes seem to contradict this, e.g.:
> >>> C.foo(1)
> -classmethod
Éric Araujo added the comment:
For 3.6 and 3.7, we can avoid the original float resolution issue thanks to
stat_result.st_mtime_ns. Not sure if 2.7 should be changed.
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.p
Changes by Éric Araujo <mer...@netwok.org>:
--
Removed message: https://bugs.python.org/msg302314
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Éric Araujo added the comment:
Oh well. Re-reading #11933 I see that st_mtime is a float and may not have the
required precision (53 bits for Python floats vs 64 bit for timestamps), so the
proposed change would not fix this issue and reopen that one
Éric Araujo added the comment:
Coming back to this, I think this should be a safe change that fixes the issue
without previsible downside.
Jacob, you opened a bug duplicate of this one: could you say what was the
undesirable behaviour caused by the coarse resolution?
(I would change os.stat
Éric Araujo added the comment:
Could you give code to reproducer the problem, if possible without third-party
dependencies?
--
resolution: fixed ->
status: closed -> open
versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3
___
Python t
Éric Araujo added the comment:
I converted my patch to a PR.
One use case mentioned on python-ideas was for reprs of PEP 384 types; need to
hunt down where typing could benefit from the new str(class).
The quote in my first message mentions printing err.__class__ rather than
err.__class__
Changes by Éric Araujo <mer...@netwok.org>:
--
pull_requests: +3599
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue13224>
___
_
Changes by Éric Araujo <mer...@netwok.org>:
--
versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pytho
Éric Araujo added the comment:
Inclined to reject this, given the general dislike of huge low-value patches.
--
keywords: -easy
status: open -> pending
versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker &
Éric Araujo added the comment:
Per Raymond’s feedback, I will close this. The table is useful as a quick
reference, seq is a shortcut, “it” or “iter” are worse names, the first doc
line says this is all about iterators, and the individual function docs do use
“iterable”.
--
status
Éric Araujo added the comment:
Hello! I didn’t produce anything for this apart from the initial outline.
Looking at it now, it looks like a talk outline! Maybe I should run with it,
present at my local user group, and only write it up after collecting feedback
from real beginner
Éric Araujo added the comment:
Hello and thanks for the patch! If you don’t get feedback, you could try the
python-ideas mailing list to see if other people have the same need and if
there’s already a solution for this.
Serhiy, would you mind refreshing my memory about json development? I’m
Éric Araujo added the comment:
I am now reviewing the PR added to the other issue by Anthony. This ticket has
a lot of discussion; it would be good to check which parts are addressed by the
other ticket, and particularly if the problems noted by Mike and others are now
fixed
Éric Araujo added the comment:
Keyword arguments in a class definition are supported:
https://www.python.org/dev/peps/pep-3115/#specification
Anyway, this ticket is closed, a mailing list such as python-ideas would be a
better venue to discuss base classes vs metaclasses in a general way
Changes by Éric Araujo <mer...@netwok.org>:
--
keywords: +easy
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31454>
___
__
Changes by Éric Araujo <mer...@netwok.org>:
--
nosy: +merwok
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31466>
___
__
Éric Araujo added the comment:
Merged, thanks!
--
assignee: docs@python -> merwok
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bugs.
Éric Araujo added the comment:
New changeset 6a396c9807b1674a24e240731f18e20de97117a5 by Éric Araujo (Feanil
Patel) in branch 'master':
bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)
https://github.com/python/cpython/commit/6a396c9807b1674a24e240731f18e20de97117a5
Éric Araujo added the comment:
> "Best practices" according to whom?
Well at least two senior core developers :) See the rationale in #16049 when
abc.ABC was first added (with Guido approving that inheritance is nicer for
Éric Araujo added the comment:
I was about to open the same issue! I tend to print nested data structures for
debugging; having lists take up a lot of vertical screen estate and leave
unused all the horizontal space is an annoyance, so that I regularly have to go
back and add the width param
Éric Araujo added the comment:
What about adding a simple Lib/idle.py that imports and runs the main function
from idlelib?
--
nosy: +merwok
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Éric Araujo added the comment:
Thanks for the patch! Raymond approved it and I merged it after a minor
change. Now let me read the doc again about backports :)
--
stage: needs patch -> backport needed
versions: +Python 3.6
___
Python tracker &
Éric Araujo added the comment:
New changeset 122e88a8354e3f75aeaf6211232dac88ac296d54 by Éric Araujo (Eric
Appelt) in branch 'master':
bpo-30096: Use ABC in abc reference examples (#1220)
https://github.com/python/cpython/commit/122e88a8354e3f75aeaf6211232dac88ac296d54
--
nosy
Éric Araujo added the comment:
> both wheel/pip makes calls to distutils.util.get_platform(). Fixing it in one
> location
> would fix it across the board.
True, but it may have unintended effects in other places that disrupt or break
parts of the CPython build process, or downstream
Éric Araujo added the comment:
Hello! Your analysis sounds right, but this is the wrong place. distutils
doesn’t know about wheels, it’s setuptools and/or the wheel module that
generate them, and pip and others who consumes them. Please report the issue
to the setuptools and/or wheel bug
Changes by Éric Araujo <mer...@netwok.org>:
--
nosy: +merwok
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29585>
___
__
Changes by Éric Araujo <mer...@netwok.org>:
--
nosy: +eric.araujo
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28383>
___
__
Éric Araujo added the comment:
I’m not active in python-dev anymore.
The fix was noted in a previous comment:
build.sub_commands in distutils.command.build should list "build_ext" before
"build_py".
lib2to3.fixes.fix_import will write global instead of local imp
Éric Araujo added the comment:
Works for me.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12300>
___
___
Python-bugs-list
Éric Araujo added the comment:
I had the same reasoning as RDM when I worked on byte-compilation in
distutils2: https://hg.python.org/distutils2/rev/7c0a88497b5c
Using py_compile or compileall means that you want to create pyc or pyo files.
Defining PYTHONDONTWRITEBYTECODE or -B means that you
Changes by Éric Araujo <mer...@netwok.org>:
--
nosy: +steve.dower -eric.araujo
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Éric Araujo added the comment:
Patch looks good and would fix the reported problem. Being a backport from
setuptools also gives confidence.
Does the patch change the behaviour for the handling of the MANIFEST file (not
MANIFEST.in)? My previous message mentions that the docs say that one
Éric Araujo added the comment:
FWIW I once helped a friend combine OrderedDict and defaultdict:
https://gist.github.com/merwok/11268759
The behavior can be surprising if we don’t know what Raymond said about design
choices in OrderedDict, but it was not hard (in the default+ordered case
Éric Araujo added the comment:
Patch LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16574
___
___
Python-bugs-list mailing list
Éric Araujo added the comment:
Hm, could you reuse the venv config file with use-site-packages=true?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23955
Éric Araujo added the comment:
Again, if PyPI can display both pieces of information, then it will be okay to
send both. The change should not break third-party indexes like devpi-server.
Is there a PyPI ticket for this?
--
___
Python tracker rep
Éric Araujo added the comment:
Thanks, reviewed.
When running a setup.py that uses a tuple for classifiers, is the error message
in the terminal user-friendly, or do we get a full traceback?
--
title: setup.py does not allow a tuple for classifiers - Give clear error
messages
Éric Araujo added the comment:
descriptor 'substitute' of 'Template' object needs an argument
These error messages don’t seem very user-friendly. I think the style in the
rest of the module is like substitute method wants x y z.
--
nosy: +eric.araujo
Éric Araujo added the comment:
Code and doc changes look good. Will you add tests?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16314
Éric Araujo added the comment:
pathlib is in the stdlib now (see previous comments), maybe this should be
closed as obsolete.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11344
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23171
___
___
Python-bugs-list
Éric Araujo added the comment:
Does the patch fix things on Mac OS X and Linux?
--
assignee: eric.araujo -
versions: -3rd party, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8027
Éric Araujo added the comment:
Thanks for the patch and the testing. I’m not in a position to commit the
patch; if no core developer does it in the coming week, feel free to ping
python-dev to get action. You can also hop onto IRC at any time and see if
someone here can finish
Éric Araujo added the comment:
I think like Ezio does. Python covers itself by saying that all names starting
and ending with two underscores are reserved, and documents those that are
interesting for users. On the other hand, many third-party
frameworks/libs/apps invent their own __names__
Éric Araujo added the comment:
I think classifiers and keywords are the only commonly used fields. This issue
could be limited to classifiers, or also include other list fields.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Éric Araujo added the comment:
I think the change is acceptable.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19610
___
___
Python-bugs-list
Éric Araujo added the comment:
IIRC the table was added in a 3.x branch and backported to 2.7; the developer
doing the backport added the functions missing in 3.x to the end of the table,
thinking that re-ordering was not worth the trouble.
--
nosy: +eric.araujo
Éric Araujo added the comment:
Thanks for the report. I think there’s already a long discussion in another
ticket but don’t have time to search right now.
--
resolution: - duplicate
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
assignee: eric.araujo -
versions: +Python 3.5 -Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14894
Éric Araujo added the comment:
Yes, thanks. Please weigh in on the other ticket.
--
status: open - closed
superseder: - distutils.LooseVersion fails to compare number and a word
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: -eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
Python-bugs-list
Éric Araujo added the comment:
IMO this would be best fixed in setuptools, but it may not be possible.
--
versions: -Python 3.2, Python 3.3, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23102
Éric Araujo added the comment:
Can this ticket be merged into #23102 ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23114
___
___
Python-bugs
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - distutils: tip-toe around quirks owing to setuptools
monkey-patching Extension
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
title: distutils: tip-toe around quirks owing to setuptools monkey-patching
Extension - distutils: isinstance checks fail with setuptools-monkeypatched
Extension/Distribution
___
Python tracker rep
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22231
___
___
Python-bugs-list mailing
New submission from Éric Araujo:
:-)
--
resolution: - not a bug
stage: - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23101
Éric Araujo added the comment:
An active core developer needs to see this and decide to commit the patch. You
can see if there’s someone on IRC. If there’s no action in a week or two, feel
free to ask on python-dev (maybe listing more than one waiting patch, or
offering reviews in exchange
Changes by Éric Araujo mer...@netwok.org:
--
hgrepos: +288
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23063
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
Added file: http://bugs.python.org/file37471/9b8f6812ff69.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23063
Changes by Éric Araujo mer...@netwok.org:
--
hgrepos: -286
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23063
___
___
Python-bugs-list mailing
Éric Araujo added the comment:
The Mercurial integration lets you update the patch with one click.
Decentralized VCSes are nice :‑)
Patch looks good to me. Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23063
Éric Araujo added the comment:
Thanks for the patch. It looks good to me.
--
assignee: eric.araujo -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1703178
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +barry, doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12987
___
___
Python-bugs-list
Éric Araujo added the comment:
I think the first half of the sentence is enough: “For mappings, it should
iterate over the keys of the container.”
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22918
New submission from Éric Araujo:
https://docs.python.org/3/reference/datamodel#object.__iter__
This method should return a new iterator object that can iterate over all the
objects
in the container. For mappings, it should iterate over the keys of the
container, and
should also be made
Éric Araujo added the comment:
The Python 2 doc is alright, the same line says that d.__iter__() is equivalent
to d.iterkeys().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22918
Éric Araujo added the comment:
What about using “not sysconfig.is_python_build()”?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22895
Éric Araujo added the comment:
Thanks bitdancer for applying this.
FTR I just stumbled on code extracted from chishop that shows Django had issues
with the non-CRLF requests sent by distutils:
https://github.com/disqus/djangopypi/blob/master/djangopypi/http.py#L19
Éric Araujo added the comment:
Nick being the current shepherd for packaging discussions and the instigator of
the new version-independent documentation, I’d like to let him take a decision
on this.
--
assignee: eric.araujo - ncoghlan
nosy: +ncoghlan
versions: +Python 3.5 -Python 3.2
Éric Araujo added the comment:
Thank you for your effort! Note that distutils uses try:... finally:
fp.close(), so it tries to avoid the FD leak issues.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22825
Éric Araujo added the comment:
Does this cause a warning to be printed out when it should not? Or did you
find this by reading the code?
[I think I remember this code being changed in the (now defunct) distutils2
project.]
--
versions: +Python 3.5 -Python 3.3
Éric Araujo added the comment:
Can you give us steps to reproduce the issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20106
___
___
Python
Éric Araujo added the comment:
Yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22825
___
___
Python-bugs-list mailing list
Unsubscribe
Éric Araujo added the comment:
I would not touch any internal parts of distutils, such as TextFile. It is not
a public class meant for general usage. The code is not ideal but not broken.
--
___
Python tracker rep...@bugs.python.org
http
Changes by Éric Araujo mer...@netwok.org:
--
stage: patch review - needs patch
versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
Éric Araujo added the comment:
Thanks for the patches folks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8876
___
___
Python-bugs-list
Éric Araujo added the comment:
I can’t make any commitment to core Python at this time. I still read all
email and can be available for guidance or questions about obscure parts of
distutils.
(Ideally I would find someone willing to be mentored to take over maintenance
Éric Araujo added the comment:
IIRC test___all__ can be used for this.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22665
Éric Araujo added the comment:
self.parallel = int(self.parallel) would raise ValueError when a
non-number is passed. I suggest to print user-friendly error message.
The distutils idiom would be to catch the TypeError/ValueError and raise
DistutilsOptionError. Higher layers convert
Éric Araujo added the comment:
Again, I think this behaviour was a deliberate decision, not a patch.
Developers should use tests to detect syntax errors in their code, not rely on
distutils byte compilation.
--
___
Python tracker rep
Éric Araujo added the comment:
a deliberate decision, not a bug*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7918
___
___
Python-bugs-list
Éric Araujo added the comment:
Thanks Ned for analysing and cleanin up the mess :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22199
Éric Araujo added the comment:
dash is the default system shell used to execute scripts (i.e. /bin/sh), not
the default shell used for users login shell and terminal emulators.
The venv/scripts/poxis/activate file seems to require bash anyway: running
checkbashisms on it warns about “hash -r
Éric Araujo added the comment:
Thanks. There is a function intended for general use: shutil.copytree; it may
have the same behavior (not a bug if it's documented).
--
resolution: - wont fix
stage: - resolved
status: open - closed
___
Python
Éric Araujo added the comment:
In my previous message I meant that I agreed with the original request, i.e.
add --build-base to install. I will probably never have the time to write a
patch.
--
dependencies: -write a configure command
status: pending - open
Éric Araujo added the comment:
Thanks for the report. Did you find this issue with a setup.py file or with
direct usage of dir_utils.copy_tree? These distutils modules are not meant for
general use, so bugs that don’t occur during regular use of setup.py files will
probably not get fixed
Éric Araujo added the comment:
I’m afraid I changed computers once or twice since I worked on that, so I can’t
readily find my clone and get the latest patch. I know where the hard drives
are but I can’t say when I will have time to search them.
--
assignee: eric.araujo
Éric Araujo added the comment:
literalinclude lets you select only some lines of the file:
http://sphinx-doc.org/markup/code.html#includes
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22014
Éric Araujo added the comment:
In my opinion it's easier and more common to put default options in a setup.cfg
file, rather than in the Python code.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16729
Changes by Éric Araujo mer...@netwok.org:
--
stage: patch review - commit review
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10395
Éric Araujo added the comment:
Mark, could you please not phrase your messages as if you were speaking for the
whole core team, and be more friendly with other contributors (or reply less)?
--
nosy: +eric.araujo
___
Python tracker rep
Éric Araujo added the comment:
I won’t have the time to do the docs/tests inspection I wanted to do.
--
assignee: eric.araujo -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
401 - 500 of 7396 matches
Mail list logo