Carol Willing added the comment:
Thanks Berker for pointing out the WIP patch for issue 16544. Issue 16544 seems
a better place than this issue for addressing the ast documentation.
There does not seem to be any additional action items left on this issue so I
recommend closing this issue and
Changes by Zachary Ware zachary.w...@gmail.com:
--
assignee: - yselivanov
nosy: +Arfrever
priority: normal - release blocker
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
Stefan Krah added the comment:
I mean it's clearer to have:
result = long_compare(self, other);
return Py_cmp_to_bool(result, op);
than:
result = long_compare(self, other);
Py_RETURN_RICHCOMPARE(result, 0, op);
This is because in other places, like the proposed use
case in
Berker Peksag added the comment:
Just a suggestion: urlencode already has 5 parameters. We can make quote_via a
keyword-only parameter.
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
Petr Viktorin added the comment:
Conceptually there's a distinction between the two cases, but you can implement
one in terms of the other, so I don't think it's worth adding two
functions/macros here. So let's pick the better API.
Py_cmp_to_bool is better if you already have a cmp-style
Changes by Yury Selivanov yseliva...@gmail.com:
--
assignee: - yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24227
___
___
Zachary Ware added the comment:
Duplicate of #24226.
--
nosy: +zach.ware
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - [3.5 Regression] unable to byte-compile the attached IN.py
___
Python tracker
Roundup Robot added the comment:
New changeset 34523e53a342 by Serhiy Storchaka in branch '2.7':
Issue #24091: Fixed various crashes in corner cases in cElementTree.
https://hg.python.org/cpython/rev/34523e53a342
New changeset 157c4afca186 by Serhiy Storchaka in branch '3.4':
Issue #24091:
Changes by Matthias Klose d...@debian.org:
Added file: http://bugs.python.org/file39418/IN.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
___
___
Matthias Klose added the comment:
looks like a parser issue:
$ for i in $(seq 200); do echo def f$i(x): return (x) foo.py; done
$ python3.5 -m py_compile foo.py
Sorry: IndentationError: too many levels of indentation (foo.py, line 100)
$ for i in $(seq 200); do echo def f$i(x):bar.py; echo
Steve Dower added the comment:
Use !='true' rather than =='', but otherwise it's good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20035
___
Carol Willing added the comment:
Matthias, I've added you to the nosy list for this ast doc enhancements issue.
Reference: msg243484 on Issue 24220.
--
nosy: +mbussonn, willingc
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
New submission from Arfrever Frehtes Taifersar Arahesis:
Revision eeeb666a5365 causes IndentationError: too many levels of indentation
sometimes, e.g. in regenerated IN.py module (e.g. Lib/plat-linux/IN.py).
$ ./python -c 'import IN'
Traceback (most recent call last):
File string, line 1, in
R. David Murray added the comment:
I don't see any particular motivation to make it keyword only.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
___
Roundup Robot added the comment:
New changeset 547bc11e3357 by Serhiy Storchaka in branch '2.7':
Issue #24102: Fixed exception type checking in standard error handlers.
https://hg.python.org/cpython/rev/547bc11e3357
New changeset 68eaa9409818 by Serhiy Storchaka in branch '3.4':
Issue #24102:
Marc-Andre Lemburg added the comment:
On 18.05.2015 15:46, Stefan Krah wrote:
Stefan Krah added the comment:
The problem with this macro is that most of the time it takes the
standard cmp return value {-1,0,1} and converts that into a bool.
For this use case, it might be more
New submission from Matthias Klose:
seen while byte-compiling the attached IN.py on x86_64-linux-gnu.
$ python3.5 -m py_compile IN.py
Sorry: IndentationError: too many levels of indentation (IN.py, line 806)
the very same IN.py is accepted by 3.4.
--
components: Library (Lib)
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24102
___
___
Serhiy Storchaka added the comment:
Greg Ewing suggested to use PyObject_TypeCheck
(http://permalink.gmane.org/gmane.comp.python.devel/153216).
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16544
___
___
Matthias Bussonnier added the comment:
There is an open issue for that: issue 16544. I've talked to Thomas about
merging greentreesnakes to the AST documentation last year and already have a
WIP patch
Ah, Thanks for the link, I see if I can rotate my chair 120deg clockwise and
give a
Stefan Krah added the comment:
The problem with this macro is that most of the time it takes the
standard cmp return value {-1,0,1} and converts that into a bool.
For this use case, it might be more appropriate to use a
static inline function Py_cmp_to_bool().
To put it differently, the macro
Eli Bendersky added the comment:
I'm not sure. This is why I'm proposing asking on python-dev
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19176
___
Berker Peksag added the comment:
Thanks for the report, Matthias.
I can talk to Thomas Kluyver tomorrow about merging green tree snake into the
devguide,
devguide isn't the correct place for such documentation.
or maybe into ast docs. Would that be useful/more acceptable than linking to
Matthias Klose added the comment:
this seems to be caused by the PEP 492 merge in r95969.
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
___
Changes by Matthias Klose d...@debian.org:
--
components: +Interpreter Core -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
___
Serhiy Storchaka added the comment:
Perhaps the code will look simpler if introduce the macro
_PyList_SWAP_ITEMS(list, i, j).
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24221
Serhiy Storchaka added the comment:
Thanks Zachary for fixing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23488
___
___
Tom Hines added the comment:
Done.
On Sun, May 17, 2015 at 8:42 PM, Terry J. Reedy rep...@bugs.python.org
wrote:
Terry J. Reedy added the comment:
Tom, please sign the PSF Contributor Agreement
https://www.python.org/psf/contrib/
https://www.python.org/psf/contrib/contrib-form/
New submission from Al Sweigart:
From the idlelib/idle_test/README.txt file:
The idle_test subdirectory should contain a test_xyz.py for each, where 'xyz'
is lowercased even if xyz.py is not.
However, this means the test file names are inconsistent with the scripts they
test. Of the 20
Serhiy Storchaka added the comment:
Committed simplified version. Thank you Vajrasky for your patch.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Then what to do with the discrepancy between Python and C implementations
(msg238783)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19176
___
New submission from Augie Fackler:
Many things in the OS module work with bytestrings for paths in Python 3, but
tempfile isn't so happy. It'd be very useful to be able to have the same
bytes-in-bytes-out behavior in tempfile as for the os.path.* methods.
This is something we're working
R. David Murray added the comment:
This should (in theory at least) be something we test in our test suite, so I'm
surprised by this result. If you run the test suite do you get any failures?
--
nosy: +r.david.murray
___
Python tracker
Matt Mackall added the comment:
Another way of putting it is:
os.listdir(bytes) - [bytes,...]
os.listdir(unicode) - [unicode,...]
is the usual pattern, and tempfile isn't following it.
--
nosy: +Matt.Mackall
___
Python tracker
Yury Selivanov added the comment:
Thanks! Closing the issue.
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
___
R. David Murray added the comment:
I understand now. The problem is that this would be a backward incompatible
change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24230
___
R. David Murray added the comment:
Would you care to supply a patch? The beta deadline is this coming weekend.
--
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24230
Terry J. Reedy added the comment:
(When replying by email to an email, please remove any quotation, except
possibly for a specific line or two. The message already appears about yours
on the tracker.)
Good. It will take about a week for the * to appear after your name.
As the diff is
New submission from Matthew Wedgwood:
On Darwin, os.mkdir('/') raises IsADirectory. On Linux, the same call raises
FileExistsError. The implementation for os.makedirs() in Python 3.2+ checks
only for the latter when evaluating the exists_ok parameter. This causes
os.makedirs('/',
Arfrever Frehtes Taifersar Arahesis added the comment:
This change works for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24226
___
___
R. David Murray added the comment:
I'm sorry, hit send before I finished thinking. You are saying bytes input are
rejected, so yes this could be fixed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24230
R. David Murray added the comment:
Can you explain what you are looking for in more detail? It isn't obvious to
me what bytes in bytes out means in the context of the tempfile API.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Thomas Kluyver added the comment:
Here's a simple patch that links to Green Tree Snakes from the ast module docs,
using the 'sidebar' directive (that's what the logging module uses to link to
tutorials, which seemed analogous).
I'm still happy to contribute these docs to CPython if people
Augie Fackler added the comment:
Today we're doing something like this:
tmpdir = tempfile.mkdtemp('', 'hgtests.', d and
d.decode('utf-8')).encode('utf-8')
but would rather have
tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d)
# and now tmpdir is a bytestring containing the path to the tmpdir
Ismail Donmez added the comment:
Still a problem with mingw-w64 gcc 5.1 and Python 3.4.3, time to fix this?
--
nosy: +cartman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4709
___
Ethan Furman added the comment:
I'd rather see an `Executor.filter()` myself, but it's Brian Quinlan's call.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24195
___
New submission from Josh Holland:
Path objects already have rename() and replace() methods; it would be useful
for them also to have a copy() method to simplify that operation.
I'll look into putting a patch together this evening.
--
components: Library (Lib)
messages: 243494
nosy:
Yury Selivanov added the comment:
Arfrever, Matthias,
Thanks for reporting this issue. It should now be fixed. Please verify that
it works for your usecase.
--
nosy: +gvanrossum, ncoghlan
___
Python tracker rep...@bugs.python.org
doz added the comment:
I already try to apply patches from http://bugs.python.org/issue22653 . It
don't solve problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24228
___
New submission from doz:
Hello,
Python 3.4.2 triggers a segmentation fault at the starting on my ARM9
platform.
Crash occurs also with 3.3. The version 2.7 don't crash and seems to work
correctly
System is built with buildroot-2015.02 and gcc 4.2.1.
Fault is always reproducible.
Roundup Robot added the comment:
New changeset fb5fcae0cf1f by Yury Selivanov in branch 'default':
Issue 24226: Fix parsing of many sequential one-line 'def' statements.
https://hg.python.org/cpython/rev/fb5fcae0cf1f
--
nosy: +python-dev
___
Python
Eric Snow added the comment:
Thanks for taking a look, Yury. I'll follow up on the ref leak soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
Serhiy Storchaka added the comment:
Path objects are immutable, so the copy method is not needed.
--
nosy: +pitrou, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24229
___
Paul Moore added the comment:
I presume the copy method is intended as a file copy, not for copying the
object. But calling the method copy() is likely to be confusing, precisely as
happened here :-)
--
nosy: +paul.moore
___
Python tracker
Antoine Pitrou added the comment:
Is this pending a review?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23377
___
___
Python-bugs-list
Antoine Pitrou added the comment:
If copy() has a mandatory argument, it can't really be mixed up with an
object-cloning method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24229
___
Antoine Pitrou added the comment:
What's the status on this one? It looks like some review comments need
addressing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12319
___
Ned Deily added the comment:
This appears to be a BSD-ism: I get the same result on FreeBSD 10 as with OS X
10.10. For whatever reason, mkdir('/') returns IsADirectoryError while
mkdir('/other/existing/directory') returns FileExistsError.
--
nosy: +ned.deily
stage: - needs patch
Ralf Schmitt added the comment:
Well, the time to fix this would have been six years ago. The python core
developers have shown a disinterest to fix problems with gcc on windows for a
rather long time. I wouldn't expect this issue to be fixed.
--
Serhiy Storchaka added the comment:
Added os.path.isdir().
Could anybody please run tests on Windows?
--
Added file: http://bugs.python.org/file39421/tempfile_bad_tempdir_3.patch
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
Hi David,
Please see the attached patch. It doesn't make Signature.bind() exceptions look
exactly like system messages, but it's now much closer.
--
keywords: +patch
Added file: http://bugs.python.org/file39422/sig_exc.patch
Changes by Yury Selivanov yseliva...@gmail.com:
--
assignee: - yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24205
___
___
Serhiy Storchaka added the comment:
File renaming is simple and usually atomic operation. File copying is complex
operation. What memory buffer should be used for copying? What to do with
growing files or reading with errors? Should file space be preallocated before
copyiong to decrease
Ned Deily added the comment:
Try building python with debug on:
./configure --with-pydebug [...]
Also, 3.4.2 has been replaced by 3.4.3 which includes the fixes from Issue22653.
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Thank you Arfrever. That was copy-pasted old typo. Fixed in 3d5bf6174c4b and
bc6ed8360312.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
Terry J. Reedy added the comment:
I added from __future__ import print_function to 2.7 PyShell when I
backported the bugfix of #22420. The use of print rather than write is part of
the fix as print is more fault tolerant.
--
resolution: - fixed
stage: needs patch - resolved
status:
Roundup Robot added the comment:
New changeset cebd51686565 by Terry Jan Reedy in branch '2.7':
Issue #24222: Fix regression introduced with idlelib/PyShell.py future print
https://hg.python.org/cpython/rev/cebd51686565
--
nosy: +python-dev
___
R. David Murray added the comment:
Ah! That's why our tests don't catch it.
Is it limited to '/', or is it any (mounted) mount point?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24231
Arfrever Frehtes Taifersar Arahesis added the comment:
In Objects/stringlib/codecs.h in 2 comments U+DC800 should be changed into
U+D800 (from definition of Py_UNICODE_IS_SURROGATE) or U+DC80 (from result of
b\x80.decode(errors=surrogateescape)).
--
Ned Deily added the comment:
It doesn't seem to be true for other mount points; the ones I tried raise
FileExistsError. I suppose one could dig into the OS sources. I see that none
of the FreeBSD or OS X mkdir man pages nor the POSIX 2013 spec document EISDIR
as an expected error from
Christie added the comment:
I'm going to take a look at bringing these docs up to date and including the
changes from issue24033.
--
nosy: +bobcatfish
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18576
Terry J. Reedy added the comment:
This trivial patch fixes a regression I introduced in 2.7.9. It would be nice
if you could pull it into the .10 release. (I would not ask if it were not a
recent regression.)
--
nosy: +benjamin.peterson
___
Christie added the comment:
@BreamoreBoy, it looks like the next step would be to revisit issue15403 and go
through the steps outlined by @ncoghlan.
--
nosy: +bobcatfish
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15376
Berker Peksag added the comment:
Thanks for the patch, Ville.
--
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
New submission from Guido van Rossum:
The special methods __complex__ and __bytes__ are not present on the
corresponding builtin types. Compare this to __int__ and __float__, which do
exist on int and float, respectively. Should we add the eponymous methods to
complex and bytes?
(This came
Terry J. Reedy added the comment:
Easy test case using -c:
\python_d.exe -m idlelib.idle -c from __future__ import division; print(1/2)
0.5
1/2
0
division
_Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
Replace -m idlelib.idle with -i to get interactive interpreter and 1/2
is
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: -schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4709
___
___
Python-bugs-list
Paul Moore added the comment:
Not at all. Mingw support is important for the scientific community, as I
understand it, and I'm willing to help there if I can. That won't be at the
cost of other areas I can contribute to, but I consider packaging as much my
area of expertise as Windows - and
Roundup Robot added the comment:
New changeset fd7ef3972215 by Berker Peksag in branch '3.4':
Issue #24232: Fix typos. Patch by Ville Skyttä.
https://hg.python.org/cpython/rev/fd7ef3972215
New changeset fc2eed9fc2d0 by Berker Peksag in branch 'default':
Issue #24232: Fix typos. Patch by Ville
Berker Peksag added the comment:
Thanks for the patch, Ville.
--
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
Martin Panter added the comment:
Terry’s “dictionary implementing the namespace” version would work for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19737
___
Terry J. Reedy added the comment:
Related issue #22893 is about __future__ statements in startup code having
effect on future interactive input in the same way as it does with Python
itself. I think a pure Shell start/restart (cntl-F6) should be handled
separately from a restart that is a
New submission from Devin Jeanpierre:
If a subclass has abstract methods, it fails to instantiate... unless it's a
metaclass, and then it succeeds.
import abc
class A(metaclass=abc.ABCMeta):
... @abc.abstractmethod
... def foo(self): pass
...
class B(A): pass
...
B()
Traceback
Giampaolo Rodola' added the comment:
For what it's worth I dropped support for mingw32 in psutil for exact the same
reasons. As such I cannot imagine how hard could it be to add and maintain
support for mingw in a much larger project as Python.
--
R. David Murray added the comment:
Please note that Paul is pretty new to the core team, and is a crossover with
the packaging folks (which is mainly where the mingw issues lie). What this
means to the mingw community is that with Paul on the core team and willing to
work on the support, the
Mark Lawrence added the comment:
Does this mean scarce Windows resources being diverted off to what I consider a
side show? Unless it's categorically stated that mingw is officially supported
in which case fine, provided the experts index and everything else associated
with official support
New submission from Ville Skyttä:
Various doc spelling fixes in the attached patch.
--
assignee: docs@python
components: Documentation
files: spelling.patch
keywords: patch
messages: 243536
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: Speling fixes
type:
New submission from Ville Skyttä:
Would be nice to link to getfqdn() instead of saying see above for it in
socket.gethostname() docs.
--
assignee: docs@python
components: Documentation
files: getfqdnlink.patch
keywords: patch
messages: 243537
nosy: docs@python, scop
priority: normal
Roundup Robot added the comment:
New changeset f6e7953b5431 by Berker Peksag in branch '3.4':
Issue #24233: Add a proper link to socket.getfqdn() documentation.
https://hg.python.org/cpython/rev/f6e7953b5431
New changeset 0d6902537062 by Berker Peksag in branch 'default':
Issue #24233: Add a
Martin Panter added the comment:
I think the patch is okay. Just beware that next(iter(kwargs)) can return
different names if there is more than one unexpected argument, so the error
message could vary. But it looks like the test cases are only when there is
exactly one extra argument, so no
Changes by Aki Sasaki a...@escapewindow.com:
--
nosy: +escapewindow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 3cc368d334c5 by Yury Selivanov in branch 'default':
Issue 24205: Improve inspect.Signature.bind() error messages.
https://hg.python.org/cpython/rev/3cc368d334c5
--
nosy: +python-dev
___
Python tracker
Ma Lin added the comment:
This is not a de-facto standard, it should be fixed.
I already posted this infomation on a Taiwan Python community, let's wait their
inspection.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24117
Changes by Yury Selivanov yseliva...@gmail.com:
--
priority: normal - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22970
___
___
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24205
___
Yury Selivanov added the comment:
Nick, what do you think of this one?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20691
___
___
Gregory P. Smith added the comment:
backwards compatibility with what? i'd like to just remove tempfile.template
in 3.5 as part of addressing issue24230.
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24230
___
Gregory P. Smith added the comment:
it seems a little messy to code this up the way Lib/tempfile.py is written but
i'll take a stab at it tonight. Probably via parallel implementations of the
methods internally rather than conditional logic throughout given how they work.
--
1 - 100 of 109 matches
Mail list logo