Raymond Hettinger added the comment:
Thanks Mark, that is an excellent suggestion.
--
Added file: http://bugs.python.org/file34719/fraction_pow2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21136
Christian Clauss added the comment:
Makefile and make.bat in
https://github.com/python/pythondotorg/blob/master/docs are NOT the correct
files to modify. It is unclear to where the correct files are.
--
___
Python tracker rep...@bugs.python.org
Médéric Boquien added the comment:
Thanks for the explanations Charles-François. I guess the new API would not be
before 3.5 at least. Is there still a chance to integrate my patch (or any
other) to improve the situation for the 3.4 series though?
--
Andreas Schwab added the comment:
Finn Thain fth...@telegraphics.com.au writes:
until Aranym gets fixed.
Aranym *is* fixed.
Andreas.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Josiah Carlson added the comment:
Quick update before I head to bed.
Thank you for the input, I had gotten the individual async calls working a
couple days ago, and I was just working to replace the communicate() method for
Windows.
Yes, I'm using asyncio._overlapped, though asyncio uses
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20375
___
Terry J. Reedy added the comment:
I am closing this on the theory that the problem has been fixed by one of the
many crash fixers since 3.2. There is certainly insufficient information to act
on. Currently, a problem would have to be demonstrated with 3.4 (or possible
2.7).
--
mirabilos added the comment:
Andreas Schwab dixit:
Finn Thain fth...@telegraphics.com.au writes:
Sorry, what? You seek to veto an upstream Python bug fix because it will
lead to correct binaries that a certain emulator can't handle? That
Yes, because of the value ARAnyM has for Linux/m68k
New submission from Terry J. Reedy:
From #21140, msg215485, Raymond Hettinger: Students commonly save shell
sessions as a record of everything they tried in call. It would nice if there
were a way to trigger a periodic autosave (perhaps every five minutes or so).
--
components: IDLE
Terry J. Reedy added the comment:
Raymond, I open #21152 with your idea. #11838 and #19042 are somewhat related
but timed autosave is not a part of either.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21140
Andreas Schwab added the comment:
The fixed version is here: git://git.code.sf.net/p/aranym/code
Andreas.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
mattip added the comment:
Correct, the other patches were against pypy, sorry.
I now patched and tested against banch 2.7 on the python tree.
--
Added file: http://bugs.python.org/file34720/patch
___
Python tracker rep...@bugs.python.org
Stefan Krah added the comment:
If the asm instructions silently fail, I'd say add a test to ./configure
that detects the broken versions of the emulator in question.
Or don't bother and tell people to use the proper version of
the emulator.
--
___
Antoine Pitrou added the comment:
The PSF is not the author of the docs. Perhaps something like Python
documentation authors.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20969
Andreas Schwab added the comment:
There is nothing that fails. The emulator has always correctly implemented the
insn.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
Serhiy Storchaka added the comment:
I'm wondering why resource warnings are not raised in CPython?
./python -Werror -bb -m test.regrtest -uall test_argparse test_file
test_httpservers
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset b6deab7204e6 by Vinay Sajip in branch '2.7':
Issue #21149: Improved thread-safety in logging cleanup during interpreter
shutdown.
http://hg.python.org/cpython/rev/b6deab7204e6
New changeset b5c91b61991a by Vinay Sajip in branch '3.4':
Issue
New submission from Jason R. Coombs:
In https://bitbucket.org/pypa/setuptools/issue/178, Eduard reported an issue
that setuptools fails to install due to files in its structure with spaces in
the filenames. These files have been around for some time (over two years in
Distribute), but are now
Jason R. Coombs added the comment:
The attached script (issue21153.py) replicates the failure in a Unix
environment with the 'rpm' command present.
--
Added file: http://bugs.python.org/file34721/issue21153.py
___
Python tracker
Thomas Heller added the comment:
My usecase is: I create kind of bound methods with functools.partial.
Apologies for the confusion by using the word 'equivalent'; what I mean is that
partial instances should (IMO) compare equal when they contain the same
function and args/keywords which
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17522
___
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16475
___
___
Kristján Valur Jónsson added the comment:
Closing this as won-t fix. Exiting with running threads is a can of worms.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17969
Kristján Valur Jónsson added the comment:
Closing this issue.
It is largely superseded. For our Python 2.7 branches, we have a custom GIL
lock which can have different inherent semantics from the common Lock. In
particular, we can implement a fair PyGIL_Handoff() function to be used to
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8410
___
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - wont fix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17969
___
___
Jason R. Coombs added the comment:
I tried using the --install-script hook of the bdist_rpm command to update the
INSTALLED_FILES listing to wrap them in quotes, but that doesn't help:
http://paste.jaraco.com/uNMrQ
I also delved into the RPM docs, which don't provide any guidance other than
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17522
___
___
Roundup Robot added the comment:
New changeset cee010fecdf5 by Serhiy Storchaka in branch 'default':
Issue #19505: The items, keys, and values views of OrderedDict now support
http://hg.python.org/cpython/rev/cee010fecdf5
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset 66770f126c71 by Serhiy Storchaka in branch 'default':
Issue #20636: Improved the repr of Tkinter widgets.
http://hg.python.org/cpython/rev/66770f126c71
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Done. Thank you Raymond for your review.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19505
New submission from Armin Rigo:
The docs still say that the default __hash__() is equal to id(), but that's not
the case since Python 2.7.
--
assignee: docs@python
components: Documentation
files: lang-ref-fix.diff
keywords: patch
messages: 215517
nosy: arigo, docs@python
priority:
Serhiy Storchaka added the comment:
Now make fails when system Python is older than 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19655
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
___
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16475
___
___
Roundup Robot added the comment:
New changeset c9239171e429 by Giampaolo Rodola' in branch 'default':
fix #21076: turn signal module constants into enums
http://hg.python.org/cpython/rev/c9239171e429
--
nosy: +python-dev
___
Python tracker
Kristján Valur Jónsson added the comment:
In our 2.7 branches, this approach has been superseded with a natively
impolemented _Condition class. This is even more efficient. It is available
if the underlying Lock implementation is based on pthread locks (not
semaphores).
--
Serhiy Storchaka added the comment:
http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/4131/steps/compile/logs/stdio
gcc -pthread -Xlinker -export-dynamic -o Modules/_testembed
Modules/_testembed.o libpython3.5dm.a -lpthread -ldl -lutil -lm
Jonas Wagner added the comment:
I confirm that this also works with my self-compiled Clang 3.4. -export_dynamic
was the missing option.
Is a good place to document this?
Otherwise, I think this issue can be closed. Thanks a lot for the help!
--
Roundup Robot added the comment:
New changeset 6809b434752a by Benjamin Peterson in branch '2.7':
note that the hash of an arbitrary object is only derived from its address
(closes #21154)
http://hg.python.org/cpython/rev/6809b434752a
--
nosy: +python-dev
resolution: - fixed
stage: -
Roundup Robot added the comment:
New changeset fef890bd60b1 by Brett Cannon in branch '3.4':
Issue #20942: PyImport_ImportFrozenModuleObject() no longer sets
http://hg.python.org/cpython/rev/fef890bd60b1
New changeset a11ec7aaac10 by Brett Cannon in branch 'default':
merge of fix for issue
Georg Brandl added the comment:
The repository is http://hg.python.org/cpython.
If you make a patch, please set the appropriate values in Doc/conf.py, not the
makefiles.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20942
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +tim.peters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15139
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset df5120efb86e by Victor Stinner in branch 'default':
Issue #21076: the C signal module has been renamed to _signal
http://hg.python.org/cpython/rev/df5120efb86e
--
___
Python tracker
Yury Selivanov added the comment:
Any comments on the patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21117
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset b1f5b5d7997f by Victor Stinner in branch 'default':
Issue #21076: sigpending() is not available on Windows
http://hg.python.org/cpython/rev/b1f5b5d7997f
--
___
Python tracker rep...@bugs.python.org
Hanxue Lee added the comment:
This seems to be an issue (bug?) for Python 3.3 When calling json.loads() with
a byte array, this is the error
json.loads(response.data, 'latin-1')
TypeError: can't use a string pattern on a bytes-like object
When I decode the byte array to string
Eli Bendersky added the comment:
On Fri, Apr 4, 2014 at 6:10 AM, Serhiy Storchaka rep...@bugs.python.orgwrote:
Serhiy Storchaka added the comment:
Now make fails when system Python is older than 3.4.
This is why the .h .c files are checked in - someone just building Python
doesn't need
Devin Jeanpierre added the comment:
Please don't take my word for it, but my understanding is that this issue
doesn't apply to 3.4+ since module globals are no longer set to None during
interpreter shutdown. (So all the checks against None could even be deleted.)
--
Mark Dickinson added the comment:
LGTM. (For real this time :-).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21136
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21088
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21090
___
___
Python-bugs-list
STINNER Victor added the comment:
Python 2.7 uses C fopen() and fread(), so what happens probably is that
fread() silences the error.
I see that file_read() checks ferror() if fread() returned 0. I would nice to
run the test in strace and attach the output of strace to see if the EIO is
STINNER Victor added the comment:
Here is a patch for Python 3.5. It should be applied to Python 3.4 too.
--
keywords: +patch
nosy: +gvanrossum, haypo, yselivanov
versions: +Python 3.5
Added file: http://bugs.python.org/file34724/create_connection_close.patch
STINNER Victor added the comment:
BaseEventLoop.create_datagram_endpoint() and
_UnixSelectorEventLoop.create_unix_server() have the same bug.
close2.patch fixes these methods but also modify socketpair() to ensure that
the 2 sockets are closed on error.
I didn't audit the whole asyncio
New submission from STINNER Victor:
_UnixSelectorEventLoop.create_unix_server() can be called with path *and* sock.
In this case, the sock parameter is ignored.
Attached patch changes the method to raise a ValueError, to have the same
behaviour than create_connection().
--
files:
Alexander Belopolsky added the comment:
If datetime.date.strptime(date_string, format) validates format, then it is
*not* equivalent to date(*(time.strptime(date_string, format)[0:3])), is it?
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
translate_script.py: microbenchmark for str.translate() with various length,
charsets (ASCII, latin1, UCS2, UCS4) and percentage of replacement. Result:
---+--+-
Summary | original | writer
STINNER Victor added the comment:
translate_writer_bench.txt: full output of the micro-benchmark.
--
Added file: http://bugs.python.org/file34728/translate_writer_bench.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21118
Serhiy Storchaka added the comment:
- drop optimizations for error handlers different than ignore because there
is no unit tests for them, and str.translate() uses ignore. It's safer to
drop untested optimization.
It is unsafe to do such nontrivial modifications for untested code.
STINNER Victor added the comment:
Oh, I tested the wrong patch :-( Here is the updated benchmark summary:
---+--+---
Summary| original | writer
---+--+---
replace
Roundup Robot added the comment:
New changeset 52b58618199c by Brett Cannon in branch 'default':
Issue #17621: Introduce importlib.util.LazyLoader.
http://hg.python.org/cpython/rev/52b58618199c
--
nosy: +python-dev
___
Python tracker
New submission from Brett Cannon:
importlib.abc.InspectLoader.source_to_code exists on InspectLoader because
InspectLoader.get_code() uses it. But there is technically no reason to leave
it there and not simply move it up to importlib.abc.Loader(). There is also no
reason to not make it a
Roundup Robot added the comment:
New changeset b56341a49eab by Benjamin Peterson in branch '2.7':
make temporary read-only files writable, so rmtree can remove them (#21128)
http://hg.python.org/cpython/rev/b56341a49eab
New changeset 6f1ac58207cc by Benjamin Peterson in branch '2.7':
properly
Changes by Brett Cannon br...@python.org:
--
type: behavior - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21156
___
___
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21128
___
Brett Cannon added the comment:
I went ahead and committed. I realized I could loosen the no create_module()
requirement, but I think it could lead to more trouble than it's worth so I
left it as-is for now. If people says it's an issue we can revisit it.
--
resolution: - fixed
Serhiy Storchaka added the comment:
Both patch are almost equivalent (my patch is much simpler but perhaps
Matthew's approach is more correct in long perspective).
Unfortunately Rietvield doesn't work with Matthew's patch, so I have added my
comments here.
-(!ctx-match_all
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21076
New submission from Brett Cannon:
imp.find_module() should point to importlib.find_spec() instead of
find_loader(). As for imp.load_module() I've started a discussion on import-sig
on how to best handle that.
--
assignee: brett.cannon
components: Documentation
messages: 215547
nosy:
Brett Cannon added the comment:
Sorry, that should have been importlib.util.find_spec().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21157
___
Matthew Barnett added the comment:
-(!ctx-match_all || ctx-ptr == state-end)) {
+ctx-ptr == state-end) {
Why this check is not needed anymore?
After stepping through the code for that regex that fails, I concluded
that the condition shouldn't depend on
Changes by Ned Deily n...@acm.org:
--
nosy: -ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21088
___
___
Python-bugs-list mailing list
Brett Cannon added the comment:
imp.find_module() might also best be updated to point out that
importlib.import_module() exists for those cases where a replacement for
sys.path is not necessary.
As for imp.load_module(), it might also be best to admit that import is simply
not structured to
Roundup Robot added the comment:
New changeset 95d4e8124c6a by Victor Stinner in branch 'default':
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
http://hg.python.org/cpython/rev/95d4e8124c6a
New changeset 03b1dd29b327 by Victor Stinner in branch 'default':
Issue
STINNER Victor added the comment:
New changeset 95d4e8124c6a by Victor Stinner in branch 'default':
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
http://hg.python.org/cpython/rev/95d4e8124c6a
It looks like _PyUnicode_TranslateCharmap() didn't work with error handler
Roundup Robot added the comment:
New changeset 70990e795657 by Victor Stinner in branch '3.4':
Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format
http://hg.python.org/cpython/rev/70990e795657
--
___
Python tracker
Brett Cannon added the comment:
I envision making this happen would also allow for importlib to be updated to
rely on __spec__ when possible, with the idea that sometime in the future we
can deprecate pulling attributes from a module directly and shift to always
working from __spec__.
New submission from Payden Comer:
I am VERY tech saavy, so don't give me an auto reply like I'm stupid (it's
happened before). Sorry for the rude start! Anyhoo, This is the only program on
my pc that does this, tried registry fixes, ms fixit, cmd, services, you named
it I've (most likely)
Changes by Payden Comer thecheater...@gmail.com:
--
title: Windows installer service could not be accessed - Windows installer
service could not be accessed (Python bug!)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21158
Payden Comer added the comment:
Then when installing the 32 bit. (image below:)
--
Added file: http://bugs.python.org/file34730/python bug 2.PNG
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21158
R. David Murray added the comment:
I think it would be helpful for you to email the python-list mailing list.
Hopefully the people there can help you refine your problem report into
something we can tackle. The installer works fine for most people, so the
first thing that we need in order
R. David Murray added the comment:
Sorry, I meant to delete that word 'minimal', since you have told us what you
currently know, but I hit send before I did :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21158
Changes by Thomas Heller thel...@ctypes.org:
--
nosy: +theller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21157
___
___
Python-bugs-list
Maciej Szulik added the comment:
You're right, I'll change this description removing 'This is equivalent...'
sentence from description. I guess the same applies to
time.strptime as well.
--
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20942
___
Terry J. Reedy added the comment:
While the question is reasonable, I agree with Raymond's answer. As a python
programmer, I would not like to see
d.setitem_known_hash(key, hash, d.getitem_known_hash(key, hash) + 1)
Of course, d[key] += 1 already solves the double lookup issue at the Python
Alex Gaynor added the comment:
d[key] += 1 still does two dict lookups, and invokes the hash function twice:
class X(object):
... def __hash__(self):
... print hashed
... return 0
... def __eq__(self, other):
... return True
...
d = {X(): 0}
hashed
d[X()]
hashed
0
d[X()] = 3
Antoine Pitrou added the comment:
Of course, d[key] += 1 already solves the double lookup issue at the
Python level.
What the hell are you talking about?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21101
Éric Araujo added the comment:
Is this a duplicate of #809163 ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21153
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21150
___
___
Python-bugs-list
Éric Araujo added the comment:
It could make sense to add clean, working recipes to e.g. the functools
documentation. The cached_property in the wiki uses a TTL, other like
Pyramid’s reify decorator make properties that ensure the fget function is
called only once per instance, and there may
Éric Araujo added the comment:
imports from previous unittests corrupt the namespace of subsequent unittests
and lead to failures
(usually if there are mock objects in previously imported unit tests)
Can you tell more about this? I haven’t run into this issue with large test
suites that
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21091
___
mirabilos added the comment:
Stefan Krah dixit:
If the asm instructions silently fail, I'd say add a test to ./configure
that detects the broken versions of the emulator in question.
No, the problem is at runtime: Debian is a binary distro, and thus,
packages can get built and/or used on
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - test needed
type: behavior - enhancement
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21130
___
mirabilos added the comment:
Andreas Schwab dixit:
The fixed version is here: git://git.code.sf.net/p/aranym/code
That’s a source repository. I was asking for released tarballs
that have been packaged.
But clearly I have been outvoted by the m68k porters. So please
feel free to go ahead and
Terry J. Reedy added the comment:
I have used both quick link tables and agree that more would be nice in spite
of the added maintenance burden. The re module is one I would like to see
indexed.
--
nosy: +terry.reedy
___
Python tracker
Larry Hastings added the comment:
I retract my veto.
You don't have a veto. Only Guido has that.
Anyhow you have yet to reply to Mr. Schwab's assertion:
The emulator has always correctly implemented the insn.
If that's true, then I don't understand what this whole argument is about.
1 - 100 of 112 matches
Mail list logo