[issue18525] Shutil cannot import WindowsError on windows

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that this should be closed. -- resolution: -> wont fix status: open -> closed versions: +Python 2.7, Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue5120] Change _tkinter initialization for new versions of Aqua Tk on OS X

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: As mentioned by Ned this is a duplicate of #8716. The proposed change to tkinter initialization in msg81468 might be useful to look into, but I'm not interested in doing that work because I don't use Tkinter myself which makes it harder to t

[issue18181] Add type.__locallookup__

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: issue-18181-full-v2.txt adds more tests to v1 and has slightly better documentation (still not good enough). A major issue with the patch: for some reason the tests pass when run standalone ("./python.exe -m test.regrtest test_pep447"), but crash

[issue12669] test_curses skipped on buildbots

2013-07-22 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue12669> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18181] PEP447: Add type.__locallookup__

2013-07-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash was due to a bug in the test extension. Fixed in version 2b. -- title: Add type.__locallookup__ -> PEP447: Add type.__locallookup__ Added file: http://bugs.python.org/file31014/issue-18181-full-v2b.

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2013-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just noticed that the Tk tests still get skipped on my machine, and rediscovered this issue. The reason that MacOS.WMAvailable() returns False on the buildbot is because it runs "./python.exe", which is not part of an application bundle and the

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: To respond to my own message: running a small Tcl script is not good enough, the process environment of python itself is also important. In particular, GUI frameworks only work from inside an application bundle (or by using some undocumented private APIs

[issue18521] [cppcheck] Full report

2013-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: What is cppcheck? The report contains some very dodgy false positives, like: [Modules/_cursesmodule.c:1095]: (style) Variable 'rtn' is assigned a value that is never used. [Modules/_cursesmodule.c:1097]: (style) Unused variable: break 1) The &qu

[issue18211] -Werror=statement-after-declaration problem

2013-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I also don't understand why the optimization level shouldn't be used when building 3th-party extensions. Removing the -O flag for build_ext would be a regression compared to the current behavior because 3th-party extensions would suddenly be com

[issue18521] [cppcheck] Full report

2013-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: It doesn't really live up to its description. >From the start of the 'filtered' list: * Messages about PyThread_acquire_lock appear to be false positives, that name is a function that's called by the macros expanded on those li

[issue18542] httpd memory consuption increasing continously due to mod_python

2013-07-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: mod_python isn't part of the cpython std lib. As such, this isn't the right tracker to report problems with mod_python. You may have more success by asking the project itself (<http://www.modpython.org>). -- nosy: +ronaldous

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2013-07-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know if multiple inheritance is explicitly supported at the C level, but it is possible to create an extension type with multiple base classes in tp_bases. -- nosy: +ronaldoussoren ___ Python tr

[issue6627] threading.local() does not work with C-created threads

2013-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue6627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18542] httpd memory consuption increasing continously due to mod_python

2013-07-25 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- stage: -> committed/rejected status: pending -> closed ___ Python tracker <http://bugs.python.org/issue18542> ___ ___ Pyth

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-25 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue18387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18554] os.__all__ is incomplete

2013-07-25 Thread Ronald Oussoren
New submission from Ronald Oussoren: On Unix the __all__ of the os module doesn't list the names imported from the posix module. The attached patch ensures that exports from the posix module are added to __all__, just like they are for NT and for Python 2.7. -- components: Li

[issue18555] type_set_bases() doesn't check return value of PyArg_UnpackTuple()

2013-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be harmless. The contents of the "temp" list are added by mro_subclasses, and that function only adds tuples of 2 elements. That means that the call to PyArg_UnpackTuple cannot fail. It might be better to explicitly document th

[issue12978] Figure out extended attributes on BSDs

2013-07-26 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue12978> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12978] Figure out extended attributes on BSDs

2013-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The OSX API also has a "position" argument for both getting and setting extended attributes. The position should be 0 for normal attributes, and can have other values when accessing the resource fork

[issue18181] PEP447: Add type.__locallookup__

2013-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: * Improved docmentation * __locallookup__ is now called unconditionally, the attribute lookup cache is now disabled when aType.__locallookup__ != type.__locallookup__ This gives a slightly nicer API (the only reason the new method was optional was due

[issue17449] dev guide appears not to cover the benchmarking suite

2013-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Documenting this would be useful because it appears to be non-trivial to actually run the benchmark suite with Python 3. * Using "python perf.py -b default" fails due to some code in the benchmarks that is not python3 compatible * Using &quo

[issue17449] dev guide appears not to cover the benchmarking suite

2013-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: The overhead of 2to3 isn't too bad, especially because only a subset of the benchmarks is translated in the first place. It is more important that there is better documentation than there is now, it seems that you're supposed to use either &

[issue17449] dev guide appears not to cover the benchmarking suite

2013-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch for the benchmark README.txt should document the status quo. -- Added file: http://bugs.python.org/file31073/issue-18181-full-v3.txt ___ Python tracker <http://bugs.python.org/issue17

[issue17449] dev guide appears not to cover the benchmarking suite

2013-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sorry about that. I stored the patch file in the wrong directory and attached the most recent file in the directory where I had expected the patch to be. -- Added file: http://bugs.python.org/file31074/issue-17449-readme.txt

[issue17449] dev guide appears not to cover the benchmarking suite

2013-07-29 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file31073/issue-18181-full-v3.txt ___ Python tracker <http://bugs.python.org/issue17449> ___ ___ Pytho

[issue18595] zipfile: symlinks etc.

2013-07-30 Thread Ronald Oussoren
New submission from Ronald Oussoren: The zipfile format (as described by .zip file format specification) allows for storing extra unix data, such as symlinks and device nodes in zipfile. Storing at least symlinks would be useful, and is supported by the infozip tools as well (the command-line

[issue18257] Two copies of python-config

2013-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: I won't be able to work on this before 3.4a1 is released, and that shouldn't be a problem. I do think this should be fixed before the first beta though. (That said, I'd rather not work on this at all, I didn't in

[issue18606] Add statistics module to standard library

2013-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: At first glance statistics.sum does the same as math.fsum (and statistics. add_partial seems to be a utility for implementing sum). I agree that a PEP would be useful. -- nosy: +ronaldoussoren ___ Python tracker

[issue18181] PEP447: Add type.__locallookup__

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Updated the patch for PEP 442. -- Added file: http://bugs.python.org/file31107/issue-18181-full-v4.txt ___ Python tracker <http://bugs.python.org/issue18

[issue5262] PythonLauncher considered harmfull

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the code that checks if "Python Launcher" is the default application for opening python files. -- Added file: http://bugs.python.org/file31108/issue-5262.txt ___ Python trac

[issue18611] Mac: Some Python Launcher issues

2013-08-01 Thread Ronald Oussoren
New submission from Ronald Oussoren: There are some issues with the Python Launcher application: 1) There is a useless 'Help' menu, the application does not include help (removal is trivial and doesn't affect functionality) 2) The list of interpreters does not includ

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: It's a bit tedious, but not too bad. The attached patch appears to work, but needs review (especially for the Windows and VMS branches in internal_setblocking. This changes the return value of internal_setblocking, it was unconditionally 1 and is now

[issue18595] zipfile: symlinks etc.

2013-08-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: My initial plan was to add the patch soon after filing the issue, but that's before I noticed that this needs some API design to integrate nicely :-) My current idea for the api: * add "symlink(path, target") to write a symlink * add &quo

[issue18651] test failures on KFreeBSD

2013-08-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't expect problems on OSX because of this. However: the patch replaces support.anticipate_failure by unittest.skipIf and that seems wrong to me. -- ___ Python tracker <http://bugs.python.org/is

[issue18606] Add statistics module to standard library

2013-08-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: As noted before statistics.sum seems to have the same functionality as math.fsum. Statistics.add_partial, which does the majority of the work, also references the same cookbook recipe as the math.fsum documentation. IMHO statistics.sum should be removed

[issue18660] os.read behavior on Linux

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

[issue18693] help() not helpful with enum

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

[issue18893] invalid exception handling in Lib/ctypes/macholib/dyld.py

2013-09-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Your analysis looks correct to me, that is "raise e" is supposed to raise the exception caught by the first try block. -- ___ Python tracker <http://bugs.python.o

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-09-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: oops. This should be the right patch. -- Added file: http://bugs.python.org/file31554/issue-18550.txt ___ Python tracker <http://bugs.python.org/issue18

[issue18693] help() not helpful with enum

2013-09-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: That help() is confused by __dir__ is documented in #16938. AFAIK help is fairly fragile in its expectations of the attributes present on classes and the correspondence between dir(cls) and list(cls.__dict__), and that is something that could be fixed in

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

2013-09-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: Great work. Thanks. -- ___ Python tracker <http://bugs.python.org/issue15663> ___ ___ Python-bugs-list mailing list Unsub

[issue14098] provide public C-API for reading/setting sys.exc_info()

2012-04-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The documentation does not explain how this new API is different from PyErr_Fetch/PyErr_Restore. In particular the documentation doesn't mention that PyErr_Fetch and PyErr_GetExcInfo access different bits of the error state (curexc_* vs. exc_* i

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Do you have a recent version of ActiveState's Tcl/Tk distribution installed? If you do not have this installed you ran into a known issue in Apple's copy of Tcl/Tk, see <http://www.python.org/download/mac/tcltk/> for

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Yes. As the webpage I mentioned describes Apple's installation of Tcl/Tk contains a number of serious bugs, one of which is that Tk's handling of dead keys (the "^" you use write "û") causes crashes. To get a fully function

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The build script you mentioned seems to be for python 2.6, did you have to change anything beyond the version numbers to get it to build python 3.2 as well? -- ___ Python tracker <http://bugs.python.

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for posting a working script. I was mostly interested in this because I'll likely need this functionality myself in the near future ;-) -- ___ Python tracker <http://bugs.python.org/is

[issue14887] pysetup: unfriendly error message for unknown commands

2012-05-23 Thread Ronald Oussoren
New submission from Ronald Oussoren : The pysetup3 command gives a fairly unfriendly error message with python traceback when you specify an unknown command: pysetup3 instal Unrecognized action "instal" Traceback (most recent call last): File "/Library/Frameworks/Pyth

[issue14835] plistlib: output empty elements correctly

2012-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch looks fine, but as you noticed there should be a test case for this. I'm -1 w.r.t. applying this to 3.2 or 2.7, it is a functional change that isn't a bug (Apple's libraries will happily read empty arrays that

[issue14835] plistlib: output empty elements correctly

2012-05-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sidney: Would you be willing to sign the contributor agreement? The following page contains more information on the agreement: http://www.python.org/psf/contrib/ -- ___ Python tracker <http://bugs.python.

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: s7v7nislands: you cannot use Xcode-select to fix this, xcode-select is used to switch between 2 or more installed versions of Xcode. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue14

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The issue is more annoying than the change of location of the SDK, the path to the compiler has also changed unless users manually install the Unix command-line tools, either using a button in the GUI or by installing a separate DMG. There seem to be two

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with Ned that this is a bug in Tk, especially because the problem goes away with small changes to the layout of the UI. -- status: open -> pending ___ Python tracker <http://bugs.python.org/issu

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: What I'd prefer to look for the compiler: * in distutils: if $CC is an absolute path and exists, use that * look for clang on $PATH, use it if found (default configure looks for GCC in preference of other compilers, but with Apple's toolc

[issue14980] OSX: ranlib: file: libpython2.7.a(pymath.o) has no symbols

2012-06-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's not a bug, the build prices unconditionally builds a file that contains optional definitions. On OSX none of these optional definitions are used, and hence pymath.o is empty. -- resolution: -> invalid status: open -

[issue15035] array.array of UCS2 values

2012-06-08 Thread Ronald Oussoren
New submission from Ronald Oussoren : I'm sometimes using an array.array with format character "u" as a writable backing store for buffers shared with platform APIs that access buffers of UCS2 values. This works fine in python 3.2 and earlier with a ucs2 build of python, but

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is intentional behavior, you can install packages you want to share between python installations in /Library/Python instead of the regular site-packages directory. Macports could always patch their site.py file to avoid this

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This was added in issue4865. (The same behavior is present in 3.2 and 3.3) -- resolution: -> rejected versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue15048> ___ ___ Python-bugs-list mailing list Unsubscri

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Python installation are already not isolated: there is a per-user site-packages directory on all platforms that is shared between all installations of a particular python release. This directory is located in a subdirectory of ~/.local on POSIX systems

[issue15051] Can't compile Python 3.3a4 on OS X

2012-06-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is a bug in the version of GCC that's shipped with Xcode. Try building using clang: configure ... CC=clang CXX=clang++ -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/is

[issue15051] Can't compile Python 3.3a4 on OS X

2012-06-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #13241 We (and in particular Ned Deily are working on a change to the build process that would fix this, and will make it possible to build extensions on OSX regardless of which Xcode variant you use and which variant was used to

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-06-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached configure.ac is a fragment of a configure script that tries to detect if AC_PROG_CC would pick llvm-gcc when clang is also available and then explicitly picks clang. This would avoid "python3.3 won't build on OSX 10.7" bug report

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-06-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch "issue13241-configure-version1.txt" implements a number of changes to configure (although only configure.ac is present in the patch) 1) Autodetect the compiler on OSX, in particular - detect llvm-gcc and use clang instead -

[issue15072] Segfault on OSX

2012-06-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sadly enough the crash report is not very helpful for us. Can you reproduce the issue? If so, can you either provide more information by running the programming in a debugger or create a script that reproduces the problem? And as Apple uses a patched

[issue15072] Segfault on OSX

2012-06-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Letting us know of the problem is fine, in general Python should not crash. But without a way to reproduce the problem it is very hard to do anything about that. There are a number of known issues that can cause crashes, a subset of those can be seen at

[issue15134] urllib.request.thishost() fails on OSX 10.7

2012-06-22 Thread Ronald Oussoren
New submission from Ronald Oussoren : I just noticed that test_urllib fails for me because urllib.request.thishost() fails: == ERROR: test_thishost (test.test_urllib.Utility_Tests) Test the urllib.request.thishost utility

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch (issue1390-version1.txt) is not tested very well at the moment because I'm running into another problem when building on OSX 10.5, but should improve the build situation With this patch: * Configure will automatically pick clang whe

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks, I'll add it to the patch when I have a working build again. Looks like I get a failure because "pybuilddir.txt" is not created, and that's because "./python.exe setup.py build" crashes when distutils.sysconfig tries to

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: With version 2 of the patch I can bootstrap on OSX 10.5 as well (removes the dependency on subprocess, falls back on os.system instead) This also removes _binary_on_path as suggested by Éric. The patch needs more testing: I haven't tried using the b

[issue15194] libffi-3.0.11 update

2012-06-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Removing libffi_osx would be fairly hard due to the creation of fat binaries, the libffi_osx tree supports building all files using 'cc -arch i386 -arch ppc -arch x86_64', the regular libffi sources require a more complex dance (basically

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren
New submission from Ronald Oussoren : The attached patch ensures that "python3.3 -mvenv --symlinks myenv" works with framework builds. There are two functional changes: 1) don't call 'realpath' in pythonw.c because realpath resolves symlinks and that breaks the &#x

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ned.deily, vinay.sajip ___ Python tracker <http://bugs.python.org/issue15307> ___ ___ Python-bugs-list mailing list Unsub

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The current code works, and I don't understand why it does. I'd love to get rid of the long deprecated APIs like NSModuleForSymbol as well, but we'll have to ask the RM if that is an acceptable change at this point in the 3.3 release pr

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a new version of the patch: * copy to tmp buffer instead of argv0_buffer (see comment by Ned) * add include in pythonw.c to avoid compiler warning * use _Py_char2wchar instead of blindly casting a char* to a wchar_t* The behavior i

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: based on code inspection I'd say that sys.executable was broken without my patch as well. The code that sets that value is unchanged from Python 3.2, and that points to the executable inside the Python.app application bundle. I've attached v3 o

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I removed the call to realpath from pythonw because resolving symlinks breaks the feature. Realpath also converts relative paths to absolute paths, and that probably explains the new failure you're having. I'll try to find a solution for this, p

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: v5 adds test cases for sys.executable and calls realpath on dirname(argv[0]) in pythonw.c and also has the changes in Ned's v4. The test failure for test_venv is expected, the note in <http://docs.python.org/dev/library/venv.html> ex

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned mentioned that test_venv fails on line 95 when you run test_venv *in* a virtualenv, that is: $ pyvenv testenv $ testenv/bin/python3 -m test.test_venv This fails because sys.prefix != sys.base_prefix for testenv/bin/python3, and that's exp

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The test failure in test_osx_env is in itself fairly harmless because PYTHONEXECUTABLE is only used to ensure IDLE.app works correct, and IDLE.app doesn't use the pythonw executable and hence won't hit the code that special-cases the venv locat

[issue14644] test_logging failure on OS X Tiger

2012-07-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I get failures for the same test on my machine running OSX 10.7, the machine is fairly overloaded right now because I'm running a large VM in the background. Increasing the timeout from 5.0 to 15.0 seconds ensures that the test passes. --

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: And a final update: don't use TAB characters -- Added file: http://bugs.python.org/file26398/venv-symlinks-v7.txt ___ Python tracker <http://bugs.python.org/is

[issue15364] sysconfig confused by relative paths

2012-07-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't recall what the issue was the resulted in the check-in that you mention. Sadly enough it is not-trivial to find that check-in I mention due to the migration from Subversion to Mercurial. How was python itself configured (configure command

[issue15364] sysconfig confused by relative paths

2012-07-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: srcdir vs. project base is quite easy: srcdir is the directory containing the source files, the project base is where you ran configure. These are the same if you run configure in the root of a checkout, but don't have to be, for example when y

[issue15364] sysconfig confused by relative paths

2012-07-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd make get_config_var('srcdir') to be None for installed systems, because the source tree is not available there. The advantage of making the value None is that this is easy to test for and would quickly break path manipulation cod

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is no NEWS entry, I'll commit one when I get home. -- ___ Python tracker <http://bugs.python.org/issue15307> ___ ___

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Whether or not rename is atomic should be irrelevant for test_rename. Test_rename "just" performs renames in a tight loop and doesn't do concurrent access from another thread. The test result seems to indicate that rename() sometimes isn&

[issue15364] sysconfig confused by relative paths

2012-07-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: The current patch should be fine, although it is IMHO not the long-term solution. For installed python's get_config_var('srcdir') still lies, but now at least returns slightly more sane path. As I noted before the real problem is that it is

[issue15498] Eliminate the use of deprecated OS X APIs in getpath.c

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Removing the dependency on NSLookupAndBindSymbol (and related APIs) is easier than I expected. The attached patch (issue15498-v1.txt) uses dladdr to get symbol information for Py_Initialize and that information includes the path for the library where that

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: To reproduce this issue you could use the "Unicode Hex Input" input source (enable this in the Language & Text prefpane, switch between sources either using CMD-space or the menu bar icon). I can "あ" by keeping ALT pressed and typin

[issue11486] Add option to not install into /Applications

2012-07-31 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- keywords: +needs review versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue11486> ___ ___ Python-bug

[issue13371] Some Carbon extensions don't build on OSX 10.7

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patch is already applied (ages ago), forgot to close this issue. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12507] tkSimpleDialog problem

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing because this issue is a bug in Tk, not a bug in Python. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue3177] Add shutil.open

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: MacOSX provides functionality simular to os.startfile in the LaunchServices framework. I've tried to prototype a startfile implementation using this framework, (see issue3177-os_startfile_macosx.txt) but I'm not too happy about it because the

[issue10812] Add some posix functions

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: msg126598 says that waitid is broken on MacOSX. In what way it is broken? The code is currently disabled for OSX without any indication why this is so, that makes it hard to know how to test if new OSX releases (like the just released OSX 10.8) fix waitid

[issue10812] Add some posix functions

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: To elaborate: when I remove the "&& !defined(__APPLE__)" tests from posixmodule.c test_posix passes on OSX 10.8, including test_waitid. I have no idea if this means that waitid is no longer "broken" in OSX 10.8 or that test_pos

[issue10812] Add some posix functions

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: I have VMs with earlier versions of OSX (at least 10.5 and 10.6). I cannot run those right now because they use enough resources to interfere with other activities. I'll try to test later this week. BTW. I'd prefer to make waitid available on OSX

[issue15553] Segfault in test_6_daemon_threads() of test_threading, on Mac OS X Lion

2012-08-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The test passes fine on OSX 10.8 (even when running the threading test in a loop). This might be because a platform bug is fixed in OSX 10.8, or because the crash happens due to a race condition of some sort (either in Python itself or the system). This

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce this on an OSX 10.8 system, both using python 2.7 and python 3.3. The growth is significantly less using python 3.3. What's odd is that the growth does not occur when both test_iter calls use 1<<24 as the argument (or larger value

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. I don't think this is a memory leak, the amount of memory used doesn't increase when there are more calls to test_iter(1<<23). -- ___ Python tracker <http://bugs.py

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've added calls to vmmap to the script (using os.system) to check my guesss. The relevant bit after the call to test_iter(1<<24): REGION TYPE VIRTUAL === === MALLOC

<    11   12   13   14   15   16   17   18   19   20   >