[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Ronald Oussoren ronaldousso...@mac.com added the comment: I'll fire up my 10.4 system to further investigate this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter
Ronald Oussoren ronaldousso...@mac.com added the comment: A patch to fix this issue would be appreciated. However, there is are two reasons why _tkinter is build for 32-bit architectures only: 1) Apple didn't ship a 64-bit Tk until OSX 10.6, and that is Tk 8.5 while earlier releases of the OS use Tk 8.4 2) Tk 8.5 on OSX 10.6 seems to break IDLE, see Issue6864 Issue8798 describes a way to get a build that works on OSX 10.5 or later and still supports 64-bit Tk (on OSX 10.6 or when the user has installed a local 64-bit copy of Tk 6.5). I don't have time to work in this myself, which is why the issue is not very detailed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9045 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9041] raised exception is misleading
Pauli Rikula pauli.rik...@gmail.com added the comment: I'm a newbie what it comes to Python's C-sources, so please do not take me too seriously. I fetched the sources 'svn checkout http://svn.python.org/projects/python/branches/release26-maint ' studied the issue, and my best guess is that Modules/_ctypes/cfield.c 's funktion d_set is called, when converting something to ctypes.c_double Please check, that this is what happens :) If so, Objects/longobject.c's function double PyLong_AsDouble(PyObject *vv) sets the overflow exception, but d_set overwrites it, like you can see: static PyObject * d_set(void *ptr, PyObject *value, Py_ssize_t size) { double x; x = PyFloat_AsDouble(value); if (x == -1 PyErr_Occurred()) { PyErr_Format(PyExc_TypeError, float expected instead of %s instance, value-ob_type-tp_name); return NULL; } memcpy(ptr, x, sizeof(double)); _RET(value); } Perhaps something like: if (PyErr_ExceptionMatches(PyExc_OverflowError)){ return NULL; } just after the line: 'f (x == -1 PyErr_Occurred()) {' could fix this? But like I said, I'm an newbie, this was actually my first look into Python/C API and I have not tested this fix in any way whatsoever -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9041 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot
Ronald Oussoren ronaldousso...@mac.com added the comment: The mac-related code in urllib is correct, it uses the SystemConfiguration framework on MacOSX to get the proxy settings. That said, the code in _scproxy is not entirly correct, it makes the wrong assumption w.r.t. the value of exclude_simple when the corresponding value is not in the settings retrieved from the SystemConfiguration framework. The tests seem to make assumptions on how the proxy-detecting code functions, although I don't understand what's going on here (that is, I haven't waded through the test code and urllib to trace the code) The patch issue-8455-scproxy.patch ensures that the tests pass, unless the user changed their proxy settings and selected the checkbox Exclude simple hostnames (System Preferernces - Network - First network adaptor - Advanced... - Proxies) Please test if the patch solves the issue for you as well. NOTE: as I mention in the second paragraph the tests seem to make unwarrented assumptions about their environment. Further proof for this: when you set http_proxy=localhost:12345 in the environment on a Unixy system the tests will fail as well (although a different subset of the tests). -- Added file: http://bugs.python.org/file17740/issue8455-scproxy.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8869] execfile does not work with UNC paths
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8869 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9041] raised exception is misleading
Pauli Rikula pauli.rik...@gmail.com added the comment: If d_set makes the conversion, py3k does the same thing: http://svn.python.org/projects/python/branches/py3k/Modules/_ctypes/cfield.c It has a function d_set_sw, which might have same issues as well. The same function can be found from 2.6 too: http://svn.python.org/projects/python/branches/release26-maint/Modules/_ctypes/cfield.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9041 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8440] test_heapq interfering with test_import on py3k
Tim Golden m...@timgolden.me.uk added the comment: Error no longer occurs -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8440 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8018] Backport 3.x nonlocal keyword to 2.7
Mark Dickinson dicki...@gmail.com added the comment: This is now out of date for 2.7. -- nosy: +mark.dickinson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9049] UnboundLocalError in nested function
Mark Dickinson dicki...@gmail.com added the comment: Is there any way to produce the desired behavior? Not directly, in Python 2.x. (But there's the 'nonlocal' keyword in 3.x.) There are various workarounds, but what's best depends on what you're doing. The python-list mailing list is probably a better place to get answers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)
Ronald Oussoren ronaldousso...@mac.com added the comment: This should be fixed with r82149. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8446 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot
Ronald Oussoren ronaldousso...@mac.com added the comment: I've applied my patch in r82150, which fixes the issue for me in the trunk. I'll merge the patch into the other branches if this does indeed fix the buildbot issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: Odd, unless someone already checked in a fix on the trunk. I currently have a clean test run on the trunk on OSX 10.6.4 (intel). I haven't checked this on my 10.5 VM yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Stefan Krah stefan-use...@bytereef.org added the comment: It is disputed on http://openradar.appspot.com/radar?id=334401 that this is an OS bug. If I understand correctly, the test program is not guaranteed to work if threads are involved. See also: http://webcache.googleusercontent.com/search?q=cache:hJo0u_Lc8wkJ:www.opengroup.org/onlinepubs/95399/functions/fork.html+http://www.opengroup.org/onlinepubs/009695399/functions/fork.htmlhl=enstrip=1 A process shall be created with a single thread. If a multi-threaded process calls fork(), the new process shall contain a replica of the calling thread and its entire address space, possibly including the states of mutexes and other resources. Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. [THR] [Option Start] Fork handlers may be established by means of the pthread_atfork() function in order to maintain application invariants across fork() calls. This could explain why running the complete test suite fails but running the individual test does not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: Stefan: we already new that, see msg105018. This issue was closed as fixed because the uuid module contains a workaround for this issue (by not using the broken C API on OSX 10.6). It seems that OSX 10.5.8 and 10.4 is also affected by this issue. I'll test on 10.5, and if I can reproduce the issue there I'll adjust the workaround for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Stefan Krah stefan-use...@bytereef.org added the comment: Bill, could you try to add this to the tests and see if they also fail when you run them standalone? Index: Lib/test/test_uuid.py === --- Lib/test/test_uuid.py (revision 82109) +++ Lib/test/test_uuid.py (working copy) @@ -479,4 +479,7 @@ test_support.run_unittest(TestUUID) if __name__ == '__main__': +import threading +t = threading.Thread(target=lambda: None) +t.start() test_main() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: Bill, please test the patch below on a 10.5 system: Index: Lib/uuid.py === --- Lib/uuid.py (revision 82148) +++ Lib/uuid.py (working copy) @@ -416,7 +416,7 @@ import sys if sys.platform == 'darwin': import os -if int(os.uname()[2].split('.')[0]) = 10: +if int(os.uname()[2].split('.')[0]) = 9: _uuid_generate_random = _uuid_generate_time = None # On Windows prior to 2000, UuidCreate gives a UUID containing the This extends the workaround for the bug in the system uuid libraries to OSX 10.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Ronald Oussoren ronaldousso...@mac.com added the comment: scott: * Which OSX version are you using? * Which Python are you using? - What is the value of sys.prefix? - How did you install it? * Does 'import readline' work? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8938] Mac OS dialogs(Save As..., Load) translation
Ronald Oussoren ronaldousso...@mac.com added the comment: Pavel: does the problem also happen with newer versions of Python? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9021] no copy.copy problem description
Senthil Kumaran orsent...@gmail.com added the comment: I am +0 on this change. The existing introduction is fine and the discussion where shallow and deep copy is discussed is more important. It is okay to assume that the reader is aware of the assignment operation nature, i.e. it does not create a copy and you need this module. The doc change suggested by Terry could be helpful in the tutorial where a copy module is mentioned. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line
Ronald Oussoren ronaldousso...@mac.com added the comment: Sigh. -isysroot was added to CPPFLAGS because Python wouldn't build as a universal binary anymore due a fix for issue 1628484. (According to the SVN log for r80187). I'll see what can be done to avoid adding -isysroot twice to the compiler flags. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Ronald Oussoren ronaldousso...@mac.com added the comment: R. David Murray: the issue you refer to isn't the one you intend to link to, it is related to proxy settings and doesn't contain a patch related to firefox. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Ronald Oussoren ronaldousso...@mac.com added the comment: BTW. The firebox-bin binary in Firefox.app/Contents/MacOS does not support the command-line arguments that Firefox on Linux supports. That is, the following command does not work: /Applications/Firefox.app/Contents/MacOS/firefox-bin -remote 'openURL(http://www.apple.com/,new-tab)' This will start the firefox binary, but that complains that firefox is already running (because I already had FF open) This means that it won't be possible to have one Firefox support class that works the same on all platforms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: - ronaldoussoren components: +Macintosh -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9048] no OS X buildbots in the stable list
Ronald Oussoren ronaldousso...@mac.com added the comment: Then why bother providing binaries? I'm trying to keep the OSX port in good shape, but at times have to hunt down issues that were introduced by other bugfixes. A problem with adding OSX to the list of stable buildbots is IMHO that there seem to be very few core developers that care about OSX beyond it being some odd flavor of unix. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Shashwat Anand anand.shash...@gmail.com added the comment: 16:05:57 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin 'http://www.google.com' says firefox is already running as ff is open. After we quit ff, 16:09:05 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin -remote 'http://www.google.com' Nothing happens. 16:09:14 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin 'http://www.google.com' Opened firefox with url(google homepage) as mentioned. Also, import webbrowser url = 'http://www.google.com' c = webbrowser.get('safari') c.open(url) True Opens two instances of safari, one with home-page and another with url mentioned. Initially safari was not running and firefox is my default browser. Incase safari is running it opens only one instance with url(google homepage) opened. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9035] os.path.ismount on windows doesn't support windows mount points
Senthil Kumaran orsent...@gmail.com added the comment: I see that ismount like function on windows is provide by the various Win32 extensions. If Windows supported is added to ismount function itself, then it might be a good idea to have attributes or list_attributes function as well. But for posix, how will it be different from details provided by stat? Would not it add redundancy? Or would it be better to provide file attributes as part of stat itself (if some are missing in Windows). -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8912] `make patchcheck` should check the whitespace of .c/.h files
Éric Araujo mer...@netwok.org added the comment: 1) Okay, so I’ll refactor some code in patchcheck into a grep-like function to reduce duplication and support adding new checks. 2) I’ll add more useful report. Perhaps I’ll ask first on python-dev to see if I should add a command-line option or just improve it. Also, whether I should use logging or just output file names and lines. 3) Well, if your editor strips trailing spaces and adds final newlines, you won’t ever see make patchcheck complain, will you? Since the report will be helpful only to people with less smart editors, I think I’ll go with replacing instead of just reporting. Tabs will not be replaced, though, just reported. 4) See attached patch for py3k (no idea if this will go into 2.7 too). -- Added file: http://bugs.python.org/file17741/refactor.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9035] os.path.ismount on windows doesn't support windows mount points
Tim Golden m...@timgolden.me.uk added the comment: I think we're saying the same thing :) The simplest thing to do here is to create a win_ismount function in posixmodule.c which does the attributes / reparse tag dance and returns True/False and use that wherever it's needed to support this concept under Windows. The current solution is correct for a subset of cases. Arguably a bug, although I doubt I'd get that past the release manager! The wider issue of exposing GetFileAttributesW, eg under one of the unused stat fields, should be explored elsewhere. On 22/06/2010 11:46, Senthil Kumaran wrote: Senthil Kumaranorsent...@gmail.com added the comment: I see that ismount like function on windows is provide by the various Win32 extensions. If Windows supported is added to ismount function itself, then it might be a good idea to have attributes or list_attributes function as well. But for posix, how will it be different from details provided by stat? Would not it add redundancy? Or would it be better to provide file attributes as part of stat itself (if some are missing in Windows). -- nosy: +orsenthil ___ Python trackerrep...@bugs.python.org http://bugs.python.org/issue9035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/mail%40timgolden.me.uk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Éric Araujo mer...@netwok.org added the comment: In the absence of formal testing, a few comments on my patch to help reviewers. 1) If the code is both an svn and hg checkout, hg wins, since it’s not unheard of to use hg on top of svn, whereas the contrary does not make sense to me. 2) The hg status command does not need post-processing like the svn one, since hg status --added --modified will already filter the output, and --no-status means “don’t print A or M at the start of each line”. 3) I changed a list comp for a genexp, and used startswith instead of getitem+contains+eq; does not change behavior. 4) I suppressed the unneeded shell=True argument to subprocess.Popen (and made the command string into a list); does not change behavior since there were no globbing or path expansion of any kind. Testing is easy: Apply the patch, add bad indentation in a Python file, run make patchcheck (./python Tools/scripts/patchcheck.py on OSes without make), profit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8912] `make patchcheck` should check the whitespace of .c/.h files
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Ronald Oussoren ronaldousso...@mac.com added the comment: I'm closing this issue: 1) webbrowser.get(firefox) currently works 2) firefox on OSX doesn't provide hooks to open tabs instead of windows (neither through the command line nor though AppleScript) which means that the 'new' and 'autoraise' options of webbrowser.open cannot be supported due to lack of support in FF itself. -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Shashwat Anand anand.shash...@gmail.com added the comment: I searched for proxy+firefox on roundup and the only two issue I got was issue 8238 and issue 1160328. None of them seems related to webbrowser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8621] uuid.uuid4() generates non-unique values on OSX
Stefan Krah stefan-use...@bytereef.org added the comment: Ronald Oussoren rep...@bugs.python.org wrote: Stefan: we already new that, see msg105018. This issue was closed as fixed because the uuid module contains a workaround for this issue (by not using the broken C API on OSX 10.6). Ok, my comment was partly meant to give an explanation why the test suite failed but the individual tests did not. If uuid_generate_random() is specified as async-signal-safe, then yes, the C API would be broken on OSX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8912] `make patchcheck` should check the whitespace of .c/.h files
Mark Dickinson dicki...@gmail.com added the comment: I think I’ll go with replacing instead of just reporting. How about a --report-only (insert better name here) command line option to patchcheck, then? My editor doesn't delete trailing whitespace *automatically*, but it's trivial to remove trailing whitespace from a file if you know it's there (M-x delete-trailing-whitespace, I believe); some people (like me) might prefer to make all changes within the editor rather than having an external tool do it for them. This is especially true if you've got the editor open for the relevant file at the time, since you can end up with two different conflicting versions of the file---one in the editor and one on disk; saving in the editor can undo the changes that patchcheck made on disk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8912] `make patchcheck` should check the whitespace of .c/.h files
Éric Araujo mer...@netwok.org added the comment: Agreed. reindent.py has a dry-run mode too, so adding such a global flag and making it the default is okay with me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.
Senthil Kumaran orsent...@gmail.com added the comment: You mean Table of Contents? The index at the end serves as a bookmark, right? Also, Table of Contents might add up couple of more pages to traverse. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8988] import + coding = failure (3.1.2/win32)
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: now tell me how the hell can file system encoding be related to file content encoding?! Why do you say so? I can reproduce your issue, but changing the first line of a.py: # coding: cp1252 to: # coding: utf-8 did not change anything. In the meantime, you should refrain from creating directories with characters not representable in the terminal window. @haypo: The problem still exists with py3k at r82150. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Ronald Oussoren ronaldousso...@mac.com added the comment: Marc-Andre: what version of Xcode do you use? (the version in the About menu of Xcode.app). I'm getting clean builds with '--enable-universalsdk' on OSX 10.4.11 (PPC) with Xcode 2.5 (the last Xcode for OSX 10.4). That is, all extension build, except for the ones grouped with '_bsddb' in your initial message (and that's expected). Furthermore all tests passed. I had one oddity in the tests: make test prints Warning -- sys.path was modified by test_site. I don't get this warning on OSX 10.6. BTW. universal builds work fine on OSX 10.6, that's how I do most of my development. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generators does not separates headers with \r\n
Malcolm Box malcolm@gmail.com added the comment: Echoing the comment of Thomas Viehmann, the current behaviour makes it impossible to use this library to generate a correct multipart/mixed message with 7_or_8_bit encoding on Unix. The MIME standard specifies that headers are to be CRLF terminated - this is independent of any lower-level transport encoding. Binary bodies are simply octet sequences - so may contain \n or \r characters. The correct MIME encoding would have the headers terminated with CRLF, and the bodies as raw byte sequences. However on Unix, since the headers are generated with \n not CRLF, you can't even post-process this (e.g. message.as_string().replace('\n', '\r\n') as that will screw up the binary body data. The current behaviour is basically wrong and should be fixed. -- nosy: +Malcolm.Box ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.
pengyu.ut pengyu...@gmail.com added the comment: On Tue, Jun 22, 2010 at 6:25 AM, Senthil Kumaran rep...@bugs.python.org wrote: Senthil Kumaran orsent...@gmail.com added the comment: You mean Table of Contents? The index at the end serves as a bookmark, right? Also, Table of Contents might add up couple of more pages to traverse. I don't need subsubsections to be in the table of content. But I think it is making sense to add them in the bookmarks, as the bookmarks can be folded even if there are many bookmarks for subsubsections. I'm not refereeing to index. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Éric Araujo mer...@netwok.org added the comment: I’m starting on this now. Monitor http://bitbucket.org/Merwok/distutils2-killsetup for updates. -- keywords: +gsoc resolution: - accepted stage: - needs patch versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8253] add a resource+files section in setup.cfg
Éric Araujo mer...@netwok.org added the comment: I’m doing this after #8252. Monitor that bug and http://bitbucket.org/Merwok/distutils2-killsetup for updates. -- dependencies: +add a metadata section in setup.cfg keywords: +gsoc resolution: - accepted stage: - needs patch versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8253 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Shashwat Anand anand.shash...@gmail.com added the comment: Is +gsoc a keyword too ? :O On Tue, Jun 22, 2010 at 7:16 PM, Ãric Araujo rep...@bugs.python.org wrote: Ãric Araujo mer...@netwok.org added the comment: Iâm starting on this now. Monitor http://bitbucket.org/Merwok/distutils2-killsetup for updates. -- keywords: +gsoc resolution: - accepted stage: - needs patch versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ -- Added file: http://bugs.python.org/file17742/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___Is quot;+gsocquot; a keyword too ? :Obrbrdiv class=gmail_quoteOn Tue, Jun 22, 2010 at 7:16 PM, Ãric Araujo span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:br blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;br Ãric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; added the comment:br br Iâm starting on this now. Monitor a href=http://bitbucket.org/Merwok/distutils2-killsetup; target=_blankhttp://bitbucket.org/Merwok/distutils2-killsetup/a for updates.br br --br keywords: +gsocbr resolution: Â -gt; acceptedbr stage: Â -gt; needs patchbr versions: Â -Python 3.3br divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue8252; target=_blankhttp://bugs.python.org/issue8252/agt;br ___br /div/div/blockquote/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file17742/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Éric Araujo mer...@netwok.org added the comment: “keywords: +gsoc” means that the “gsoc” keyword has been added, yes. Tarek asked for this keyword to track things. (P.S. Please remove unnecessary quotes from your replies, it’s clutter, and don’t send HTML email to the tracker, that creates a useless unnamed file. Thanks :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Ronald Oussoren ronaldousso...@mac.com added the comment: Reaction from scot w.r.t. my questions: os x 10.5.8 python 2.5.1 /System/Library/Frameworks/Python.framework/Versions/2.5 came default with system i'm going to try activestate python 2.6 and see if that solves the problem. import readline does work -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Ronald Oussoren ronaldousso...@mac.com added the comment: Some notes: The system python on OSX 10.5 and 10.6 is linked to libedit, not GNU readline, and doesn't seem to contain patches that convert stdlib usage of readline APIs to the correct way to bind keystrokes to action with libedit. This results in failure to use libedit at all. AFAIK this also affects the generic stdlib when linking libedit, which is supported in 2.6.5, 2.7 and 3.2. Therefore adding more versions. -- versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Ronald Oussoren ronaldousso...@mac.com added the comment: This (untested) patch should fix the issue for the cmd module: +++ Lib/cmd.py (working copy) @@ -112,7 +112,18 @@ import readline self.old_completer = readline.get_completer() readline.set_completer(self.complete) -readline.parse_and_bind(self.completekey+: complete) + +if 'libedit' in readline.__doc__: +# readline linked to BSD libedit +if self.completekey == 'tab': +key = '^I' +else: +key = self.completekey +readline.parse_and_bind(bind %s rl_complete%(key,)) + +else: +# readline linked to the real readline +readline.parse_and_bind(self.completekey+: complete) except ImportError: pass try: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.
Fred L. Drake, Jr. fdr...@acm.org added the comment: On Mon, Jun 21, 2010 at 11:00 PM, pengyu.ut rep...@bugs.python.org wrote: Current pdf version of python documents don't have bookmarks for sussubsection. For example, there is no bookmark for the following section in python_2.6.5_reference.pdf. This would be nice to have. Also the bookmarks don't have section numbers in them. I suggest to include the section numbers. Hmm. I'm not a huge fan of section numbers, but so long as we use them, there's some rationale to include them in the PDF bookmarks. So I guess that's up to whoever creates the patch. -Fred -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Marc-Andre Lemburg m...@egenix.com added the comment: Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: Marc-Andre: what version of Xcode do you use? (the version in the About menu of Xcode.app). We have Xcode 2.5 and all updates on the machine. Python 2.6 and older versions compile just fine. The changes you added for the SDK builds in Python 2.7 made the problem appear. What I don't understand is why you are redirecting files under /usr to the SDK virtual root dir. We install all the local builds under /usr/local/ and as result, the build itself also happens under a /usr path. The function definition appears to be a bit coarse in this respect: def is_macosx_sdk_path(path): Returns True if 'path' can be located in an OSX SDK return path.startswith('/usr/') or path.startswith('/System/') I believe that this function should really only return True if the path in question does exists in the SDK virtual root. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Stefan Krah stefan-use...@bytereef.org added the comment: Re: EOF checking in Py_ISXXX() for consistency with C functions. After reflecting on this a bit I think it's ultimately not a good idea. While it is possible to do the EOF check, the macros would then take either an int in [EOF, 0-UCHAR_MAX] or a signed/unsigned char. This would be another inconsistency with the C functions, which are not supposed to take a signed char. I checked every usage of Py_IS* in the tree and this is an isolated case. So I think it's better to do the check explicitly and add a comment to the Py_IS* macros. Does the patch look good? -- Added file: http://bugs.python.org/file17743/check_eof.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8254] write a configure command
Éric Araujo mer...@netwok.org added the comment: I have a working configure command at http://bitbucket.org/Merwok/distutils2-configure which works. (Read my short reports on https://wokslog.wordpress.com/ for more details.) It’s not completely finished, though: 1) I import build and install to get their user_options, to avoid duplicating these lines. Is that bad? 2) Test coverage is not exhaustive. This will be done incrementally. 3) I tried directly using Distribution and configure objects in the tests, but couldn’t get them to work; I temporarily settled for running Python (sys.executable) in a subprocess. I’m looking for help to change that. 4) As it is now, the configure command just records options without checking for conflicts (e.g. using both –prefix and –user for install). While not in the original description of the task, I think that it should be added. Prior art like 4Suite’s config command or a prototype for configure done by Tarek that I discovered only today support this idea. Is that okay? I’ll have to avoid code duplication between configure, build and install. -- resolution: - accepted stage: - patch review type: - feature request versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8254 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Ronald Oussoren ronaldousso...@mac.com added the comment: What I don't quite understand is why the build fails for you but passes for me. What configure flags did you use? This version should fare better: def is_macosx_sdk_path(path): Returns True if 'path' can be located in an OSX SDK return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/') This explicitly tests for paths that must be in the SDK: * Anything in /System is owned by the system, and should be fetched through the SDK * Likewise for anything in /usr that isn't in /usr/local IMHO anyone that installs additional libraries in /usr/lib, or /System/Libraries/Frameworks is confused at best, and we shouldn't even try to support that. The repository contains an simpler (but in hindsight too simple) version because ${SDKROOT}/usr/local/lib is a symlink to the real /usr/local/lib. That works fine when looking for libraries, but not when looking for other files (such as headers). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: A small suggestion: rather than having bool hg which means Mercurial if true and SVN if false, consider a string valued vc variable with 'svn' for SVN and 'hg' for Mercurial. This way it will be straightforward to add support for other VC systems in the future. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generators does not separates headers with \r\n
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Shashwat Anand anand.shash...@gmail.com added the comment: merwok: Pont noted. I replied it via Gmail, was unaware of the fact that it adds an unnamed file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Needs a home page
New submission from Dave Abrahams d...@boostpro.com: This project needs a home page. I want to link to it from Ryppl docs, but anyone following a link to, e.g. the bitbucket wiki would think this project was weak at best. -- assignee: tarek components: Distutils2 messages: 108390 nosy: dabrahams, tarek priority: normal severity: normal status: open title: Needs a home page ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1100562] deepcopying listlike and dictlike objects
Michele Orrù maker...@gmail.com added the comment: Ported to Py3k. -- versions: +Python 3.2 -Python 2.6, Python 2.7 Added file: http://bugs.python.org/file17744/issue1100562_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1100562] deepcopying listlike and dictlike objects
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file17744/issue1100562_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1100562] deepcopying listlike and dictlike objects
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file17745/issue1100562_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Shashwat Anand anand.shash...@gmail.com added the comment: Tested the patch and it works for trunk and python3.2 alpha. Without adding SDK flag with configure readline module failed to build. Python build finished, but the necessary bits to build these modules were not found: _gdbm ossaudiodevreadline spwd However for cmd module, tab completion and history(up|down arrow) worked fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7900] posix.getgroups() failure on Mac OS X
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Ronald, Please see my python-dev post in red buildbots on 2.7 thread: http://mail.python.org/pipermail/python-dev/2010-June/100873.html I argue that we should apply a fix along the lines of no-darwin-ext.diff while waiting for Apple to fix their bugs and support more than 16 groups in getgroups properly. Your latest patch, while prevents getgroups from raising an exception, does not change the fact that getgroups return wrong values if group membership changes within the process. Note that I propose to undefine _DARWIN_C_SOURCE for posixmodule.c only. I think that is the right thing to do because defining _DARWIN_C_SOURCE is for invoking non-POSIX behavior. If you still thing there may be other functions in posixmodule.c that require _DARWIN_C_SOURCE, we can probably find a way to change only getgroups, but I cannot figure out how to do it without adding extra source files. For your reference, here is how getgroups is declared in unistd.h: #if defined(_DARWIN_UNLIMITED_GETGROUPS) || defined(_DARWIN_C_SOURCE) int getgroups(int, gid_t []) __DARWIN_EXTSN(getgroups); #else /* !_DARWIN_UNLIMITED_GETGROUPS !_DARWIN_C_SOURCE */ int getgroups(int, gid_t []); #endif /* _DARWIN_UNLIMITED_GETGROUPS || _DARWIN_C_SOURCE */ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1749662] New byte packing format for the struct module
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1749662 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: To test windows callbacks, I suggest to use EnumResourceTypes() instead, which is more likely to work in any condition: def test(): from ctypes.wintypes import BOOL, HMODULE, LONG, LPARAM import ctypes EnumResourceTypes = ctypes.windll.kernel32.EnumResourceTypesA EnumResTypeProc = ctypes.WINFUNCTYPE( BOOL, HMODULE, LONG, LPARAM) resource_types = [] def callback(hModule, typeid, lParam): resource_types.append(typeid) return True # keep enumerating hModule = None # Main executable RT_MANIFEST = 24 # from winuser.h EnumResourceTypes(hModule, EnumResTypeProc(callback), None) assert RT_MANIFEST in resource_types -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Needs a home page
Giampaolo Rodola' g.rod...@gmail.com added the comment: What project are you talking about? This issue tracker? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
Changes by Ryan Coyner rcoy...@gmail.com: -- nosy: +rcoyner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Needs a home page
Dave Abrahams d...@boostpro.com added the comment: Distutils2, sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3439] create a numbits() method for int and long types
Terry J. Reedy tjre...@udel.edu added the comment: Minor addendum to Mark's last message: in the near release version of 2.7 (rc2), note 2 in 5.4. Numeric Types — int, float, long, complex now starts Conversion from floats using int() or long() truncates toward zero like the related function, math.trunc() and no longer marks the usage of long as deprecated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Needs a home page
Éric Araujo mer...@netwok.org added the comment: d2 is still under heavy development. It is not recommended to rely on it. We work on features including documentation, you can monitor http://packages.python.org/Distutils2/ every two weeks to get updates. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Marc-Andre Lemburg m...@egenix.com added the comment: Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: What I don't quite understand is why the build fails for you but passes for me. What configure flags did you use? I posted the configure options in the first message on this ticket. The failure appears to be due to the fact that we run and install our software in /usr/local (which is the standard we use on all Unix systems). This version should fare better: def is_macosx_sdk_path(path): Returns True if 'path' can be located in an OSX SDK return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/') With this variant, the build works correctly, however, see below... This explicitly tests for paths that must be in the SDK: * Anything in /System is owned by the system, and should be fetched through the SDK * Likewise for anything in /usr that isn't in /usr/local IMHO anyone that installs additional libraries in /usr/lib, or /System/Libraries/Frameworks is confused at best, and we shouldn't even try to support that. ...wouldn't it be better to check whether the SDK does indeed provide the path in question and only then redirect to the SDK path instead of the normal system one ? I'm not sure whether these will ever be needed by Python, but it would certainly make the function more robust: There are quite a few things in /usr/lib that you don't find in the SDK usr/lib/ dir. For /System the situation is even more obvious: the SDK version only has these entries: # ls -l /Developer/SDKs/MacOSX10.4u.sdk/System/Library/ total 0 drwxr-xr-x 3 root wheel 102 Oct 27 2007 CFMSupport drwxr-xr-x92 root wheel 3128 Oct 27 2007 Frameworks drwxr-xr-x 3 root wheel 102 Oct 27 2007 Printers drwxr-xr-x 123 root wheel 4182 Oct 27 2007 PrivateFrameworks whereas the OS directory has dozens of entries. The repository contains an simpler (but in hindsight too simple) version because ${SDKROOT}/usr/local/lib is a symlink to the real /usr/local/lib. That works fine when looking for libraries, but not when looking for other files (such as headers). Right, but really only that link. SDK also doesn't contain any links for the missing /System/Library directories. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Distutils2 needs a home page
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Documentation title: Needs a home page - Distutils2 needs a home page type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9057] Distutils2 needs a home page
Dave Abrahams d...@boostpro.com added the comment: Yes, I understand it's not ready for users. However, even a project in process can benefit from having a home page, to boost awareness and link connectivity. ATM there's no reasonably stable URL I can link to from http://ryppl.org/technology.html I would be happy to create such a page if this is too much trouble. It doesn't have to be very ambitious; just a notice saying D2 is under heavy development and links to relevant resources (e.g. bitbucket) would be fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3439] create a numbits() method for int and long types
Mark Dickinson dicki...@gmail.com added the comment: So there are two issues here: - deprecation of int(my_float) and long(my_float) - removal of long in 3.x I'm not sure which Terry is referring to here. On the first, I don't think use of int() with float arguments actually *is* deprecated in any meaningful way. At one point there was a push (related to PEP 3141) to deprecate truncating uses of int and introduce a new builtin trunk, but it never really took hold (and trunc ended up being relegated to the math module0; I certainly don't expect to see such deprecation happen within the lifetime of Python 3.x, so I don't think it would be appropriate to mention it in the 2.x docs. On the second, it's possible that there should be a mention somewhere in the 2.x docs that long() no longer exists in 3.x, and that for almost all uses int() works just as well. A separate issue should probably be opened for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3439] create a numbits() method for int and long types
Mark Dickinson dicki...@gmail.com added the comment: Aargh! 'a new builtin trunk' - 'a new builtin trunc' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9016] IDLE won't launch (Win XP)
Jon Seger se...@biology.utah.edu added the comment: Here's the result of doing what Martin asked (and then launching the interpreter, to confirm that it's the 2.5.4 version that I installed on Thursday just before submitting my original bug report). C:\PYTHON25 is the first item in the PATH. C:\Python25\Lib\idlelib\idle.py exists, and IDLE launches properly when I double-click its icon on the desktop. But Python scripts (including idle.py and all of my own) do not show the Python icon. Renaming .idlerc has no effect except that IDLE now doesn't have a list of recent files. Or did you mean to try this after installing one of the later (2.6) versions of Python, under which IDLE would not launch? Is this looking like a registry problem? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9016 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9058] PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX
New submission from Dave Malcolm dmalc...@redhat.com: Running this code (seen via http://bugs.python.org/file10013/python-2.5.2-unicode_resize-utf16.py for issue 2620): msg = 'A'*2147483647 ; msg.decode('utf16') leads to the python process exiting with an assertion failure: python: Objects/exceptions.c:1787: PyUnicodeDecodeError_Create: Assertion `length 2147483647' failed. The reaason is that PyUnicodeDecodeError_Create contains this code: PyObject * PyUnicodeDecodeError_Create( const char *encoding, const char *object, Py_ssize_t length, Py_ssize_t start, Py_ssize_t end, const char *reason) { assert(length INT_MAX); assert(start INT_MAX); assert(end INT_MAX); return PyObject_CallFunction(PyExc_UnicodeDecodeError, ss#nns, encoding, object, length, start, end, reason); } In the example above, we're creating a buffer containing a very large but odd-numbered of bytes, and trying to UTF-16 decode it, which requires an even number of bytes. This leads to a UnicodeDecodeError with a very large value for each of length, start, and end, and although they fit in Py_ssize_t on 64-bit, they don't fit in an int. It seems that this will affect any other decoding errors for buffers that are = INT_MAX in size: unicode decode errors will cause the python process to bail out with an assert failure. It appears that throughout the UnicodeDecodeError representation that length, start and size are to be of size Py_ssize_t, rather than int: they are stored in fields of type Py_ssize_t, they are printed using format %zd, which is indeed a Py_ssize_t (see http://docs.python.org/c-api/string.html#PyString_FromFormat ). In PyUnicodeDecodeError_Create, ss#nns is: - s (string) [char *]: encoding - s# (string) [char *, int]:object, length - n (int) [Py_ssize_t]: start - n (int) [Py_ssize_t]: end - s (string) [char *]: reason See Python/modsupport.c: do_mkvalue: s# uses this logic: if (flags FLAG_SIZE_T) n = va_arg(*p_va, Py_ssize_t); else n = va_arg(*p_va, int); where FLAG_SIZE_T is set by _Py_BuildValue_SizeT, but not by Py_BuildValue. The latter is what's called by PyObject_CallFunction. Hence, as written, length must fit within an int, but start and end don't have to. s# calls PyString_FromStringAndSize(str, n) upon the data, which takes a Py_ssize_t. It's going to be big, but may well fit in RAM (but might not). The invoked function leads to a call to: UnicodeError_init, which calls: if (!PyArg_ParseTuple(args, O!O!nnO!, PyString_Type, self-encoding, objecttype, self-object, self-start, self-end, PyString_Type, self-reason)) { O!: (object) [typeobject, PyObject *]: PyString_Type, self-encoding, O!: (object) [typeobject, PyObject *]: objecttype, self-object (objecttype is passed as PyString_Type) n: (integer) [Py_ssize_t]: self-start, n: (integer) [Py_ssize_t]: self-end, O!: (object) [typeobject, PyObject *]: PyString_Type, self-reason, So it looks like the only place in construction where we actually restrict to int is in that s# in PyUnicodeDecodeError_Create, which looks fixable. After construction: various calls to PyString_FromFormat for start and end using format %zd, which is indeed a Py_ssize_t (see http://docs.python.org/c-api/string.html#PyString_FromFormat ) So it looks like the only issue here is the restriction to int in PyUnicodeDecodeError_Create due to the use of s# in the call to PyObject_CallFunction; apart from that, it looks like the assertions can be removed. I'll attach a patch which removes this restriction. (for my reference, I'm tracking this as https://bugzilla.redhat.com/show_bug.cgi?id=540518 ) -- components: Unicode messages: 108404 nosy: dmalcolm priority: normal severity: normal status: open title: PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot
Mark Dickinson dicki...@gmail.com added the comment: Just to confirm that with this fix test_urllib2_localnet is now passing for me. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9058] PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX
Dave Malcolm dmalc...@redhat.com added the comment: Patch to remove the restriction that the fields be INT_MAX Tested on x86_64 on a machine with 12GB of RAM, leads to this exception, rather than the python process bailing out: Traceback (most recent call last): File stdin, line 1, in module File Lib/encodings/utf_16.py, line 16, in decode return codecs.utf_16_decode(input, errors, True) UnicodeDecodeError: 'utf16' codec can't decode byte 0x41 in position 2147483646: truncated data I'm not sure about automated testing for this; the reproducer seems to need =12GB of RAM - in borderline cases it drives my machine deep into swap, which can take a long time to recover from, and might be unacceptable in the test suite. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file17746/remove-PyUnicodeDecodeError_Create-assertions-issue9058.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9058] PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX
Benjamin Peterson benja...@python.org added the comment: Actually, you should be able to just remove the asserts. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9051] Cannot pickle timezone instances
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Python version is fixed in sandbox and committed in r82154. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9058] PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX
Dave Malcolm dmalc...@redhat.com added the comment: Actually, you should be able to just remove the asserts. Aha, thanks! Yes: #define PY_SSIZE_T_CLEAN is defined at the top of Objects/exceptions.c, so yes, Py_VaBuildValue is redirected to _Py_VaBuildValue_SizeT, so that PyEval_CallFunction calls: Py_VaBuildValue(format, vargs) which is preprocessed to: _Py_VaBuildValue_SizeT which calls: return va_build_value(format, va, FLAG_SIZE_T); which means that s# is processed with flags==FLAG_SIZE_T, and thus as Py_ssize_t within do_mkvalue: if (flags FLAG_SIZE_T) n = va_arg(*p_va, Py_ssize_t); else n = va_arg(*p_va, int); So, yes, it does look like the three assert lines can simply be removed. -- Added file: http://bugs.python.org/file17747/remove-PyUnicodeDecodeError_Create-assertions-issue9058-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9058] PyUnicodeDecodeError_Create asserts that various arguments are less than INT_MAX
Benjamin Peterson benja...@python.org added the comment: Removed them in r82157. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9058 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6105] json.dumps doesn't respect OrderedDict's iteration order
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Benjamin, it's a little late for this one for 2.7. Do you prefer to close it forever or to treat it as a bug fix for 2.7.1? -- assignee: rhettinger - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Thomas Heller thel...@ctypes.org added the comment: To test windows callbacks, I suggest to use EnumResourceTypes() instead, which is more likely to work in any condition: Unfortunately the proposed test doesn't detect the problem in Python2.7 rc1. It runs without crashing, even if enumerating the resources in shell32.dll which contains a lot more stuff than python.exe. Maybe we should just remove the 'self.assertFalse()' call in the current test? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9021] no copy.copy problem description
anatoly techtonik techto...@gmail.com added the comment: The doc change suggested by Terry could be helpful in the tutorial where a copy module is mentioned. Can you post a link to this tutorial here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file17674/hg-support.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Éric Araujo mer...@netwok.org added the comment: Updated. I also changed two sets to lists, to retain usage. I’m sure that Mercurial won’t print the same filename twice, and I’m nearly sure Subversion won’t either. Retaining order will make the report a bit more readable. -- Added file: http://bugs.python.org/file17748/hg-support.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8999] Add Mercurial support to patchcheck
Éric Araujo mer...@netwok.org added the comment: s/usage/order/ *sigh* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9048] no OS X buildbots in the stable list
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9018] os.path.normcase(None) does not raise an error on linux and should
R. David Murray rdmur...@bitdance.com added the comment: My understanding is that there is a deep problem here, in that file system case (and in some cases encoding) is not OS/platform dependent, but is rather *file system* dependent. Adding lower to normcase on OS X is probably not going to break much code (he says with no evidence to back it up), but someday it would be nice to address the various file system type dependencies in the os module :( In any case, it is probably better to address the 'lower' issue in a separate issue/patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Ronald Oussoren ronaldousso...@mac.com added the comment: The search code must look in the SDK and not fall back on looking into the system to avoid finding new headers and libraries when trying to build using an older SDK on a newer system. I don't think this is a problem at the moment, but it could be in the future. The reason I added the SDK support code was that Snow Leopard contained a newer version of the OpenSSL libraries and the Python build picked up version information from the system version of OpenSSL instead of the SDK, and that resulted in a disfunctional build (IIRC hashlib was incomplete and that caused numerous test failures). Falling back to looking in the current system would be needed when looking for a file that isn't a header of library, but AFAIK we don't do that in setup.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3439] create a numbits() method for int and long types
STINNER Victor victor.stin...@haypocalc.com added the comment: Please open a new issue for the documentation problems, it's no more related to numbits() method and this issue is closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8990] array constructor and array.fromstring should accept bytearray.
Thomas Jollans tho...@jollans.com added the comment: OK, here's the new patch. I added tests for array(typecode, bytearray(b'abab')), a.extend(b'123') and a.extend(bytearray(b'123')). @Victor: int itemsize is the array's item size, buffer.itemsize is the strings' (and must be 1) PROBLEM with this patch: I changed s# to y*. This means that str arguments are no longer accepted by fromstring. I don't think they ever should have been in 3.x, but it is an incompatible change and this got the test suite, which (I assume the code hasn't changed since 2.x) used a str argument. (changed in patch). It might be best to use s* instead of y*, especially if this is applied to 3.1? -- Added file: http://bugs.python.org/file17749/array2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8930] messed up formatting after reindenting
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: The following command also finds files, in which tabs are preceded only by spaces: find -name '*.[ch]' -exec grep -El $'^ *\t' {} \; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9016] IDLE won't launch (Win XP)
Tal Einat talei...@users.sourceforge.net added the comment: Let's focus on the problem you're having with Python 2.6, with which you said IDLE won't launch. Please try to run IDLE using Python 2.6.5: 1) Install Python 2.6.5, say to C:\Python26 2) Rename/move your .idlerc directory so there isn't any such directory under C:\Documents and Settings\username 3) Then go to that directory and run: C:\Python26 .\python.exe Lib\idlelib\idle.py Post the output of that here, so that we can help diagnose the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9016 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3439] create a numbits() method for int and long types
Terry J. Reedy tjre...@udel.edu added the comment: Whoops, sorry to create confusion when I was trying to put this issue to rest completely. Let me try better. In his last message, Raymond said Other possible wording: ... so that ``k`` is approximately ``1 + int(log(abs(x), 2))``. That is what the current 2.7rc2 doc says. In response, Mark said I guess that could work. but quoted footnote 2, which implied that 'int' should be changed to 'trunc' in the example above. This implied to me that there was a lingering .numbits doc issue. But footnote 2 is now changed, so I not longer think there is a doc issue, so I reported that, so no one else would think so. I hope this is the end of this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Marc-Andre Lemburg m...@egenix.com added the comment: Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: The search code must look in the SDK and not fall back on looking into the system to avoid finding new headers and libraries when trying to build using an older SDK on a newer system. Right, but at least there should be an option to fall back to the system provided libs. This is currently not the case. The code would need some refactoring to make this possible, though, e.g. a combined version of the SDK functions you added to return the corrected path instead of just True/False. I don't think this is a problem at the moment, but it could be in the future. The reason I added the SDK support code was that Snow Leopard contained a newer version of the OpenSSL libraries and the Python build picked up version information from the system version of OpenSSL instead of the SDK, and that resulted in a disfunctional build (IIRC hashlib was incomplete and that caused numerous test failures). Falling back to looking in the current system would be needed when looking for a file that isn't a header of library, but AFAIK we don't do that in setup.py. I guess you should at least add a note pointing to this potential future problem to the code and perhaps also reference this ticket. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9018] os.path.normcase(None) does not raise an error on linux and should
R. David Murray rdmur...@bitdance.com added the comment: Ah, I see my lack of knowledge of OS X has betrayed me. Apparently you can set the case sensitivity of OS X file systemsso the deep problem is even deeper than I thought :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7900] posix.getgroups() failure on Mac OS X
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a (untested) work-around that won't require undefining _DARWIN_C_SOURCE: After all includes, say #ifdef __APPLE__ int posix_getgroups(int, gid_t []) __asm(_getgroups); #define getgroups posix_getgroups #endif This should cause linking to the same symbol as without _DARWIN_UNLIMITED_GETGROUPS/_DARWIN_C_SOURCE -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com