[issue18181] PEP447: Add type.__getdescriptor__

2015-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Todays version of the patch adds more tests, especially for exceptions in __getdescriptor__ during the lookup of special methods. Those tests were added because the C code couldn't get exceptions other than AttributeError before this patch and can get

[issue24502] OS X installer provides flat sub-packages with no version numbers

2015-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's your plan for installers for Py3.6? In a world where backward compatibility is not an issue I'd definitely advocate trying to move to some kind off .app as the installation. That is: have a {SomeName}.app that contains the entire Python in

[issue24851] infinite loop in faulthandler._stack_overflow

2015-08-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: GCC has a pragma and function attributes for changing the optimisation flags, that could be used to disable the tail call optimazation here. Something like the following (using a pragma): #pragma GCC push_options #pragma GCC optimize ("-fno-optimize-si

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-08-14 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue24844> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be an issue for an external library <https://pypi.python.org/pypi/ctypeslib>, although one hosted at svn.python.org. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/i

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue24880> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2015-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. install_name_tool: macholib (PyPI project) contains functionality to do this work in pure python. I do not propose to include macholib in the stdlib, it is too special purpose and not everyone that has provided patches is a CPython contributor

[issue25323] Bus error: 10 when executing recursive program

2015-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. the bus error on OSX: see issue #18049, the default stack size on OSX is too small to reach the default recursion limit. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25518] Investigate implementation of PyOS_CheckStack on OSX

2015-10-30 Thread Ronald Oussoren
New submission from Ronald Oussoren: On OSX 10.4 or later the following functions are available: size_t pthread_get_stacksize_np(pthread_t); void* pthread_get_stackaddr_np(pthread_t); These functions could be used to implement PyOS_CheckStack on OSX. The advantage of this would be that it

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: If I read the issue correctly the OSX 10.11 SDK doesn't include OpenSSL headers. There's not a lot we can do about that beyond documenting this in the build instructions. It might be interesting to look into using Apple's crypto APIs inst

[issue25657] virtualenv's activate does not update LD_LIBRARY_PATH

2015-11-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hi, This appears to be a description of an issue for <https://pypi.python.org/pypi/virtualenv>, not a component of CPython or its standard library. The issue tracker for virtualenv is at <https://github.com/pypa/virtualenv/issues>. ---

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Apple no longer ships headers for OpenSSL in OSX SDK as shipped with Xcode 7.1, and I'd be surprised if that changes (without having any inside knowledge about this). W.r.t. adding configure option for OpenSSL: That would be fine although that make

[issue9504] signal.signal/signal.alarm not working as expected

2015-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Victor: read(2) and recv(2) are defined as returning all available data when interrupted by a signal and might therefore not return an error. The same is true for write(2): it returns the number of bytes written when there are any bytes written (instead of

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2015-12-22 Thread Ronald Oussoren
New submission from Ronald Oussoren: https://emptysqua.re/blog/getaddrinfo-deadlock/ claims that getaddrinfo may deadlock when using threads and fork on (amongst others) OSX due to using a global lock. That lock is used when getaddrinfo is believed to be not thread safe, see the relevant

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2015-12-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: #25924 is related to this, I filed this after reading the blog post. The lock might not be necessary on OSX, and possibly on the other systems as well. Yury: resetting the lock in the child should be safe because after the fork the child only has a single

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: The build fails while building the "Python Launcher" application. This is an Objective-C project. If GCC doesn't support the system headers on OSX 10.11 there's nothing the Python project can do about that. -- n

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The makefiles use CC throughout and don't look at and OBJC variable. Is that variable a standard way to specify an ObjC compiler in makefiles? Make's default ruleset for compiling .m files uses $(CC) and doesn't look at $(OBJC). I wouldn&#x

[issue26343] os.O_CLOEXEC not available on OS X

2016-02-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The lack of o_cloexec could be caused by the SDK used to build the binary installer. AFAIK _DARWIN_C_LEVEL is set automatically based on the deployment target. Ronald Sent from my iPad > On 11 feb. 2016, at 23:44, STINNER Victor wrote: > >

[issue26424] QPyNullVariant

2016-02-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be an issue with the QGis application and not a problem with Python itself. See the following URL for support on QGis: <http://www.qgis.org/en/site/forusers/support.html> Regards,

[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-03-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: The text appears to be correct as it is. What is says is that __init__ must not return any value other than None and that is correct, you will get an exception when you return a value that is not None. >>> class C(): ...def __init__(self):

[issue26670] Add a developer mode: -X dev command line option

2016-03-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main. -- nosy: +ronaldoussoren ___ Python tracker

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2016-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: How can you create plist files that contain UID values using Apple's APIs? The plist library is meant to be interoperable with files created using Apple's APIs for creating plist files, and I didn't find an API that created UID valu

[issue26709] Year 2038 problem in plistlib

2016-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patch looks good to me. -- ___ Python tracker <http://bugs.python.org/issue26709> ___ ___ Python-bugs-list mailing list Unsub

[issue26711] Fix comparison of plistlib.Data

2016-04-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't understand the explicit use of __eq__ in the bytes case. Why is that needed? -- ___ Python tracker <http://bugs.python.org/is

[issue26711] Fix comparison of plistlib.Data

2016-05-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Serhiy, I slightly prefer the second patch, but either one would be fine. The reason I asked about explicitly calling __eq__ is that this is an uncommon pattern (at least for me). Ronald -- ___ Python tracker

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-05-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is a clear gap between two use cases for Python on OSX: 1) Integrate nicely with Apple stuff 2) Be useful as a development platform for software that will be deployed on Linux machines. Both use cases are valid, but have slightly different trade-offs

[issue23534] `test_longdouble` fails on Mac when using system libffi (version 3.1)

2015-02-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: On OSX the internal copy of libffi that's used is based on the one in PyObjC, which in turn is based on the version of libffi on opensource.apple.com (IIRC with some small patches that fix minor issues found by the PyObjC test

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-03-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) I agree with Ned that the OSX behavior is not broken, it is different but within spec. Python makes assumption about the format of locale names that aren't universally valid. 2) We should be careful in using CFLocale. Those APIs are pa

[issue24040] plistlib assumes dict_type is descendent of dict

2015-04-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The test for type({}) is indeed wrong and should check for self._dict_type instead. However, there needs to be a test before that change is made. -- On the road, hence brief. Op 24 apr. 2015 om 01:40 heeft Ned Deily het volgende geschreven: > &g

[issue24040] plistlib assumes dict_type is descendent of dict

2015-04-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: To react to myself: checking for self.dict_type might break users that pass in a callable: x = plistlib.load(fp, dict_type=lambda:{}) As Behdad memtioned testing that the type isn't list would be better: if not isinstance(..., list): That att

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-04-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't recall exactly why the universal build support is done the way it is, adding it is too long ago. The reason is likely no longer relevant with any reasonably up-to-date toolset. The patch was created around the time x86 support was added to OS

[issue24009] Get rid of rare format units in PyArg_Parse*

2015-05-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that these format characters can also be used outside of CPython. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue24

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread Ronald Oussoren
New submission from Ronald Oussoren: The script below creates a basic PEP 420 style package with a single module in it ('package.sub') and tries to import that module With 3.5 the script runs without problems and prints 42 (as expected). With a 3.5 (fresh checkout as of 2015-05-14

[issue24130] Remove -fno-common compile option from OS X framework builds?

2015-05-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: According to [1] common symbols are not allowed in frameworks. I guess that's why we added '-fno-common' to the linker flags. [1] https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkBinding.h

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-05-15 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file39384/issue-18378-py27.txt ___ Python tracker <http://bugs.python.org/issue18378> ___ ___ Python-bug

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-05-15 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file39385/issue-18378-py35.txt ___ Python tracker <http://bugs.python.org/issue18378> ___ ___ Python-bug

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-05-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Dimitry's patch looks good, I added my patch before checking if there already is patch. The only thing that might be cause discussion is when to accept 'UTF-8' as a valid locale name. My patch only accepts in on OSX, while Dimitry'

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can confirm that this fixes the problem I was having, both for the sample code I posted and for the real codebase I extracted this from. Thanks. -- status: pending -> open ___ Python tracker &l

[issue23969] please set a SOABI for MacOSX

2015-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm in favour of using SOABI on OSX as well. The build system currently uses "darwin" for the platform triplet, that's a bit to minimal. I'd prefer to use "macosx" instead of "darwin" for the platform na

[issue23969] please set a SOABI for MacOSX

2015-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: Keeping "darwin" as the platform tag is fine with me. It is slightly ugly because it doesn't match the platform tag used by distutils/setuptools, but is also something that most users won't use directly. That said: there was some t

[issue24285] regression for importing extensions in packages

2015-05-25 Thread Ronald Oussoren
New submission from Ronald Oussoren: PyObjC has an extension that's imported as "objc._objc". This works fine on version upto the 3.5 beta (checkout from earlier today). With that I get the following exception: Python 3.5.0b1+ (default:7255af1a1c50+, May 25 2015, 11:46:

[issue24285] regression for importing extensions in packages

2015-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch appears to fix the issue. This appears to be an off-by-one error. -- stage: -> needs patch type: -> behavior Added file: http://bugs.python.org/file39494/issue-24285.txt ___ Python t

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: See issue 24285, I ran into the same issue as mention in msg244008. That issue has a patch. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue24

[issue28491] Remove bundled libffi for OSX

2016-10-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Does the upstream libffi work reliably on OSX by this time? The bundled version of libffi was extracted from PyObjC, and that copy is itself a patched version of the system libffi on OSX. The reason I don't use the system libffi is both that I don&#

[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2016-10-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Another reason to remove this feature: installing python 2.7.12 using the installer on www.python.org breaks the system install of Python, likely because of this issue. I'm a bit sad that this feature has to go, but modern Python use (in parti

<    20   21   22   23   24   25