New submission from Anthony Sottile :
While investigating https://bugs.python.org/issue31940 I noticed the following
is raised as `SystemError` instead of the expected `NotImplementedError`
(note: you need a platform with fchmodat but does not support nofollow)
```
touch foo
ln -s foo bar
Change by Anthony Sottile :
--
keywords: +patch
pull_requests: +4696
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32277>
___
___
Py
Anthony Sottile added the comment:
I noticed it when I changed the test preconditions in
https://github.com/python/cpython/pull/4783
I tried changing a test to trigger this (in this branch) but I found I was just
implementing exactly the test in the `skip` condition which to me didn't
Anthony Sottile added the comment:
if I'm reading the manpage correctly: `readlink` tells the filename that the
symlink points to. lchmod is concerned with setting the `stat` on the link
itself (which only some platforms actually su
Anthony Sottile added the comment:
Should this have landed in python3.6? It removes a public symbol
`PyExc_RecursionErrorInst` (abi break?)
--
nosy: +Anthony Sottile
___
Python tracker
<https://bugs.python.org/issue30
Anthony Sottile added the comment:
Considering the huge popularity of these SO questions, I don't think this
should be reverted:
- https://stackoverflow.com/questions/23349349/argparse-with-required-subparser
-
https://stackoverflow.com/questions/22990977/why-does-this-argparse-code-b
Anthony Sottile added the comment:
Is there then no pathway for actually fixing the bug? aka how can I get
`required=True` to be the default.
--
___
Python tracker
<https://bugs.python.org/issue33
Anthony Sottile added the comment:
That's a separate issue (also a bug introduced by the bad 3.3 patch):
https://bugs.python.org/issue29298
I have an open PR to fix it as well but it has not seen review action:
https://github.com/python/cpython/pull
Anthony Sottile added the comment:
The bug is orthogonal, you can trigger it without the `required=` keyword
argument via the (currently suggested) monkeypatch workaround which restores
the pre-3.3 behaviour:
import argparse
parser = argparse.ArgumentParser()
subp = parser.add_subparsers
Change by Anthony Sottile :
--
pull_requests: +6992
___
Python tracker
<https://bugs.python.org/issue17909>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Sottile added the comment:
Unclear if this regression (from this patch) is intentional or not:
```
$ python3.6 -c 'import configparser; configparser.ConfigParser(defaults={"a":
None})'
$ python3.7 -c 'import configparser; configparser.ConfigParser(defaults
Anthony Flury added the comment:
But the __next__ is a method on the iterator;
So long as __iter__ returns a valid iterator (which it does in my pull
request), it will by definition support __next___
Although it is entirely possible that I have misunderstood what you are saying
Anthony Singleton added the comment:
Fuck you
--
components: +Cross-Build, Extension Modules
nosy: +Alex.Willmer, Anthony Singleton
___
Python tracker
<https://bugs.python.org/issue33
Change by Anthony Sottile :
--
keywords: +patch
pull_requests: +8005
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue19891>
___
___
Py
Anthony Sottile added the comment:
I was able to reproduce both the `PermissionError` and the `FileNotFoundError`
under these circumstances:
$ docker run --user 123:123 -ti python python
Python 3.7.0 (default, Jul 17 2018, 11:04:33)
[GCC 6.3.0 20170516] on linux
Type "help",
New submission from Anthony Guevara :
When using tailf with Python2.7 there are no issues. When using tailf with
Python3.4 some print statements use the old version 2 style. Python3 also
complains about an implicit conversion. I have included a patch.
--
components: Distutils
files
Anthony Flury added the comment:
The lack of dunder_iter support on mock_open has been resolved in Issue 32933
(Git Hub 5974).
Can I suggest that once the above PR is merged into 3.8 (due imminently
allegedly ), that we should then backport that fix into 3.5, 3.6 & 3.7
as a minimum ?
Anthony Flury added the comment:
Berker,
Thanks for your work on getting this complete.
I would strongly support backporting if possible.
3.5 and 3.6 will be in common use for a while (afaik 3.6 has only now got
delivered to Ubuntu as the default Python 3), and this does fix does allow full
Anthony Flury added the comment:
I still support backporting to 3.6 and 3.7 :
Yes it is correct that this fix could change the behavior of existing test
code, but only if someone has written a test case for a function where :
1. The function under test uses dunder_iter iteration
2. The
Anthony Flury added the comment:
Thank you.
--
___
Python tracker
<https://bugs.python.org/issue32933>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Flury added the comment:
It seems to me that we have three alternatives :
1. Refuse to create the mock object with a suitable Exception (rather than a
crash
2. Copy the object and simply ignore the missing dunder_name (so that funcopy
dunder_name is not set
3. Set funcopy
Anthony Flury added the comment:
Am not a big fan of special casing,
I think the functools.update_wrapper is the way to go - will have a look later
and produce a pull request with some test cases.
--
___
Python tracker
<https://bugs.python.
New submission from Anthony Flury :
On the Multi-processing page
<https://docs.python.org/3/library/multiprocessing.html> (just above the
reference section) there is a warning that the examples wont work from the
interpreter.
This is not entirely accurate in that the examples do wo
Anthony Flury added the comment:
An example that does work :
$ python3
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or
Change by Anthony Sottile :
--
nosy: +Anthony Sottile
___
Python tracker
<https://bugs.python.org/issue12782>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Sottile added the comment:
It appears it has always had this bug since introduction of absolute/relative
imports in
https://github.com/python/cpython/commit/f7f438ba3b05eb4356e7511401686b07d9dfb6d8
Agree with changing this to `# type: int` and correcting the documentation
Anthony Sottile added the comment:
In fact, trying to use an `ImportFrom` without an integer `level` results in a
`ValueError`:
>>> x = ast.parse('from os import path')
>>> x.body[0].level = None
>>> compile(x, '', 'exec')
Traceback (
Anthony Sottile added the comment:
Here's a simpler reproduction without involving a third party library:
>>> import cProfile
>>> from datetime import timedelta
>>> pr = cProfile.Profile()
>>> timedelta.total_seconds(-25200)
Traceback (most recent cal
Anthony Sottile added the comment:
Hmmm, I don't think mypy has an annotation for "sometimes has an attribute" --
`Optional[T]` is `Union[T, None]` (why I tried `None`).
But you're right, `FromImport` is constructable without a `level` -- it seems
to behave as `level=0`
Change by Anthony Sottile :
--
pull_requests: +9361
___
Python tracker
<https://bugs.python.org/issue16806>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Sottile added the comment:
This change in behaviour is breaking pycodestyle:
https://github.com/PyCQA/pycodestyle/issues/786
Perhaps it shouldn't have been backported (especially all the way to python2.7?)
--
nosy: +Anthony So
Anthony Sottile added the comment:
I'm surprised this was classified as a bug! Though that's subjective so I get
that it's difficult to decide what is and what isn't ¯\(ツ)/¯
--
___
Python tracker
<https://bug
Change by Anthony Sottile :
--
nosy: +Anthony Sottile
___
Python tracker
<https://bugs.python.org/issue33944>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Anthony Sottile :
--
keywords: +patch
pull_requests: +9494
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Anthony Sottile added the comment:
Does this actually make sense for the `os` module? `PWD` is a variable set by
your interactive shell and doesn't really make sense outside that context.
I expect this function to be too easily confused with `os.getcwd()` and a
source of bugs whe
New submission from Anthony Sottile :
This may be intentional, but the behaviour changed between python2 and python3.
Want to make sure it's intentional as we're working (hacking) around this in
pytest: https://github.com/pytest-dev/pytest/pull/4284
The actual impact on pytest is
Anthony Sottile added the comment:
arbitrary, sure, but deriving from `Exception` maybe?
--
___
Python tracker
<https://bugs.python.org/issue35137>
___
___
Pytho
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue14658>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Anthony Long :
http://pypi.python.org/pypi
The copyright in the footer says 2011.
--
components: None
messages: 160928
nosy: antlong
priority: normal
severity: normal
status: open
title: Copyright date in footer of /pypi says 2011
New submission from Anthony Long :
http://python.org/community/jobs/
http://python.org/community/jobs/www.austinfraser.com
\_ error code: 404 (not found)
http://python.org/lumino.so
\_ error code: 404 (not found)
http://python.org/community
Anthony Long added the comment:
http://maw.liquifire.com/maw?set=image[2302.000.13314%20a]&call=url[file:325x445]
works properly. Notice the %20 instead of ' '
--
nosy: +antlong
___
Python tracker
<http://bugs.pyth
Anthony Kong added the comment:
Which os? windows or linux or osx?
It actually sounds like a support question. You probably should take the
question to the python newsgroup
(https://groups.google.com/forum/?fromgroups#!forum/comp.lang.python).
--
nosy: +Anthony.Kong
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue13241>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue4188>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Anthony Bartoli:
>From the library's introduction page:
"This manual is organized “from the inside out:” it first describes the
built-in data types..."
The library manual first describes built-in functions, not data types.
After built-in functions, it
New submission from Anthony Tuininga:
With Python 3.3, the ability to create a Python interpreter independent of a
Python installation (as is done with cx_Freeze and other such freezing tools)
has become more difficult to accomplish. Py_Initialize() requires the presence
of a frozen importlib
Anthony Tuininga added the comment:
The file importlib.h is used when building the Python interpreter but it is
*not* available in a standard (non-source) distribution of Python. I have
copied the file from a source distribution of Python and that does in fact
work, but I don`t want to make
Anthony Tuininga added the comment:
Thanks to Amaury for his suggestion. It resolves the problem completely and
answers the question I had about how to proceed. For others who may come across
this, the key was to generate the importlib._bootstrap module (which is what is
found in importlib.h
New submission from Anthony Lozano:
If you create a asynchat subclass with a SSL socket asyncore can hang when data
larger than the ac_in_buffer_size comes in.
What (I think) happens is that asyncore uses a select.select call to determine
when to read more data from the socket. On the first
Changes by Anthony Lozano :
--
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/issue16976>
___
___
Python-bugs-list mailing list
Unsubscri
Anthony Baire added the comment:
I confirm the fix.
It is clear that the separation between BaseChildWatcher and its subclasses is
far from ideal. The first implementation was clean, but as the patch evolved
interactions got complex to the point that BaseChildWatcher should not be
considered
Anthony Baire added the comment:
I put a cleaner patch here:
https://codereview.appspot.com/26220043/
--
___
Python tracker
<http://bugs.python.org/issue19
Anthony Baire added the comment:
The patch is fine, but it is hard to rely on it to prevent bugs from happening
because that requires cooperation from all modules registering signal handlers.
Anyway it facilitates reusing code that was not written for an event-driven
context (and many will do
New submission from Anthony LaTorre:
I get a segfault when trying to cast a string to a structure.
>>> import ctypes
>>> class Struct(ctypes.Structure):
... _fields_ = [('a', ctypes.c_uint32)]
...
>>> s = '0'*100
>>> c
Changes by Anthony LaTorre :
--
components: +ctypes
___
Python tracker
<http://bugs.python.org/issue21983>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue13272>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue22116>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Tuininga added the comment:
I note that this patch has still not been accepted! Please let me know what
needs to be done. I just tried against Python 3.4 and the patch works as
expected -- other than the starting line number is now 715. I have signed the
contributor agreement if that
New submission from Anthony Mayer:
After discussion about extraneous whitespace around colons in a list slice not
being an error on the pep8 checker project (see
https://github.com/jcrocholl/pep8/issues/321#issuecomment-53649841), ncoghlan
suggested filing a ticket here to get the issue added
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue19771>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Foglia added the comment:
I've added Python 2.7 to the list of versions. The development docs
have the same issue.
Let me try another stab at what the docs should say. Following the
suggestion to add it to 3.3.5, perhaps it should be:
"
object.__contains__(self, item)
New submission from Anthony Foglia :
It would be nice if pprint could format namedtuples wrapping lines as it
does with tuples.
Looking at the code, this does not look like an easy task. Completely
rewriting pprint to allow it to be extensible to user-created classes
would be best, but involve
New submission from Anthony Foglia :
cPickle in Python 2.6.4 segfaults when trying to load the string "0.".
pickle throws an error. cPickle should at the least not segfault.
$ python
Python 2.6.4 (r264:75706, Nov 2 2009, 14:44:17)
[GCC 4.4.1] on linux2
Type "help", "
Anthony Tuininga added the comment:
One additional suggestion: allow the packager to specify what the
minimum Python version is. Otherwise, you might have a package that
enables installation for Python 2.3 and 2.4 when the maintainer has
already stated that Python 2.5 is the minimum version
New submission from Anthony Tuininga :
Add support for specifying the minimum Python version supported so that
versions which are not supported are not included when running the MSI
created by distutils for pure Python packages with the patch referred to
here:
http://bugs.python.org/issue5311
Anthony Tuininga added the comment:
I've created another feature request as requested for supplying a
minimum Python version when creating pure Python packages.
http://bugs.python.org/issue5926
--
___
Python tracker
<http://bugs.py
New submission from Anthony Foglia :
I was debugging a class where I defined __getitem__ and __iter__, but
not __contains__. The documentation describing this case (at the end of
section 5.9) is old and hasn't been updated for the iterator protocol.
It should read something like:
&quo
New submission from Anthony Tuininga :
With the release of Python 3.1 the --compiler switch is ignored in
Lib/distutils/command/build_ext.py. The attached patch fixes that issue.
Once that was fixed there was another issue with get_version() in
cygwincompiler but that appears to be fixed in the
New submission from Anthony Foglia :
Looking at the documentation for the __import__ builtin, the default value of
the level parameter is unclear. Two different values are mentioned. The
function signature is written:
__import__(name, globals={}, locals={}, fromlist=[], level=-1)
But the
New submission from Anthony Long :
On mac 10.5, python 2.6.4 (via mac ports) performing
len(string.letters) will produce 117 instead of 52.
from terminal:
along-mb:~ along$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESS
Anthony Long added the comment:
Also: windows 64x, python 2.7
1.
Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]
on win32
2.
Type "copyright", "credits" or "license()" for more information.
3
New submission from Anthony Long :
string.letters should display the locale based equivalent of a-Z.
In enUS this would be a-z A-Z, in total a len of 52, whereas in spain it would
be a-z (with ñ), and A-Z (Ñ).
Each locale should change the returned letters.
http://en.wikipedia.org/wiki
Anthony Long added the comment:
Windows 64 bit, python 2.7:
>>> '\xff'.isalpha()
>>> False
>>> import idlelib.run
>>> '\xff'.isalpha()
>>> False
and- Windows 32 bit, python 2.6: Both False.
--
Anthony Long added the comment:
Mac 10.5.6: py 2.6.4 - broken
Python 2.6.4 (r264:75706, Mar 18 2010, 14:58:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> '\xff&
Anthony Long added the comment:
Python 2.6.4, Mac 10.5:
>>> from string import letters
>>> letters
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\xaa\xb5\xba\xc0\xc1\xc2\xc
3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd
8\xd9\xda\
Anthony Long added the comment:
After import _tkinter, I would up getting this, which is totally different than
before:
>>> letters
'abcdefghijklmnopqrstuvwxyz\xaa\xb5\xba\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\x
Anthony Long added the comment:
A bit more info:
Python 2.6.4 (r264:75706, Mar 18 2010, 14:58:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>&g
New submission from Anthony Long :
install a distro of without sqlite3 support. now you should have a
/usr/lib/python2.6/sqlite3, which obviously isn't usable.
now if you install sqlite3, and try a 'import sqlite3' it still doesn't work.
so you have to compile/install py
Anthony Long added the comment:
Same behaviour on python 3,
http://pastebin.ca/1907343
--
___
Python tracker
<http://bugs.python.org/issue9365>
___
___
Python-bug
Anthony Long added the comment:
I disagree. It's expected that the function will return valid data. This
doesn't return valid data so isalpha() is compromised.
--
___
Python tracker
<http://bugs.python.
Anthony Long added the comment:
The locale is set incorrectly though - so it is not valid data. Valid data is
a-Z. nothing more nothing less, and the locale and the alphabet should not be
changed.
--
___
Python tracker
<http://bugs.python.
New submission from Anthony Long :
I would like to add docstrings to dicts and named tuples. Dicts can be used to
hold many different kinds of information, and docstrings would help to shed
light on what the dict does to others.
Named tuples also should have docstrings, since they can also
Anthony Foglia added the comment:
I could see adding a doc parameter to the collections.namedtuple. So that
---
>>> Point = collections.namedtuple("Point", ("x", "y"), doc="My point class")
>>> Point.__doc__
My point class
---
(Or it
New submission from Anthony Zhang:
Summary
---
This shows up as two closely-related issues:
* ``aifc.open`` leaks file object when invalid AIFF file encountered. This is
probably a bug.
* ``aifc.close`` closes file object even when it didn't open the file object to
begin with. While
Changes by Anthony Zhang :
Added file:
http://bugs.python.org/file46088/fix_aifc_leak_and_file_object_close.patch
___
Python tracker
<http://bugs.python.org/issue29
Anthony Sottile added the comment:
I'm seeing this same failure in python3.5 on 16.04 about 20% of the time:
```
$ python3.5 -m test -v test_dbm
== CPython 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609]
== Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial little-e
Anthony Sottile added the comment:
Stepping through the code, it seems under ndbm it is creating a file with a
'.db' extension:
```
(Pdb) list
47 'g': b'intended',
48 }
49
50 def init_db(self):
51 i
Anthony Sottile added the comment:
That doesn't seem to be the problem though, that occurs in both the successful
and failure case
--
___
Python tracker
<http://bugs.python.org/is
Changes by Anthony Sottile :
--
nosy: +Anthony Sottile
___
Python tracker
<http://bugs.python.org/issue28700>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Anthony Scopatz:
Classes that have an abstract base class somewhere in their hierarchy have a
significantly reduced depth with respect to the recursion limit. In the
attached minimal example, the class hierarchy is only able to be 245 deep past
the ABC before a recursion
Anthony Scopatz added the comment:
It certainly seems related. Attached is an image that displays the scaling of
the cache example. The full notebook that generated this image is at [1]. The
notebook shows that it does seem to converge towards a value of 1/6th.
1. https://gist.github.com
New submission from Anthony Sottile:
PEP420 makes __init__.py files optional:
https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages
Though it seems without them, pkgutil.walk_packages does not function as
desired: https://docs.python.org/3/library/pkgutil.html
Changes by Anthony Scopatz :
--
nosy: +Anthony Scopatz
versions: +Python 3.6
___
Python tracker
<http://bugs.python.org/issue15451>
___
___
Python-bugs-list mailin
Changes by Anthony Zhang :
--
pull_requests: +127
___
Python tracker
<http://bugs.python.org/issue29110>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Anthony Flury:
Consider the following code in Python2.7 & Python3.5
import inspect
class a(object):
def m(self):
pass
in Python 2.7
inspect.ismethod(a.m) returns True
in Python 3.5
inspect.ismethod(a.m) returns False
Anthony Flury added the comment:
Not sure I agree with closing this. I am not convinced (as a reasonably
seasoned developer) that the documentation is clear.
It may not be a bug in the code, resulting as it does from a change in the way
methods are implemented in Python 3.5, but I do think
Anthony Flury added the comment:
Assuming the reader knows the details of how Python works is not a great
assumption when those documents are being used (by the most part) by people
like me who are reasonable developers but who don't know, and for most cases
don't care about the in
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue935117>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anthony Kong :
--
nosy: +Anthony.Kong
___
Python tracker
<http://bugs.python.org/issue5038>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anthony Sottile :
--
nosy: +asottile
___
Python tracker
<http://bugs.python.org/issue16806>
___
___
Python-bugs-list mailing list
Unsubscribe:
601 - 700 of 738 matches
Mail list logo