[issue24136] document PEP 448

2015-05-13 Thread Neil Girdhar
Neil Girdhar added the comment: Just updated the "what's new". Also, thank you for adding my name to Misc/Acks. Should we also add Joshua Landau's name? He helped me quite a bit with the implementation, and he wrote the PEP. -- keywords: +patch nosy: +neil.g Added file: http://bugs.

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

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And it would be nice to add the same test for list, set, etc (if they don't exist). -- ___ Python tracker ___ ___

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

2015-05-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a patch. Needs to have the OP's test case added. -- nosy: +rhettinger ___ Python tracker ___ _

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is Tcl version? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: All 39 pass. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just downloaded the 3mb vc_community.exe. I intend to try it tomorrow and report. Unless you intend to support compiling with vs2010 after 3.5 is released, and from the devguide and your comment I presume not, then with beta nearing, I would agree that we s

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

2015-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if comment out this line? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reran, same result: 'a' != 'a\xc0\x80b' in class TclTest. Ran 39 tests, skipped 4 (bigmem) tests. -- ___ Python tracker ___ ___

[issue24186] OpenSSL causes buffer overrun exception

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25d78aa1ec21 by Steve Dower in branch 'default': Issue #24186: Disable optimised OpenSSL functions on 64-bit Windows to avoid crashing. https://hg.python.org/cpython/rev/25d78aa1ec21 -- nosy: +python-dev ___

[issue24186] OpenSSL causes buffer overrun exception

2015-05-13 Thread Steve Dower
New submission from Steve Dower: There is an issue where an optimised OpenSSL function causes a buffer overrun in 64-bit Windows builds and terminates the process (this is why the buildbots aren't getting very far right now). I suspect it may be a compiler issue, but for now I'm disabling the

[issue23995] msvcrt could not be imported

2015-05-13 Thread Steve Dower
Steve Dower added the comment: I wouldn't have thought so, since the IO stack is entirely portable, at least from the Python side of things. This would have to have been a test that somehow knows about optional functions and notifies you if they're missing but without failing the run. I don't

[issue24185] Add Function for Sending File to Trash (or Recycling Bin)

2015-05-13 Thread Taylor Marks
New submission from Taylor Marks: When you have a file that you don't think you need anymore, the proper thing to do with it is move it to the Trash (or Recycling Bin, if you're on Windows.) The standard library, however, doesn't offer any way of doing this currently. Instead, the only thing i

[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: Add AsyncIterator and AsyncIterable to collections.abc ___ Python tracker ___ _

[issue24184] PEP 492: Add AsyncIterator and AsyncIterable to collections.abc

2015-05-13 Thread Yury Selivanov
New submission from Yury Selivanov: The attached patch adds AsyncIterator & AsyncIterable to collections.abc module. -- assignee: yselivanov components: Library (Lib) files: async_abc.patch keywords: patch messages: 243148 nosy: asvetlov, gvanrossum, haypo, ncoghlan, yselivanov priority:

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2015-05-13 Thread R. David Murray
R. David Murray added the comment: Coming back to this, I noticed a number of things wrong with the logic that I'm not sure how I missed before. I had to rewrite pretty much all of the logic. The good news is the patch is now smaller :) The new tests are failing, because they are wrong: the

[issue23995] msvcrt could not be imported

2015-05-13 Thread Mark Lawrence
Mark Lawrence added the comment: Shouldn't tests for these functions be part of our testing of the io module or similar? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue23995] msvcrt could not be imported

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d56a941865fb by Steve Dower in branch 'default': Issue #23995: Removes _WCONIO_DEFINED check as the wchar_t console functions are always available. https://hg.python.org/cpython/rev/d56a941865fb -- nosy: +python-dev ___

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-13 Thread Alex Lord
Changes by Alex Lord : Added file: http://bugs.python.org/file39367/sqlite_lastrowid_35_updated_2.patch ___ Python tracker ___ ___ Python-bugs

[issue23995] msvcrt could not be imported

2015-05-13 Thread Steve Dower
Steve Dower added the comment: Short of hard-coding a list of expected functions and using hasattr, anyone have any ideas about how to test stuff like this? I kind of feel like alpha/beta releases are the most efficient way to find these. -- ___ Pyt

[issue23995] msvcrt could not be imported

2015-05-13 Thread Steve Dower
Steve Dower added the comment: I'll just remove the ifdefs. We don't support any Windows versions that don't have these functions. -- assignee: -> steve.dower ___ Python tracker __

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Timothy Cardenas
Timothy Cardenas added the comment: Ahhh i see now. Even the simple case "class Foo(bar='baz'): pass" fails. I misunderstood the documentation then. I thought that python 3 introduced a new interface for all classes when it actually just introduced the option to add keyword arguments to your

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

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The changes I proposed would not have to be extensions, as they are basically non-conflicting alternate keybindings, though the tab effect would have to be conditional. I will experiment with using prefix-up/down in one of my installed pythons. -- __

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

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PyShell patch does two things that I want to consider separately, and carefully, along with other possible solutions to the perceived problems. 1. Go to end-of-file when entering a letter or number in a read-only text area. In msg110889 Tal says "Note that

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread R. David Murray
R. David Murray added the comment: Yes, this is exactly analogous to object.__init__ not accepting arguments, but subclasses being free to do so. ABCMeta *does* adopt the contract. keyword arguments to the class constructor are not accepted unless you write a meta class that accepts them. P

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: > Wouldn't it be much easier and technically correct for the core ABCMeta > library to adopt the same interface contract for class creation introduced in > python3? No, it would not be technically correct. For the same reason, object.__init__ does not accept

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-13 Thread Alex Lord
Changes by Alex Lord : Added file: http://bugs.python.org/file39366/sqlite_lastrowid_35_updated.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24157] test_urandom_fd_reopened failure on Mac OS X

2015-05-13 Thread Skip Montanaro
Skip Montanaro added the comment: Sorry for the delay. With LANG=C I get this extra bit of output: 'this test triggers the Crash Reporter, that is intentional\x80TbG=\x0f\x19t' With LANG=en_US.UTF-8 (the encoding of my Terminal instance), I get this: 'this test triggers the Crash Reporter, tha

[issue22931] cookies with square brackets in value

2015-05-13 Thread R. David Murray
R. David Murray added the comment: This needs a review from the people who created and applied the security patch. Demian, did you add them to nosy already? Since this is a regression I'm going to mark it as a release blocker so Benjamin can decide whether or not it is important enough to go

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

2015-05-13 Thread R. David Murray
R. David Murray added the comment: OK, I didn't see anything obvious at least :) Thanks, Martin. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

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

2015-05-13 Thread R. David Murray
R. David Murray added the comment: Oh, I just realized I committed this without checking how it rendered... -- ___ Python tracker ___

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Timothy Cardenas
Timothy Cardenas added the comment: Hmm Ok. You are right i can do the following: from collections import UserDict from abc import ABCMeta class MetaMyDict(ABCMeta): @classmethod def __prepare__(cls, name, bases, **kwargs): return {} def __new__(mcls, name, bases, namespa

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

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99d2f83290c0 by R David Murray in branch '3.4': #23088: Clarify null termination of bytes and strings in C API. https://hg.python.org/cpython/rev/99d2f83290c0 New changeset 863f7c57081b by R David Murray in branch 'default': Merge: #23088: Clarify n

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

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +easy -patch priority: normal -> high versions: +Python 3.5 ___ Python tracker ___ ___ Pyt

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

2015-05-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file39365/fix_list_to_tuple.diff ___ Python tracker ___

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread R. David Murray
R. David Murray added the comment: ABCMeta does not support arbitrary keyword arguments, that is correct. If you want keyword arguments to be handled, you need to write your own metaclass that does so. (I'm pretty sure I'm reading the PEP correctly...if not I'm sure one of the other core dev

[issue24183] ABCMeta classes do not support the **kwargs standard class interface

2015-05-13 Thread Timothy Cardenas
New submission from Timothy Cardenas: Summary: Any class that derives from the ABCMeta class doesn't support keyword variable arguments as defined here :https://www.python.org/dev/peps/pep-3115/. Expected: If i define a simple class that derives from ABCMeta that has a kwarg the class should

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Steve Dower
Steve Dower added the comment: It's entirely possible that I missed a _PyVerify_fd call around the ftruncate implementation, since that function is now a no-op for VS 2015 builds. The only reason I didn't remove them all when adding the new handling for was because there was no trustworthy ver

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is error message? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Zachary Ware
Zachary Ware added the comment: That may be the problem; it may be time for you to upgrade to VS 2015, which is now in RC. As recently as this morning, I've had a clean test run with 2015 Community Edition on Windows 8.1. -- ___ Python tracker

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The same '2010' used for 3.4. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: Win 7, fresh build, only on 2.7 File "F:\Python\dev\27\lib\test\test_tcl.py", line 225, in test_evalfile_null_in_result self.assertEqual(tcl.eval('set a'), 'a\xc0\x80b') Fails -- messages: 243125 nosy: serhiy.storchaka, terry.reedy priority: nor

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Zachary Ware
Zachary Ware added the comment: Which version of MSVC are you using? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16991] Add OrderedDict written in C

2015-05-13 Thread Eric Snow
Changes by Eric Snow : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue16991] Add OrderedDict written in C

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: @Eric, can you set priority to "release blocker"? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: In console: pcbuild/win32/python_d.exe -m test -j6 ... [393/395/1] test_fileio Traceback (most recent call last): File "F:\Python\dev\35\lib\runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "F:\Python\dev\35\lib\runpy.py", line 85,

[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 ___

[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 _

[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 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 ___

[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

[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

[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 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

[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

[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",

[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

[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

[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

[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

[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:

[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 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 __

[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

[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

[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',

[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

[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 _

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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. --

[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

[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 _

[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

[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

[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 __

[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

[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

[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

[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
Changes by Marc-Andre Lemburg : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[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. -- __

[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 ___ ___

[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 ___ ___

[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

[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

[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

[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 ___

[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 ___

[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
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) ---

  1   2   >