[issue18086] Create importlib.util.set_attrs_post_import()

2013-05-28 Thread Brett Cannon
New submission from Brett Cannon: There is no good reason to have set_loader and set_package separately. There should just be a single decorator which sets both of those attributes post-import (with the proper doc note saying use module_for_loader instead when possible to have the attributes s

[issue18087] os.listdir don't show hidden option

2013-05-28 Thread Dražen Lučanin
New submission from Dražen Lučanin: I would like to be able to list a directory, but without showing hidden files. Currently, as discussed in a SO question [1], one has to either code this manually or resort to other libraries (glob). This functionality should be available in the os module. [

[issue18083] _sysconfigdata.py is installed in an arch-independent directory

2013-05-28 Thread Matthias Klose
Matthias Klose added the comment: Did Solaris adopt MultiArch? ;-P Nice! So what I did for the Debian and Ubuntu builds is: - to rename plat-linux to plat- (or plat-) - and install it there. Note that IN.py is another architecture dependent file which differs at least on several linux

[issue18087] os.listdir don't show hidden option

2013-05-28 Thread Dmi Baranov
Dmi Baranov added the comment: So, I'm having a .gitignore file on Windows. Its hidden or not? In other words, only your code feel the difference in "hidden files policy". BTW, Mas OSX using two ways - dotfiles and "invisible" flags in Finder: $ chflags hidden i-am-hidden-now.txt (but 'ls' sho

[issue18080] setting CC no longer overrides default linker for extension module builds on OS X

2013-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca24bc6a5a4b by Ned Deily in branch '2.7': Issue #18080: When building a C extension module on OS X, if the compiler http://hg.python.org/cpython/rev/ca24bc6a5a4b New changeset 75432fb6b9af by Ned Deily in branch '3.3': Issue #18080: When building a

[issue18080] setting CC no longer overrides default linker for extension module builds on OS X

2013-05-28 Thread Ned Deily
Ned Deily added the comment: Committed for release with 2.7.6 and 3.3.3. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue18088] Create importlib.abc.Loader.init_module_attrs()

2013-05-28 Thread Brett Cannon
New submission from Brett Cannon: There are a bunch of attributes that need to be set on a module, and yet they are only handled by various decorators in importlib.util. The problem with that is there is no way in the API to override or expand upon setting those attributes pre-loading; only po

[issue18086] Create importlib.util.set_attrs_post_import()

2013-05-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> rejected status: open -> closed superseder: -> Create importlib.abc.Loader.init_module_attrs() ___ Python tracker ___ __

[issue18089] Create importlib.abc.InspectLoader.load_module()

2013-05-28 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Create importlib.abc.Loader.init_module_attrs() ___ Python tracker ___ ___ Python-bugs-lis

[issue18089] Create importlib.abc.InspectLoader.load_module()

2013-05-28 Thread Brett Cannon
New submission from Brett Cannon: -- assignee: brett.cannon components: Library (Lib) messages: 190261 nosy: brett.cannon priority: normal severity: normal stage: test needed status: open title: Create importlib.abc.InspectLoader.load_module() type: enhancement versions: Python 3.4 ___

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 672614d809a1 by Andrew Kuchling in branch 'default': #1554133: Document PyOS_InputHook, PyOS_ReadlineFunctionPointer http://hg.python.org/cpython/rev/672614d809a1 -- nosy: +python-dev ___ Python tracker

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-28 Thread Larry Hastings
New submission from Larry Hastings: I'm monkeying around with CPython trunk, and just noticed the following declaration in Objects/dictobject.c: static PyObject * dict_contains(register PyDictObject *mp, PyObject *key) Although dict_contains is a static method, it's cast to PyCFunction

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-28 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: -Python 2.7, Python 3.3 ___ Python tracker ___

[issue18091] Remove PyNoArgsFunction

2013-05-28 Thread Larry Hastings
New submission from Larry Hastings: There's a typedef in methodobject.h called PyNoArgsFunction. You might think it's used for METH_NOARGS functions--you'd be wrong, those use PyCFunction and pass in NULL for args. No, PyNoArgsFunction is never used. Nor is it documented. It's found in exa

[issue16102] uuid._netbios_getnode() is outdated

2013-05-28 Thread A.M. Kuchling
A.M. Kuchling added the comment: This patch seems obviously correct to me, so it should be applied. It looks like there's already a test in test_uuid.py that exercises _netbios_getnode() if the netbios module is importable, so there's no test to add, though maybe we need a buildbot that has

[issue15392] Create a unittest framework for IDLE

2013-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 968f6094788b by Terry Jan Reedy in branch '3.3': Issue #15392: Do not run tests if threading/_thread not available. Otherwise http://hg.python.org/cpython/rev/968f6094788b -- ___ Python tracker

[issue18020] html.escape 10x slower than cgi.escape

2013-05-28 Thread A.M. Kuchling
A.M. Kuchling added the comment: Matt's patch looks good to me. It removes two module-level dicts, but they're marked as internal, so that's OK. There's already a test case that exercises html.escape(), so I don't think any additional tests are needed. -- nosy: +akuchling __

[issue1693050] \w not helpful for non-Roman scripts

2013-05-28 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: Maybe you could show us the byte-for-byte hex of the string you're testing so we can examine if it's really a code point intending word boundary or just a code point for the sake of beginning a new character. --

[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2013-05-28 Thread Roger Serwy
Roger Serwy added the comment: For me, 3.3.2 32-bit won't pin to the taskbar, but 3.3.1 can. Running lnk-parser on the .lnk files for IDLE reveal no obvious differences. -- ___ Python tracker _

[issue17511] Idle find function closes after each find operation

2013-05-28 Thread Roger Serwy
Roger Serwy added the comment: I debated whether or not to leave #14146 as pending or to close it out altogether. I'd rather not let the design decisions of Tk dictate inconsistent cross-platform behavior for IDLE, but I'm willing to hear Tk's rationale and possible fix for that problem. I wo

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears fixed for not, even if not the way we would like. Thanks. If a future tk changes, a new patch will be version-dependent and that will be a new issue. -- resolution: later -> fixed status: pending -> closed _

[issue17511] Idle find function closes after each find operation

2013-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #14146. Same comment will apply here once this is committed. I would like to try the latest patch here before that, and will try to do so tomorrow. I agree with trying to be consistent across platforms. I am pretty sure that use of multiple personal c

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: We document what we're willing to guarantee. The exposure of descriptors in old-style classes was an incidental implementation detail. Sorry, I'm going to close this one. Besides, it's time to start forgetting Python 2 and move along :-) -- reso

[issue18092] Python 2.7.5 installation broken on OpenSuse 12.2

2013-05-28 Thread Andreas Jung
Changes by Andreas Jung : -- components: +Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18092] Python 2.7.5 installation broken on OpenSuse 12.2

2013-05-28 Thread Andreas Jung
New submission from Andreas Jung: I tried to install 2.7.5 on my OpenSuse 12.2 (latest patches) ajung@blackmoon2:~/sandboxes/mib.portal> cat /etc/issue Welcome to openSUSE 12.2 "Mantis" - Kernel \r (\l). Compilation went fine (no visible errors). Starting the interpreter gives me: ajung@blac

<    1   2