[issue18647] re.error: nothing to repeat
Armin Rigo added the comment: Just a side note for 2.7: could I recommend people to be really extra, extra careful when changing what kind of regexps are accepted and what kind of regexps are outright rejected? I believe the risk of making long-existing and working 2.7 programs suddenly crash on the next 2.7 micro version should *by far* outweight the theoretical advantage of crashing early on sufficiently bogus regexps. (Fwiw, I believe the same would apply on 3.x too, where rejecting previously-accepted regexps should only be done in a minor version upgrade.) -- nosy: +arigo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17741] event-driven XML parser
Stefan Behnel added the comment: I gave the implementation a try and attached an incomplete patch. Some tests are failing. It turns out that it's not entirely easy to do this. As Antoine noticed, the hack in the C implementation of the TreeBuilder makes it tricky to integrate with other targets, specifically when intercepting events that the tree builder needs . That's a more general bug and it currently gets in the way. Anyway, here's how it should eventually look like. -- Added file: http://bugs.python.org/file31211/iterparse_TreeEventBuilder.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17741 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18647] re.error: nothing to repeat
Serhiy Storchaka added the comment: Serhiy, yup, that regexp is slow, but it does finish - so the engine is doing something to avoid _unbounded_ repetitive matching of an empty string. Yes, it finish, but it has exponential computation complexity. Increase the length of the string to 21, 22, 30, 100... There were multiple bug reports about hanged regexps which actually had quadratic or exponential computation complexity (see for example issue1662581, issue16430, issue15077, issue15515). In all such cases the regexp can be rewritten to have linear computation complexity. However peoples constantly do such mistakes. Armin, I totally agree with you. Note that before b78c321ee9a5 the regexp '(?:.{0,6}.{0,5535})?' was forbidden while '(?:.{0,6}.{0,5534})?' and '(?:.{0,6}.{0,5536})?' were allowed. Existing check allowed false positives. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18695] os.statvfs() not working well with unicode paths
Serhiy Storchaka added the comment: 2.7.x is a minor version, not 2.7. We fixed Unicode issues in Python 2 bugfixes many times. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18695 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18701] Remove outdated PY_VERSION_HEX checks
New submission from Serhiy Storchaka: Here is a patch which removes PY_VERSION_HEX checks in Modules/_ctypes/_ctypes.c, Modules/_sre.c, Objects/stringlib/unicodedefs.h and removes the Modules/_sqlite/sqlitecompat.h file. _sre.c checks support Python versions 2.2, 2.2 or 1.6 which doesn't made sense because the code overall uses Unicode object API available only in Python =3.3. unicodedefs.h contains code to support Python 3.0, but stringlib code can't be shared with Python 3.3. _ctypes.c and sqlitecompat.h contain code to support Python 2.5 which is not supported version. -- assignee: serhiy.storchaka components: Extension Modules, Interpreter Core files: no_version_checks.patch keywords: patch messages: 194789 nosy: amaury.forgeotdarc, belopolsky, benjamin.peterson, ezio.melotti, ghaering, haypo, lemburg, meador.inge, pitrou, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Remove outdated PY_VERSION_HEX checks type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file31212/no_version_checks.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18701 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18702] Report skipped tests as skipped
New submission from Serhiy Storchaka: Some tests in Python testsuite are silently skipped if requirements is not satisfied. The proposed patch adds explicit skipUnless() and raise SkipTest() so that these tests now reported as skipped. I.e. the code like if not condition: def test_foo(self): ... is replaced by @unittest.skipUnless(condition, requires foo) def test_foo(self): ... and the code like def test_foo(self): ... if not condition: return ... is replaced by def test_foo(self): ... if not condition: raise unittest.SkipTest(requires foo) ... -- components: Tests files: skip_tests.patch keywords: patch messages: 194790 nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Report skipped tests as skipped type: enhancement versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file31213/skip_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18268] ElementTree.fromstring non-deterministically gives unicode text data
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18668] Properly document setting m_size in PyModuleDef
Roundup Robot added the comment: New changeset f55ba27776d4 by Eli Bendersky in branch '3.3': Issue #18668: Further clarify m_size setting for non-negative values http://hg.python.org/cpython/rev/f55ba27776d4 New changeset d43435e82e21 by Eli Bendersky in branch 'default': Issue #18668: Further clarify m_size setting for non-negative values http://hg.python.org/cpython/rev/d43435e82e21 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18668 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18418] Thread.isAlive() sometimes True after fork
A. Jesse Jiryu Davis added the comment: Bump. I think my most recent patch (August 4) addresses all of Charles-François's comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17909] Autodetecting JSON encoding
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17909 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16400] update default PyPI behavior in docs re: listing versions
Roundup Robot added the comment: New changeset dd0d751cc7f1 by Christian Heimes in branch 'default': Issue #16400: Add command line option for isolated mode. http://hg.python.org/cpython/rev/dd0d751cc7f1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16400 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
Changes by Richard Oudkerk shibt...@gmail.com: Added file: http://bugs.python.org/file31214/c7aa0005f231.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16499] CLI option for isolated mode
Roundup Robot added the comment: New changeset 06c39789061e by Christian Heimes in branch 'default': typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 http://hg.python.org/cpython/rev/06c39789061e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16400] update default PyPI behavior in docs re: listing versions
Roundup Robot added the comment: New changeset 06c39789061e by Christian Heimes in branch 'default': typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 http://hg.python.org/cpython/rev/06c39789061e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16400 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
Richard Oudkerk added the comment: The forkserver process is now started using _posixsubprocess.fork_exec(). This should fix the order dependent problem mentioned before. Also the forkserver tests are now reenabled on OSX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16499] CLI option for isolated mode
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18504] IDLE:Improvements- Improving Mock_Text
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Roundup Robot added the comment: New changeset 8a060e2de608 by Eli Bendersky in branch 'default': Issue #15651: PEP 3121 refactoring for _elementtree http://hg.python.org/cpython/rev/8a060e2de608 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Eli Bendersky added the comment: Antoine, I committed your patch (with a bit of comments added), *leaving the module caching in*. This is because removing it breaks the tests, unfortunately. The _elementtree tests are so crooked that they manage to create a situation in which the module under test throws ParseError which is a different class from ET.ParseError. This is achieved by multiple invocations of import_fresh_module with various fresh blocked parameters, and I still haven't fully traced all the problems yet. Since this caching only potentially harms other tests, it's ok to leave in. A longer term solution to all this will be http://mail.python.org/pipermail/python-dev/2013-August/127766.html - I want to eventually run all monkey-patch the import environment to simulate some situation sub-tests of ET in different subprocesses to they are kept independent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18483] Add hour-24 type of time to test_http2time_formats in test_http_cookiejar.py
Roundup Robot added the comment: New changeset ab8da1936297 by Ezio Melotti in branch '3.3': #18483: add one more date format in test_http2time_formats. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/ab8da1936297 New changeset 5c3708f23351 by Ezio Melotti in branch 'default': #18483: merge with 3.3. http://hg.python.org/cpython/rev/5c3708f23351 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18483] Add hour-24 type of time to test_http2time_formats in test_http_cookiejar.py
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18484] No unit test for iso2time function from http.cookiejar module
Roundup Robot added the comment: New changeset fe5d105eba4b by Ezio Melotti in branch '3.3': #18484: improve test coverage of http.cookiejar. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/fe5d105eba4b New changeset 7bf1f8892df5 by Ezio Melotti in branch 'default': #18484: merge with 3.3. http://hg.python.org/cpython/rev/7bf1f8892df5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18484] No unit test for iso2time function from http.cookiejar module
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18484 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18466] Spelling mistakes in various code comments.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18466 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18465] There are unused variables and unused import in Lib/test/test_minidom.py
Roundup Robot added the comment: New changeset 4daa18b5ad49 by Ezio Melotti in branch '3.3': #18465: fix unused variables in test_minidom. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/4daa18b5ad49 New changeset 47770b408321 by Ezio Melotti in branch 'default': #18465: merge with 3.3. http://hg.python.org/cpython/rev/47770b408321 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18465] There are unused variables and unused import in Lib/test/test_minidom.py
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18453] There are unused variables inside DateTimeTestCase class in test_xmlrpc.py
Roundup Robot added the comment: New changeset 28c756093a63 by Ezio Melotti in branch '3.3': #18453: fix unused variables in test_xmlrpc. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/28c756093a63 New changeset 9f7581816890 by Ezio Melotti in branch 'default': #18453: merge with 3.3. http://hg.python.org/cpython/rev/9f7581816890 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18453] There are unused variables inside DateTimeTestCase class in test_xmlrpc.py
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18516] Typos in Lib/email/generator.py and Lib/email/architecture.rst
Ezio Melotti added the comment: Fixed in 168f6ac90abf (3.3) and 40ef5ce25d08 (default). Thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18512] sys.stdout.write does not allow bytes in Python 3.x
Ezio Melotti added the comment: You can do sys.stdout.buffer.write(bhello) Note that this might not work when sys.stdout has been replaced with something else (e.g. a StringIO). -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18667] missing HAVE_FCHOWNAT
Larry Hastings added the comment: Here's a patch for trunk. It's essentially what salinger wrote, but as a patch file so it works for review. I poked around a little to make sure we weren't going to have another baffling situation like fchmodat. AFAICT, nope, it's fine, it's as simple as the four-line patch before. -- Added file: http://bugs.python.org/file31215/larry.have_fchownat.trunk.patch.1.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18667] missing HAVE_FCHOWNAT
Larry Hastings added the comment: And here's a patch for 3.3. I should have mentioned--both these patches pass the same tests as an unmodified trunk. So I think it's just ready to go in. -- Added file: http://bugs.python.org/file31216/larry.have_fchownat.3.3.patch.1.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18505] Duplicate function names in test_email.py
Roundup Robot added the comment: New changeset 53d54503fc06 by Ezio Melotti in branch '3.3': #18505: fix duplicate name and remove duplicate test. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/53d54503fc06 New changeset cb0fba5c7828 by Ezio Melotti in branch 'default': #18505: merge with 3.3. http://hg.python.org/cpython/rev/cb0fba5c7828 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18505] Duplicate function names in test_email.py
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18696] In unittest.TestCase.longMessage doc remove a redundant sentence
Ezio Melotti added the comment: Agreed, closing. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18696 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings
Tim Golden added the comment: I attach a patch against 3.3; this is substantially Dave Chambers' original patch with a trivial test added and a doc change. This means that HKCR is scanned to determine extensions and these will override anything in the mimetypes db. The doc change highlights the possibility of overriding this by passing files=[]. I can't see an easy solution for this which will suit everyone but I've sat on it waay too long already. The module startup time is increased but, for bugfix releases, I can't see any other solution which won't break compatibility somewhere. I'm taking the simplest view which says that: .jpg = image/pjpeg is broken but that the winreg code has been in place for too long to simply back it out altogether. I'll commit appropriate versions of this within the next day to 2.7, 3.3 and 3.4 unless anyone objects. Please understand: this *is* a compromise; but I don't think there's a perfect solution for this, short of the rethink which mimetypes needs per MALs suggestion or otherwise. -- Added file: http://bugs.python.org/file31217/issue15207.33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()
Roundup Robot added the comment: New changeset bc49e82ee013 by R David Murray in branch '3.3': #8112: Update the documenting xmlrpc server to use getfullargspec. http://hg.python.org/cpython/rev/bc49e82ee013 New changeset 69e515209fa9 by R David Murray in branch 'default': Merge #8112: Update the documenting xmlrpc server to use getfullargspec. http://hg.python.org/cpython/rev/69e515209fa9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()
R. David Murray added the comment: Thanks, Claudio. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg194816 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()
R. David Murray added the comment: Thanks, Popa. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18689] add argument for formatter to logging.Handler and subclasses in logging module
Vinay Sajip added the comment: I suggest that the declarative configuration approach of logging.config.dictConfig() be used for configurations which can't be handled by basicConfig(). I don't propose to enhance the Handler API as suggested, as at the very least every handler would need to be changed to accommodate the new kwarg. Also, this isn't going to work for third-party handlers which are out there already, since they won't necessarily recognise a new kwarg. -- nosy: +vinay.sajip resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18689 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18681] typo in imp.reload
Roundup Robot added the comment: New changeset 80b65aa2d579 by Ezio Melotti in branch '3.3': #18681: Fix a NameError in imp.reload() (noticed by Weizhao Li). http://hg.python.org/cpython/rev/80b65aa2d579 New changeset 6bee7f1061e0 by Ezio Melotti in branch 'default': #18681: merge with 3.3. http://hg.python.org/cpython/rev/6bee7f1061e0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18681 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18681] typo in imp.reload
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18681 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18652] Add itertools.first_true (return first true item in iterable)
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18648] FP Howto and the PEP 8 lambda guildline
Ezio Melotti added the comment: IMHO that part should not suggest to use lambdas as small functions, so I would drop the example with adder/print_assign and the discussion about lambdas vs defs (the example that uses defs can stay), and keep the rest (from the reduce example). -- nosy: +ezio.melotti, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18646] Improve tutorial entry on 'Lambda Forms'.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18646 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Antoine Pitrou added the comment: Antoine, I committed your patch (with a bit of comments added), *leaving the module caching in*. Thanks! A longer term solution to all this will be http://mail.python.org/pipermail/python-dev/2013-August/127766.html - I want to eventually run all monkey-patch the import environment to simulate some situation sub-tests of ET in different subprocesses to they are kept independent. I find it useful that the test suite stresses module unloading or reloading. There's probably a bug either in ET or in the ET tests. I'm not saying it's a very important issue of course, but IMHO it would be better if we don't try to swipe it under the carpet :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18647] re.error: nothing to repeat
Tim Peters added the comment: Serhiy, yes, I know the regexp you gave takes exponential time. But: 1. This appears to have nothing to do with repeated 0-length matches. I gave you an example of a very similar regexp that also takes exponential time, but never makes any 0-length sub-match. 2. Matthew said that Python's engine is not robust against _unbounded_ repeated matching of an empty sub-match, and so That's the reason for the up-front check. I was asking for an example of _that_ behavior. I still haven't seen one. My goal here is to understand why we're doing this check at all. If Python's engine cannot in fact be provoked into an infinite loop, the check has at best very little value, as there are many ways to provoke exponential-time behavior, and the possibility of a repeated 0-length sub-match doesn't appear to have much (if anything) to do with it. (By the way, exponential-time regexps can't always be rewritten to take linear time, although it takes gimmicks like back references to create examples that are inherently expensive.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
New submission from madan ram: Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses are available from Nokia. Since new version of Qt 5 is realsed and Licenced under Digia. So i am fixing this issue . i am going to write it as PyQt5 is licensed on all platforms under a commercial license and the GPL v3. Your PyQt5 license must be compatible with your Qt license. If you use the GPL version then your own code must also use a compatible license. Note:-PyQt5, unlike Qt, is not available under the LGPL. You can purchase a commercial PyQt5 license here. -- assignee: docs@python components: Documentation files: gui.rst messages: 194824 nosy: docs@python, madan.ram priority: normal severity: normal status: open title: To change the doc of html/faq/gui.html versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file31218/gui.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
Changes by madan ram madan_...@rocketmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
Changes by madan ram madan_...@rocketmail.com: Removed file: http://bugs.python.org/file31218/gui.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
Changes by madan ram madan_...@rocketmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31219/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
Changes by madan ram madan_...@rocketmail.com: -- nosy: +aleax, eric.araujo, ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18647] re.error: nothing to repeat
Serhiy Storchaka added the comment: 2. Matthew said that Python's engine is not robust against _unbounded_ repeated matching of an empty sub-match, and so That's the reason for the up-front check. I was asking for an example of _that_ behavior. I still haven't seen one. Perhaps Matthew did not understand you or you did not understand Matthew. For non-greedy repeats this was fixed in issue9669 (thank to Matthew). For greedy repeats this was fixed some time before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18647] re.error: nothing to repeat
Tim Peters added the comment: So does anyone believe this check serves a useful purpose _now_? Doesn't seem so to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18698] importlib.reload() does not return the module in sys.modules
Brett Cannon added the comment: I'm sure it's an oversight. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18264] enum.IntEnum is not compatible with JSON serialisation
Roundup Robot added the comment: New changeset ae1a7c420f08 by Ethan Furman in branch 'default': Close #18264: int- and float-derived enums now converted to int or float. http://hg.python.org/cpython/rev/ae1a7c420f08 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18416] Move to absolute file paths for module.__file__
Brett Cannon added the comment: I'm currently leaning towards having sys.path_importer_cache store the actual directory name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18693] help() not helpful with enum
Roundup Robot added the comment: New changeset 5d417257748e by Ethan Furman in branch 'default': Close #18693: __dir__ removed from Enum; help() now helpful. http://hg.python.org/cpython/rev/5d417257748e -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18693 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18416] Move to absolute file paths for module.__file__
Eric Snow added the comment: I'm currently leaning towards having sys.path_importer_cache store the actual directory name. Makes sense to me. It the problem that sys.path will still have '' in it and it may be hard to figure out what it means (and how it maps to sys.path_importer_cache)? -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18703] To change the doc of html/faq/gui.html
R. David Murray added the comment: It seems to me (having checked) that the current language is correct. The fact that PyQt5 is available under the GPL isn't really relevant to the FAQ as it currently exists (it doesn't mention the GPL anywhere else). Keep in mind that Python's license is non-GPL. Adding GPL-licensed product information would be a whole different level of change, I think. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18226] IDLE Unit test for FormatParagrah.py
Roundup Robot added the comment: New changeset 453b4f89a2b4 by Terry Jan Reedy in branch '2.7': Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py. http://hg.python.org/cpython/rev/453b4f89a2b4 New changeset bfdb687ca485 by Terry Jan Reedy in branch '3.3': Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py. http://hg.python.org/cpython/rev/bfdb687ca485 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18226 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18693] help() not helpful with enum
Eli Bendersky added the comment: Less than two days passed since this issue was opened. No waiting for feedback? No patch? No code review? Maybe there's another solution? Personally I find dir() often more useful than help(). Maybe help() can be adapted to behave nicely for classes with custom __dir__ and it could be useful elsewhere? Is this such a burning immediate need that we forego all the usual discussion channels? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18693 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Eli Bendersky added the comment: On Sat, Aug 10, 2013 at 10:38 AM, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou added the comment: Antoine, I committed your patch (with a bit of comments added), *leaving the module caching in*. Thanks! A longer term solution to all this will be http://mail.python.org/pipermail/python-dev/2013-August/127766.html - I want to eventually run all monkey-patch the import environment to simulate some situation sub-tests of ET in different subprocesses to they are kept independent. I find it useful that the test suite stresses module unloading or reloading. There's probably a bug either in ET or in the ET tests. I'm not saying it's a very important issue of course, but IMHO it would be better if we don't try to swipe it under the carpet :-) I have no intention swiping things under the carpet. I'll get to the bottom of this to understand the exact flow that causes this to happen. But I still think ET tests should be logically separated into subprocesses. If we want to stress test module unloading and reloading, let's have specific, targeted tests for that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18226] IDLE Unit test for FormatParagrah.py
Terry J. Reedy added the comment: Unless there is a buildbot problem, further enhancements of either file will be part of #18583 -- resolution: - fixed stage: patch review - committed/rejected status: open - closed superseder: - Idle: enhance FormatParagraph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18226 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Antoine Pitrou added the comment: If we want to stress test module unloading and reloading, let's have specific, targeted tests for that. Agreed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18592] IDLE: Unit test for SearchDialogBase.py
Phil Webster added the comment: As suggested by Ezio, I factored out the button tests to a common method. -- Added file: http://bugs.python.org/file31220/test_searchdialogbase2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18592 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18429] IDLE: Format Paragraph doesn't function with comment blocks
Roundup Robot added the comment: New changeset 841984e96df6 by Terry Jan Reedy in branch '2.7': Issue #18429: Add user-oriented News entry about Format / Format Paragraph http://hg.python.org/cpython/rev/841984e96df6 New changeset 9eea6401b892 by Terry Jan Reedy in branch '3.3': Issue #18429: Add user-oriented News entry about Format / Format Paragraph http://hg.python.org/cpython/rev/9eea6401b892 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18429 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18676] Queue: document that zero is accepted as timeout value
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy nosy: +terry.reedy stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18416] Move to absolute file paths for module.__file__
Nick Coghlan added the comment: It seems to me that by *not* doing that, we may have a bug if the cwd changes and the import machinery returns a stateful importer that remembers the path name. Using the actual filesystem path for everything other than sys.path sounds like a much better option. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18704] IDLE: PEP8 Style Check Integration
New submission from R. Jayakrishnan: This is to create an IDLE extension that would integrate PEP8 (Syntax Style Checker https://pypi.python.org/pypi/pep8 ) into the IDLE editor window,so the developer who is using the IDLE editor can quickly and frequently check the PEP8 standards of the code which is being developed in an IDLE editor window. Many modern IDE's have not only syntax highlighting but on the fly syntax checking. Python ensures the quality of code with its own standards implemented as PEP8. The tool pep8 checks Python code against some of the style conventions in PEP8. Also the PEP8 standardization should not be a ‘must emphasizing’ for a python developer, therefore configuring pep8 to enable/disable errors and warning in various levels should be implemented. The implementation work is started by Todd at https://bitbucket.org/rovitotv/pythonpatches/src/fae1fdab936043ec35db541808f5789325762fb3/PEP8CheckExtension.patch?at=default The submitted patch is an effort started from Todd's patch as an example. The IDLE with this patch will show PEP8 style check toggle menu in Options. Once PEP8 check enabled the current module is checked by pep8 tool and the defects will be shown in a extended left pane. Defect codes will be listed as a Buttons, button click leads to highlighting the line and column of the defect and scroll editor window if needed. It is expected that the developer will correct the defect with the help of the message and eventually press the Resolve button,which refresh the pane. This is an initial work and I am looking forward for suggestions on improvements and mistakes of this patch. -- components: IDLE files: PEP8Extension_1.patch keywords: patch messages: 194841 nosy: JayKrish priority: normal severity: normal status: open title: IDLE: PEP8 Style Check Integration type: enhancement versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file31221/PEP8Extension_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15721] PEP 3121, 384 Refactoring applied to tkinter module
Antoine Pitrou added the comment: The first two patches (_tkinter_pep3121-384_v0.patch and _tkinter_pep3121-384_v1.patch) seemed to have the refcounts right, but Andrew's further patches lost the required Py_INCREF in the various new() functions (and the corresponding Py_DECREF in deallocs), which is the cause for the crash in #15667. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18704] IDLE: PEP8 Style Check Integration
Changes by R. Jayakrishnan raaj...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15721] PEP 3121, 384 Refactoring applied to tkinter module
Roundup Robot added the comment: New changeset 4d0c938870bc by Antoine Pitrou in branch 'default': Fix refcounting issue with extension types in tkinter. http://hg.python.org/cpython/rev/4d0c938870bc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10241] gc fixes for module m_copy attribute
Roundup Robot added the comment: New changeset 1edff836c954 by Antoine Pitrou in branch 'default': Issue #10241: Clear extension module dict copies at interpreter shutdown. http://hg.python.org/cpython/rev/1edff836c954 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10241] gc fixes for module m_copy attribute
Antoine Pitrou added the comment: Re-applied patch after having fixed the tkinter issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18676] Queue: document that zero is accepted as timeout value
Roundup Robot added the comment: New changeset 737b53ec5d1a by Terry Jan Reedy in branch '2.7': Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get http://hg.python.org/cpython/rev/737b53ec5d1a New changeset 2122d56d6bc5 by Terry Jan Reedy in branch '3.3': Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get http://hg.python.org/cpython/rev/2122d56d6bc5 New changeset d9a9fe5e700d by Terry Jan Reedy in branch 'default': Issue #18676: Merge from 3.3 http://hg.python.org/cpython/rev/d9a9fe5e700d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18676] Queue: document that zero is accepted as timeout value
Terry J. Reedy added the comment: Zhongyue, we merge 3.x patches forward (currently 3.3 to 3.4) so only one patch is usually needed unless the differences are non-trivial. It is easier if different version patches are tagged with the version in the filename.('-27', for instance. If you think you will ever contribute another patch, especially one less trivial than this one, please go to http://www.python.org/psf/contrib/ and http://www.python.org/psf/contrib/contrib-form/ Note that the agreement can now be submitted electronically. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5527] multiprocessing won't work with Tkinter (under Linux)
James Sanders added the comment: I recently got hit by this bug on 64-bit ubuntu 13.04, with python 3.3.1 and tcl/tk 8.5.13 installed from the Ubuntu repositories. However, I tried building the same versions of tcl, tk, and python locally, and couldn't reproduce the bug. I also built python 3.3.2 with several releases of tcl/tk. With 8.5.8 and earlier, I get a buffer overflow. With 8.5.9-14 and recent trunk versions of tk and tcl, everything works. With 8.6.0, I get the hang. In the tcl/tk versions where the script works correctly, if I also have some tkinter code (such as instantiating a Tk and a Button) in the main process before the fork, then I sometimes get a crash with one of several different weird error messages from X, but this is very inconsistent. The direct cause of the bug seems to be the call to Tcl_FindExecutable in _tkinter's initialization code, which tells tcl the path of the python executable, but as a side effect triggers tcl into running some initialization routines earlier than it would do otherwise. Removing this call (which doesn't seem to have any adverse effects on my system) appears to fix the bug, but if anything else triggers tcl's initialization code before the fork (such as instantiating a tkinter.Tk object), the hang returns. I'm not really sure where else to go with this. I've attached a simplified python-3-compatible script displaying the problem in case someone else wants to have a look. -- nosy: +James.Sanders versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6 Added file: http://bugs.python.org/file31222/hanger.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18686] Tkinter focus_get on menu results in KeyError
Terry J. Reedy added the comment: I am not able to reproduce any problem on Win 7 with either recent 2.7.6a0 (repository) or 3.3.2. Nothing happens if I click on [File] or anywhere else outside of the entry box or [_]...[X] window buttons. Please give the signin info such as Python 2.7.5+ (default, Jul 1 2013, 14:50:57) [MSC v.1500 32 bit (Intel)] on win32 and update if you do not have 2.7.5. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18686 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18705] Fix arround 100 typos/spelling mistakes
New submission from Févry Thibault: In issue 18466 I had said I was planning to write a tool that checks python source code to see if they are spelling mistakes in comments/strings. As it was said there, the big issue was the fact that python has so many non-english words and that docstrings often had variable names in them, so I had to work arround the issue and add a personal word list. I only applied the tool to Lib/*.py yet, as it takes some time to check false-positives and I didn't want to end with patches too big to be reviewed. -- assignee: docs@python components: Documentation files: spelling_Lib.diff keywords: patch messages: 194850 nosy: docs@python, iwontbecreative priority: normal severity: normal status: open title: Fix arround 100 typos/spelling mistakes type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file31223/spelling_Lib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18705 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18705] Fix arround 100 typos/spelling mistakes
Févry Thibault added the comment: Note that I am not a very good python programmer so the attached script may look ugly to you, but it works. -- versions: +Python 3.3 Added file: http://bugs.python.org/file31224/spell.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18705 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18705] Fix arround 100 typos/spelling mistakes
Févry Thibault added the comment: And here is a python_words.txt so you have to press enter less times :) -- Added file: http://bugs.python.org/file31225/python_words.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18705 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18466] Spelling mistakes in various code comments.
Févry Thibault added the comment: See issue 18705 for a basic script. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18466 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18706] test failure in test_codeccallbacks
New submission from Antoine Pitrou: Since issue #18681, the following test sequence fails: ./python -m test -v test_codecencodings_kr test_imp test_codeccallbacks [...] == ERROR: test_xmlcharnamereplace (test.test_codeccallbacks.CodecCallbackTest) -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/test/test_codeccallbacks.py, line 112, in test_xmlcharnamereplace self.assertEqual(sin.encode(ascii, test.xmlcharnamereplace), sout) File /home/antoine/cpython/default/Lib/test/test_codeccallbacks.py, line 102, in xmlcharnamereplace l.append(%s; % html.entities.codepoint2name[ord(c)]) AttributeError: 'module' object has no attribute 'entities' -- assignee: ezio.melotti components: Tests messages: 194854 nosy: ezio.melotti, pitrou priority: high severity: normal stage: needs patch status: open title: test failure in test_codeccallbacks type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Eli Bendersky added the comment: Found some problems in the interaction of PEP 3121 and import_fresh_module: http://mail.python.org/pipermail/python-dev/2013-August/127862.html I'd still like to see the in-PyInit__elementtree caching deleted eventually, without harming test coverage. So this issue will remain open for now, until we decide what to do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Eli Bendersky added the comment: BTW, Antoine, w.r.t documentation - I agree that the whole PyState_* sequence needs better documentation and examples, but in the meantime I'm attaching a simple patch for c-api/module.rst. It clarifies that PyState_AddModule doesn't really have to be called explicitly in extensions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15651] PEP 3121, 384 refactoring applied to elementtree module
Changes by Eli Bendersky eli...@gmail.com: Added file: http://bugs.python.org/file31226/pystate-findmodule-clarify.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15301] os.chown: OverflowError: Python int too large to convert to C long
Roundup Robot added the comment: New changeset 9b0e9e9812f8 by Terry Jan Reedy in branch 'default': Issue #15301: skip new test method so Windows builtbots stop failing. http://hg.python.org/cpython/rev/9b0e9e9812f8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15301] os.chown: OverflowError: Python int too large to convert to C long
Terry J. Reedy added the comment: This was the only failure on 2 of 4 buildbots when I last looked. test_os has several methods like this: def test_dup2(self): if hasattr(os, dup2): self.check(os.dup2, 20) Should the hasattr be moved to skipUnless for all of these? They now 'pass' without the needed os method. -- nosy: +terry.reedy status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18706] test failure in test_codeccallbacks
Terry J. Reedy added the comment: Failure is intermittent. The only related lines in test_codeccallbacks are 002: import html.entities 102:l.append(%s; % html.entities.codepoint2name[ord(c)]) -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15301] os.chown: OverflowError: Python int too large to convert to C long
Benjamin Peterson added the comment: Likely they were written before the invention of unittest test skpping. They could be converted. 2013/8/10 Terry J. Reedy rep...@bugs.python.org: Terry J. Reedy added the comment: This was the only failure on 2 of 4 buildbots when I last looked. test_os has several methods like this: def test_dup2(self): if hasattr(os, dup2): self.check(os.dup2, 20) Should the hasattr be moved to skipUnless for all of these? They now 'pass' without the needed os method. -- nosy: +terry.reedy status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18429] IDLE: Format Paragraph doesn't function with comment blocks
Terry J. Reedy added the comment: The 'fix', including the test, is included with the patch for #18226. It shares with normal text the problem that selections of partial lines do not work well. I think this might be fixed in #18583 by only re-wrapping complete lines. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18429 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18667] missing HAVE_FCHOWNAT
Larry Hastings added the comment: Georg, I'm gonna commit this for 3.4. You want it in 3.3 as well? I claim it's 100% a bugfix. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18667] missing HAVE_FCHOWNAT
Georg Brandl added the comment: Well, since you're a RM now you should know :D -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18693] help() not helpful with enum
Ethan Furman added the comment: Sorry, sorry. Long week, felt like more than two days, mild sense of unease and stress due to non-functioning Release Schedule on python.org, and wanting to get Enum used /somewhere/ in the stdlib before 3.4 is locked down. Making help() better would be a better solution, especially if we enhanced it to show docstrings on instances. I'll see what I can figure out. Feel free to beat me to it. :) -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18693 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com