[issue23290] Faster set copying

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Except one error (the declaration after the code), the patch LGTM. It is shame to me that I left so much non-optimized code in specialized loops. The result of my microbenchmarks is the speed up 51%, 153%, 23% and 96% respectively. -- _

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the property class now need set the tp_clear slot? -- ___ Python tracker ___ ___ Python-bu

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue24136] document PEP 448

2015-05-13 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should fix the comment as mentioned in the review, otherwise looks good to me. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker _

[issue19543] Add -3 warnings for codec convenience method changes

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What would you say about this Benjamin? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Pyt

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e8a768fa0a5 by Raymond Hettinger in branch 'default': Issue #24064: Property() docstrings are now writeable. https://hg.python.org/cpython/rev/1e8a768fa0a5 -- nosy: +python-dev ___ Python tracker

[issue16669] Docstrings for namedtuple

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: rejected -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue11145] '%o' % user-defined instance

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I there are no objection's, I'll commit the last patch. -- ___ Python tracker ___ ___ Python-bugs-

[issue23290] Faster set copying

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79c884cc9625 by Raymond Hettinger in branch 'default': Issue #23290: Optimize set_merge() for cases where the target is empty. https://hg.python.org/cpython/rev/79c884cc9625 -- nosy: +python-dev ___ Pyth

[issue23637] Warnings error with non-ascii chars.

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One of the worst things in Python 2 is that all can work on author's machine in ASCII-only environment, but then unhelpfully fail on user machine with non-ASCII data. Especially when needed a combination of few conditions for the fail. This issue is about on

[issue24173] curses HOWTO/implementation disagreement

2015-05-13 Thread White_Rabbit
New submission from White_Rabbit: Similarly to issue 6771¹, the curses HOWTO² talks about the curses.wrapper module and its curses.wrapper.wrapper function, but with python 2.7.5-ubuntu3 I already have the curses.wrapper function. ¹ https://bugs.python.org/issue6771 ² https://docs.python.org/2

[issue23290] Faster set copying

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: later -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue7267] format method: c presentation type broken in 2.7

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a modification of Victor's patch, that just emits Py3k warning. Both ways, with OverflowError and Py3k DeprecationWarning, are good to me. What would you say about this Benjamin? -- Added file: http://bugs.python.org/file39355/int_format_c_wa

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> serhiy.storchaka Added file: http://bugs.python.org/file39356/property_clear.diff ___ Python tracker ___ ___

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is good to go. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: This would have gone quicker if the size bug-fix hadn't been commingled with the optimization. -- ___ Python tracker ___ ___

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bde652ae05fd by Berker Peksag in branch 'default': Issue #24064: Add __doc__ to the example in collections.rst. https://hg.python.org/cpython/rev/bde652ae05fd -- ___ Python tracker

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c606c573ec0 by Berker Peksag in branch 'default': Issue #1322: platform.dist() and platform.linux_distribution() functions are now deprecated. https://hg.python.org/cpython/rev/9c606c573ec0 -- nosy: +python-dev ___

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23695] idiom for clustering a data series into n-length groups

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7d82e40e472 by Raymond Hettinger in branch 'default': Issue #23695: Explain the zip() example for clustering a data series into n-length groups. https://hg.python.org/cpython/rev/f7d82e40e472 -- nosy: +python-dev ___

[issue23695] idiom for clustering a data series into n-length groups

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8440dda28ffe by Raymond Hettinger in branch '3.4': Issue #19934: Document *None* as an acceptable input to Counter.most_common([n]) https://hg.python.org/cpython/rev/8440dda28ffe -- nosy: +python-dev __

[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset df708898f27b by Raymond Hettinger in branch '2.7': Issue #19934: Document *None* as an acceptable input to Counter.most_common([n]) https://hg.python.org/cpython/rev/df708898f27b -- ___ Python tracker

[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for pointing out the omission. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd0706499812 by Raymond Hettinger in branch '2.7': Issue #23971: Fix underestimated presizing in dict.fromkeys() https://hg.python.org/cpython/rev/cd0706499812 -- nosy: +python-dev ___ Python tracker

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed fromkeys() in Py2.7. Stills needs to be forward ported to 3.4/3.5. -- assignee: rhettinger -> ___ Python tracker ___

[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 571c82d8f4c9 by Berker Peksag in branch '3.4': Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers. https://hg.python.org/cpython/rev/571c82d8f4c9 New changeset 11fefeb7e941 by Berker Peksag in branch 'default': Iss

[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6e297e698ff by Berker Peksag in branch '2.7': Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers. https://hg.python.org/cpython/rev/f6e297e698ff -- ___ Python tracker

[issue22064] Misleading message from 2to3 when skipping optional fixers

2015-05-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Vinod. -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue24065] Outdated *_RESTRICTED flags in structmember.h

2015-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread Stuart Bishop
Stuart Bishop added the comment: Can we get this reopened? As David MacIver points out, this seems entirely a wart in tuple's constructor (compared to all the other builtin types), whereas 10977 is worrying about how 3rd party code using the C API can corrupt subclasses of builtin types (a muc

[issue24174] Python crash on exit

2015-05-13 Thread Cédric Bellegarde
New submission from Cédric Bellegarde: Hello, i'm lollypop dev: https://github.com/gnumdk/lollypop Sometimes, when lollypop quits, i get a segfault... Here bracktrace: Program received signal SIGSEGV, Segmentation fault. 0x76b3b528 in _int_free (av=0x76e65620 , p=, have_lock=0)

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b5461dcd190 by Serhiy Storchaka in branch 'default': Issue #23488: Random generator objects now consume 2x less memory on 64-bit. https://hg.python.org/cpython/rev/4b5461dcd190 -- nosy: +python-dev ___ P

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-05-13 Thread Martin Panter
Martin Panter added the comment: Thanks for looking at this David. I am posting utf8-null.v5.patch, which tweaks some of the wording. -- Added file: http://bugs.python.org/file39357/utf8-null.v5.patch ___ Python tracker

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: serhiy.storchaka -> rhettinger stage: patch review -> commit review ___ Python tracker ___

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An example of uncollectable loop if tp_clear is not implemented: class A: @property def f(self): pass A.f.__doc__ = (A.f,) -- nosy: +serhiy.storchaka ___ Python tracker

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg243078 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An example of uncollectable loop if tp_clear is not implemented: class A: @property def f(self): pass A.f.__doc__ = (A.f,) -- ___ Python tracker ___

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -if (dictresize(mp, Py_SIZE(seq))) { +if (dictresize(mp, Py_SIZE(seq) / 2 * 3)) { If Py_SIZE(seq) is 1, dictresize argument is 0. Why not wryte the expression as Py_SIZE(seq) * 3 / 2? It never overflows, because Py_SIZE(seq) is the s

[issue24172] Errors in resource.getpagesize module documentation

2015-05-13 Thread R. David Murray
R. David Murray added the comment: Indeed, we should probably be referring people to their system's man pages for the authoritative definition of most of these fields. According to the man pages project getpagesize is no longer a POSIX API, and that should probably be noted as well (ie: it isn

[issue24172] Errors in resource.getpagesize module documentation

2015-05-13 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch versions: -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker ___ ___ Pytho

[issue24032] urlparse.urljoin does not add query part

2015-05-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Mark Dickinson
Mark Dickinson added the comment: >From the patch: -if (dictresize(mp, Py_SIZE(seq))) { +if (dictresize(mp, Py_SIZE(seq) / 2 * 3)) { Isn't there a risk of signed overflow here? The dictresize function has an `assert(minused >= 0)`, which is going to fail for values of

[issue24175] Test failure in test_utime on FreeBSD

2015-05-13 Thread koobs
New submission from koobs: The following test failure is observable in koobs-freebsd9 and koobs-freebsd10 buildbots, on the 3.4 and 3.x branches. == FAIL: test_utime (test.test_os.StatAttributeTests) ---

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Mark Dickinson
Mark Dickinson added the comment: > It never overflows, because Py_SIZE(seq) is the size of allocated array of > pointers. Ah, good point. -- ___ Python tracker ___ ___

[issue24175] Test failure in test_utime on FreeBSD

2015-05-13 Thread koobs
koobs added the comment: After running the latest builds, it appears 3.x is now green, leaving 3.4 failing -- ___ Python tracker ___

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: duplicate -> stage: resolved -> needs patch status: closed -> open type: -> behavior ___ Python tracker ___

[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Definitely there is a bug. The code of timeit is written to support string stmt and callable setup. Expected that locals available when the function is created, would be available when the function is executed. But this doesn't work. May be it worked in the

[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39358/timeit_callable_setup.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-13 Thread Thomas Caswell
New submission from Thomas Caswell: On the current tip (changeset: 96023:4b5461dcd190) the following results in a syntax error def test(a='a', b='b'): print(a, b) opta = dict() optb = dict(a=1, b=2) test(**(opta or {})) # <- works on all python test(**optb or {})# <- fails on current

[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Petr Viktorin
Petr Viktorin added the comment: The functions have been deprecated in #1322, is it time to close this? -- ___ Python tracker ___ ___

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Petr Viktorin
Petr Viktorin added the comment: Issues #17762 and #9514 had patches to improve these functions. Time to close them? -- ___ Python tracker ___ ___

[issue11145] '%o' % user-defined instance

2015-05-13 Thread Ethan Furman
Ethan Furman added the comment: Armin indicated in his last comment that the patch still has multiple issues. Are there tests to catch the issues he previously found? That seems the best method to verify that the current (and future) patches don't break 2.7. -- __

[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2015-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: See issue1322 -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Pytho

[issue17762] platform.linux_distribution() should honor /etc/os-release

2015-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: See issue1322 for why we're closing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +benjamin.peterson, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.05.2015 16:18, Petr Viktorin wrote: > > Issues #17762 and #9514 had patches to improve these functions. Time to close > them? Yes. I just did. Thanks for the reminder. -- ___ Python tracker

[issue5633] fix for timeit when the statement is a string and the setup is not (and tests)

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is more complicated patch, that not only fixes handling of callable setup, but also simplifies the implementation of timeit constructor. -- Added file: http://bugs.python.org/file39360/timeit_callable_setup_refactor.patch __

[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Petr Viktorin
Petr Viktorin added the comment: >From the discussion on the list: - It needs to be a macro, not function, to support various types (unsigned long long, float; possibly C++ stuff with overriden operators) - Another suggestion to change the order of arguments; I still think being the same as r

[issue16991] Add OrderedDict written in C

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Eric, is there any chance this can land in 3.5? OrderedDict is a heavily used thing, everyone will benefit from a fast implementation. It's OK if we have an imperfect (but fully compatible with existing OrderedDict) implementation in 3.5. We can optimize it

[issue19934] collections.Counter.most_common does not document `None` as acceptable input.

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68d653f9a2c9 by Andrew Kuchling in branch '2.7': #19934: fix mangled wording https://hg.python.org/cpython/rev/68d653f9a2c9 -- ___ Python tracker _

[issue23995] msvcrt could not be imported

2015-05-13 Thread Kain
Kain added the comment: Had the same problem but was able to fix this by rewriting the win_getpass method in getpass.py: def win_getpass(prompt='Password: ', stream=None): """Prompt for password with echo off, using Windows getch().""" if sys.stdin is not sys.__stdin__: return f

[issue23995] msvcrt could not be imported

2015-05-13 Thread R. David Murray
R. David Murray added the comment: I'm setting this to release blocker because it sounds like a simple fix and I don't think we should release with these basic windows functions missing. If you (Steve) don't think it is important for the beta you could set it to deferred blocker. --

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8adc2c13c8b by Zachary Ware in branch 'default': Issue #20172: Update clinicizations to current clinic. https://hg.python.org/cpython/rev/c8adc2c13c8b -- ___ Python tracker

[issue24177] Add https?_proxy support to http.client

2015-05-13 Thread Demian Brecht
New submission from Demian Brecht: http_proxy and https_proxy are common environment variables used cross platform. Currently, urllib.request has support for it, but http.client does not. It probably should. If support is added to http.client, the handling of proxy environment variables in ur

[issue1683368] object.__init__ shouldn't allow args/kwds

2015-05-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> resolved type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
New submission from Yury Selivanov: The attached patch makes Locks, Conditions, Semaphores, and BoundedSemaphores support new 'async with' syntax. Because the patch contains a file that will only be checked in to the CPython repo (test_pep492.py), I decided to create the issue on bugs.python.o

[issue11145] '%o' % user-defined instance

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to find a bug than reproduce it. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21791] Proper return status of os.WNOHANG is not always (0, 0)

2015-05-13 Thread Eric Radman
Eric Radman added the comment: Thanks for posting some simple examples. Here is the commit that I wrote to solve this problem when I encountered it in the wild: https://bitbucket.org/tk0miya/testing.postgresql/commits/3f145860cfd91e3f03f24b87c4b3b41c3a974037 Closing since I am also not able

[issue24179] asyncio: support 'async for' for StreamReader

2015-05-13 Thread Yury Selivanov
New submission from Yury Selivanov: This patch adds support for 'async for' syntax for StreamReader. The issue is opened on bugs.python.org instead of asyncio GH (same as issue #24178) -- assignee: yselivanov components: asyncio files: aread.patch keywords: patch messages: 243105 nosy:

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-05-13 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If Py_SIZE(seq) is 1, dictresize argument is 0. That doesn't matter. The minimum dict size is 8. > Why not write Py_SIZE(seq) * 3 / 2? Because I prefer the / 2 * 3 style so I don't have to think about whether seq can overflow. Do you really feel like b

[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the current form so that I don't have to constantly lookup to see exactly what the macro does. If this has been around from the beginning, it might have "eased" the writing by a minute or so. But now, it will just be a barrier to maintena

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Updated patch is attached: - '__aenter__' returns None - "with await lock" is now supported. -- Added file: http://bugs.python.org/file39363/alock_2.patch ___ Python tracker _

[issue24162] [2.7 regression] test_asynchat test failure on i586-linux-gnu

2015-05-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24169] sockets convert out-of-range port numbers % 2**16

2015-05-13 Thread Kurt Rose
Kurt Rose added the comment: I think this may in fact be a bug. There are other places in the socket module where port is checked, create_connection() just seems to have been missed. create_connection() and socket.connect() have different behavior: >>> socket.create_connection( ('google.com',

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I just asking. If the minimum dict size is 8 and there is no special case for empty dicts, all is good to me. But note, that x / 2 * 3 overflows as well as x * 3 / 2. -- ___ Python tracker

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 616f15f05530 by Yury Selivanov in branch 'default': Issue 24178: support 'async with' for asyncio locks. https://hg.python.org/cpython/rev/616f15f05530 -- nosy: +python-dev ___ Python tracker

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ddadd0e736d by Raymond Hettinger in branch 'default': Issue #24064: Help property() support GC https://hg.python.org/cpython/rev/2ddadd0e736d -- ___ Python tracker __

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24064] Make the property doctstring writeable

2015-05-13 Thread Berker Peksag
Changes by Berker Peksag : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24179] asyncio: support 'async for' for StreamReader

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f6978343ef6 by Yury Selivanov in branch 'default': Issue 24179: Support 'async for' for asyncio.StreamReader. https://hg.python.org/cpython/rev/4f6978343ef6 -- nosy: +python-dev ___ Python tracker

[issue24179] asyncio: support 'async for' for StreamReader

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, thanks for review. Closing the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, thanks for review. Closing the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-05-13 Thread Drekin
Changes by Drekin : -- nosy: +Drekin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Petr Viktorin
Petr Viktorin added the comment: Is it really not better to give the operation a name, rather than repeating the same ten lines every time? (Well, not the same -- all the modules code it a bit differently, but with the same meaning.) I might be true that the types in Python itself are "done",

[issue24180] PEP 492: Documentation

2015-05-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: asvetlov, gvanrossum, haypo, ncoghlan, yselivanov priority: deferred blocker severity: normal stage: needs patch status: open title: PEP 492: Documentation type: enhancement versions: Python 3.5 ___ Python tracker

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Closing the issue. I'll open a new one for missing documentation. Thanks! -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- dependencies: +PEP 492: Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: BTW, a shout out to Nick for doing most of the review for this monster patch. Thanks! -- ___ Python tracker ___ _

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d80d46adfdb by Yury Selivanov in branch 'default': Issue 24017: More tests for 'async for' and 'async with'. https://hg.python.org/cpython/rev/0d80d46adfdb -- ___ Python tracker

[issue23699] Add a macro to ease writing rich comparisons

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm -1 on this whole concept and I don't believe that it will make porting easier. It takes longer to learn the macro, see what it does, write tests for it, etc than it takes to model ten lines of boilerplate code. The macros make it harder for me and othe

[issue10977] Concrete obect C API considered harmful to subclasses of builtin typesje

2015-05-13 Thread ppperry
Changes by ppperry : -- title: Concrete object C API considered harmful to subclasses of builtin types -> Concrete obect C API considered harmful to subclasses of builtin typesje ___ Python tracker ___

[issue10977] Concrete object C API considered harmful to subclasses of builtin typesje

2015-05-13 Thread ppperry
Changes by ppperry : -- title: Concrete obect C API considered harmful to subclasses of builtin typesje -> Concrete object C API considered harmful to subclasses of builtin typesje ___ Python tracker _

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2015-05-13 Thread ppperry
Changes by ppperry : -- title: Concrete object C API considered harmful to subclasses of builtin typesje -> Concrete object C API considered harmful to subclasses of builtin types ___ Python tracker _

[issue16991] Add OrderedDict written in C

2015-05-13 Thread Eric Snow
Eric Snow added the comment: @Yury, I'm mostly just waiting for Raymond to give it at least a quick sanity-check. I know there is at least 1 ref leak, but that can be sorted out. -- ___ Python tracker ___

  1   2   >