Terry J. Reedy added the comment:
I believe the patch works slightly better on my system with the above mentioned
block uncommented. The problem being addressed is this. The editor sendx a set
command to the vertical scrollbar after *any* action that affects the lines
displayed. We intercept
Serhiy Storchaka added the comment:
ZipFile's constructor and ZipFile.open() can raise NotImplementedError,
RuntimeError, EOFError, IOError, OSError or its subclasses, or any exception
raised from underlying file object, including TypeError and AttributeError.
ZipExtFile.read() can raise
Jason Heeris added the comment:
Python documentation never document all possible exceptions raised by a
method.
No, but clearly *some* exceptions are documented, and presumably there's some
reasoning behind which are and aren't.
In this case, the NotImplemented error is there by design.
New submission from Ralph Broenink:
In Python 3.2, context manager support for ZipFile was added. However, I would
also love the ability for ``ZipFile.open`` to be used as a context manager,
e.g.:
from zipfile import ZipFile
with ZipFile(test.zip, r) as z:
with
Serhiy Storchaka added the comment:
This is already implemented.
with ZipFile(Lib/test/zip_cp437_header.zip, r) as z:
... with z.open(filename_without.txt, r) as f:
... print(f.read())
... print(f.closed)
...
b'EOF\r\n'
True
--
components: +Library (Lib) -Extension
Sean McCully added the comment:
Is special casing the special attrs a permament enough solution?
--
keywords: +patch
nosy: +seanmccully
Added file: http://bugs.python.org/file36286/issue22138.patch
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: commit review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21091
___
___
Ezio Melotti added the comment:
Thanks for the patch, however I don't think this is a robust solution.
Other objects might have undeletable attributes too.
The current code can delete an attribute without restoring it so an easy
solution would be removing the hasattr() check, but that seems to
Michael Foord added the comment:
It might have to be. There's no general purpose solution that will fit every
possible behaviour for a Python descriptor I'm afraid.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22138
Ezio Melotti added the comment:
If the HTML output was fine, what is the purpose of the change in pyspecific.py?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22150
___
Ralph Broenink added the comment:
Perhaps this should be documented then :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22154
___
___
Serhiy Storchaka added the comment:
May be.
--
assignee: - docs@python
components: +Documentation -Library (Lib)
keywords: +easy
nosy: +docs@python
priority: normal - low
resolution: out of date -
stage: resolved - needs patch
status: closed - open
type: enhancement - behavior
New submission from Martin Panter:
The only documentation on “createfilehandle” and friends that I can find looks
like it needs updating:
https://docs.python.org/release/3.4.0/faq/gui.html#can-i-have-tk-events-handled-while-waiting-for-i-o
I have been using the equivalent of this instead, for
Changes by Martin Panter vadmium...@gmail.com:
--
title: Out of date code example for tkinter's createfilehandle - Out of date
code example for tkinter's createfilehandler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22155
Martin Panter added the comment:
See Issue 22155 for fixing the createfilehandler FAQ documentation
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3638
___
STINNER Victor added the comment:
Since my argument clinic patch hijacked this issue, I created a new one for
fix_warnings.patch: issue #22156.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22120
New submission from STINNER Victor:
The issue #22110 enabled more compiler warnings. Attached patch tries to fix
most of them on Linux.
--
files: fix_warnings.patch
keywords: patch
messages: 224924
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: Fix compiler
Jean-Paul Calderone added the comment:
Please do *not* add me to the nosy list of any issues.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com:
--
nosy: -exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
___
Berker Peksag added the comment:
Sorry, I forgot to explain that part of the patch. See
broken-deprecated-removed.png. The Deprecated since version 3.5, will be
removed in 3.6 paragraph should be in the first line, not in the second line
(like the deprecated directive).
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22155
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Extension Modules, Interpreter Core
nosy: +serhiy.storchaka
stage: - patch review
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22156
Mark Dickinson added the comment:
Mark: it's not really ready for a patch, since there's no agreement yet on how
best to solve this. In fact, I'm tempted to close as wont fix: the argument
is that the math module consists for the most part only of thin wrappers around
the platform math
Michael Foord added the comment:
And yes, there's deliberate proxy object support in mock.patch (django settings
being one specific use-case).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22138
New submission from snehal:
On ppc64le architecture I see following error with
TAR : https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
==
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
snehal added the comment:
I have libffi installed on system
root@beta1:/home/ubuntu/python/Python-3.4.1# dpkg -l | grep libffi
ii libffi-dev:ppc64el
3.1~rc1+r3.0.13-12 ppc64el Foreign Function
Interface library
Antoine Pitrou added the comment:
Perhaps Glyph wants to chime in :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: amaury.forgeotdarc -
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6422
___
Antoine Pitrou added the comment:
Would still be nice to have something like this. The timeit module API is still
crippled, especially now that from __main__ import * doesn't work in a
function anymore.
--
stage: patch review - needs patch
versions: +Python 3.5 -Python 3.3
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22148
___
___
Changes by Claudiu Popa pcmantic...@gmail.com:
Added file: http://bugs.python.org/file36288/issue22080.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22080
___
Claudiu Popa added the comment:
The new patch fixes the issues found by Zachary. Thanks for the review!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22080
___
Vajrasky Kok added the comment:
Okay, here is the patch based on Serhiy's suggestion.
--
keywords: +patch
Added file: http://bugs.python.org/file36289/silent_warning_shutil_rmtree.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset c46ad743bcb4 by Serhiy Storchaka in branch '2.7':
Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particular
http://hg.python.org/cpython/rev/c46ad743bcb4
New changeset c1ca1c4c131b by Serhiy Storchaka in branch '3.4':
Issue
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21975
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22035
___
___
Serhiy Storchaka added the comment:
Antoine, are you still oppose to this patch?
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16465
___
Serhiy Storchaka added the comment:
Raymond, do you have time for the review? It will be easier to support both
implementation at the same time, than change only Python implementation and
asynchronously update the patch with the risk to lost changes in C
implementation.
I think we should
Antoine Pitrou added the comment:
The patch adds complication to the already complicated memory management of
dicts. It increases maintenance burden in critical code.
Have we found any case where it makes a tangible difference?
(I'm not talking about timeit micro-benchmarks)
--
nosy:
Changes by Antoine Pitrou pit...@free.fr:
--
priority: low - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 217485e80a32 by Serhiy Storchaka in branch '2.7':
Issue #18004: test_overflow in test_list by mistake consumed 40 GiB of memory
http://hg.python.org/cpython/rev/217485e80a32
--
nosy: +python-dev
___
Antoine Pitrou added the comment:
I think a lock is still needed for cache misses. The dict operations (set and
del) can release the GIL (as well as course as the PyObject_Call()), therefore
you might end up with duplicate list links for a given key.
(and given cache misses are supposed to be
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18004
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
dependencies: -Misc fixes and cleanups in archiving code in shutil and
test_shutil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
Antoine Pitrou added the comment:
Isaac, thanks for the reference. I'm reopening the issue for discussion
(although I'm still not convinced this would be actually a good thing).
May I ask you to post on the python-dev mailing-list for further feedback?
--
status: closed - open
Roundup Robot added the comment:
New changeset e57db221b6c4 by Serhiy Storchaka in branch 'default':
Issue #5411: Added support for the xztar format in the shutil module.
http://hg.python.org/cpython/rev/e57db221b6c4
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset a47996c10579 by Serhiy Storchaka in branch 'default':
Issue #5411: Fixed version number.
http://hg.python.org/cpython/rev/a47996c10579
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
resolution: rejected -
type: - behavior
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21039
Serhiy Storchaka added the comment:
Oh, my fault. Thank you Antoine!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
Antoine Pitrou added the comment:
Thank you Serhiy! You need to fix the version number in the versionchanged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
type: - behavior
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14061
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16314
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10803
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21585
___
___
Serhiy Storchaka added the comment:
Raymond, what is your opinion?
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18844
___
Serhiy Storchaka added the comment:
The documentation says:
When these functions are able to determine
what type of sound data is stored in a file,
they return a :func:`~collections.namedtuple`, containing five attributes:
(``type``, ``sampling_rate``, ``channels``,
``frames``,
Claudiu Popa added the comment:
Thanks.
--
Added file: http://bugs.python.org/file36290/issue18615_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18615
___
Antoine Pitrou added the comment:
I don't want to speak for Raymond, but the proposed API looks good, and it
seems Roulette Wheel 2 should be the implementation choice given its
characteristics (simple, reasonably good and balanced performance).
--
Serhiy Storchaka added the comment:
Is this the only place in tests which emits deprecation warnings on Windows?
--
assignee: - serhiy.storchaka
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20056
Glyph Lefkowitz added the comment:
I don't have a whole lot to add. I strongly recommended that this be done this
way twice, once when ssl was added to Python and once when ssl was added to
tulip, so I'm glad to see it's happening now. Regarding the specific
implementation I am unlikely to
Serhiy Storchaka added the comment:
Roulette Wheel 2 has twice slower initializations than Roulette Wheel, but
then generates every new item twice faster.
It is possible to implement hybrid generator, which yields first item using
Roulette Wheel, and then rescales cumulative_dist and
Antoine Pitrou added the comment:
The setup cost of RW2 should always be within a small constant multiplier of
RW's, so I'm not sure it's worth the hassle to complicate things. But it's your
patch :)
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Why not use the buffer API instead?
--
assignee: theller -
nosy: +pitrou, skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10803
___
Serhiy Storchaka added the comment:
Changes look simple and straightforward. LGTM.
It would be good also move tests into the Lib/test/test_ctypes subdirectory and
eliminate Lib/test/test_ctypes.py (may be in separate issue). And may be move
initialization and verbose printinting in
Serhiy Storchaka added the comment:
Non-generator weighted_choice() function is purposed to produce exactly one
item. This is a use case for such optimization.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18844
Ezio Melotti added the comment:
LGTM.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22150
___
___
Ned Deily added the comment:
When you built 3.4.1, did the _ctypes module build correctly? What happens
when you try to import ctypes?
python3.4 -c 'import ctypes'
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Serhiy Storchaka added the comment:
It would be good also move tests into the Lib/test/test_ctypes subdirectory
and eliminate Lib/test/test_ctypes.py (may be in separate issue).
I plan to do so as part of #10572, if approved (or if there's no
vehemently
Serhiy Storchaka added the comment:
Because it is simpler and more efficient. The buffer API requires the releasing
of buffer. Correct tracking the ownership of the buffer requires larger and
more complicated patch. Even if support for general buffers will be added, I
suppose it will be worth
Lita Cho added the comment:
Hi Serhiy,
This patch was made while I was learning tkinter. I figured out how to run the
tests twice while changing wantobjects variable without creating new tests.
Fortunately, all the tests seem to fast when wantobjects is 0 or 1.
The only annoying thing is
New submission from Milan Oberkirch:
This issue depends on issue 21725 for the communication with the client and
issue 22027 for communicating with the remote server.
I think I can come up with a patch for the default branch which is applicable
but will not run without the two other issues
Yclept Nemo added the comment:
Well that won't work. Example:
import argparse
class TestAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
print(default: {}({})\tdest: {}({}).format(self.default,
type(self.default), getattr(namespace,
Elena Oat added the comment:
Attached is the patch that tries to solve the issue for the strings, tuples,
lists and dictionaries. Tuples, lists and dictionaries use the same value for
the threshold. There's a helper method in the tests that is generic to all
mentioned types.
This issue was
Mark Dickinson added the comment:
+1 for the 'namespace' builtin. It looks as though whoever wrote
`SimpleNamespace.__repr__` anticipated this:
ns = types.SimpleNamespace(a=3, b=4)
ns
namespace(a=3, b=4)
--
nosy: +mark.dickinson
___
Python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22123
___
___
New submission from Milan Oberkirch:
I fixed this for smtpd.DebuggingServer in the patch for issue 21725 but think
it is an independent issue which is resolvable with a small patch.
--
components: Library (Lib)
files: decode_data_proxy_debugging_server.patch
keywords: patch
messages:
Nick Coghlan added the comment:
types.SimpleNamespace was added as an implementation detail of the
sys.implementation PEP. It's not a builtin yet, solely because we get far
fewer arguments about the contents of the types module than we do builtins :)
I'd be +1 on a PEP to also expose it as a
Changes by Milan Oberkirch milan...@oberkirch.org:
--
keywords: +patch
Added file: http://bugs.python.org/file36294/pp_smtputf8.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22158
___
Changes by Milan Oberkirch milan...@oberkirch.org:
Removed file:
http://bugs.python.org/file36159/smtpd_remove_deprecated_attrs_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22027
___
paul j3 added the comment:
In my suggestion I used
if 'current_value is default':
without going into detail. The use of an 'is' test for integer values is
tricky, as discussed in http://bugs.python.org/issue18943
int(42) is 42# True
int(257) is 257 # False
As with your
Barry A. Warsaw added the comment:
On Aug 06, 2014, at 09:43 PM, Nick Coghlan wrote:
I'd be +1 on a PEP to also expose it as a namespace builtin.
Is a PEP necessary? Seems like a rather isolated and simple enhancement.
--
___
Python tracker
Nick Coghlan added the comment:
It's a new builtin, so I think at least a simple PEP is needed for
traceability. The existence of types.SimpleNamespace should let us duck 99%
of the bikeshedding - it's a new name for an existing type, not a new type.
--
Antoine Pitrou added the comment:
abstract_test_class anyone?
(or abstractTestClass if that looks more consistent)
(not that I would need it myself!)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
Antoine Pitrou added the comment:
Agreed that a PEP would be necessary, even if it ends up sweet and simple.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22123
___
Roundup Robot added the comment:
New changeset 87f940e85cb0 by Antoine Pitrou in branch 'default':
Issue #22116: C functions and methods (of the 'builtin_function_or_method'
type) can now be weakref'ed. Patch by Wei Wu.
http://hg.python.org/cpython/rev/87f940e85cb0
--
nosy:
Antoine Pitrou added the comment:
I have committed your patch. Thank you very much for contributing!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Alex Gaynor:
https://www.openssl.org/news/secadv_20140806.txt
--
components: Interpreter Core, Library (Lib)
keywords: security_issue
messages: 224976
nosy: alex, benjamin.peterson, steve.dower
priority: normal
severity: normal
status: open
title: Windows installers
Changes by Antoine Pitrou pit...@free.fr:
--
dependencies: -move regrtest over to using more unittest infrastructure
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15974
Ezio Melotti added the comment:
abstractTestClass/abstractBaseClass were up next in the list of names that I
was considering, but they are not too explicit about the fact the the test case
will get ignored/skipped (especially if one is not familiar iwth the concept
and behavior of abstract
Roundup Robot added the comment:
New changeset 668f6938fb1c by Ezio Melotti in branch '3.4':
#22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.
http://hg.python.org/cpython/rev/668f6938fb1c
New changeset 09f56fdcacf1 by Ezio Melotti in branch 'default':
#22092: merge with
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: michael.foord - ezio.melotti
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 2.7
___
Python tracker
Raymond Hettinger added the comment:
I think we should increase the priority of this issue.
I don't think so at all. The LRU cache we have now is plenty efficient for its
intended use cases (caching I/O bound functions and expensive functions). If
is only unsuitable for functions that are
Antoine Pitrou added the comment:
Le 06/08/2014 21:19, Raymond Hettinger a écrit :
I don't think so at all. The LRU cache we have now is plenty
efficient
for its intended use cases (caching I/O bound functions and expensive
functions). If is only unsuitable for functions that are already
Ned Deily added the comment:
This wouldn't apply to 3.3 since we don't do binary installers for branches in
security-fix mode (as discussed recently in Issue21671). Adding Larry as 3.4
release manager.
--
nosy: +larry, ned.deily
priority: normal - high
versions: -Python 3.3
Ezio Melotti added the comment:
Thanks Puneeth for the initial tests and Elena for expanding the fix and the
tests to cover assertDictEqual too.
I reworked a bit Elena's patch to make the checks in case.py more consistent
and simplified the tests.
With the attached patch, unittest_scse.py
Demian Brecht added the comment:
Update based on review comments, added legacy support, fixed the tests up.
--
Added file: http://bugs.python.org/file36296/issue22118_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22118
Roundup Robot added the comment:
New changeset cbcb10123451 by Zachary Ware in branch '2.7':
Issue #22160: Update OpenSSL to 1.0.1i for the Windows build.
http://hg.python.org/cpython/rev/cbcb10123451
New changeset 8219664dd2e4 by Zachary Ware in branch '3.4':
Issue #22160: Update OpenSSL to
Zachary Ware added the comment:
Update should be complete for Windows.
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
Zachary Ware added the comment:
That is, the build process is updated; installers are not my department :)
--
title: Windows installers need to be updated following OpenSSL security reelase
- Windows installers need to be updated following OpenSSL security release
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file36075/ssl-backport.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
1 - 100 of 111 matches
Mail list logo