[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-09 Thread Frank Thommen
Frank Thommen added the comment: It might be an issue of strict ACL mapping (http://wiki.linux-nfs.org/wiki/index.php/ACLs) is implemented. On our ZFS based NFS v4 server this is the case, on CentOS based NFS v4 servers this doesn't seem to be implemented/enforced. It becomes then st

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-17 Thread Frank Thommen
Frank Thommen added the comment: strace gives me the error: unlink("/mnt/tmpu817xz") = -1 EIO (Input/output error) But after escalating the issue to our server vendor it turned out that the problem lies in the filesystem option "nbmand". If this option is set to "

[issue20791] copy.copy(bytes) is slow

2014-02-27 Thread Frank Millman
New submission from Frank Millman: Using copy.copy on a byte string returns a new copy instead of the original immutable object. Using copy.deepcopy returns the original, as expected. Testing with timeit, copy.copy is much slower than copy.deepcopy. >>> import copy >>>

[issue6704] better col_offset for AST in statements like "for a, b in ..."

2009-08-14 Thread Frank Wierzbicki
New submission from Frank Wierzbicki : For statements like: for a,b in c: pass The Tuple node "a,b" ends up with a col_offset of 0 (the position of the "for"), but the col_offset should probably be 4 (the position of "a"). This is more consistent with other

[issue6704] better col_offset for AST in statements like "for a, b in ..."

2009-08-14 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Adding tests to test_ast.py for the three cases that exercise the "for a,b" scenario. Also fixed a small bug in the test code generator in test_ast.py -- Added file: http://bugs.python.org/file1472

[issue6811] add a filename argument to marshal.load*

2009-09-07 Thread Frank Wierzbicki
Changes by Frank Wierzbicki : -- nosy: +fwierzbicki ___ Python tracker <http://bugs.python.org/issue6811> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6816] Provide CPython command line functionality via runpy module

2009-09-07 Thread Frank Wierzbicki
Changes by Frank Wierzbicki : -- nosy: +fwierzbicki ___ Python tracker <http://bugs.python.org/issue6816> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-10-28 Thread Frank Wierzbicki
Changes by Frank Wierzbicki : -- nosy: +fwierzbicki ___ Python tracker <http://bugs.python.org/issue7175> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7571] Change 'name' of Process - assertion failure if Unicode

2009-12-23 Thread Frank Millman
New submission from Frank Millman : At the top of my program, I have 'from __future__ import unicode_literals'. I subclassed Process, and passed "name='test'" as an argument. I got the following traceback. Traceback (most recent call last): File "F:\jun

[issue7688] TypeError: __name__ must be set to a string object

2010-01-12 Thread Frank Millman
New submission from Frank Millman : At the top of my program I have 'from __future__ import unicode_literals'. The relevant lines from my program read - from multiprocessing.managers import BaseManager class MyManager(BaseManager): pass MyManager.register('my_functio

[issue5605] Don't assume that repr of literal dicts are sorted like pprint sorts them.

2009-03-30 Thread Frank Wierzbicki
New submission from Frank Wierzbicki : test_same_as_repr in test_pprint.py assumes repr of literal dict {5:6, 7:8} will be ordered. This definitely is not the case for Jython, and the comments above the test appear to indicate that it is not a guarantee of CPython either. -- components

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Frank Chu
Frank Chu added the comment: Hi, This is a patch that uses poll() in subprocess.communicate() if it is available. This is my first patch and may contain style errors. I try to conform to PEP 8 as close as I can. Besides the discussion here, I would like to add this is desired because select

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Frank Chu
Frank Chu added the comment: Updated with new patch. I moved the try: except logic in the module initialization step so I get a global has_poll, similar to the global mswindows already there. I now use a try/except/else to be more robust (not needed now since it's only "has_poll =

[issue3392] subprocess fails in select when descriptors are large

2009-07-04 Thread Frank Chu
Frank Chu added the comment: Thanks! Good to hear it's checked in finally :-). Frank On Fri, Jul 3, 2009 at 7:47 PM, Gregory P. Smith wrote: > > Gregory P. Smith added the comment: > > Merged to py3k in r73833. > > -- > > ___

[issue29062] Documentation link error

2016-12-24 Thread Frank Millman
New submission from Frank Millman: If you call up online documentation for Python3.6, and select modules>h>hashlib, it takes you to 15.2. hashlib — BLAKE2 hash functions It should take you to 15.1. hashlib — Secure hashes and message digests -- assignee: docs@python comp

[issue27449] pip install --upgrade pip (Windows)

2016-07-04 Thread frank-e
New submission from frank-e: `python -m pip install --upgrade pip` on Windows 7 with Python 3.5.2 installed for all users, PermissionError: [WinError 5] Access denied: 'c:\\program files\\python35\\lib\\site-packages\\p ip-8.1.1.dist-info\\description.rst' -- components: Win

[issue27449] pip install --upgrade pip (Windows)

2016-07-12 Thread frank-e
frank-e added the comment: Thanks, worked, most likely an error on my side (command line window without admin rights). -- ___ Python tracker <http://bugs.python.org/issue27

[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2013-03-23 Thread Frank Hamand
Frank Hamand added the comment: >From msg172531 in issue10551: "You see, "MIME\Database\Content Type" in the Windows registry is a mime type -> file extension mapping, *not the other way around*. But read_windows_registry() tries to use it as a file extension -> mim

[issue17669] Segfault caused by

2013-04-08 Thread Frank Hamand
Changes by Frank Hamand : -- components: Interpreter Core, Windows nosy: fhamand priority: normal severity: normal status: open title: Segfault caused by type: crash versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue17

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Frank Hamand
New submission from Frank Hamand: I've found a very strange bug in python 3.3 It's taken me around an hour just to narrow it down to a small case where it happens. I cannot for the life of me figure out the exact cause. It seems to have something to do with "yield from&quo

[issue17669] Segfault caused by weird combination of imports and yield from

2013-04-08 Thread Frank Hamand
Frank Hamand added the comment: The file contents so people dont have to download the zip: generators.py: --- def subgen(): yield def other_gen(self): move = yield from subgen() game.py: --- class Game(object): def

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2014-10-24 Thread Matt Frank
Changes by Matt Frank : -- nosy: +WanderingLogic ___ Python tracker <http://bugs.python.org/issue20306> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2014-10-24 Thread Matt Frank
Matt Frank added the comment: Here is shiz's patch extended with the addition to configure.ac. I added the variable HAVE_PASSWD_GECOS_FIELD and the appropriate tests. Luckily this very problem (missing pw_gecos field) is the example used in the autoconf manual (https://www.gnu.org/sof

[issue21668] The select and time modules uses libm functions without linking against it

2014-10-27 Thread Matt Frank
Changes by Matt Frank : -- nosy: +WanderingLogic Added file: http://bugs.python.org/file37041/audioop_ctypes_test_link_with_libm.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21668] The select and time modules uses libm functions without linking against it

2014-10-27 Thread Matt Frank
Matt Frank added the comment: Additionally, * audioop calls floor() * _ctypes_test calls sqrt() Patch attached. -- ___ Python tracker <http://bugs.python.org/issue21

[issue21668] The select and time modules uses libm functions without linking against it

2014-10-27 Thread Matt Frank
Changes by Matt Frank : -- nosy: +freakboy3742 ___ Python tracker <http://bugs.python.org/issue21668> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2014-10-27 Thread Matt Frank
Changes by Matt Frank : -- nosy: +freakboy3742 ___ Python tracker <http://bugs.python.org/issue20306> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21668] The select and time modules uses libm functions without linking against it

2014-10-27 Thread Matt Frank
Matt Frank added the comment: >> audioop_ctypes_test_link_with_libm.patch > + libraries=['m']) > Why not using math_libs here? math_libs is defined in detect_modules(). But the _ctypes_test extension is defined in a different function: detec

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-27 Thread Matt Frank
New submission from Matt Frank: On systems where configure is unable to find langinfo.h (or where nl_langinfo() is not defined), configure undefines HAVE_LANGINFO_H in pyconfig.h. Then in pythonrun.c:get_locale_encoding() the call to nl_langinfo() is wrapped in an #ifdef, but the #else path

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Matt Frank
Matt Frank added the comment: My platform is the Android command-line shell. Essentially it is like an embedded linux platform with a very quirky partially implemented libc (not glibc). It has no langinfo.h and while it has locale.h, the implementations of setlocale() and localeconv() do

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Matt Frank
Matt Frank added the comment: I am working on using my resources at Intel to put some pressure on Google to fix some of the (many) problems in the Bionic libc. I have a sort of "polyfill" library that implements locale.h, langinfo.h, as well as the structure definitions for wchar

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-11-05 Thread Matt Frank
Changes by Matt Frank : -- nosy: +WanderingLogic ___ Python tracker <http://bugs.python.org/issue16255> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Matt Frank
Changes by Matt Frank : -- nosy: +WanderingLogic ___ Python tracker <http://bugs.python.org/issue16353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5717] os.defpath includes unix /bin on windows

2014-11-05 Thread Matt Frank
Changes by Matt Frank : -- nosy: +WanderingLogic ___ Python tracker <http://bugs.python.org/issue5717> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Matt Frank
Matt Frank added the comment: Unfortunately os.defpath seems to be hardcoded. And hardcoded to the wrong value on every system I have looked at, including Linux. Lib/posixpath.py sets defpath=':/bin:/usr/bin' which is _not_ what `getconf CS_PATH` returns on my Linux (the extra

[issue5717] os.defpath includes unix /bin on windows

2014-11-05 Thread Matt Frank
Matt Frank added the comment: os.defpath also seems wrong on Mac (':') and Linux (':/bin:/bin/sh'. The extra ':' at the beginning means the same thing as '.:/bin:/bin/sh' which is probably a security problem. I just started up discussion on http

[issue16353] add function to os module for getting path to default shell

2014-11-06 Thread Matt Frank
Matt Frank added the comment: In msg174930 Christian Heimes (christian.heimes) wrote: > I've tested confstr("CS_PATH") on Linux, Mac OS X, Solaris, HP-UX > and BSD. It works and the path to `sh` is always included. In msg230713 Ned Deily(ned.deily) wrote: > ignore Lib/ma

[issue16353] add function to os module for getting path to default shell

2014-11-06 Thread Matt Frank
Matt Frank added the comment: In msg230720 Akira Li (akira) wrote: > os.defpath is supposed to be ':'+CS_PATH, e.g., look at glibc (C library > used on Linux) sysdeps/posix/spawni.c I don't know whether it is > possible to change CS_PATH without recompiling every static

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-11-06 Thread Matt Frank
Matt Frank added the comment: Assuming issue16353 is fixed using http://bugs.python.org/file36196/os.get_shell_executable.patch the appropriate way to find the path to the default shell is by calling os.get_shell_executable(). This is the 1-liner patch that uses os.get_shell_executable() in

[issue22809] Include/graminit.h and Python/graminit.c always rebuilt (breaks cross builds)

2014-11-06 Thread Matt Frank
New submission from Matt Frank: changeset 92496:c2a53aa27cad (issue22359) broke cross builds. (Now "make touch; make" always tries to rebuild Include/graminit.h and Python/graminit.c by running "pgen". But "pgen" is a host executable and won't run on the

[issue22359] Remove incorrect uses of recursive make

2014-11-06 Thread Matt Frank
Matt Frank added the comment: Sorry, I'm complaining. Cross builds broke. Please see issue22809. -- nosy: +WanderingLogic ___ Python tracker <http://bugs.python.org/is

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2015-01-30 Thread Matt Frank
Matt Frank added the comment: Apologies. That last patch includes diffs to generated files (configure and pyconfig.h.in). This version just patches Modules/pwdmodule.c and configure.ac. After applying the patch please run "autoheader" and "autoconf" to correctly rege

[issue23575] MIPS64 needs ffi's n32.S

2015-05-26 Thread Frank Schaefer
Frank Schaefer added the comment: This patch alone is apparently not enough. When this is enabled, and python 2.7.10 is built with -mabi=n32, make test segfaults on test_ctypes. Using --with(out)-system-ffi does not make a difference. When I run the test by itself, it specifically fails at

[issue24450] Add cr_await calculated property to coroutine object

2015-06-24 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: This shouldn't be a problem for Jython. -- ___ Python tracker <http://bugs.python.org/issue24450> ___ ___ Python-bugs-l

[issue26157] Typo in asyncio documentation

2016-01-19 Thread Frank Millman
New submission from Frank Millman: 18.5.1.15. Server close() "The sockets that represent existing incoming client connections are leaved open." I think this should say 'are left open'. -- assignee: docs@python components: Documentation messages: 2585

[issue26294] Queue().unfinished_tasks not in docs - deliberate?

2016-02-05 Thread Frank Millman
New submission from Frank Millman: dir(queue.Queue()) shows an attribute 'unfinished_tasks'. It appears to be the counter referred to in the docs to 'join()', but it is not documented itself. I would like to make use of it, but I don't know if it is part of the offi

[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-03-12 Thread Matt Frank
New submission from Matt Frank: With the LSB (Linux Standard Base) headers for libc Modules/selectmodule.c fails to compile because we have code that uses EPOLLRDNORM, EPOLLRDBAND, EPOLLWRNORM and EPOLLMSG without first checking that they are defined. The patch wraps the five uses of

[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-03-12 Thread Matt Frank
Changes by Matt Frank : -- type: -> compile error ___ Python tracker <http://bugs.python.org/issue23652> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23654] infinite loop in faulthandler._stack_overflow

2015-03-12 Thread Matt Frank
New submission from Matt Frank: When the faulthandler module is compiled at -O3 (the default for non-debug builds) with a compiler that does tailcall optimization the Modules/faulthandler.c:stack_overflow() function may become an infinite loop that does not expand the stack. This puts the

[issue23654] infinite loop in faulthandler._stack_overflow

2015-03-13 Thread Matt Frank
Matt Frank added the comment: Yes, this is currently only a problem with the Intel compiler. The writes to buffer[] are dead (provably won't be ever used) at the point that the recursive call occurs. Actually gcc and llvm can figure this out. Thus all the space allocated for the first

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread Frank Millman
New submission from Frank Millman: This is from the documentation at Section 4.6.4. Lists """ Lists may be constructed in several ways: Using a pair of square brackets to denote the empty list: [] Using square brackets, separating items with commas: [a], [a, b, c] Using a lis

[issue23677] Mention dict and set comps in library reference

2015-03-17 Thread Frank Millman
Frank Millman added the comment: Lists and tuples are described like this - class list([iterable]) Lists may be constructed in several ways: [...] class tuple([iterable]) Tuples may be constructed in a number of ways: [...] I think a similar approach to Dicts and Sets could make sense

[issue23654] infinite loop in faulthandler._stack_overflow

2015-03-23 Thread Matt Frank
Matt Frank added the comment: This is a patch that turns off the Intel Compiler's optimization for the stack_overflow() function. It turns out that icc doesn't support gcc's __attribute__((optimize("no-optimize-sibling-calls"))). Instead I used an ifdef'd in

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-06 Thread FeRD (Frank Dana)
New submission from FeRD (Frank Dana) : The expanded documentation on top-level environments is quite an improvement, but there's one passage that causes some confusion. In the section '__main__.py in Python Packages', towards the end, it reads: """ This won’t

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-08 Thread FeRD (Frank Dana)
FeRD (Frank Dana) added the comment: TBH, personally I don't think I'd just reword it with "below". That seems like the path of least resistance, but then the sentence becomes this: """ This won’t work for __main__.py files in the root directory of a .zip f

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-08 Thread FeRD (Frank Dana)
FeRD (Frank Dana) added the comment: Maybe, """ This won’t work for __main__.py files in the root directory of a .zip file though. Thus, for consistency, it is usually preferred to place code in other modules. That code can then be invoked from a minimal ``__main__.py``. &qu

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-12 Thread FeRD (Frank Dana)
FeRD (Frank Dana) added the comment: Readding Tal to the nosy list, since my previous comment was inadvertently accompanied by an eviction! (Sorry about that.) -- nosy: +taleinat ___ Python tracker <https://bugs.python.org/issue46

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Frank Ch. Eigler
Frank Ch. Eigler added the comment: I believe the problem jcea is experiencing is with the solaris (/linux?) branch of the configure.in: if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null It seems solaris doesn't like the -o /dev/null part. Try specifying s

[issue8153] 'set' union() fails in specific use case

2010-03-15 Thread Frank Rene Schaefer
New submission from Frank Rene Schaefer : The union operation fails in the following use case Python 2.6.4 (r264:75706, Jan 30 2010, 22:50:05) [GCC 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]] on linux2 >>> def func(): ... a = set([0]) ... a.pop() ... b =

[issue8153] 'set' union() fails in specific use case

2010-03-17 Thread Frank Rene Schaefer
Frank Rene Schaefer added the comment: Thanks, for the comments. I got it. In German we would say 'I was standing on the water hose' ... That is, something was choking the flow of my thoughts. Best Regards Frank -- ___ Python trac

[issue47069] socket._GLOBAL_DEFAULT_TIMEOUT being an object() makes for ugly docstrings, can be better

2022-03-19 Thread FeRD (Frank Dana)
New submission from FeRD (Frank Dana) : socket._GLOBAL_DEFAULT_TIMEOUT's status as a bare object() instance has been brought up before (bpo-12441). That was reported as a bug, but appeared to stem from developer confusion, so it was correctly closed as "not a bug". At the

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2020-05-13 Thread Christian KNITTL-FRANK
Christian KNITTL-FRANK added the comment: I just stumbled over this too. Very eager to know if there are any news on the state of out-of-box support for the "mUTF-7" codec. -- nosy: +Christian KNITTL-FRANK ___ Python track

[issue32599] Add dtrace hook for PyCFunction_Call

2018-01-19 Thread Frank Ch. Eigler
New submission from Frank Ch. Eigler : Similar to https://bugs.python.org/issue31574, it would be useful the the interpreter allowed a tracing tool to hook the PyCFunction_Call() site, maybe via the C_TRACE() macro, kind of how it already does in _PyEval_EvalFrameDefault(). This would help

[issue13405] Add DTrace probes

2012-04-20 Thread Frank Ch. Eigler
Frank Ch. Eigler added the comment: > Stan, anybody working in SystemTap support, could you possibly > create a new issue in the tracker to track specifically stap > support?. You can depend on this bug, and coordinate effort. Clone > my repository and use it as base. I beli

[issue14776] Add SystemTap static markers

2012-05-16 Thread Frank Ch. Eigler
Frank Ch. Eigler added the comment: Hi - On Wed, May 16, 2012 at 06:29:09PM +, Antoine Pitrou wrote: > [...] > No obvious error message. Who the hell designs such UIs? This seems > as stupidly unfriendly as dtrace... Sorry about that. You're running a near-two-year-

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
New submission from Frank van Dijk: stackoverflow.com has a zillion answers recommending the use of codecs.open() as a unicode capable drop in replacement for open(). This probably means that there is still a lot of code being written that uses codecs.open(). That's bad thing becau

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36235/codecsopen3.patch ___ Python tracker <http://bugs.python.org/issue22128> ___ ___ Python-bug

[issue22128] patch: steer people away from codecs.open

2014-08-04 Thread Frank van Dijk
Frank van Dijk added the comment: > Marc-Andre Lemburg added the comment: > > Pointing people to io.open() as alternative to codecs.open() is a good idea, > but that doesn't make codecs.open() less useful. > > The reason why codecs.open() uses binary mode is to avoid i

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36273/codecsopen2a.patch ___ Python tracker <http://bugs.python.org/issue22128> ___ ___ Python-bug

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36274/codecsopen3a.patch ___ Python tracker <http://bugs.python.org/issue22128> ___ ___ Python-bug

<    1   2