[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Check if unittest.mock needs updating for PEP 451 ___ Python tracker ___ ___ Python-bugs-l

[issue19708] Check pkgutil for anything missing for PEP 451

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- components: Library (Lib) nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal status: open title: Check pkgutil for anything missing for PEP 451 versions: Python 3.4 ___ Python tracker

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Check pkgutil for anything missing for PEP 451 ___ Python tracker ___ ___ Python-bugs-list

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Check pythonrun.c is fully using PEP 451 ___ Python tracker ___ ___ Python-bugs-list maili

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- components: Interpreter Core nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal status: open title: Check pythonrun.c is fully using PEP 451 versions: Python 3.4 ___ Python tracker

[issue19710] Make sure documentation for PEP 451 is finished

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: This includes both importlib.rst and docstrings for various methods. -- assignee: docs@python components: Documentation messages: 203804 nosy: brett.cannon, docs@python, eric.snow, ncoghlan priority: normal severity: normal stage: needs patch status: ope

[issue19673] PEP 428 implementation

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm closing this issue. Please make any further comments in new issues! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +add test for changed portions after reloading a namespace package ___ Python tracker ___ _

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- components: Tests nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal stage: needs patch status: open title: Make sure there are exec_module tests for _LoaderBasics subclasses versions: Python 3.4 ___

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: http://bugs.python.org/msg202659 -- messages: 203807 nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal stage: test needed status: open title: Deprecate various things in importlib thanks to PEP 451 versions: Python 3.4 __

[issue19711] add test for changed portions after reloading a namespace package

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: http://bugs.python.org/msg202660 -- components: Tests messages: 203805 nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal stage: test needed status: open title: add test for changed portions after reloading a namespace package vers

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Deprecate various things in importlib thanks to PEP 451 ___ Python tracker ___ ___ Python-

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Make sure there are exec_module tests for _LoaderBasics subclasses ___ Python tracker ___ ___

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: Also msg202663 and msg202664 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Make sure documentation for PEP 451 is finished ___ Python tracker ___ ___ Python-bugs-lis

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: At least mocking out things if manipulating the Windows registry during testing is considered bad or difficult to make sure that stuff basically works. -- components: Library (Lib) messages: 203809 nosy: brett.cannon priority: normal severity: normal st

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Add tests for importlib.machinery.WindowsRegistryFinder ___ Python tracker ___ ___ Python-

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2013-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Berker Peksag
Berker Peksag added the comment: There is a commented-out line in Lib/importlib/_bootstrap.py: +#if hasattr(loader, 'get_data'): +if hasattr(loader, 'get_filename'): http://hg.python.org/cpython/rev/07229c6104b1#l6.369 -- ___ Python tracker

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: Removed the commented-out line in c8a84eed9155 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19689] ssl.create_default_context()

2013-11-22 Thread Christian Heimes
Christian Heimes added the comment: New patch with enum and more cleanups. I'd like to explain the rationals for the purpose argument in create_default_context and the ASN1Object thing. There are multiple things involved here. First of all a certificate may have key usage and extended key usa

[issue19689] ssl.create_default_context()

2013-11-22 Thread Christian Heimes
Christian Heimes added the comment: More links: https://www.imperialviolet.org/2012/01/30/mozillaroots.html https://github.com/bagder/curl/commit/51f0b798fa https://github.com/kennethreitz/requests/issues/1659 -- ___ Python tracker

[issue19700] Update runpy for PEP 451

2013-11-22 Thread Eric Snow
New submission from Eric Snow: This is closely related to issue #19697. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-22 Thread Charles-François Natali
Charles-François Natali added the comment: Victor, is the attached patch up-to-date? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue19689] ssl.create_default_context()

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so I still have a couple of issues with the proposed API: - if its purpose is to create a *default* context, create_default_context() shouldn't have that many arguments. The nice thing with contexts is that you can change their parameters later... So basic

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: Path.touch() doesn't seem to change the mtime under Windows, which leads to the following failure: == FAIL: test_touch_common (test.test_pathlib.PathTest)

[issue19716] test that touch doesn't change file contents

2013-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: Path.touch() shouldn't change a file's contents, but this is currently not tested for by test_pathlib. -- components: Tests keywords: easy messages: 203818 nosy: pitrou priority: normal severity: normal status: open title: test that touch doesn't chan

[issue19717] resolve() fails when the path doesn't exist

2013-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently Path.resolve() raises FileNotFoundError when the path does not exist. Guido pointed out that it may more useful to resolve the path components until one doesn't exist, and then return the rest unchanged. e.g. if /home/ points to /var/home/, Path("/

[issue19718] Path.glob() on case-insensitive Posix filesystems

2013-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: test_glob fails under OS X: == FAIL: test_glob (test.test_pathlib.PosixPathTest) -- Traceback (most recent call last): Fil

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

2013-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Victor, please accept the fact that the codec sub-system in Python doesn't only have the Unicode implementation as target. It's true that most codecs were added for the Unicode implementation, but I deliberately designed the system to be open for other purpos

[issue14373] C implementation of functools.lru_cache

2013-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a revised patch. It is synchronized with tip. Got rid of capsules (sped up about 10%). lru_list_elem is now true Python object. Got rid of the lock, the new code must be thread-safe with GIL only. I very much hope that this code will be included in 3

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Eric Snow
New submission from Eric Snow: Isn't this basically the same thing as issue #19697? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-22 Thread Eric Snow
Eric Snow added the comment: See http://www.python.org/dev/peps/pep-0451/#deprecations. -- ___ Python tracker ___ ___ Python-bugs-list

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: Failing buildbot: http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/9630/steps/test/logs/stdio test.test_module.ModuleTests.test_module_repr_source test.test_pkgutil.ExtendPathTests.test_iter_importers (passed when retried) -- ___

[issue19719] add importlib.abc.SpecLoader and SpecFinder

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: That way the ABCs can require find_spec/load_spec, inherit from the older ABCs, and provide stubs that do what's necessary to support the old, deprecated find_module/find_loader/load_module API (and automatically include the deprecation warning). -- a

[issue19674] Add introspection information for builtins

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: __signature_text__? __textsignature__? No need to abbreviate that much since there is no built-in function equivalent and people are not expected to work with it. -- ___ Python tracker

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-11-22 Thread Zachary Ware
Zachary Ware added the comment: There's a bare-bones experimental version in hg.python.org/sandbox/new_news that you can play around with in the 'playground' branch. It's not pretty, but it (mostly) works :). So far, there's just news.py, no news_release.py; but news_release.py should be pre

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: You tell me; you listed them separately in the TODO. =) If this is a dupe then close it as such. -- assignee: -> eric.snow status: open -> pending ___ Python tracker __

[issue19720] suppress context for some exceptions in importlib?

2013-11-22 Thread Eric Snow
New submission from Eric Snow: Some exceptions in importlib are raised from within except blocks, resulting in chained tracebacks. [1] For at least some of these we should consider suppressing the exception context. For example (for [1]): try: path = parent_module.__path_

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: Same failures on http://buildbot.python.org/all/builders/x86%20Gentoo%203.x/builds/5444/steps/test/logs/stdio -- ___ Python tracker ___ _

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> duplicate status: pending -> closed superseder: -> refactor pythonrun.c to make use of specs (__main__.__spec__) ___ Python tracker ___

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now that I think, I didn't encounter the failure when testing in my own Windows VM... uh. -- nosy: +brian.curtin, tim.golden ___ Python tracker ___

[issue19701] Update multiprocessing for PEP 451

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2013-11-22 Thread Eric Snow
Eric Snow added the comment: +1 -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-22 Thread Guido van Rossum
Guido van Rossum added the comment: I need help! There is one urgent issue: should the chapter on asyncio go into section 17 (Concurrent Execution) or section 18 (Interprocess Communication and Networking)??? It would seem that event loops and coroutines fit better in section 17, while trans

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Brett Cannon
Brett Cannon added the comment: The test_module failure can be triggered by running test_importlib test_module. For some reason unittest's __spec__ gets set to one for the BuiltinImporter (and nothing else). -- ___ Python tracker

[issue19716] test that touch doesn't change file contents

2013-11-22 Thread Kushal Das
Kushal Das added the comment: i will submit a patch tomorrow. -- nosy: +kushaldas ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13633] Automatically convert character references in HTMLParser

2013-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have added a couple of nitpicks on Rietveld. You can ignore most of them. ;) -- ___ Python tracker ___ _

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There is one urgent issue: should the chapter on asyncio go into > section 17 (Concurrent Execution) or section 18 (Interprocess > Communication and Networking)??? I'd put it in 18. Also, I'd move select and selectors from 17 to 18, so that only purely "execu

[issue18059] Add multibyte encoding support to pyexpat

2013-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If anybody is interested in support of multibyte encodings in XML parser, it is time to make a review. -- ___ Python tracker ___

[issue19689] ssl.create_default_context()

2013-11-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19721] Move all test_importlib utility code into test_importlib.util

2013-11-22 Thread Brett Cannon
New submission from Brett Cannon: test_importlib has a ton of utility code, typically segregated into separate util modules in each directory. But it makes importing a pain as you typically end up with the global test_importlib.util plus the directory-specific util module. Would be better to d

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

2013-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > * I think you should add the flag to the constructor of the CodecInfo >tuple subclass and then set this in the resp. codecs. The extra >constructor class method looks too much like a hack and is >not needed. I think that adding new keyword argum

[issue19689] ssl.create_default_context()

2013-11-22 Thread Christian Heimes
Christian Heimes added the comment: Antoine and I have agreed upon a slightly different API. I'm going to split it up into one public API that creates a best practice context and one internal stdlib API to unify all places that deals with SSL sockets. AP: how about we use more strict and moder

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98bab4a03120 by Brett Cannon in branch 'default': Issue #18864: Don't try and use unittest as a testing module for http://hg.python.org/cpython/rev/98bab4a03120 -- nosy: +python-dev ___ Python tracker

[issue19689] ssl.create_default_context()

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > how about we use more strict and modern settings for the public API? > TLSv1, no insecure stuff like RC4, MD5, DSS etc. > https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ Fine, but I'd like to see something more open-ended for the ciphers stri

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
New submission from Larry Hastings: Attached is a patch exposing the old opcode_stack_effect() function to Python. The patch does the following: * renames opcode_stack_effect() to PyCompile_OpcodeStackEffect() * removes the "static" modifier from PyCompile_OpcodeStackEffect() * changes PyCompi

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: (Sponging around for a reviewer ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue14373] C implementation of functools.lru_cache

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Got rid of the lock, the new code must be thread-safe with GIL only. I'm not convinced by this (see the review I posted). -- ___ Python tracker _

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: I was thinking the same thing as Antoine. 18 fits in more closely to what I understand is the purpose of asyncio (the focus on IO). -- nosy: +eric.snow ___ Python tracker

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: And indeed, the test seems to pass on another Windows buildbot: http://buildbot.python.org/all/builders/x86%20Windows%20Server%202008%20%5BSB%5D%203.x (note: my VM is under Windows 7) -- ___ Python tracker

[issue19721] Move all test_importlib utility code into test_importlib.util

2013-11-22 Thread Eric Snow
Eric Snow added the comment: +1 -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-22 Thread Guido van Rossum
Guido van Rossum added the comment: OK. I accidentally committed the patch. Will move the three modules to the ipc section now. On Fri, Nov 22, 2013 at 11:47 AM, Eric Snow wrote: > > Eric Snow added the comment: > > I was thinking the same thing as Antoine. 18 fits in more closely to what > I

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

2013-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9192c0798a90 by Zachary Ware in branch '3.3': Issue #18326: Clarify that list.sort's arguments are keyword-only. http://hg.python.org/cpython/rev/9192c0798a90 New changeset 3f1c332c5e2e by Zachary Ware in branch 'default': Issue #18326: merge with 3

[issue19659] Document Argument Clinic

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this is really necessary at some point. How to start writing a function with Argument Clinic, etc. -- components: +Build, Demos and Tools nosy: +ncoghlan, pitrou priority: normal -> critical title: Document Argument Clinic? -> Document Argument C

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: I was reviewing a patch by Larry and I started commenting on some rather tasteless code, until I realized it was generated by Argument Clinic. It would be nice if Argument Clinic added some markers, such as: /* Start of code generated by Argument Clinic */

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

2013-11-22 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: docs@python -> zach.ware resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19692] Rename Py_SAFE_DOWNCAST

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I obviously won't fight very hard for this one. But I would like to point out that APIs with "safe" (not "safely" :-)) in their name usually imply that the API is safe, not that the input has been sanitized beforehand. For example in the stdlib: pprint.

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Eric Snow
Eric Snow added the comment: FWIW, I agree with Antoine about making those PyCompile_ functions private (leading "_"). -- nosy: +eric.snow ___ Python tracker ___ ___

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: New patch, incorporating Antoine's comments. Thanks, Antoine! -- Added file: http://bugs.python.org/file32782/larry.expose.stack.effect.patch.2.diff ___ Python tracker __

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: You find the big /*[clinic checksum: b6ded2204fd0aab263564feb5aae6bac840b5b94]*/ marker insufficient? Perhaps this is simply something we will quickly get used to. How about we let this sit for a while and see what other people think. p.s. I accept your criti

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't quite understand the test: why is it dating back the file by 10s, but then not using the dated-back time stamp for anything? -- nosy: +loewis ___ Python tracker _

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-22 Thread STINNER Victor
STINNER Victor added the comment: > > Yes, it is up to date. The only difference in the mercurial repository are > the new location of the two hashtable files. -- ___ Python tracker

[issue19555] "SO" config var not getting set

2013-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a130fd92255 by Barry Warsaw in branch 'default': Issue 19555 for distutils, plus a little clean up (pyflakes, line lengths). http://hg.python.org/cpython/rev/8a130fd92255 -- ___ Python tracker

[issue19659] Document Argument Clinic

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: I quite agree. My plan is to write a quick HOWTO for now to get people up and running for now, then flesh it out into a full document. But I'm working like crazy right now to get a couple things done before beta. --

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
New submission from Eric Snow: http://buildbot.python.org/all/builders/x86%20Gentoo%203.x/builds/5448/steps/test/logs/stdio == ERROR: test_iter_importers (test.test_pkgutil.ExtendPathTests) --

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You find the big > /*[clinic checksum: b6ded2204fd0aab263564feb5aae6bac840b5b94]*/ > marker insufficient? Well, it doesn't say anything except "checksum", and it doesn't seem geared at humans (except perhaps those with a hex calculator in their head :-)). Cli

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't quite understand the test: why is it dating back the file by > 10s, but then not using the dated-back time stamp for anything? Well, it does, unless I'm misunderstanding your question: self.assertGreaterEqual(p.stat().st_mtime, old_mtime) Thi

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: This appears to be order-related, like the last failure was. To reproduce: $ ./python -m test test_importlib test_pkgutil -- ___ Python tracker ___

[issue19680] Help missing for exec and print

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: The changeset you refer to may be a backport of a Python 3 changeset, where print and exec are not keywords but functions (adding Sandro to nosy so that he may confirm). Would you like to make a patch to fix this in 2.7? http://docs.python.org/devguide contains

[issue19671] Option to select the optimization level on compileall

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: If I understand correctly, compileall is intended as a command-line tool, but there is py_compile if you want programmatic access. Does py_compile provide functions that let you control the optimization level? -- nosy: +eric.araujo _

[issue19645] decouple unittest assertions from the TestCase class

2013-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue18054] Add more exception related assertions to unittest

2013-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19642] shutil to support equivalent of: rm -f /dir/*

2013-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Stefan Krah
Stefan Krah added the comment: I think it's possible to get used to the markers. However, to bikeshed a little, I would prefer "preprocessor" instead of "clinic", since jokes tend to wear off if one sees then too often. -- nosy: +skrah ___ Python tra

[issue19640] Drop _source attribute of namedtuple

2013-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19640] Drop _source attribute of namedtuple

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: In a first version namedtuple had an argument (named echo or verbose) that would cause the source code to be printed out, for use at the interactive prompt. Raymond later changed it to a _source attribute, more easy to work with than printed output. About the o

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, the sequence of events is this: 1. touch 2. read old_mtime 3. date back 10s 4. touch 5. read mtime So the time stamp that is set in step 3 is never read, correct? So there is no test that it is newer than the 10s-old-stamp, but only newer then the recen

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

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: Would you like to propose a patch to the documentation? It’s possible that “updating” is explained in one place but not everywhere (doc for open, doc for io, doc about file objects). -- nosy: +eric.araujo ___ Python t

[issue19639] Improve re match objects display

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: Good catch, thanks! -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19620] tokenize documentation contains typos (argment instead of argument)

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: Thanks for catching this, would you like to make a patch? http://docs.python.org/devguide gives help to do that. -- nosy: +eric.araujo ___ Python tracker _

[issue19716] test that touch doesn't change file contents

2013-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59f3e50061bd by Eric Snow in branch 'default': Issue #19724: clear out colliding temp module. http://hg.python.org/cpython/rev/59f3e50061bd -- nosy: +python-dev ___ Python tracker

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11357] Add support for PEP 381 Mirror Authenticity

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: Mirroring protocol is deprecated. -- assignee: tarek -> resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > IIUC, the sequence of events is this: > 1. touch > 2. read old_mtime > 3. date back 10s > 4. touch > 5. read mtime > > So the time stamp that is set in step 3 is never read, correct? So > there is no test that it is newer than the 10s-old-stamp, but only > new

[issue19640] Drop _source attribute of namedtuple

2013-11-22 Thread Eric Snow
Eric Snow added the comment: A while back, because of those python-ideas discussions, Raymond added a link at the bottom of the namedtuple section of the docs at http://docs.python.org/3.4/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields. The link points to a

[issue12226] use HTTPS by default for uploading packages to pypi

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: Donald assesses that porting the changeset to 2.7 would “make things a little nicer”, as it protects from passive attacks only. The change is small. What do people think? -- ___ Python tracker

[issue12226] use HTTPS by default for uploading packages to pypi

2013-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, passive attacks are the easiest to mount by a casual attacker, so I think this is important to get in. -- ___ Python tracker ___

<    1   2   3   4   >