New submission from Aaron Meurer asmeu...@gmail.com:
This works in Python 2.5 but not in Python 2.6.
If you do [0]*5, it gives you [0, 0, 0, 0, 0]. I tried getting this to work
with SymPy's Integer class, so that [0]*Integer(5) would return the same, but
unfortunately, the sequence
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13332
___
___
Python-bugs-list
New submission from Aaron Meurer:
The rlcompleter module does not work if __main__ cannot be imported, even
though it can be used without it. For example, on the App Engine, __main__ is
not usable.
If one creates the example app described at
https://developers.google.com/appengine/docs
Aaron Meurer added the comment:
For completion, here's the corresponding App Engine issue I opened:
http://code.google.com/p/googleappengine/issues/detail?id=8665.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16959
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17413
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12611
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12613
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12616
___
___
Python-bugs-list
Aaron Meurer asmeu...@gmail.com added the comment:
Vladimir will need to confirm how to reproduce this exactly, but here is
corresponding SymPy issue: http://code.google.com/p/sympy/issues/detail?id=2605.
The problem is with the sympy/ntheory/factor_.py file at
https://github.com/sympy/sympy
New submission from Aaron Meurer asmeu...@gmail.com:
As suggested in this thread in the Python porting list
(http://mail.python.org/pipermail/python-porting/2011-September/000231.html),
it would be nice if 2to3 had a fixer that translated shebang lines from
#! /usr/bin/env python
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14938
___
___
Python-bugs-list
New submission from Aaron Meurer asmeu...@gmail.com:
Recently, after a small seemingly unrelated refactoring, the SymPy test suite
in Python 3 started dying with Fatal Python error: Cannot recover from stack
overflow.
Here's how to reproduce the error
git clone git://github.com/sympy
Aaron Meurer asmeu...@gmail.com added the comment:
We do have a stack overflow, but this should be raising a RuntimeError, not
killing Python. The way it is now, Python dies completely with abort trap 6
(hence the Mac OS X problem report). Sorry if I didn't make this clear in the
OP
Aaron Meurer asmeu...@gmail.com added the comment:
No it does not. SymPy is a pure Python library.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14537
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18005
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13340
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12944
___
___
Python-bugs-list
New submission from Aaron Meurer:
I hope it's OK to report documentation issues on this tracker. Reading
http://docs.python.org/3.4/library/argparse.html#prog I had to do a double
take. The documentation states, By default, ArgumentParser objects uses
sys.argv[0] to determine how to display
Aaron Meurer added the comment:
The next sentence further confuses things, This default is almost always
desirable because it will make the help messages match how the program was
invoked on the command line. It makes it sound like it really did intend to
use sys.argv[0] literally
Aaron Meurer added the comment:
The docs could be much more clear about this in my opinion.
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20010
Aaron Meurer added the comment:
Nowhere at https://docs.python.org/3.5/library/time.html#time.strftime is it
indicated that %z behaves differently on different platforms. What it *does*
say is
%z Time zone offset indicating a positive or negative time difference from
UTC/GMT of the form
Aaron Meurer added the comment:
I also just noticed that the %z entry in the table wasn't added until the
Python 3.3 docs, although it apparently works at least in OS X in Python 2.7 (I
can't test Windows right now). Was it supposed to be one of the additional
directives supported on certain
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21821
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22200
___
___
Python-bugs-list
Aaron Meurer added the comment:
The issue is that that the Anaconda gcc on Windows is a bat file, so it can't
find it. Another fix would be to use find_executable. This is because Anaconda
has patched find_executalbe (which it also would be good to get backported)
diff --git Lib/distutils
Aaron Meurer added the comment:
The OP describes how to get the original code. Anyway, the issue was definitely
fixed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14537
Aaron Meurer added the comment:
Or do you mean the code in CPython doesn't exist any more?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14537
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18199
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23476
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17697
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16482
___
___
Python-bugs-list
Changes by Aaron Meurer asmeu...@gmail.com:
--
nosy: +Aaron.Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24418
___
___
Python-bugs-list
Changes by Aaron Meurer aaron.meu...@continuum.io:
--
nosy: +Aaron Meurer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19918
___
___
Python-bugs
Aaron Meurer added the comment:
I can't believe this issue was closed. Why can't Counter.__lt__(self, other)
just be all(self[i] < other[i] for i in self)?
Just because Counter supports weird stuff shouldn't bill it out. To follow that
logic, we should also remove Counter.subtr
Changes by Aaron Meurer <asmeu...@gmail.com>:
--
nosy: +Aaron.Meurer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25117>
___
_
Aaron Meurer added the comment:
Does this mean that some SymPy object is giving different hash values on
successive calls to hash()? We definitely need to look into this on the SymPy
side.
--
___
Python tracker <rep...@bugs.python.org>
Changes by Aaron Meurer <asmeu...@gmail.com>:
--
nosy: +Aaron.Meurer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24294>
___
_
Changes by Aaron Meurer <asmeu...@gmail.com>:
--
nosy: +Aaron.Meurer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25453>
___
_
Changes by Aaron Meurer <asmeu...@gmail.com>:
--
nosy: +Aaron.Meurer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12345>
___
_
Aaron Meurer added the comment:
If this is implemented, it would be (as far as I can tell) the only thing in
the math module that isn't also implemented in any of the standard external
math libraries. None of numpy, scipy, sympy, or mpmath implement tau (if I'm
missing one that others think
Aaron Meurer added the comment:
I also wonder, if math will be gaining constants that no one uses like tau, if
it will also gain constants that people actually do use (currently math just
has pi, e, inf, and nan). [i for i in dir(numpy) if isinstance(getattr(numpy,
i), float)] reveals
Aaron Meurer added the comment:
Emanuel Barry, that is both untrue and irrelevant (sorry to be blunt, but
that's a total straw man on my and I believe other's argument). The fact that
the only mathematical constants in math are pi and e (nan and inf aren't really
"mathematical"
Changes by Aaron Meurer <asmeu...@gmail.com>:
--
nosy: +Aaron.Meurer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6028>
___
_
New submission from Aaron Meurer:
I'm trying to completely hide an exception from the traceback module. From
reading the source, it looks like the only way to do this is to set
__traceback__ to None (I can also set __suppress_context__ to True, but that
only works if I have another exception
Aaron Meurer <asmeu...@gmail.com> added the comment:
I guess I would expect that to be captured by the number of zeros printed (and
obviously doing a string format operation with a set number of digits destroys
that information).
--
___
New submission from Aaron Meurer <asmeu...@gmail.com>:
>>> '{:+.19e}'.format(0.)
'+0.000e+00'
>>> import decimal
>>> '{:+.19e}'.format(decimal.Decimal(0))
'+0.000e+19'
Note the decimal uses e+19 instead of e+00. Obviously i
Aaron Meurer <asmeu...@gmail.com> added the comment:
I meant that format() destroys information in a decimal in general. Obviously
if you have n digits of precision and format with m < n, then you lose
information.
I also can't help but feel that we're mixing up "traili
New submission from Aaron Meurer <asmeu...@gmail.com>:
Take the following scenario which happened to me recently. I am trying to debug
an issue on Travis CI involving environment variables. Basically, I am not sure
if an environment variable is being set correctly. So in my code, I put
Aaron Meurer <asmeu...@gmail.com> added the comment:
Serhiy, isn't option 4?
4. Make KeysView.__repr__ show list(self). Add a custom wrapper for Shelf's
KeysView so that it doesn't do this.
This seems to be what Victor is suggesting. It makes the most sense to me for
the commo
Aaron Meurer <asmeu...@gmail.com> added the comment:
Can't third party code write their own proxies? Why do we have to do that?
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Aaron Meurer <asmeu...@gmail.com> added the comment:
So the best fix is to just override keys() in the _Environ class, so that it
returns an EnvironKeysView class that overrides __repr__?
--
___
Python tracker <rep...@bugs.python.or
New submission from Aaron Meurer <asmeu...@gmail.com>:
inspect.getsource(datetime) shows the Python source code for datetime, even
when it is the C extension. This is very confusing.
I believe it's because _datetime is used to override everything in datetime at
the end of the file
Aaron Meurer <asmeu...@gmail.com> added the comment:
If it's of any interest to this discussion, for SymPy (for some time) we have
used a custom subclass of DeprecationWarning that we enable by default
https://github.com/sympy/sympy/blob/master/sympy/utilities/exceptions.py. I
don'
New submission from Aaron Meurer <asmeu...@gmail.com>:
Here are the steps to reproduce this:
- Compile and link Python against readline version 7.0 or higher.
- Add
set enable-bracketed-paste on
to your ~/.inputrc
- Start python and paste the following two lines. Make sure to use a te
Aaron Meurer added the comment:
I see. I haven't dug much into the argoarse source, so I don't have a good feel
for how feasible such a tool would be to write. Such refactoring would also be
useful for generating HTML or RST for the help. I've previously used help2man
and man2html
Aaron Meurer added the comment:
Couldn't such a tool exist outside the standard library. I'm thinking a
function that you would import and wrap the parser object, similar to how
argcomplete works (https://argcomplete.readthedocs.io/en/latest/index.html).
The downside is that developers
Aaron Meurer added the comment:
I would suggest adding this to the what's new document
https://docs.python.org/3.7/whatsnew/3.7.html. The change affects user-facing
code (the exact_type attribute of TokenInfo is OP for ... and -> tokens prior
to this patch).
I would also point
Aaron Meurer added the comment:
You can download the branch for a pull request even if the repo is deleted
using this https://stackoverflow.com/a/28622034/161801. That will let you keep
the original commits intact.
--
nosy: +asmeurer
___
Python
Aaron Meurer added the comment:
Is it expected behavior that comments produce NEWLINE if they don't have a
newline and don't produce NEWLINE if they do (that is, '# comment' produces
NEWLINE but '# comment\n' does not)?
--
nosy: +asmeurer
New submission from Aaron Meurer :
I am getting a Fatal Python error: Cannot recover from stack overflow. running
the SymPy tests on a branch of mine where the tests fail. I have reproduced
this in Python 3.6.7, as well as CPython master
(fc96e5474a7bda1c5dec66420e4467fc9f7ca968).
Here
Aaron Meurer added the comment:
I agree with Raymond that third party libraries are not ready for this.
My biggest issue is that the way Python warns about this makes it very
difficult for library authors to fix this. Most won't even notice. The problem
is the warnings are only shown once
Aaron Meurer added the comment:
I agree. Please someone else do that. I don't know what already has issues and
I unfortunately don't have time right now to help out with any of this.
I simply mentioned all these things as arguments why Python should not (yet)
make these warnings errors
Aaron Meurer added the comment:
This looks like the same issue I mentioned here
https://bugs.python.org/msg344764
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue37
Aaron Meurer added the comment:
This seems related. It's also possible I'm misunderstanding what is supposed to
happen here.
If you create test.py with just the 2 lines:
"""
a
and run python test.py from CPython master, you get
$./python.exe test.py
File "/Users/a
Aaron Meurer added the comment:
Are there issues tracking the things I mentioned, which should IMO happen
before this becomes a hard error (making the warnings reproduce even if the
file has already been compiled, and making warning message point to the correct
line in multiline strings
Aaron Meurer added the comment:
Well paradoxically, the bugs that this prevents are the ones it doesn't warn
about. If someone writes '\tan(x)' thinking it is a string representing a LaTeX
formula for the tangent of x, they won't realize that they actually created a
string with a tab plus
Aaron Meurer added the comment:
Raymond, are you in agreement that these warnings should at some point
eventually become syntax errors?
--
___
Python tracker
<https://bugs.python.org/issue32
New submission from Aaron Meurer :
This is tested in CPython master. The issue also occurs in older versions of
Python.
>>> ast.dump(ast.parse('f"{x}"'))
"Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='x',
ctx=Load()), convers
Aaron Meurer added the comment:
Related issue https://bugs.python.org/issue32019
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue39
Aaron Meurer added the comment:
The same thing occurs with specifiers like {a!r}.
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue35
New submission from Aaron Meurer :
This discussion started at https://github.com/python/cpython/pull/19503
(actually on Twitter https://twitter.com/asmeurer/status/1289304407696261120),
but Guido asked me to move it bpo.
Alongside the implementation of Python 3.9's new PEG parser, a new
Aaron Meurer added the comment:
> It's not entirely clear to me what you are trying to do (what is the output
> you are hoping to get?) but this looks more like a question than a bug
> report, so I am closing this issue. If this is still relevant, I'd suggest
> you ask on the
Aaron Meurer added the comment:
I think I found another way to achieve what I was trying to do, which is why I
never pursued this. But I still think it's a bug.
__traceback__ = None isn't documented anywhere that I could find, so I was only
able to deduce how it should work from reading
Aaron Meurer added the comment:
I don't think it's helpful to make such a literalistic interpretation. Just
because the variable is called "traceback" doesn't mean it should apply only to
the things that are *technically* a traceback (and I don't agree anyway that
the line
Aaron Meurer added the comment:
Neither of those things preclude the possibility of the traceback module doing
a better job of printing tracebacks for exceptions where __traceback__ = None.
--
___
Python tracker
<https://bugs.python.
Aaron Meurer added the comment:
Is find_executable() going to be extracted from distutils to somewhere else?
It's one of those functions that is useful outside of packaging, and indeed,
I've seen it imported in quite a few codes that aren't related to packaging. If
so, the patch I mentioned
New submission from Aaron Meurer :
$ ./python.exe -m compileall doesntexist
Listing 'doesntexist'...
Can't list 'doesntexist'
$ echo $?
0
It's standard for a command line tool that processes files to exit nonzero when
given a directory that doesn't exist.
--
messages: 396087
nosy
Aaron Meurer added the comment:
A quick glance at the source shows that it still imports __main__ at the
top-level. I have no idea how legitimate it is that the App Engine (used to?)
makes it so that __main__ can't be imported.
--
nosy: +asmeurer
Change by Aaron Meurer :
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue43420>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aaron Meurer added the comment:
I'm surprised to hear that the "typical use-case" of Fraction is fractions
converted from floats. Do you have evidence in the wild to support that?
I would expect any application that uses fractions "generically" to run into
the same sor
Aaron Meurer added the comment:
Instead of enabling it by default, why not just keep it but emulate the old
behavior by splitting and buffering the input lines? That way you still get
some of the benefits of bracketed paste, i.e., faster pasting, but without the
hard work of fixing the REPL
Aaron Meurer added the comment:
To reiterate some points I made in the closed issues
https://bugs.python.org/issue42819 and https://bugs.python.org/issue32019.
A simple "fix" would be to emulate the non-bracketed paste buffering. That is,
accept the input using bracketed paste,
Aaron Meurer added the comment:
When talking about making exit only work when typed at the interpreter,
something to consider is the confusion that it can cause when there is a
mismatch between the interactive interpreter and noninteractive execution,
especially for novice users. I've seen
Change by Aaron Meurer :
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue42109>
___
___
Python-bugs-list mailing list
Unsubscribe:
86 matches
Mail list logo