Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13262
___
___
New submission from Florian Berger:
This issue is related to #12585, #15205 and #8876.
In `distutils/archive_util.py`, in `make_zipfile()`, the code
for dirpath, dirnames, filenames in os.walk(base_dir):
for name in filenames:
path =
Richard Oudkerk added the comment:
A pool should only be used by the process that created it (unless you use a
managed pool).
If you are creating long lived processes then you could create a new pool on
demand. For example (untested)
pool_pid = (None, None)
def get_pool():
New submission from Manuel Jacob:
import io
io.BufferedWriter(io.BytesIO(), 1024, 1024, 1024)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: BufferedReader() takes at most 2 arguments (4 given)
It should be BufferedWriter() instead of BufferedReader().
Manuel Jacob added the comment:
The attached patch fixes the issue. Should I write a test?
--
keywords: +patch
Added file: http://bugs.python.org/file29161/issue17275.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17275
New submission from Christian Heimes:
As of now the hash algorithm for HMAC defaults to MD5. However MD5 is
considered broken. HMAC-MD5 is still ok but shall not be used in new code.
Applications should slowly migrate away from HMAC-MD5 and use a more modern
algorithm like HMAC-SHA256.
Jesús Cea Avión added the comment:
+1.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17276
___
___
Python-bugs-list mailing list
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
___
Python-bugs-list
R. David Murray added the comment:
That would be great. Use assertRaisesRegex and check that the correct name is
in the message string.
--
nosy: +pitrou, r.david.murray
stage: - patch review
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Well, full_url was not designed to be assignable, and is documented that way
(the docs say it is the URL passed to the constructor). Whether or not it is
reasonable to make it assignable is an interesting question.
--
nosy: +r.david.murray
type: -
Antoine Pitrou added the comment:
I don't know how you intend to make `digestmod` mandatory given the current
function signature.
Applications should slowly migrate away from HMAC-MD5 and use a more
modern algorithm like HMAC-SHA256.
Applications don't always choose their cipher. MD5 is
R. David Murray added the comment:
Looks good to to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17249
___
___
Python-bugs-list mailing
Christian Heimes added the comment:
I don't know how you intend to make `digestmod` mandatory given the current
function signature.
That's easy:
if digestmod is None:
raise TypeError(HMAC needs argument 'digestmod')
--
___
Python tracker
Christian Heimes added the comment:
PS: I don't want to deprecate HMAC-MD5. I just want to deprecate that HMAC
defaults to HMAC-MD5.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17276
Changes by Vladimir Rutsky rutsky.vladi...@gmail.com:
--
nosy: +vrutsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8800
___
___
Demian Brecht added the comment:
It could entirely be my lack of being Dutch that didn't make this obvious
without reading the docs ;)
I guess there's one of three ways that this could go:
To help clarify the intention through code, either
a) Change full_url to _full_url, indicating that
R. David Murray added the comment:
One of those other options is: do nothing :)
Python doesn't normally make things read-only just because mutating them does
nothing useful. Sometimes we make things read-only when mutating them does
nasty stuff, but even then sometimes we don't.
So the real
New submission from Xavier de Gaye:
It seems that using f_trace in the f_lineno getter PyFrame_GetLineNumber(), as
the condition to decide when tracing is active, is incorrect.
See the following two examples.
In the backtrace printed by tracer.py running with python 3.3,
the last entry should
Changes by Xavier de Gaye xdeg...@gmail.com:
Added file: http://bugs.python.org/file29163/generator.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17277
___
Manuel Jacob added the comment:
Added a new patch including tests for the C implementations of BufferedWriter
and BufferedRandom.
--
Added file: http://bugs.python.org/file29164/issue17275_with_test.diff
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
This test was introduced in a4154dd5939a.
--
nosy: +mhammond
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17249
___
Demian Brecht added the comment:
Yes, I realized that I had forgotten to add the do nothing option after
posting but figured it was relatively obvious :)
Python doesn't normally make things read-only just because mutating them does
nothing useful. Sometimes we make things read-only when
Raymond Hettinger added the comment:
The issue is usually with firewalls, security software, socket issues, etc.
While the root problem lies outside IDLE, often the simplest way to get someone
up and running is to use the -n option.
This is one of many annoyances that arise when teaching
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
stage: - needs patch
versions: +Python 2.7 -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17213
Terry J. Reedy added the comment:
#17137 has a patch that will be in 3.3.1, coming soon we hope. If you cannot
build Python on Windows, please retest with the new release.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Your patch is certainly much simpler and more effective than mine; consider
mine withdrawn. I didn't take the simple step of figuring out exactly where
the problem was happening and was just trying to fix the issue without changing
anything in the actual
Changes by Julian Berman julian+python@grayvines.com:
--
nosy: +Julian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9584
___
___
Terry J. Reedy added the comment:
Please give us
1. the exact Python version used. 3.2.3? or something earlier?
2. A minimal but complete example that we can run. What is 'headers'?
3. The complete traceback, not just the last two entries.
4. The result of running with the newer 3.3.0, if you
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +serwy, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17224
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +orsenthil
stage: - test needed
type: - enhancement
versions: -3rd party, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python
3.3, Python 3.5
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
I agree that we should document exactly what is now. Patch replaces first
sentence with Nick's. It is against 3.4, but should be identical for all
versions. Maciej, thanks for reminding us to finally fix this.
--
keywords: +patch
nosy: +terry.reedy
Antoine Pitrou added the comment:
Should probably be Remove, not Removes (we use infinitives to describe the
actions undertaken by a command / option / method ...).
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Chris Withers added the comment:
Barry advised me to open this issue as it's a functional regression from Python
2.
My use case is unit testing code that registers atexit handlers and making sure
the right handlers are registered with the correct parameters.
--
Terry J. Reedy added the comment:
Perhaps '__debug__' need markup, but if so, I don't know how.
And I agree with Antoine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
___
Charles-François Natali added the comment:
Could you please give an example of why this would be a useful addition?
I can see the usage of removing a handler, but the user should know which
handlers are registered.
--
nosy: +neologix
___
Python
Charles-François Natali added the comment:
Barry advised me to open this issue as it's a functional regression from
Python 2.
But it was relying on a private and non documented feature in Python
2, so it's not really a regression.
My use case is unit testing code that registers atexit
Chris Withers added the comment:
I can think of other use cases. Anyway, I'm just glad your opinion isn't the
only one there is ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17186
Antoine Pitrou added the comment:
Shouldn't this issue be closed now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Antoine Pitrou added the comment:
I don't think you want your test suite to run your atexit handlers at exit, so
you should probably mock atexit.register instead.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
The doc is vague on debug output (intentionally so, I suspect).
Any value greater than 0 will cause all currently defined debug output to be
printed to stdout.
I agree that send: and reply: should be formatted the same, so the reply: line
should include the
Charles-François Natali added the comment:
Shouldn't you try to make the permission removal atomic?
Otherwise there's a window of opportunity to exploit the suid bit.
Actually there's already a race even without setuid bit:
http://bugs.python.org/issue15100
All metadat should be set
Terry J. Reedy added the comment:
'%.0f' % 5.5, etc, does the same. I agree that consistent 3.x half to even is
both correct and and in need of better doc to avoid repeated questions and
invalid bug reports.
--
nosy: +terry.reedy
title: locale.format() rounding is not reliable for
Barry A. Warsaw added the comment:
On Feb 22, 2013, at 06:54 PM, Charles-François Natali wrote:
Charles-François Natali added the comment:
Barry advised me to open this issue as it's a functional regression from
Python 2.
But it was relying on a private and non documented feature in Python
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17259
___
___
Mark Dickinson added the comment:
Indeed, in Python 3, round and new-style string formatting both do
round-ties-to-even, by design. Old-style formatting does whatever the
underlying OS does, which is typically round-half-away-from-zero.
Python 2 is a bit more of a mess: in 2.7, new-style
Kim Gräsman added the comment:
Thanks for your response!
I agree that send: and reply: should be formatted the same,
so the reply: line should include the headers *with* the
values.
OK, yeah, that would avoid having to specify request/response for headers as
well, I think.
The current
Terry J. Reedy added the comment:
On win7, the original example and '0' version give
[(23, 0, 0, '', ('::1', 0, 0, 0)), (2, 0, 0, '', ('127.0.0.1', 0))]
I think a testcase would be good.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17218
___
___
Terry J. Reedy added the comment:
I believe the issue of reusing request objects after modification has come up
before, either on the tracker (but I cannot find an issue) or elsewhere.
Senthil may remember better and certainly may have an opinion. I agree that
python-idea would be a better
Terry J. Reedy added the comment:
Arun, to call this a bug, you need to demonstrate a conflict between behavior
and doc, and I do not see that you have.
Richard, are you suggesting that we close this, or do you see an actionable
issue? (a plausible patch to the repository?)
--
nosy:
New submission from maxxedev:
I've been getting sporadic SIGSEGV crashes in _heapqmodule.c
I have not be able to reliably reproduce it, but here is a stacktrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2d51d940 (LWP 13976)]
(gdb) where
#0
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17277
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Extension Modules -Library (Lib)
nosy: +rhettinger, stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17278
___
Mark Dickinson added the comment:
Bah. Ignore me; I don't know what I'm talking about. Old-style formatting
does round-half-to-even, too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17259
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - duplicate
status: open - pending
superseder: - Malfunctioning compiled code in Python 3.3 x64
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17212
Ezio Melotti added the comment:
Thanks for the report. Could you also provide a patch?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17213
___
Richard Oudkerk added the comment:
Richard, are you suggesting that we close this, or do you see an
actionable issue? (a plausible patch to the repository?)
I skimmed the documentation and could not see that this restriction has been
documented.
So I think a documentation patch would be a
Charles-François Natali added the comment:
The heapq C implementation is apparently not thread-safe:
PyObject_RichCompareBool() and Py_DECREF() can lead to arbitrary python code
being called, which can result in a context switch.
--
nosy: +neologix
New submission from Terry J. Reedy:
More than once, people have noted on python-list that not all built-in classes
can be subclassed and that there seems to be no way to find out which, other
than to try each. (Today, Daniel Urban pointed out the CPython-specific
'xx.__flags__ (1 10)'.) If
STINNER Victor added the comment:
Shouldn't this issue be closed now?
Correct, I forgot to close it.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +daniel.urban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17279
___
___
Ezio Melotti added the comment:
The bug seems to be in inspect indeed:
import inspect
def fun(x):
del x
return inspect.currentframe()
inspect.formatargvalues(*inspect.getargvalues(fun(10)))
Attached a proof-of-concept patch that replaces the missing value with
deleted. If the
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17272
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Unicode
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17254
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17239
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16040
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16039
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16041
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17180
___
Terry J. Reedy added the comment:
When I wrote my previous message, I was reading the link above and did not
notice that it want to the old 2.7 docs. The 3.x entry is fine.
Perhaps 6.1.3.1. Format Specification Mini-Language could end with
Rounding of floats is the same as for round().
under
Terry J. Reedy added the comment:
Arun, can you suggest a sentence to add and where to add it?
--
assignee: - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15438
Roundup Robot added the comment:
New changeset ad0712f4b3e0 by Ezio Melotti in branch '2.7':
#15438: add a note to math.pow() that suggests using **/pow() for integers.
Patch by Mark Dickinson.
http://hg.python.org/cpython/rev/ad0712f4b3e0
New changeset 7d95a0aa6b5a by Ezio Melotti in branch
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2704
___
Ezio Melotti added the comment:
Shouldn't this still work on 3.3/3.4?
In Modules/arraymodule.c:1562, in the array_tounicode function, there is:
return PyUnicode_FromUnicode((Py_UNICODE *) self-ob_item, Py_SIZE(self));
I think this should be updated to work with the PEP 393 implementation,
Jesús Cea Avión added the comment:
Xavier, could you possibly provide a patch and a test?
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17277
___
Ramchandra Apte added the comment:
On 22 February 2013 22:56, Raymond Hettinger rep...@bugs.python.org wrote:
Raymond Hettinger added the comment:
The issue is usually with firewalls, security software, socket issues,
etc. While the root problem lies outside IDLE, often the simplest way
Terry J. Reedy added the comment:
Roger has submitted patches for some of the items on your list (off topic for
this issue), especially crashes and stalls. Some still need review and commits.
Mac tends to be the most difficult platform to get tests on.
While these would be better discussed on
Roundup Robot added the comment:
New changeset c6ca87fbea39 by Ezio Melotti in branch '2.7':
#17249: convert a test in test_capi to use unittest and reap threads.
http://hg.python.org/cpython/rev/c6ca87fbea39
New changeset 329732a1572f by Ezio Melotti in branch '3.2':
#17249: convert a test in
Ezio Melotti added the comment:
Fixed, thanks for the reviews!
--
assignee: - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 041d0f68c67d by Ezio Melotti in branch '2.7':
#17249: check for the availability of the thread module.
http://hg.python.org/cpython/rev/041d0f68c67d
New changeset 01fdf24c9d75 by Ezio Melotti in branch '3.2':
#17249: check for the availability of
Roundup Robot added the comment:
New changeset 831be7dc260a by Ezio Melotti in branch '3.2':
#17217: fix UnicodeEncodeErrors errors in test_format by printing ASCII only.
http://hg.python.org/cpython/rev/831be7dc260a
New changeset 3eb693462891 by Ezio Melotti in branch '3.3':
#17217: merge with
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17217
Eric Snow added the comment:
The whole AttributeError gaining an attribute seems impractical, but the second
approach still seems reasonable to me. I've attached a rough patch to
demonstrate. If that looks okay, I can flesh it out.
--
keywords: +patch
Added file:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5979
___
___
Ezio Melotti added the comment:
I tried bigrange.py on 3.3/3.4 and I got:
match 1 passed
match 2 passed
match 3 passed
PEP 393 probably fixed this issue.
I don't think it's worth attempting to backport this on 2.7/3.2, so I'm closing
this issue.
--
resolution: - out of date
stage: -
Roundup Robot added the comment:
New changeset 489cfa062442 by Ezio Melotti in branch '3.3':
#12749: add a test for non-BMP ranges in character classes.
http://hg.python.org/cpython/rev/489cfa062442
New changeset c3a09c535001 by Ezio Melotti in branch 'default':
#12749: merge with 3.3.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
type: behavior - enhancement
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3232
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
stage: - needs patch
versions: +Python 3.3, Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5033
___
Albert Zeyer added the comment:
The latest 2.7 hg still crashes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17263
___
___
Python-bugs-list
Albert Zeyer added the comment:
The backtrace:
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7fff8a54e386 __semwait_signal + 10
1 libsystem_c.dylib 0x7fff85e30800 nanosleep + 163
2 libsystem_c.dylib
Ezio Melotti added the comment:
I tried to reproduce the issue and copied /usr/share/zoneinfo/Factory to
/etc/localtime as suggested in msg119762.
Only 2.7 and 3.2 are affected:
import time
time.strftime('%Z', time.gmtime(time.time()))
'Local time zone must be set--see zic manual page'
On
Ezio Melotti added the comment:
The relevant changesets are 1c26eb768293 and e43126c470a7. See also #534864.
--
nosy: +Jeremy.Hylton, fdrake
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6359
Ezio Melotti added the comment:
Is this issue still valid?
--
nosy: +brian.curtin, ezio.melotti
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10560
___
98 matches
Mail list logo