[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > After patch: > round(1.23, 0) => 1 not 1.0 > round(4.67, 0) => 5 not 5.0 Please no! Two-argument round should continue to return a float in all cases. The docs should be fixed. -- ___ Python tracker

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > But also there should be a way to make round return an integer I don't understand. There's already a way to make round return an integer: don't pass a second argument. -- ___ Python tracker

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file33053/fix_doc_round_ndigits.patch ___ Python tracker ___ ___ Python-bugs-list

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, here is the patch to fix the doc. -- Added file: http://bugs.python.org/file33052/fix_doc_round_ndigits.patch ___ Python tracker ___ ___

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file33052/fix_doc_round_ndigits.patch ___ Python tracker ___ ___ Python-bugs-li

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file33053/fix_doc_round_ndigits.patch ___ Python tracker ___ ___ Python-bugs-li

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file33054/fix_doc_round_ndigits.patch ___ Python tracker ___ ___ Python-bugs-list

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > And yet, in Python 2, people could do that, and Python didn't care. > *That's* the regression I'm worried about. If it hadn't round-tripped > cleanly in Python 2, I wouldn't care here either. $ python2.7 -c "print u'\u20ac'" € $ LANG=C python2.7 -c "print u'

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > sworddragon@ubuntu:~$ LANG=C > sworddragon@ubuntu:~$ ä > bash: $'\303\244': command not found > > - The terminal doesn't pseudo-crash with an exception because it doesn't > matter about encodings. - It allows to change the encoding at runtime. This is not a

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Fotis Koutoulakis
Fotis Koutoulakis added the comment: Hello again. Is everything ok with the patch? Is there something not working as expected? Perhaps an omission or something? Do I need to do something more to get it accepted? Thanks for your time. -- ___ Python

[issue19935] IPv6 urlparse error on python 2.6

2013-12-09 Thread Yu Yang
New submission from Yu Yang: Actually, there is a bug which has been fixed this issue on python 2.7 and python 3.3. http://bugs.python.org/issue2987. Open this issue aims for back port this fix to python 2.6. -- components: Library (Lib) messages: 205657 nosy: yuyangbj priority: normal

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > For example, `i.bits_at(0, 52)` to get at a double's mantissa requires no > thought at all to write or to read later; bit-level gibberish like I agree that special function or method looks more clear. But I suppose that in many cases the performance does m

[issue19935] IPv6 urlparse error on python 2.6

2013-12-09 Thread Christian Heimes
Christian Heimes added the comment: Python 2.6 has reached its end of life cycle and doesn't receive fixes anymore. You have to maintain a bugfix yourself or update to a more recent version of Python. -- nosy: +christian.heimes resolution: -> out of date stage: -> committed/rejected

[issue19935] IPv6 urlparse error on python 2.6

2013-12-09 Thread Yu Yang
Yu Yang added the comment: As the OpenStack support python 2.6, python 2.7 and python 3.3, and IPv6 management network is supported by OpenStack, so we need to back port urlparse problem for IPv6 to python 2.6, otherwise there will be limitation on python 2.6 -- __

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please left test.script_helper as alias to test.support.script_helper. I.e. test/script_helper.py should contains something like: from test.support.script_helper import * And test this with unmodifiable other tests. -- nosy: +serhiy.storchaka _

[issue19935] IPv6 urlparse error on python 2.6

2013-12-09 Thread Yu Yang
Yu Yang added the comment: @Christian Heimes, thanks for your response. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The "C" locale is part of the ANSI C standard. The "POSIX" locale is an alias for the "C" locale and a POSIX standard, so we cannot just replace the ASCII encoding with UTF-8 as we wish, so Antoine's patch won't work. See e.g. http://pubs.opengroup.org/onl

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: I didn't understand Serhiy's "ls" example. I tried: $ mkdir unicode $ cd unicode $ python3 -c 'open("ab\xe9.txt", "w").close()' $ python3 -c 'open("euro\u20ac.txt", "w").close()' $ ls abé.txt euro€.txt $ LANG=C ls ab??.txt euro???.txt Ah yes, I didn't rememb

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: Nick> testing applications for POSIX compliance Sorry but what do you mean by "POSIX compliance"? The POSIX standard only specify the ASCII encoding. http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html "The tables in Locale Definition descr

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre> AFAIK, Python 3 does work with ASCII data in the C locale, so I'm not sure whether this is a bug at all. What do you mean? Python uses the surrogateescape encoding since Python 3.1, undecodable bytes are stored as surrogate characters. Many bugs r

[issue19846] Setting LANG=C breaks Python 3 on Linux

2013-12-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 09.12.2013 11:19, STINNER Victor wrote: > > STINNER Victor added the comment: > > Marc-Andre> AFAIK, Python 3 does work with ASCII data in the C locale, so I'm > not sure whether this is a bug at all. > > What do you mean? Python uses the surrogateesca

python-bugs-list@python.org

2013-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Changeset ea70032a24b1 is where the pop(*args) thing comes from. -- ___ Python tracker ___ ___ Pytho

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: I'm closing the issue as invalid, because Python 3 behaviour is correct and must not be changed. Standard streams (sys.stdin, sys.stdout, sys.stderr) uses the locale encoding. sys.stdin and sys.stdout use the strict error handler, sys.stderr uses the backsla

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Fotis Koutoulakis
Fotis Koutoulakis added the comment: Ok, here is the second (modified patch) which contains a script so that no modifications are required to existing tests. I am uploading it as a second patch, so that the first one is left as a reference. As a sidenote, I fail to see convincing reasons for

[issue19936] Executable permissions of Python source files

2013-12-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Following files have executable permission bit but have no shebang ("#!"): Lib/test/ssltests.py Lib/test/test_pathlib.py Lib/token.py Tools/scripts/analyze_dxp.py Tools/scripts/run_tests.py Tools/scripts/win_add2path.py Tools/stringbench/stringbench.py I th

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-09 Thread Roman
Roman added the comment: I've checked it one more time. And you're right (Sorry for trouble). I left old pyconfig.h in one place, so my new python compilation was not just what I wanted. Now I belive that everything with memory is ok. Thank you very much for your help. -- status: op

[issue19817] tracemalloc add a memory limit feature

2013-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45442f2a2494 by Victor Stinner in branch 'default': Issue #19817: Fix print_exception(), clear the exception on error http://hg.python.org/cpython/rev/45442f2a2494 -- nosy: +python-dev ___ Python tracker

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Third party code can use tests.script_helper. I prefer to do these changes in several steps: 1) Move script_helper.py to Lib/test/support/, document it, and create an alias (with deprecation warning). 2) Ensure that this doesn't break any buildbot. 3) Change

[issue19893] Python cApi memory problem. Py_Initialize memory leak

2013-12-09 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Fotis Koutoulakis
Fotis Koutoulakis added the comment: Oh, I see. Does the last patch meet your expectations, or would you rather see all these changes implemented at once? -- ___ Python tracker

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. It's inaccurate to say that a float is returned in general, though: for most builtin numeric types, what's returned has the same type as its input. So rounding a Decimal to two places gives a Decimal on output, etc. (That's already explained in the

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: How about just removing the mention of 'defaults to zero', and say something like: "if ndigits is omitted, returns the nearest int to its input" -- ___ Python tracker

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Does the last patch meet your expectations, or would you rather see all these > changes implemented at once? I left this for Nick. I have added comments on Rietveld. -- stage: needs patch -> patch review ___ Py

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2013-12-09 Thread Jens Timmerman
Jens Timmerman added the comment: Since this is fixed in upstream libffi, can this be synced with the libffi included in python? -- ___ Python tracker ___ ___

[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2013-12-09 Thread Jens Timmerman
Jens Timmerman added the comment: As a workaround, you can make the libffi build work by applying this patch. https://github.com/atgreen/libffi/pull/43 (indeed, see also http://bugs.python.org/issue4130 ) -- nosy: +Jens.Timmerman ___ Python tracker

[issue19843] Wait for multiple sub-processes to terminate

2013-12-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I replied to your comments here: http://bugs.python.org/review/19843/ Assuming the deadlock problem gets fixed would you consider this feature worthy for inclusion? -- ___ Python tracker

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Sworddragon
Sworddragon added the comment: > I'm closing the issue as invalid, because Python 3 behaviour is correct > and > must not be changed. The fact that write() uses sys.getfilesystemencoding() is either a defect or a bad design (I leave the decision to you). But I'm still missing a reply to my s

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-09 Thread Fotis Koutoulakis
Fotis Koutoulakis added the comment: Taking the feedback during code review, this is a patch that has the points raised by Serhiy Storchaka fixed. As always, please do note omission or mistakes from my part. Thanks for your help. -- Added file: http://bugs.python.org/file33057/issue18

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: > The fact that write() uses sys.getfilesystemencoding() is either a defect or > a bad design (I leave the decision to you). "Standard streams (sys.stdin, sys.stdout, sys.stderr) uses the locale encoding. sys.stdin and sys.stdout use the strict error handler,

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Larry Hastings
Larry Hastings added the comment: > The fact that write() uses sys.getfilesystemencoding() is either > a defect or a bad design (I leave the decision to you). I have good news for you. write() does not cal sys.getfilesystemencoding(), because the encoding is set at the time the file is opened.

[issue19937] IDLE can't be launch

2013-12-09 Thread Ryan Z
New submission from Ryan Z: After I installed a wrong version pygame on OSX 10.9, and may updated something OSX, Then, I can't launch the IDLE, It appears on the dock, then quit at the same moment. bogon:~ RyanZ$ /usr/local/bin/python3.3 -m idlelib Traceback (most recent call last): File "

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Sworddragon
Sworddragon added the comment: > If the environment variable is not enough There is a big difference between environment variables and internal calls: Environment variables are user-space while builtin/library functions are developer-space. > I have good news for you. write() does not cal

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: > There is a big difference between environment variables and internal calls: > Environment variables are user-space while builtin/library functions are > developer-space. You can reopen sys.stdout with a different encoding and replace sys.stdout. I don't rem

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread João Bernardo
João Bernardo added the comment: > I don't understand. There's already a way to make round return an integer: > don't pass a second argument. If this function were to be written in Python, it would be something like: def round(number, ndigits=0): ... or def round(number, nd

[issue19932] Missing spaces in import.h?

2013-12-09 Thread Brett Cannon
Brett Cannon added the comment: In case no one else sees it, Ziyuan is saying that there should be a space after the PyAPI_FUNC() uses. -- nosy: +brett.cannon ___ Python tracker ___

[issue19932] Missing spaces in import.h?

2013-12-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Julian Gindi
Julian Gindi added the comment: Implemented proposed changes to patch. Simplified "for-loop" and implemented invalid input test. -- Added file: http://bugs.python.org/file33058/issue18983_v2.patch ___ Python tracker

[issue16638] support multi-line docstring signatures in IDLE calltips

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is synchronized with tip. -- versions: -Python 3.2 Added file: http://bugs.python.org/file33059/idle_calltips_multiline_4.patch ___ Python tracker

[issue16638] support multi-line docstring signatures in IDLE calltips

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28249/idle_calltips_multiline_3.patch ___ Python tracker ___ ___ Python

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated doc fix. Anyway, why not round(1.2) -> 1.0 in the first place? Just curious. -- Added file: http://bugs.python.org/file33060/fix_doc_round_ndigits_v2.patch ___ Python tracker

[issue15696] Correct __sizeof__ support for mmap

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with tip. -- nosy: +brian.curtin, tim.golden versions: -Python 3.2 Added file: http://bugs.python.org/file33061/mmap_sizeof-3.x_2.patch ___ Python tracker _

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the status of this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-12-09 Thread Christian Heimes
Christian Heimes added the comment: It still needs a proper fix, though. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread João Bernardo
João Bernardo added the comment: > Anyway, why not round(1.2) -> 1.0 in the first place? Just curious. It was the behavior on Python 2.x, but somehow when they changed the rounding method to nearest even number this happened... I think it's too late to change back the return type. --

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread R. David Murray
R. David Murray added the comment: Do you have any real-world motivating use case for None? Not just theoretical consistency with what a Python version of the function would look like. (I'm not saying we shouldn't consider supporting None as a low priority change, I'm just trying to figure o

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19851] reload problem with submodule

2013-12-09 Thread Olivier Grisel
Olivier Grisel added the comment: I tested the patch on the current HEAD and it fixes a regression introduced between 3.3 and 3.4b1 that prevented to build scipy from source with "pip install scipy". -- nosy: +Olivier.Grisel ___ Python tracker

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread João Bernardo
João Bernardo added the comment: Not really. Just consistency: For the same reason ' foo '.strip(None) works... To avoid special casing the function call when you already have a variable to hold the argument. -- ___ Python tracker

[issue15475] Correct __sizeof__ support for itertools

2013-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9bce03920afe by Serhiy Storchaka in branch 'default': Issue #15475: Add __sizeof__ implementations for itertools objects. http://hg.python.org/cpython/rev/9bce03920afe -- nosy: +python-dev ___ Python trac

[issue15475] Correct __sizeof__ support for itertools

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16055] incorrect error text for int(base=1000, x='1')

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread R. David Murray
R. David Murray added the comment: Right, but None in that case has real world utility, since you might have the the value in a variable. But you are hardly going to hold int-or-not in a variable, especially a variable that is really about the number of places in the float result...

[issue9645] PEP 383: os.pathconf() does not accept surrogateescape arguments

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As 3.2 now in security fixes only mode, this issue has no targets. -- resolution: -> out of date stage: test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you don't like permutation() (which already imported in this file), here is a patch which uses explicit hardcoded permutations. -- Added file: http://bugs.python.org/file33062/issue19681_2.patch ___ Python track

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should the signature be int.bits_at(start_bit, width) or int.bits_at(start_bit, end_bit+1) ? The latter would look more lire range() and slicing. -- nosy: +pitrou ___ Python tracker

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread anon
anon added the comment: Antoine, I don't suggest that since you commonly want a fixed number of bits. -- ___ Python tracker ___ ___ Py

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread Tim Peters
Tim Peters added the comment: @pitrou, I think usability is a lot more valuable than cross-feature "formal consistency" here. I've been extracting bit fields for decades, and always think of them in terms of "least-significant bit and number of bits". Perhaps the underlying difference is tha

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread anon
anon added the comment: Here is my very rough attempt at bits_at. It doesn't handle negative numbers and I am not sure it's safe. This was my first time using Python internals. Objects/longobject.c: static PyObject * long_bits_at(PyLongObject *v, PyObject *args) { PyLongObject *z = NULL;

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread anon
anon added the comment: Here are some inadequate tests to add to Lib/test/test_long.py def test_bits_at(self): def bits_at(n, pos, width=1): return (n>>pos) & ((1 << width) - 1) for n in [123, 777, (1<<35)|(1<<30)|(1<<25)]: for i in range(50):

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread anon
anon added the comment: Both segments of code are public domain. It would be great if someone could review them, improve them and produce a proper patch. I didn't handle the negative case, which I hope someone else can add. -- ___ Python tracker

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread anon
anon added the comment: Some of the code may be under Python's license though. So I should clarify that only MY parts of the two samples of code are public domain. -- ___ Python tracker ___

[issue4945] json checks True/False by identity, not boolean value

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue19795 which contains much larger patch for other modules. -- versions: -Python 3.2 ___ Python tracker ___ __

[issue4945] json checks True/False by identity, not boolean value

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to tip. -- nosy: +georg.brandl Added file: http://bugs.python.org/file33063/json_doc_truefalse_2.patch ___ Python tracker ___ _

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Julian Gindi
Julian Gindi added the comment: Incorporated updates suggested by serhiy.storchaka -- Added file: http://bugs.python.org/file33064/issue18983_v3.patch ___ Python tracker ___

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +neologix versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is not compatible with 3.4. Does this bug exist in 3.4? -- stage: test needed -> patch review ___ Python tracker ___ ___

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-09 Thread Charles-François Natali
Charles-François Natali added the comment: > The patch is not compatible with 3.4. Does this bug exist in 3.4? No, selectors all expect a timeout in seconds, so this should be fixed in 3.4. -- ___ Python tracker _

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will be better to write error message to sys.stderr (see test_main_exception). -- ___ Python tracker ___ _

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: Sadly, the optimistic code doesn't work on Windows. I think it may be because the socketpair() helper at the top of test_selectors.py uses an extra socket ('l') and the handles just don't match up (I get a failure on assert wr2.fileno() == w). So I propose

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-09 Thread STINNER Victor
STINNER Victor added the comment: The current test using os.dup2() with a skip on Windows is fine. -- ___ Python tracker ___ ___ Pytho

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: OK, closed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Ahh... added to the nosy list and bug closed all before I got up for the day ;-) A few words: I do think that python is broken here. I do not think that translating everything to utf-8 if ascii is the locale's encoding is the solution. As I would state it,

[issue18616] enable more ssl socket options with get_server_certificate

2013-12-09 Thread Derek Wilson
Derek Wilson added the comment: any thoughts on this? there's a lot of room for improvement in python ssl... -- versions: +Python 3.5 ___ Python tracker ___ _

[issue19933] Round default argument for "ndigits"

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > Anyway, why not round(1.2) -> 1.0 in the first place? Just curious. All this changed as part of PEP 3141. I wasn't watching Python 3 development closely back then, but I *think* at least part of the motivation was to provide a way to get away from the use o

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Last patch is corrupted and outdated. Here is updated and fixed version. I have not examined it closely. -- Added file: http://bugs.python.org/file33065/issue17200.patch ___ Python tracker

[issue18010] pydoc search chokes on import errors

2013-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Pickling for the RPC protocol between the GUI process and the interpreter > subprocess, which would explain why there is no problem when running idle -n > (no subproces)? Yes, it is. If there are no objections I'll commit these patches. -- assign

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Julian Gindi
Julian Gindi added the comment: Updated patch to log to stderr. -- Added file: http://bugs.python.org/file33066/issue18983_v4.patch ___ Python tracker ___ ___

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18233] SSLSocket.getpeercertchain()

2013-12-09 Thread Derek Wilson
Derek Wilson added the comment: I could really use this sooner than later... and sometimes having a full-featured (or even secure) interface is not what you want. Consider zmap and masscan etc and ssl mapping (similar to what the EFF did a couple years back - https://www.eff.org/observatory -

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > Ping. Bah. Sorry; I haven't had time to deal with this. Serhiy: are you interested in taking over? -- ___ Python tracker ___ _

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Julian Gindi
Julian Gindi added the comment: Added newline after error message. -- Added file: http://bugs.python.org/file33067/issue18983_v5.patch ___ Python tracker ___

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is doubled. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18983] Specify time unit for timeit CLI

2013-12-09 Thread Julian Gindi
Julian Gindi added the comment: Whoops. Sorry about that. Super embarrassing. -- Added file: http://bugs.python.org/file33068/issue18983_v5.patch ___ Python tracker ___ _

[issue19937] IDLE can't be launched

2013-12-09 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of 18270. As explained there, the workaround is to follow the instructions at http://www.python.org/download/mac/tcltk/ and, if possible, install an up-to-date Tcl/Tk 8.5 from ActiveState. If that is not possible, then launch IDLE from the com

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: > [2.7] print() implicitly converts str and bytearray subclasses to str and > left unicode subclasses as is. This strikes me as possibly a bug in print, but even if that were changed, there is still the issue of sys.stdout.write and pickle. While the patch is

[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Confirmed that the revised patch for 3.3 fixes the hang and matches the console interpreter output. -- ___ Python tracker ___ _

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread Tim Peters
Tim Peters added the comment: @anon, sorry, but we can't accept any code from you unless you have a real name and fill out a contributor agreement: http://www.python.org/psf/contrib/ This is legal crud, and I'm not a lawyer. But, in particular, lawyers have told me that - in the USA - an

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-09 Thread HCT
HCT added the comment: > I think slicing semantically "seems wrong" but it might be more elegant. It > might also make catching errors harder (in the case where an int is sent to a > function that does slicing and now won't fail with a TypeError). not sure what's semantically "seems wrong" wit

  1   2   >