[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application
Changes by Gregory P. Smith g...@krypto.org: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application
Gregory P. Smith g...@krypto.org added the comment: There is no OS level API to kill threads. Python does not kill threads. When you exec, your entire process should be replaced by the OS, threads shouldn't matter they should simply disappear just as the rest of your process state does. This is an OS problem. Most macosx users will only ever use the python that apple feeds them so I don't see what point working around this in Python would have given that snow leopard (10.6) appears to fix this. Feel free to contribute patches with appropriate autoconf magic and ifdefs surrounding them if you feel otherwise. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new version. Now it works with all the major browsers and it's more usable. I tested it on the following browsers, and I didn't notice any problem/bug: Firefox 2.0/3.0/3.5; Internet Explorer 6/7/8; Opera 9.64; Chrome 2.0; Konqueror 4.2.2; Seamonkey 1.1; I also tested it on a Nokia 5800, where the sidebar normally takes more than half of the screen or about 1/3 if the phone is in landscape mode (its screen resolution is 640x360, the sidebar is 230px). With the built-in browser it works fine, but it's quite slow (8-9 seconds to collapse and a few more seconds to expand). With Opera Mini it has some problem: when the sidebar is collapsed the page is reloaded and the only way to expand it again is to use the 'back' button. A few things could be improved: * Add some effects to the button on hover (to show that it is clickable) and on click (to show that it was clicked); * Remember the position of the sidebar (collapsed/expanded) in all the pages of the doc (using a cookie?); * Make it faster (although I think that most of the time is spent rendering the page, so there's probably nothing to do). -- Added file: http://bugs.python.org/file14799/sidebar.js ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file14794/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file14800/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2057] difflib: add patch capability
Changes by Alexander Stanley l...@swixel.net: -- nosy: +swixel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6750] threading issue in __builtins__.print
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok to me. It should be noted that TextIOWrapper was not designed to be thread-safe at all (neither the Python nor the C version); but admittedly it is more common to write() than to read() from multiple threads, so fixing this particular case makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6750 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain
Antoine Pitrou pit...@free.fr added the comment: This is quite a reasonable request indeed. -- nosy: +pitrou priority: - normal stage: - needs patch versions: -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6797] When Beginning Expression with Lookahead Assertion I get no Matches
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: (?![a-z0-9]) is a negative lookahead, so (?![a-z0-9])0 is saying that the next character shouldn't be any of [a-z0-9], yet it should match 0. Hence, no matches. -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6797] When Beginning Expression with Lookahead Assertion I get no Matches
Mark Dickinson dicki...@gmail.com added the comment: Thanks, MRAB! Closing as invalid. -- nosy: +marketdickinson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6801] symmetric_difference_update documentation fix
New submission from Tarek Ziadé ziade.ta...@gmail.com: the symmetric_difference_update also accepts | -- assignee: tarek components: Documentation messages: 92065 nosy: tarek severity: normal status: open title: symmetric_difference_update documentation fix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6245] Add intel universal architecture on OSX
Mattias Stahre mattias.sta...@gmail.com added the comment: Is there any progress on this? -- nosy: +plux versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
New submission from Joshua Root josh+pyt...@root.id.au: Building Python 2.6.2 on Mac OS X 10.6 (final version, 10A432) fails. Full build transcript is attached. Other system details: Xcode 3.2, hardware is MacPro1,1 -- assignee: ronaldoussoren components: Build, Macintosh files: py26-snowleopard.log messages: 92067 nosy: jmr, ronaldoussoren severity: normal status: open title: build fails on Snow Leopard type: compile error versions: Python 2.6 Added file: http://bugs.python.org/file14801/py26-snowleopard.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6245] Add intel universal architecture on OSX
Changes by mike bayer mike...@zzzcomputing.com: -- nosy: +zzzeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6803] Context manager docs refer to contextlib.contextmanager as contextlib.contextfactory
New submission from Dan Haffey dhaf...@gmail.com: The documentation at http://docs.python.org/library/stdtypes.html#context-manager-types refers to the contextlib.contextmanager decorator as contextlib.contextfactory. -- assignee: georg.brandl components: Documentation files: doc-stdtypes-contextmanagement.patch keywords: patch messages: 92068 nosy: dhaffey, georg.brandl severity: normal status: open title: Context manager docs refer to contextlib.contextmanager as contextlib.contextfactory type: behavior versions: Python 2.5, Python 2.6, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14802/doc-stdtypes-contextmanagement.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6803 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Changes by Bryan Blackburn b...@users.sourceforge.net: -- nosy: +blb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1023290] Conversion of longs to bytes and vice-versa.
Mark Dickinson dicki...@gmail.com added the comment: The patch looks great! Some comments: - I think the type check for length_obj in long_tobytes should be more lenient: I'd suggest a PyIndex_Check and PyNumber_AsSsize_t conversion instead of the PyLong_Check. Or just use 'n' instead of 'O' in the PyArg_Parse* format; this uses PyNumber_Index + PyLong_AsSsize_t, which amounts to the same thing (or at least I *think* it does). - I like the pickle changes, but I think they should be committed separately. (Unless they're somehow required for the rest of the patch to function correctly?) - Stylistic nit: There's some inconsistency in the NULL checks in the patch: if (args != NULL) versus if (is_signed_obj). PEP 7 doesn't say anything about this, but the prevailing style in this file is for an explicit '== NULL' or '!= NULL'. - I'm getting one failing test: test.support.TestFailed: Traceback (most recent call last): File Lib/test/test_long.py, line 1285, in test_frombytes self.assertRaises(TypeError, int.frombytes, , 'big') AssertionError: TypeError not raised by frombytes This obviously has to do with issue 6687; as mentioned in that issue, I'm not sure that this should be an error. How about just removing this test for now, pending a decision on that issue? - Nice docs (and docstrings)! On the subject of backporting to 2.7, I haven't seen any objections, so I'd say we should go for it. (One argument for not backporting new features is to provide incentive for people to upgrade, but I can't realistically see this addition as a significant 'carrot'.) I'm happy to do the backport, and equally happy to leave it to Alexandre if he's interested. Leaving the bikeshedding until last: Method names: I'm +0 on adding the extra underscore. Python's already a bit inconsistent (e.g., float.fromhex and float.hex). Also, at the time the float.fromhex and float.hex names were being discussed, 'hex' seemed to be preferred over 'tohex'; I wonder whether we should have int.bytes instead of int.to_bytes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1023290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Mark Dickinson dicki...@gmail.com added the comment: This also applies to trunk, py3k and release31-maint. -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6804] IDLE: Detect Python files even if name doesn't end in .py
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: A Python source file name doesn't necesarily end in .py/.pyw; on Linux, scripts usually have no extension but are recognized by its shebang line. Windows uses file type associations: .py files are of type Python.File, and .pyc files are Python.NoConFile. This patch makes IDLE recognize as a Python source (and colorize) any file of those types, regardless of extension. http://permalink.gmane.org/ gmane.comp.python.general/636011 -- components: IDLE files: EditorWindow.diff keywords: patch messages: 92071 nosy: gagenellina severity: normal status: open title: IDLE: Detect Python files even if name doesn't end in .py type: feature request versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14803/EditorWindow.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Note that this is also a documentation issue: The pickle serialization format is guaranteed to be backwards compatible across Python releases. -- assignee: - georg.brandl components: +Documentation nosy: +gagenellina, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Changes by Erik S. LaBianca erik.labia...@gmail.com: -- nosy: +easel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6750] threading issue in __builtins__.print
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: fixed with r74581, r74582 and r74583 (in: trunk, py3k and release31-maint) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6750 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Brett Cannon br...@python.org added the comment: For those trying to debug this, to silence the math.h warnings, set MACOSX_DEPLOYMENT_TARGET to 10.6 or something. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Jesse Noller jnol...@gmail.com added the comment: 3k and trunk compile fine for me. Clean snow leopard install. My first suggestion is nuking macports. -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Jesse Noller jnol...@gmail.com added the comment: 2.6.2 maint compiles fine too - again, with a clean install of Snow Leopard, no macports. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Joshua Root josh+pyt...@root.id.au added the comment: Note that this problem appears to be x86_64-specific (caused by - arch_only i386), and only happens if you configure with --enable- framework. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6805] Should be URL for documentation of current release of Python 3 (without version)
New submission from Mitchell Model m...@acm.org: There should be a standard URL on the web site to reach the documentation of the current stable release of Python 3. http://docs.python.org leads to the documentation for Python 2. I can get to Python 3.1 documentation, but I have to specify 3.1 in the URL: http://docs.python.org/3.1 That means that I cannot publish material on the web or in hardcopy that refers generically to the documentation of a particular module via URL without specifying a version, and that version will be obsolete before long. I don't know what the URL should be -- perhaps docs.python.org/3/ would be sufficient. This is one level up from the current arrangement in which specifying 3.1 actually currently gives me the 3.1.1 documentation. -- assignee: georg.brandl components: Documentation messages: 92078 nosy: MLModel, georg.brandl severity: normal status: open title: Should be URL for documentation of current release of Python 3 (without version) versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6805 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6802] build fails on Snow Leopard
Changes by dmw da...@humblehacker.com: -- nosy: +dmw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6806] test_platform fails under Snow Leopard
New submission from Brett Cannon br...@python.org: test.platform fails under Snow Leopard because the golden input for the OS version, sw_vers, reports Snow Leopard as '10.6' while platform.mac_ver()[0] (which uses gestalt.gestalt()) return '10.6.0'. Best solution might be to tweak the test to append a '0' when sw_vers returns a value that is short a micro version. -- components: Library (Lib) keywords: easy messages: 92079 nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title: test_platform fails under Snow Leopard type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6806 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6563] inserting None into sys.modules does not raise ImportError with importlib
Brett Cannon br...@python.org added the comment: Fixed in py3k with r74584 3.1 w/ r74586. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file14800/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file14793/sidebar-old.js ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file14799/sidebar.js ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Ezio Melotti ezio.melo...@gmail.com added the comment: This should be the final version, these are the things I improved: * added a per-browser/per-session cookie to save the position of the sidebar during a single session. When the browser is closed the position is reset and the cookie deleted; * added an effect on hover and a better vertical centering of the '' / ''; * fixed some bugs. I also tried to make it faster (with no appreciable results). I tested it on the aforementioned browsers and it seems to work fine, so if there are no comments on the code or on the final result, the script is ready to go in. -- Added file: http://bugs.python.org/file14804/sidebar.js ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3143] Make the left sidebar in the doc collapsible
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file14805/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com