[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.
Changes by Martin Dengler mar...@martindengler.com: -- nosy: +mdengler ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Cain gamingleg...@gmail.com added the comment: Running Windows 7. I get the following output when running the requested command: File stdin, line 1 python.exe Lib\idlelib\idle.py SyntaxError: invalid syntax -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14818] C implementation of ElementTree: Some functions should support keyword arguments
Markus com...@gmx.ch added the comment: Applied the patch, but could not verify 'it works for me' as Element lacks the attrib keyword. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14702] os.makedirs breaks under autofs directories
Charles-François Natali neolo...@free.fr added the comment: Alright, closing for good then. Andrew, if you want to get this fixed, you should report this to the autofs folks, because it's definitely not a Python bug. -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please attach your idle.py, and/or figure out why it has a syntax error on line 1? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Martin v. Löwis mar...@v.loewis.de added the comment: Ah, I think I know what happened. When I said command line, I didn't mean Python (command line), but CMD shell, as found in the start menu (i.e. cmd.exe). The line I gave you is, of course, invalid Python syntax. If you have never used the Windows command line, please read up on it a little bit before trying this out. Read in particular about the cd command. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Reproducing the issue is not too hard, see the example below. Does your program play with sys.modules? import sys b'x'.decode('utf-8') import locale; del locale.encodings # Not necessary with python2 del sys.modules['encodings.utf_8'], sys.modules['encodings'] b'x'.decode('utf-8') If we want to make make codecs more robust against sys.modules manipulation I can see several paths: #1 Somehow clear interp-codec_search_cache (used in Python/codecs.c) when the encodings module is cleared (by using weak references?) #2 Make sure that functions returned in CodecInfo objects don't rely on global module state. For example in utf_8.py: def decode(input, errors='strict', _codecs=codecs): return _codecs.utf_8_decode(input, errors, True) #3 Capture utf_8.globals() in the CodecInfo, and run decode() with these captured globals. #4 Get rid of module.__del__ clearing the module globals, and rely on the cyclic garbage collector to clear modules at interpreter shutdown. Item #2 is the easiest one, but must be implemented in each codec. We could fix the most important ones though. Item #4 is the most far-reaching one, and would probably be an improvement to other parts of Python... -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14847 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14848] os.rename should not be used
New submission from Vetoshkin Nikita nikita.vetosh...@gmail.com: When I attempt to remove package with pysetup remove 'package-name' on Fedora 17 - it fails with: 'my-package' cannot be removed Error: [Errno 18] Invalid cross-device link strace'ing showed that there was an attempt to call rename from package dir into /tmp which is tmpfs. Proposed fix is trivial - use shutil.move instead of barebone os.rename. -- assignee: eric.araujo components: Distutils2 messages: 161042 nosy: alexis, eric.araujo, nvetoshkin, tarek priority: normal severity: normal status: open title: os.rename should not be used versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14848 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member
New submission from Markus com...@gmx.ch: Example Code to reproduce: from xml.etree import ElementTree as etree class xetree: cElement = etree.Element class Element(etree.Element): def __init__(self, tag, attrib=None): xetree.cElement.__init__(self, tag, attrib) etree.Element = xetree.Element e = etree.Element(test, {'foobar':'bar'}) e.text = failure print(etree.tostring(e)) # will lack failure So basic inheritance is broken. -- components: Library (Lib) messages: 161043 nosy: cmn priority: normal severity: normal status: open title: C implementation of ElementTree: Inheriting from Element breaks text member versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky, ezio.melotti priority: normal - release blocker stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Markus com...@gmx.ch added the comment: New bug - C implementation of ElementTree: Inheriting from Element breaks text member http://bugs.python.org/issue14849 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14818] C implementation of ElementTree: Some functions should support keyword arguments
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch fixes Element constructor to accept 'attrib' as keyword arg. I couldn't find a way to make this work using PyArg_ParseTupleAndKeywords, so I ended up parsing the kwds by hand. While adding more tests I found out another difference with the Python version. The C version raises a TypeError if attrib is not a dict, whereas the Python version raises an AttributeError while attempting to do a .copy() of the object. I changed the Python version to raise a TypeError too. -- Added file: http://bugs.python.org/file25628/issue14818-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1767933] Badly formed XML using etree and utf-16
Serhiy Storchaka storch...@gmail.com added the comment: Anyone can review the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14818] C implementation of ElementTree: Some functions should support keyword arguments
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file25628/issue14818-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14818] C implementation of ElementTree: Some functions should support keyword arguments
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file25629/issue14818-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4489] shutil.rmtree is vulnerable to a symlink attack
Hynek Schlawack h...@ox.cx added the comment: I've implemented a _safe_rmtree which gets used if os.fwalk() and os.unlinkat() are available. Test suite still passes in regression mode both on Mac (= no effect) and Linux. Let me know if I missed something. -- assignee: - hynek keywords: +needs review, patch stage: needs patch - patch review Added file: http://bugs.python.org/file25630/rmtree-with-fwalk-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4489] shutil.rmtree is vulnerable to a symlink attack
Petri Lehtinen pe...@digip.org added the comment: +Same a rmtree but uses safe functions to avoid race conditions ^ typo +onerror(os.unlinkat, os.path.join(path, name), sys.exc_info()) +onerror(os.fwalk, path, sys.exc_info()) The documentation currently states that the first argument of onerror will be one of os.path.islink, os.listdir, os.remove, os.rmdir. You shuld probably add os.unlinkat and os.fwalk to that list now. Otherwise, looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.
Antoine Pitrou pit...@free.fr added the comment: Python 3.3 now has per-module import locks, and PyImport_ImportModuleNoBlock simply redirects to PyImport_ImportModule. See issue9260. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - A finer grained import lock ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4489] shutil.rmtree is vulnerable to a symlink attack
Hynek Schlawack h...@ox.cx added the comment: Thanks Petri. I've added the missing s in my repo and attach a proposed separate doc patch, I'd like reviewed by someone whose English is better than mine. :) -- nosy: +ezio.melotti, georg.brandl Added file: http://bugs.python.org/file25631/rmtree-with-fwalk-docs-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14472] .gitignore is outdated
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14543] Upgrade OpenSSL on Windows to 0.9.8u
Martin v. Löwis mar...@v.loewis.de added the comment: I have now upgraded OpenSSL to 0.9.8x for 2.7, to 1.0.0j for 3.2, and to 1.0.1c for 3.3. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14543] Upgrade OpenSSL on Windows to 0.9.8u
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14848] os.rename should not be used
Éric Araujo mer...@netwok.org added the comment: How did you install my-package? -- versions: +3rd party, Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14848 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14848] os.rename should not be used
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: pysetup install. strace of removal looks like this: stat(/home/nekto0n/workspace/pillar/penv/lib/python2.7/site-packages/ygroup/__init__.py, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 rename(/home/nekto0n/workspace/pillar/penv/lib/python2.7/site-packages/ygroup/__init__.py, /tmp/ygroup-client-uninstalljkoIAl/__init__.py) = -1 EXDEV (Invalid cross-device link) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14848 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14850] The inconsistency of codecs.charmap_decode
New submission from Serhiy Storchaka storch...@gmail.com: codecs.charmap_decode behaves differently with native and user string as decode table. import codecs print(ascii(codecs.charmap_decode(b'\x00', 'replace', '\uFFFE'))) ('\ufffd', 1) class S(str): pass ... print(ascii(codecs.charmap_decode(b'\x00', 'replace', S('\uFFFE' ('\ufffe', 1) It's because charmap decoder (function PyUnicode_DecodeCharmap in Objects/unicodeobject.c) uses different algorithms for exact strings and for other. We need to fix it? If yes, what should return `codecs.charmap_decode(b'\x00', 'replace', {0:'\uFFFE'})`? What should return `codecs.charmap_decode(b'\x00', 'replace', {0:0xFFFE})`? -- components: Interpreter Core messages: 161054 nosy: storchaka priority: normal severity: normal status: open title: The inconsistency of codecs.charmap_decode type: behavior versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14850] The inconsistency of codecs.charmap_decode
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9260] A finer grained import lock
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14702] os.makedirs breaks under autofs directories
Andrew McNabb amcn...@mcnabbs.org added the comment: I see no evidence that this is a bug in Linux, and I think it's ridiculous to close it when a trivial one-line fix is available. I won't reopen it because it's obvious no one wants to address this. :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 347735ec92eb by Richard Oudkerk in branch 'default': #12098: Make multiprocessing's child processes inherit sys.flags on Windows http://hg.python.org/cpython/rev/347735ec92eb -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14702] os.makedirs breaks under autofs directories
Andrew McNabb amcn...@mcnabbs.org added the comment: I posted a bug report with the kernel here: https://bugzilla.kernel.org/show_bug.cgi?id=43262 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Richard Oudkerk shibt...@gmail.com added the comment: Failure to build _multiprocessing will mean that multiprocessing cannot be imported. So if the function goes somewhere in multiprocessing then it makes running the test suite with multiple processes dependent on the building of _multiprocessing. Not sure if that is much of a problem since one can just run the test suite normally. I don't think that's a problem indeed. Since multiprocessing also depends on threading, the change has broken the AMD64 Fedora without threads 3.x buildbot. I had not realized that the buildbots ran the test suite using multiple processes. I am not sure how best to refactor things -- I don't think multiprocessing should import test.support. Maybe we should just live with the duplication. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Antoine Pitrou pit...@free.fr added the comment: Since multiprocessing also depends on threading, the change has broken the AMD64 Fedora without threads 3.x buildbot. I had not realized that the buildbots ran the test suite using multiple processes. They don't. It's only the import failing, so you should just catch and ignore the ImportError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14851] Python-2.6.8 install fails due to missing files
New submission from gene eduv...@nrao.edu: Hi, I've downloaded both source versions of Python for Mac 2.6.8 and have unziped them with Mac GUI or gunzip but all attempts fail due to build not finding files. First missing file is pyconfig.h which appears to be named pyconfig.h.in. When I remove the .in then next missing object is Modules/Setup. I don't see a fix for this. I'm installing this in Mac OS X 10.6.8. Any ideas? Gene Sources: http://www.python.org/download/releases/2.6.8/ -- components: Installation messages: 161060 nosy: spacebuoy priority: normal severity: normal status: open title: Python-2.6.8 install fails due to missing files type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14851 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file25562/test_calendar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
Oleg Plakhotnyuk oleg...@gmail.com added the comment: I didn't event know that there is such a handy assertRaisesRegex context. Many thanks for pointing this out! -- Added file: http://bugs.python.org/file25632/test_calendar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Antoine Pitrou pit...@free.fr added the comment: Since multiprocessing also depends on threading, the change has broken the AMD64 Fedora without threads 3.x buildbot. I had not realized that the buildbots ran the test suite using multiple processes. They don't. It's only the import failing, so you should just catch and ignore the ImportError. Sorry, I have misread. It actually happens inconditionally in run_tests.py, and is used to spawn the Python interpreter which will run the test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2034b3de1144 by Antoine Pitrou in branch 'default': Move private function _args_from_interpreter_flags() to subprocess.py, so http://hg.python.org/cpython/rev/2034b3de1144 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state
Brett Cannon br...@python.org added the comment: I see three options (which can be combined). One is to keep using something like the uncache context manager to make sure the expected modules get removed. Two is to check the keys of sys.modules at the end of a context manager and if there are new keys either blindly clean up or raise an error/warning that stuff was left behind. Lastly is to leave all built-in modules (and maybe extension modules if you are worried they will do something silly during init) in sys.modules and then clear out the rest (although that might screw up importlib if we end up hiding importlib._bootstrap behind _frozen_importlib, in which case you will want to leave frozen modules as well or special-case _frozen_importlib). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined
Marc Abramowitz msabr...@gmail.com added the comment: I just ran into this issue with Python 2.5 (doesn't seem to be an issue in = 2.6?) and for the benefit of anyone else, I'm copying the answer from `Vinay's Google Group post http://groups.google.com/group/comp.lang.python/browse_thread/thread/21be57fae7e9381a` into this bug, in case the Google group goes away or the URL changes. The values in the config file are interpreted in the context of the logging module's namespace. Hence, one way of achieving what you want is putting any custom handlers in a module of your own, and providing a binding in the logging module's namespace. For example: assuming your DBHandler is defined in a module customhandlers, you could do this somewhere in your code, before loading the configuration: import logging import customhandlers # Use your own module name here logging.custhandlers = customhandlers # Bind your module to custhandlers in logging and then your logging configuration can refer to custhandlers.DBHandler. Of course I merely used custhandlers and customhandlers to show how you can bind to an arbitrary name. -- nosy: +Marc.Abramowitz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined
Marc Abramowitz msabr...@gmail.com added the comment: Or for a practical example, here's how I used the above technique to solve this problem in web2py: diff --git a/gluon/main.py b/gluon/main.py index 57bf647..2f69c6b 100644 --- a/gluon/main.py +++ b/gluon/main.py @@ -68,6 +68,13 @@ create_missing_folders() # set up logging for subsequent imports import logging import logging.config + +# This needed to prevent exception on Python 2.5: +# NameError: name 'gluon' is not defined +# See http://bugs.python.org/issue1436 +import gluon.messageboxhandler +logging.gluon = gluon + logpath = abspath(logging.conf) if os.path.exists(logpath): logging.config.fileConfig(abspath(logging.conf)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14851] Python-2.6.8 install fails due to missing files
Ned Deily n...@acm.org added the comment: This is not the right place to get help for building or using Python (see, for example, http://www.python.org/community/lists/). That said, you should read the README files included in the source directory, in particular, the step about running ./configure. There are OS X specific options documented in the Mac/README file. Also, be aware that Python 2.6 is obsolete and was released before the most recent releases of OS X and Xcode; you will likely run into problems trying to build it on them. If you really need 2.6, you might want to consider installing it from one of the third-party open source distributions for OS X, like MacPorts, Homebrew, or Fink. -- nosy: +ned.deily resolution: - invalid status: open - closed type: behavior - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14851 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
New submission from Frederick Ross madhad...@gmail.com: When parsing something like 'ax/aay/a' with xml.etree.ElementTree, or '{}{}' with json, these parser throw exceptions instead of reading a single element of the kind they understand off the stream (or throwing an exception if there is no element they understand) and leaving the stream in a sane state. So I should be able to write import xml.etree.ElementTree as et import StringIO s = StringIO.StringIO(ax/aay/a) elem1 = et.parse(s) elem2 = et.parse(s) and have elem1 correspond to ax/a and elem2 correspond to ay/a. At the very least, if the parsers refuse to parse partial streams, they should at least not destroy the streams. -- components: Library (Lib) messages: 161068 nosy: Frederick.Ross priority: normal severity: normal status: open title: json and ElementTree parsers misbehave on streams containing more than a single object versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14788] Pdb debugs itself after ^C and a breakpoint is set anywhere
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14788 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14789] after continue, Pdb stops at a line without a breakpoint
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14792] setting a bp on current function, Pdb stops at next line although no bp
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14795] Pdb incorrectly handles a method breakpoint when module not imported
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14797] Deprecate imp.find_module()/load_module()
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'
Jason R. Coombs jar...@jaraco.com added the comment: Thanks for the tip Amaury. Following that lead, I see that distribute does indeed have a sandbox module which attempts to sandbox sys.modules, which can break the encodings modules. I'm going to address the issue in distribute first, but I like the proposals you've put forth. I like the fourth one in particular, because it's always bugged me when I see other modules implementing #2, which is a workaround for the broader problem. Is #4 the kind of issue that would require a PEP? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14847 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14842] Link to function time() in the docs point to the time module
Petri Lehtinen pe...@digip.org added the comment: Seems that at least all links to the time() function in the time module point to the module (top of the module page) instead of the function. All references use the :func: role, so this must be an issue in Sphinx. Georg: Do you have a clue about this? -- nosy: +georg.brandl title: Link to time.time() in the docs of time.localtime() is wrong - Link to function time() in the docs point to the time module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14808] Pdb does not stop at a breakpoint set on the line of a function definition
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14842] Link to function time() in the docs point to the time module
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 40900f791469 by Petri Lehtinen in branch '2.7': Fix time.time() references in the time module docs http://hg.python.org/cpython/rev/40900f791469 New changeset d15f01b0c1a0 by Petri Lehtinen in branch '3.2': Fix time.time() references in the time module docs http://hg.python.org/cpython/rev/d15f01b0c1a0 New changeset 6286dd856252 by Petri Lehtinen in branch 'default': Fix time.time() references in the time module docs http://hg.python.org/cpython/rev/6286dd856252 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14842] Link to function time() in the docs point to the time module
Petri Lehtinen pe...@digip.org added the comment: Georg: Nevermind, I got help from #python-dev :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14853] test_file.py depends on sys.stdin being unseekable
New submission from Gregory P. Smith g...@krypto.org: ./python Lib/test/test_file.py# passes ./python Lib/test/test_file.py /dev/null # fails nohup ./python Lib/test/test_file.py # fails == FAIL: testStdin (__main__.COtherFileTests) -- Traceback (most recent call last): File Lib/test/test_file.py, line 160, in testStdin self.assertRaises((IOError, ValueError), sys.stdin.seek, -1) AssertionError: (type 'exceptions.IOError', type 'exceptions.ValueError') not raised == FAIL: testStdin (__main__.PyOtherFileTests) -- Traceback (most recent call last): File Lib/test/test_file.py, line 160, in testStdin self.assertRaises((IOError, ValueError), sys.stdin.seek, -1) AssertionError: (type 'exceptions.IOError', type 'exceptions.ValueError') not raised 2.7 only; works fine in 3.2. -- keywords: easy messages: 161073 nosy: gregory.p.smith priority: normal severity: normal status: open title: test_file.py depends on sys.stdin being unseekable type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14853 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14798] pyclbr raises KeyError when the prefix of a dotted name is not a package
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2d2079593212 by Petri Lehtinen in branch '2.7': #14798: pyclbr now raises ImportError instead of KeyError for missing packages http://hg.python.org/cpython/rev/2d2079593212 New changeset 895246f1a06a by Petri Lehtinen in branch '3.2': #14798: pyclbr now raises ImportError instead of KeyError for missing packages http://hg.python.org/cpython/rev/895246f1a06a New changeset 2f51c15bbc56 by Petri Lehtinen in branch 'default': #14798: pyclbr now raises ImportError instead of KeyError for missing packages http://hg.python.org/cpython/rev/2f51c15bbc56 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14798] pyclbr raises KeyError when the prefix of a dotted name is not a package
Petri Lehtinen pe...@digip.org added the comment: Fixed, thanks for the patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14798 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4
Marc Abramowitz msabr...@gmail.com added the comment: Just to make this a tad easier, I put Joakim's patch into a gist: [marca@logger01.prod1 Python-2.7.3]$ pwd /home/marca/src/Python-2.7.3 [marca@logger01.prod1 Python-2.7.3]$ curl -sk https://raw.github.com/gist/2727063/ | patch -p1 patching file Modules/_sqlite/connection.c I suppose this could be fixed in the Python code with some autoconf stuff, but I'm not too comfortable with autoconf. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4
Marc Abramowitz msabr...@gmail.com added the comment: curl -sk https://raw.github.com/gist/2727063/ | patch -p1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14831] make r argument on itertools.combinations() optional
Terry J. Reedy tjre...@udel.edu added the comment: permutations(i,r) has an obvious default length, len(i). For combinations(i,r), r = len(i), the return is i itself. Uninteresting. You are asking for something else, that combinations(i) be powerset(i), which is a different function. Powerset can be built from chain and combinations. Raymond has rejected adding powerset, which is given in the doc in 9.1.2. Itertools Recipes. In the python-ideas 'Haskell envy' thread (about combinations/powerset), that started April 22, 2012, he said: The whole purpose of the itertools recipes are to teach how the itertools can be readily combined to build new tools. from itertools import chain, combinations def powerset(iterable): pool = tuple(iterable) n = len(pool) return chain.from_iterable(combinations(pool, i) for i in range(n+1)) print(list(powerset(range(3 # [(), (0,), (1,), (2,), (0, 1), (0, 2), (1, 2), (0, 1, 2)] -- nosy: +rhettinger, terry.reedy resolution: - rejected stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14831 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14833] Copyright date in footer of /pypi says 2011
Terry J. Reedy tjre...@udel.edu added the comment: This issue is invalid *here* because this tracker is for the CPython implementation and the documentation, not the python.org site. I have, however, sent a message to the pypi catalog-sig mailing list, which *is* the proper venue. Thanks for noticing. -- nosy: +terry.reedy resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14833 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14818] C implementation of ElementTree: Some functions should support keyword arguments
Markus com...@gmx.ch added the comment: SubElement needs to handle the attrib keyword too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14818 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Terry J. Reedy tjre...@udel.edu added the comment: If python itself runs, you can easily try this from inside the interpreter from idlelib import idle This *should* bring up the Idle shell window. It just did for me on 64 bit Win7. If not, there *should* be an error traceback you can cut and paste here. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14684] zlib set dictionary support inflateSetDictionary
Jesús Cea Avión j...@jcea.es added the comment: Status of this feature?. Ready to integrate? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14684] zlib set dictionary support inflateSetDictionary
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14787] pkgutil.walk_packages returns extra modules
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14787] pkgutil.walk_packages returns extra modules
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon, eric.smith, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14824] reprlib documentation references string module
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.2, Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14824] reprlib documentation references string module
Jasper St. Pierre jstpie...@mecheye.net added the comment: The documentation is just flat out wrong, actually: if ' ' in typename: parts = typename.split() typename = '_'.join(parts) The documentation is claiming the inverse. I don't know why we would ever have a space in a typename, ever (and if someone does awful hacks to get to that state, he should probably also do awful hacks to make reprlib work properly). It would be for the best if we could just remove this brain damage, but whatever. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14790] use packaging in setup.py
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14834] A list of broken links on the python.org website
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14834 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14845] list(generator expression) != [list comprehension]
Terry J. Reedy tjre...@udel.edu added the comment: It has been noted elsewhere (but I cannot find it) that 1) an uncaught StopIteration raised in an expression *within* a genexp is indistinguishable from the StopIteration raised *by* the genexp upon normal termination; and 2) this makes genexps different from otherwise equivalent comprehensions. The statement in PEP289 does not address this exceptional case. Raymond, do you want to revise your PEP to mention this? PEPs are, as their name says, proposals that express intention, not result, and especially not the result after continued patching. We do not usually usually go back and revise PEPs after they have been implemented. It would be an endless task. Hence, they are not current 'documentation' unless unless specifically referred from the docs. This one is not so referenced. Perhaps PEP 0 should say that Finished PEPs (done, implemented in code repository) are historical documents and not current documentation. I checked the entries for comprehensions and generator expressions and they do not claim equivalence, but do (briefly) describe the actual behavior. However, it is easy to miss that the entry in 5.2.8. Generator expressions implies the two facts above. Perhaps we should explicitly say something like: If *expression* raises StopIteration, it will not be distinguished from the StopIteration raised upon normal termination of the generator, and it will make the generator expression act differently from the otherwise equivalent comprehension. -- assignee: - docs@python components: +Documentation -Interpreter Core nosy: +docs@python, rhettinger, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14850] The inconsistency of codecs.charmap_decode
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +doerwalter, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14840] Tutorial: Add a bit on the difference between tuples and lists
Zachary Ware zachary.w...@gmail.com added the comment: I'll go with foolhardy, or just green :P. I wasn't aware that this topic was quite as contentious as it seems to be. I agree that tuples and lists are similar. I was trying to keep my wording at here's another way to look at things that you may not have thought of before without discrediting other ways of thinking, but looking at it again today, there is definite room for improvement on that front. As for fundamentally different, my intent was to condense tuples can be used in a way that lists don't fit as well in, and that usage is much different than lists' usual usage into as few words as I could; referring to the usages rather than the objects being fundamentally different. I'm guessing your main issue with the second sentence is typical usage. I agree, that really isn't the best choice of words, especially when trying to stay away from this is how to do it, don't deviate. I didn't leave out other tuples uses intentionally, but my purpose was really to point out another way of thinking. Not long ago, I was wondering what the difference between tuples and lists really was and went searching. When I found something about heterogenous structure vs. homogenous sequence, it was like a light bulb turning on in my head. I hadn't seen anything like that anywhere in the tutorial or docs before, and it made a lot of things make more sense. Your dis() examples have done the same kind of thing for me, to a lesser extent; I'd never realized just how much less work it is for the interpreter to create a tuple than a list. It's my belief that the tutorial should pack as many ah ha! moments as it can into as little space as it can. So, here's another stab: It may seem that tuples are very similar to lists (and they are in many ways), but their immutability makes them ideal for some cases that lists don't fit quite as well. Though hetero- or homogeneity is in no way a programmed property of anything in Python's syntax or the standard library, it can be helpful to think of tuples as heterogenous structures, and lists as homogenous sequences. When used in this way, tuples are used as a coherent unit while lists are used one member at a time. This is not to say tuples can only be used as a heterogenous structure. In fact, there are parts of Python's own syntax that require a tuple that happens to be a homogenous sequence, such as the :keyword:`except` clause of a ``try ... except`` statement, :func:`issubclass`, and :func:`isinstance`. -- Added file: http://bugs.python.org/file25633/tuple vs list.patch.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express
Piotr Dobrogost p...@bugs.python.dobrogost.net added the comment: Just bumped into this issue when installing gevent 1.0b2 on Vista 64bit using pip. I think it would be worth to mention that although I'm not quite new to Python and in the past I already investigated issue with distutils not finding vcvarsall.bat (http://stackoverflow.com/a/5122521/95735), I didn't remember about DISTUTILS_USE_SDK environment variable. What I'm trying to say is that there are probably more people like me, having Visual Studio 2008 Express + Windows SDK installed but not knowing distutils. After seeing that Windows SDK installs 64bit compiler into VC\bin folder of Visual Studio's installation I thought that Python would pick it up automatically the same way it does with non Express versions of Visual Studio. -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9374] urlparse should parse query and fragment for arbitrary schemes
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 79e6ff3d9afd by Senthil Kumaran in branch '2.7': Issue9374 - Generic parsing of query and fragment portion of urls for any scheme http://hg.python.org/cpython/rev/79e6ff3d9afd New changeset a9d43e21f7d8 by Senthil Kumaran in branch '3.2': Issue9374 - Generic parsing of query and fragment portion of urls for any scheme http://hg.python.org/cpython/rev/a9d43e21f7d8 New changeset 152c78b94e41 by Senthil Kumaran in branch 'default': Issue9374 - Generic parsing of query and fragment portion of urls for any scheme http://hg.python.org/cpython/rev/152c78b94e41 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9374 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9374] urlparse should parse query and fragment for arbitrary schemes
Senthil Kumaran sent...@uthcode.com added the comment: Thanks for raising this issue, Nick. Yes, I verified in both RFC 3986 and 2396 and realized we can safely adopt a generic parsing system for query and fragment portions of the urls for any scheme. Since it was supported in earlier versions too, I felt it was good move to backport too. Fixed in all versions. Thanks! -- assignee: - orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9374 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14823] Simplify threading.Lock.acquire() description
Q abon...@gmail.com added the comment: My bad. That's indeed what I did. Won't repeat the mistake, sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14823 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Cain gamingleg...@gmail.com added the comment: Terry - just ran that command as you suggested and it did bring up idle, however also reported errors in the command window: Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'stderr-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'keyword-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'string-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'break-foreground' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'error-background' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'cursor-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'definition-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'error-foreground' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'normal-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'keyword-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'hilite-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'comment-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'hit-foreground' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'builtin-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'stdout-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'string-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'break-background' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'comment-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'hilite-background' from theme 'desert'. returning default value: 'gray' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'definition-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'stderr-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'hit-background' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'console-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'normal-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'builtin-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'stdout-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'console-background' from theme 'desert'. returning default value: '#ff' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'stderr-foreground' from theme 'desert'. returning default value: '#00' Warning: configHandler.py - IdleConf.GetThemeDict - problem retrieving theme element 'keyword-background' from theme 'desert'. returning default value: '#ff'
[issue14836] Add next(iter(o)) to set.pop, dict.popitem entries.
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14836 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Roger Serwy roger.se...@gmail.com added the comment: The reason why IDLE failed to launch is due to stderr=None when using pythonw.exe. The first Warning message cause IDLE to abort. See issue13582 for more details and a solution to the problem of IDLE not starting. Cain, your home directory should contain a folder named .idlerc. Within this folder are a few configuration files for IDLE. The warning messages indicate that you are missing config-highlight.cfg which contained the definitions for the desert theme. Try renaming config-main.cfg to something else and relaunch IDLE. This will force IDLE to use its default settings. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14838] IDLE Will not load on reinstall
Martin v. Löwis mar...@v.loewis.de added the comment: Closing as a duplicate. Roger, thanks for the analysis. -- resolution: - duplicate status: open - closed superseder: - IDLE and pythonw.exe stderr problem ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com