[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch restores the aliases for the binary and text transforms, adds a test to ensure they exist and restores the "Aliases" column to the relevant tables in the documentation. It also updates the relevant section in the What's New document. I also tweak

[issue19282] dbm.open should be a context manager

2013-11-16 Thread Claudiu.Popa
Claudiu.Popa added the comment: Cool, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-11-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sat, Nov 16, 2013 at 04:33:36PM +, Serhiy Storchaka wrote: > > Should we add these methods to other concrete Number subclasses (as Fraction > and complex)? Seems like a good idea to me. Is it worth making them part of the Number ABC, or is that too mu

[issue19282] dbm.open should be a context manager

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: I also changed the signature of the enter/exit methods to just use PyObject * (rather than dbmobject *), since that allowed a bunch of casts to be removed and eliminated a couple of compiler warnings about type mismatches. -- ___

[issue19282] dbm.open should be a context manager

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Claudiu! Additional tweaks in the committed version: - added a paragraph to the docs about the with statement support and moved the versionchanged note there - changed the example in the docs to use a with statement - added a basic test that the dumbdbm i

[issue19282] dbm.open should be a context manager

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2f1bb56760d by Nick Coghlan in branch 'default': Close #19282: Native context management in dbm http://hg.python.org/cpython/rev/c2f1bb56760d -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: open

[issue19296] Compiler warning when compiling dbm module

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: I get the same warning on Fedora 19. However, the signature of dbmopen_impl is generated by argument clinic, so it isn't simply a matter of patching the signature in place. I'm also inclined to consider the *platform* header to be wrong, since the dbm_open API r

[issue19618] test_sysconfig_module fails on Ubuntu 12.04

2013-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, about system comment. Got here by link on mail list and read message, not title. Py version is still relevant, as one should try latest releases before reporting. -- ___ Python tracker

[issue19618] test_sysconfig_module fails on Ubuntu 12.04

2013-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please add system/os/py-version info. On my Win7-64 machine, C:\Programs\Python34>python -m test -v test_sysconfig C:\Programs\Python34>python -m distutils.tests.test_sysconfig both pass (and run slightly different sets of tests). -- nosy: +terry.reedy

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eli.bendersky, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue19600] Use specific asserts in distutils tests

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19594] Use specific asserts in unittest tests

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19371] timing test too tight

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I think v2 is enough, but v3 is fine with me if people think v3 it's better. -- ___ Python tracker ___ ___

[issue19238] Misleading explanation of fill and align in format_spec

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b0690c9a026 by Ezio Melotti in branch '2.7': #19238: fix typo in documentation. http://hg.python.org/cpython/rev/2b0690c9a026 New changeset 7e3f8026ed30 by Ezio Melotti in branch '3.3': #19238: fix typo in documentation. http://hg.python.org/cpytho

[issue19238] Misleading explanation of fill and align in format_spec

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for noticing! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I left a couple of comments on rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch removes assertDictContainsSubset(). -- Added file: http://bugs.python.org/file32662/issue13248.diff ___ Python tracker ___

[issue19454] devguide: Document what a "platform support" is

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue19412] Add docs for test.support.requires_docstrings decorator

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I was bitten by this in #19535. See the third point about test_contextlib in msg203071. I would expect support.requires_docstring to skip the test if -OO is used and the docstrings are missing. -- ___ Python tracker

[issue19362] Documentation for len() fails to mention that it works on sets

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's better to do: -Return the number of items of a sequence or mapping. +Return the number of items of a sequence or container. While it's true that most sequences are clearly containers (e.g. lists), the same is not so evident for other types like bytes

[issue19382] tabnanny unit tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld. -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___

[issue19383] nturl2path test coverage

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: The assertions have their arguments in the wrong order, it should be (actual, expected). In the code of the module there are also some examples in the comments, e.g.: # path is something like host/path/on/remote/host # convert this to \\host\path\on\remote\hos

[issue17618] base85 encoding

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch incorporating Serhiy's self-review from 6 months ago (grr). -- Added file: http://bugs.python.org/file32661/base85-2.patch ___ Python tracker

[issue19608] devguide needs pictures

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: Plain ASCII-art might also be enough, but without specific indication of what kind of pictures you want and where you want them I'm going to close this. -- status: open -> pending ___ Python tracker

[issue19607] Use specific asserts in weakref tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM (I left a comment on rietveld). -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-lis

[issue19603] Use specific asserts in test_decr

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Ezio's comments. -- Added file: http://bugs.python.org/file32660/test_descr_asserts_2.patch ___ Python tracker ___ ___

[issue19606] Use specific asserts in http.cookiejar tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM (I left a comment on rietveld). -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-lis

[issue19605] Use specific asserts in datetime tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM (I left a comment on rietveld). -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-lis

[issue17618] base85 encoding

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch with suggested API changes, + docs. -- Added file: http://bugs.python.org/file32659/base85.patch ___ Python tracker ___ __

[issue19627] python open built-in function - "updating" is not defined

2013-11-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue10712] 2to3 fixer for deprecated unittest method names

2013-11-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19600] Use specific asserts in distutils tests

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a0236f3f972 by Serhiy Storchaka in branch '3.3': Issue #19600: Use specific asserts in distutils tests. http://hg.python.org/cpython/rev/5a0236f3f972 New changeset 6a3501aab559 by Serhiy Storchaka in branch 'default': Issue #19600: Use specific ass

[issue19603] Use specific asserts in test_decr

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list

[issue19594] Use specific asserts in unittest tests

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f32353baecc3 by Serhiy Storchaka in branch '3.3': Issue #19594: Use specific asserts in unittest tests. http://hg.python.org/cpython/rev/f32353baecc3 New changeset aacb0bd969e5 by Serhiy Storchaka in branch 'default': Issue #19594: Use specific asse

[issue19604] Use specific asserts in array tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue19603] Use specific asserts in test_decr

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file32658/test_descr_asserts.patch ___ Python tracker ___ ___

[issue19591] Use specific asserts in ctype tests

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8dbb78be2496 by Serhiy Storchaka in branch '2.7': Issue #19591: Use specific asserts in ctype tests. http://hg.python.org/cpython/rev/8dbb78be2496 -- ___ Python tracker

[issue19602] Use specific asserts in tkinter tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- nosy: +ezio.melotti stage: patch review -> commit review ___ Python tracker ___ ___ Python-bu

[issue19597] Add decorator for tests not yet implemented

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this doesn't sound like a terrific idea to me. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue19601] Use specific asserts in sqlite3 tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- nosy: +ezio.melotti stage: patch review -> commit review ___ Python tracker ___ ___ Python-bu

[issue19600] Use specific asserts in distutils tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM (I left a comment on rietveld). -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-lis

[issue19591] Use specific asserts in ctype tests

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98adbaccaae3 by Serhiy Storchaka in branch '3.3': Issue #19591: Use specific asserts in ctype tests. http://hg.python.org/cpython/rev/98adbaccaae3 New changeset 5fa9293b6cde by Serhiy Storchaka in branch 'default': Issue #19591: Use specific asserts

[issue19597] Add decorator for tests not yet implemented

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think a new option for regrtest is necessary. I'm also not sure expected failure is a good idea -- in some cases it might be better to report a skip or an error. Do you have other examples where this can be used? If there aren't many occurrences we might

[issue19595] Silently skipped test in test_winsound

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: Maybe someone else can try it, or just enable it and see if the buildbots are happy (I think you can use custom builds as well for this kind of experiments). > at least on 3.4 an unexpected success is silently ignored by regrtest is this expected? -- n

[issue19594] Use specific asserts in unittest tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue19629] support.rmtree fails on symlinks under Windows

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: shutil.rmtree() uses os.lstat() while support.rmtree() calls os.path.isdir() instead. -- ___ Python tracker ___ ___

[issue19629] support.rmtree fails on symlinks under Windows

2013-11-16 Thread Antoine Pitrou
New submission from Antoine Pitrou: support.rmtree doesn't work under Windows when there are symlinks (the symlinks aren't deleted anymore), while shutil.rmtree() works fine: >>> support.rmtree("@test_2160_tmp") >>> os.listdir("@test_2160_tmp") ['dirA', 'dirB', 'dirC', 'fileA', 'linkA', 'linkB'

[issue19593] Use specific asserts in importlib tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: Patch LGTM. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19591] Use specific asserts in ctype tests

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- nosy: +ezio.melotti stage: patch review -> commit review ___ Python tracker ___ ___ Python-bu

[issue19588] Silently skipped test in test_random

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue19587] Remove empty tests in test_bytes.FixedStringTest

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I said this elsewhere but I'll repeat it here. I think the whole string_tests could/should be reorganized (and possibly documented). There are lot of classes and mixins on several files, and more than once I found tests that were accidentally not run or had othe

[issue19628] maxlevels -1 on compileall for unlimited recursion

2013-11-16 Thread Sworddragon
New submission from Sworddragon: All functions of compileall are providing a maxlevels argument which defaults to 10. But it is currently not possible to disable this recursion limitation. Maybe it would be useful to have a special value like -1 to disable this limitation and allow to compile

[issue19572] Report more silently skipped tests as skipped

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Except pickletester and test_posix third patch LGTM. test_posix is worth separate issue. test_reduce and test_getinitargs in pickletester are always empty and can be just removed (if you don't want implement them). -- ___

[issue19535] Test failures with -OO

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, test_contextlib shouldn't be fixed. It failed due to cached non-optimized test.support. -- ___ Python tracker ___ ___

[issue19535] Test failures with -OO

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch fixes test_contextlib and test_statistics too. I think test_asyncio is worth separated issue too. -- Added file: http://bugs.python.org/file32657/issue19535_3.patch ___ Python tracker

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some examples: >>> import zipfile >>> z = zipfile.ZipFile('README.zip') >>> z.filelist[0].extra b'UT\x05\x00\x03\xe0\xc3\x87Rux\x0b\x00\x01\x04\xe8\x03\x00\x00\x04\xe8\x03\x00\x00' >>> z.filelist[0].extra_map >>> list(z.filelist[0].extra_map.items()) [(21589,

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32655/README.dz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32656/README.zip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32654/zipfile_extra.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30411/gzip_extra.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32653/gzip_extra.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17681] Work with an extra field of gzip and zip files

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30412/zip_extra.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19573] Fix the docstring of inspect.Parameter and the implementation of _ParameterKind

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ethan.furman, ezio.melotti, ncoghlan stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ _

[issue19572] Report more silently skipped tests as skipped

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I get a failure on Linux with test_posix: $ ./python -m test test_posix [1/1] test_posix test test_posix failed -- Traceback (most recent call last): File "/home/wolf/dev/py/py3k/Lib/test/test_posix.py", line 713, in test_getcwd_long_pathnames _create_and_do

[issue19627] python open built-in function - "updating" is not defined

2013-11-16 Thread Bulwersator
New submission from Bulwersator: see http://stackoverflow.com/questions/1466000/python-open-built-in-function-difference-between-modes-a-a-w-w-and-r - "The Python docs conveniently leave out the crucial explanation that "open the file for updating" means "opens the file for both reading and wr

[issue16203] Proposal: add re.fullmatch() method

2013-11-16 Thread Matthew Barnett
Matthew Barnett added the comment: I don't know that it's not needed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19535] Test failures with -OO

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: I created #19626 for the test_email failures. -- dependencies: +test_email and Lib/email/_policybase.py failures with -OO ___ Python tracker ___ _

[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-16 Thread Ezio Melotti
New submission from Ezio Melotti: >From #19535: $ ./python -OO -m test -v test_email [...] == ERROR: test_policy (unittest.loader.ModuleImportFailure) -- Trac

[issue19535] Test failures with -OO

2013-11-16 Thread Ezio Melotti
Ezio Melotti added the comment: Patch LGTM. I'm getting 4 additional failures on 3.4: test_asyncio test_contextlib test_email test_statistics * test_statistics is fixed by the attached patch. * test_email fails in Lib/email/_policybase.py:95 -- this probably deservers a separate issue. * test_

[issue16510] Using appropriate checks in tests

2013-11-16 Thread R. David Murray
R. David Murray added the comment: Jason: yes, if it is broken down into small enough pieces for the module maintainer to be comfortable with the review :). I approved Serhiy's separate patch for test_email. I still wasn't sure about backporting, but I really don't like the 'unless' construc

[issue19553] PEP 453: "make install" and "make altinstall" integration

2013-11-16 Thread Ned Deily
Ned Deily added the comment: 1. Yes, I think so. 2. OK 3. Ah, I was just using the default 1.4.1 from PyPI. With current dev from github, the result is now pip3.4 like the wheel install. So once 1.5.x is released, this shouldn't be a problem. 4. Sorry, I was imprecise. For "-m ensurepip --

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 16.11.2013 15:52, Nick Coghlan wrote: > > The only reasonable way to accurately represent "anything that exposes a > buffer memoryview can read" as a type check is to write an appropriately > duck-typed ABC. You can't enumerate all the types that the bi

[issue19535] Test failures with -OO

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually test_inspect is affected by -O. Here is updated patch. -- Added file: http://bugs.python.org/file32651/issue19535_2.patch ___ Python tracker

[issue19255] Don't "wipe" builtins at shutdown

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17806] Add keyword args support to str/bytes.expandtabs()

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

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-16 Thread Christian Heimes
Christian Heimes added the comment: The numbers are between cpython default tip and my feature branch. I have pulled and merged all upstream changes into my feature branch yesterday. The results with "sso" in the file name are with small string optimization. Performance greatly depends on comp

[issue17806] Add keyword args support to str/bytes.expandtabs()

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82b58807f481 by Ezio Melotti in branch 'default': #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). http://hg.python.org/cpython/rev/82b58807f481 -- nosy: +python-dev ___ Pyt

[issue10712] 2to3 fixer for deprecated unittest method names

2013-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue17806] Add keyword args support to str/bytes.expandtabs()

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ezio, you can commit the patch if you want. -- stage: patch review -> commit review ___ Python tracker ___ ___

[issue19099] struct.pack fails first time with unicode fmt

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any comments? -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13477] tarfile module should have a command line

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have added comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should we add these methods to other concrete Number subclasses (as Fraction and complex)? -- ___ Python tracker ___

[issue19553] PEP 453: "make install" and "make altinstall" integration

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: For the record: the current "--default-pip" option is the one that was previously "--default-install". I switched it because having the default installation behaviour be something other than the behaviour requested via the "--default-install" option really didn'

[issue16203] Proposal: add re.fullmatch() method

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Matthew, could you please answer my question? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue19625] IDLE should use UTF-8 as it's default encoding

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue15809. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> IDLE console uses incorrect encoding. type: -> behavior _

[issue16510] Using appropriate checks in tests

2013-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is synchronized to tip the patch which doesn't include patches for already separated children issues. It touches 129 files and modifies over 600 lines. -- Added file: http://bugs.python.org/file32650/tests_asserts_3.patch ___

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-16 Thread Gregory Salvan
Gregory Salvan added the comment: nice if it helps. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19553] PEP 453: "make install" and "make altinstall" integration

2013-11-16 Thread Donald Stufft
Donald Stufft added the comment: 1. This is bound to be an issue that stems from the fact pip is doing the install instead of distutils. It probably makes sense to use the group id of the parent directory I think? 2. This is a side effect of Wheel being a whole new way to install, previously

[issue19553] PEP 453: "make install" and "make altinstall" integration

2013-11-16 Thread Ned Deily
Ned Deily added the comment: I think the most serious problem is 3 since it directly affects the end user. It would be good to have that fixed someway for 3.4.0b1. Resolutions to the other items could wait. -- ___ Python tracker

[issue16510] Using appropriate checks in tests

2013-11-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: A third counterargument is: 3. Newer developers (and even seasoned ones) adding new tests may use existing tests as a model for best practices. If the existing tests model sub-optimal practices, then those practices will be perpetuated both in the codebase an

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff471d8526a8 by Jason R. Coombs in branch 'default': Issue #19586: Update remaining deprecated assertions to their preferred usage. http://hg.python.org/cpython/rev/ff471d8526a8 -- nosy: +python-dev ___ P

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Gregory for the report and patch. I was unaware of this ticket when I was correcting the deprecation warnings for distutils, so I've just used your patch as a reference and pushed the remaining fixes as you indicated. -- resolution: -> fixed s

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Benchmark report (without the small strings optimization): http://bpaste.net/show/UohtA8dmSREbrtsJYfTI/ -- ___ Python tracker ___ _

[issue19548] 'codecs' module docs improvements

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: On 16 November 2013 23:33, Marc-Andre Lemburg wrote: > On 16.11.2013 14:25, Nick Coghlan wrote: > Those were not documented on purpose, since they are an implementation > detail of the encodings package search function. > > If you document them now, you'll set the

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, amusingly, Christian's patch seems to be 4-5% faster than vanilla on many benchmarks here (Sandy Bridge Core i5, 64-bit, gcc 4.8.1). A couple of benchmarks are a couple % slower, but nothing severe. This without the small strings optimization. On top of t

[issue19625] IDLE should use UTF-8 as it's default encoding

2013-11-16 Thread irdb
New submission from irdb: >>> s = 'ی' Unsupported characters in input I'm using windows 8 and Python 2.7.6. The same line works perfectly if I save it in a module with encoding set to UTF-8; but it's really annoying that I can't test my code directly in IDLE. -- components: IDLE messa

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-11-16 Thread Nick Coghlan
Nick Coghlan added the comment: The only reasonable way to accurately represent "anything that exposes a buffer memoryview can read" as a type check is to write an appropriately duck-typed ABC. You can't enumerate all the types that the binary codecs accept as input, because that list of types

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2013-11-16 Thread STINNER Victor
STINNER Victor added the comment: > Only one week left before feature freeze. This issue is an optimization, not a new feature. -- ___ Python tracker ___ ___

[issue19548] 'codecs' module docs improvements

2013-11-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 16.11.2013 15:03, Mark Lawrence wrote: > > Mark Lawrence added the comment: > > Could they be documented with a massive warning in red "Cpython > implementation detail - subject to change without notice"? Or documented in > a place that is only access

  1   2   >