[issue10560] Fixes for Windows sources

2013-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Is this issue still valid? -- nosy: +brian.curtin, ezio.melotti status: open -> pending ___ Python tracker ___ ___

[issue6359] pyexpat.c calls trace function incorrectly for exceptions

2013-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: The relevant changesets are 1c26eb768293 and e43126c470a7. See also #534864. -- nosy: +Jeremy.Hylton, fdrake ___ Python tracker ___ ___

[issue10213] tests shouldn't fail with unset timezone

2013-02-22 Thread Ezio Melotti
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'

[issue17263] crash when tp_dealloc allows other threads

2013-02-22 Thread Albert Zeyer
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 0x00

[issue17263] crash when tp_dealloc allows other threads

2013-02-22 Thread Albert Zeyer
Albert Zeyer added the comment: The latest 2.7 hg still crashes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5033] setup.py crashes if sqlite version contains 'beta'

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker ___ __

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: behavior -> enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-lis

[issue12749] lib re cannot match non-BMP ranges (all versions, all builds)

2013-02-22 Thread Roundup Robot
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. http://hg

[issue12749] lib re cannot match non-BMP ranges (all versions, all builds)

2013-02-22 Thread Ezio Melotti
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: -

[issue5979] strptime() gives inconsistent exceptions

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1615] descriptor protocol bug

2013-02-22 Thread Eric Snow
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: http://bugs.python.o

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Roundup Robot
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

[issue17249] reap threads in test_capi

2013-02-22 Thread Roundup Robot
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 th

[issue17249] reap threads in test_capi

2013-02-22 Thread Ezio Melotti
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 ___

[issue17249] reap threads in test_capi

2013-02-22 Thread Roundup Robot
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 t

[issue16123] IDLE - deprecate running without a subprocess

2013-02-22 Thread Terry J. Reedy
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

[issue16123] IDLE - deprecate running without a subprocess

2013-02-22 Thread Ramchandra Apte
Ramchandra Apte added the comment: On 22 February 2013 22:56, Raymond Hettinger 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 to > get someone up

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Xavier, could you possibly provide a patch and a test? -- nosy: +jcea ___ Python tracker ___ ___ Py

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-22 Thread Ezio Melotti
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, rat

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue15438] document that math.pow is inappropriate for integers

2013-02-22 Thread Roundup Robot
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 '

[issue15438] document that math.pow is inappropriate for integers

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17273] multiprocessing.pool.Pool task/worker handlers are not fork safe

2013-02-22 Thread Terry J. Reedy
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 __

[issue17259] Document round half to even rule for floats

2013-02-22 Thread Terry J. Reedy
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

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16041] poplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16042] smtplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16039] imaplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16040] nntplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16038] ftplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17239] XML vulnerabilities in Python

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16037] httplib: header parsing is not delimited

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17254] add thai encoding aliases to encodings.aliases

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti stage: -> needs patch type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ __

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17246] cgitb fails when frame arguments are deleted (due to inspect bug I think)

2013-02-22 Thread Ezio Melotti
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 . If the approach is ok

[issue17279] Document which named built-in classes can be subclassed

2013-02-22 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +daniel.urban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-22 Thread STINNER Victor
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 ___ ___

[issue17279] Document which named built-in classes can be subclassed

2013-02-22 Thread Terry J. Reedy
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)'.) I

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-22 Thread Charles-François Natali
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

[issue17273] multiprocessing.pool.Pool task/worker handlers are not fork safe

2013-02-22 Thread Richard Oudkerk
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

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2013-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report. Could you also provide a patch? -- nosy: +ezio.melotti ___ Python tracker ___

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> duplicate status: open -> pending superseder: -> Malfunctioning compiled code in Python 3.3 x64 ___ Python tracker ___ _

[issue17259] Document round half to even rule for floats

2013-02-22 Thread Mark Dickinson
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 ___ __

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules -Library (Lib) nosy: +rhettinger, stutzbach ___ Python tracker ___ ___

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17278] SIGSEGV in _heapqmodule.c

2013-02-22 Thread maxxedev
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 0x2b617

[issue17273] multiprocessing.pool.Pool task/worker handlers are not fork safe

2013-02-22 Thread Terry J. Reedy
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: +

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread Terry J. Reedy
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 pla

[issue17218] support title and description in argparse add_mutually_exclusive_group

2013-02-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations

2013-02-22 Thread Terry J. Reedy
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

[issue17233] http.client header debug output format

2013-02-22 Thread Kim Gräsman
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 curren

[issue17259] Document round half to even rule for floats

2013-02-22 Thread Mark Dickinson
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 for

[issue17259] Document round half to even rule for floats

2013-02-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Barry A. Warsaw
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

[issue17259] Document round half to even rule for floats

2013-02-22 Thread Terry J. Reedy
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 floa

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-02-22 Thread Charles-François Natali
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 atomic

[issue17233] http.client header debug output format

2013-02-22 Thread Terry J. Reedy
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

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Antoine Pitrou
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 __

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Shouldn't this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Chris Withers
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 ___ ___

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Charles-François Natali
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 ha

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Charles-François Natali
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 track

[issue17232] Improve -O docs

2013-02-22 Thread Terry J. Reedy
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 ___ __

[issue17186] no way to introspect registered atexit handlers

2013-02-22 Thread Chris Withers
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. -- __

[issue17232] Improve -O docs

2013-02-22 Thread Antoine Pitrou
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

[issue17232] Improve -O docs

2013-02-22 Thread Terry J. Reedy
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 ver

[issue17229] unable to discover preferred HTTPConnection class

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- 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 ___

[issue17224] can not open idle in python 2.7.3

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue17214] http.client.HTTPConnection.putrequest encode error

2013-02-22 Thread Terry J. Reedy
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 pos

[issue9584] Allow curly brace expansion

2013-02-22 Thread Julian Berman
Changes by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-22 Thread Zachary Ware
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 tests.

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-22 Thread Terry J. Reedy
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

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2013-02-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge stage: -> needs patch versions: +Python 2.7 -Python 3.5 ___ Python tracker ___

[issue16123] IDLE - deprecate running without a subprocess

2013-02-22 Thread Raymond Hettinger
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 stud

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread Demian Brecht
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 mu

[issue17249] reap threads in test_capi

2013-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This test was introduced in a4154dd5939a. -- nosy: +mhammond ___ Python tracker ___ ___ Python-bug

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-22 Thread Manuel Jacob
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

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file29163/generator.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Xavier de Gaye
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 be

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread R. David Murray
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

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread Demian Brecht
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 this

[issue8800] add threading.RWLock

2013-02-22 Thread Vladimir Rutsky
Changes by Vladimir Rutsky : -- nosy: +vrutsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17276] HMAC: deprecate default hash

2013-02-22 Thread Christian Heimes
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 ___ __

[issue17276] HMAC: deprecate default hash

2013-02-22 Thread Christian Heimes
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

[issue17249] reap threads in test_capi

2013-02-22 Thread R. David Murray
R. David Murray added the comment: Looks good to to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17276] HMAC: deprecate default hash

2013-02-22 Thread Antoine Pitrou
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 ne

[issue17272] request.full_url: unexpected results on assignment

2013-02-22 Thread R. David Murray
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: ->

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-22 Thread R. David Murray
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

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-22 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17276] HMAC: deprecate default hash

2013-02-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: +1. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17276] HMAC: deprecate default hash

2013-02-22 Thread Christian Heimes
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. Theref

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-22 Thread Manuel Jacob
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 ___

[issue17275] io.BufferedWriter shows wrong type in argument error message

2013-02-22 Thread Manuel Jacob
New submission from Manuel Jacob: >>> import io >>> io.BufferedWriter(io.BytesIO(), 1024, 1024, 1024) Traceback (most recent call last): File "", line 1, in TypeError: BufferedReader() takes at most 2 arguments (4 given) It should be "BufferedWriter()" instead of "BufferedReader()".

[issue17273] multiprocessing.pool.Pool task/worker handlers are not fork safe

2013-02-22 Thread Richard Oudkerk
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(): g

[issue17274] distutils silently omits relative symlinks

2013-02-22 Thread Florian Berger
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 = os.path.normpath(os.path.join(dirpath

[issue13262] IDLE opens partially hidden

2013-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: