[issue15233] atexit: guarantee order of execution of registered functions?
Larry Hastings la...@hastings.org added the comment: Is it tested for? Amusingly enough, yes. test_order() in Lib/test/test_atexit.py already ensures reverse order. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
Glenn Linderman v+pyt...@g.nevcal.com added the comment: My fix for this errors error, might be similar to what is needed for issue 12967, although I don't know if my fix is really correct... just that it gets past the error, and 'strict' is the default for TextIOWrapper. I'm not at all sure why there is now (since 3.2) an interaction between input on stdin and the particulars of the output class for stdout. But I'm not at all an expert in Python internals or Python IO. I'm not sure whether or not you applied the patch to your b0, if not, that is what I'm running, too... but using the win_console.patch as supporting code. The original test script didn't use the supporting code. If you did patch your b0 bwith unicode3.py, then you shouldn't need to do a chcp to write any Unicode characters; someone reported that doing a chcp caused problems, but I don't know how to apply the patch or build a Python with it, so can't really test all the cases. Victor did add a cp65001 codec using a different issue, not sure how that is relevant here, other than for the tests he wrote. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15233] atexit: guarantee order of execution of registered functions?
Larry Hastings la...@hastings.org added the comment: I would avoid the note markup. It is visually distracting and there isn't a reason to pull this out of the main text. I think it's an improvement; it helps draw the eye to an important warning. Does anyone else have an opinion one way or another? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
New submission from Eric Snow ericsnowcurren...@gmail.com: There was some concern with PyImport_GetMagicTag() extracting its value from sys.implementation.cache_tag. One solution is to have the two use a common underlying value. However, that's basically what was already in import.c and I'd rather minimize that file at this point. An alternative is to have the underlying value defined in a more amenable spot, but I'm not convinced that buys a whole lot over simply exposing the underlying value in PyImport_GetMagicTag(). If we could deprecate that function... Another possibility is to move the underlying value to configure. The down-side is that it's platform-specific. I've attached a patch that does this. While it may do too much as-is, it demonstrates my point. -- components: Interpreter Core files: cache_tag_via_configure.diff keywords: patch messages: 164582 nosy: amaury.forgeotdarc, brett.cannon, eric.snow priority: normal severity: normal stage: patch review status: open title: PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file26237/cache_tag_via_configure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15166] Implement imp.get_tag() using sys.implementation
Eric Snow ericsnowcurren...@gmail.com added the comment: There was some concern with PyImport_GetMagicTag() extracting its value from sys.implementation.cache_tag. I've addressed this in issue15242. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15238] shutil.copystat should copy Linux extended attributes
Larry Hastings la...@hastings.org added the comment: First patch. -- keywords: +patch Added file: http://bugs.python.org/file26238/larry.copystat.xattrs.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15178] Doctest should handle situations when test files are not readable
Bohuslav Slavek Kabrda bkab...@redhat.com added the comment: Fifth version :) - On failure in a loaded test, the _test function returns, so this behaviour is preserved. - During _test function, count of both loaded and non-loaded files is kept. - If a file fails to be loaded, the tests continue, but a non-zero return code is returned. Moreover, the results of loaded and non-loaded files are printed after each invocation. This is a sample output: $ python3 -m doctest -v spam c.py beans Cannot read 'spam': [Errno 2] No such file or directory: 'spam' Trying: 2 * 2 Expecting: 4 ok 1 items passed all tests: 1 tests in c 1 tests in 1 items. 1 passed and 0 failed. Test passed. Cannot read 'beans': [Errno 2] No such file or directory: 'beans' Test files read successfully: 1 Unreadable files: 2 Does this look better? -- Added file: http://bugs.python.org/file26239/doctest-dont-end-with-exception-on-unreadable-files-v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15178 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26240/poplib_02_server_capabilities.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26133/poplib_02_server_capabilities.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26134/poplib_03_starttls.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26241/poplib_03_starttls.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26242/poplib_03_starttls.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26241/poplib_03_starttls.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment: I've refreshed once more the patches, adding the implementation of the stls command in test_poplib.py. IMHO, the changes as they stand now are low risk, and could as well go into 3.3. With many thanks to Giampaolo for implementing the asynchat/asyncore pop3 server! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can the #defines appear in pyconfig.h instead? I find it easier to discover them this way, and will also simplify the implementation on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15233] atexit: guarantee order of execution of registered functions?
Antoine Pitrou pit...@free.fr added the comment: Does anyone else have an opinion one way or another? I'm neutral. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Antoine Pitrou pit...@free.fr added the comment: Ping. The test fails erratically on many buildbots. -- nosy: +pitrou status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15139] Speed up threading.Condition wakeup
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Thank you Richard. A new patch is included. Now the processing of timeout is done in _acquire_condition(). None is infinite, and negative timeouts are clipped to zero. Do you feel that it is unnecessary to be able to support other locks than Lock() and RLock() as the outer lock? If so, then we can drop the _acquire_restore() as suggested by Martin. -- Added file: http://bugs.python.org/file26243/condition.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1667] license() does not process keyboard input correctly
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7ccc2cea6969 by Jesus Cea in branch '2.7': Issue #1667: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/7ccc2cea6969 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1667 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1677] Ctrl-C will exit out of Python interpreter in Windows
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2de5c9ced464 by Jesus Cea in branch '2.7': Issue #1677: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/2de5c9ced464 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1677] Ctrl-C will exit out of Python interpreter in Windows
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4de541fbdd58 by Jesus Cea in branch '3.2': Issue #1677: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/4de541fbdd58 New changeset 7937aa6b7e92 by Jesus Cea in branch 'default': NULL MERGE: Issue #1677: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/7937aa6b7e92 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1677] Ctrl-C will exit out of Python interpreter in Windows
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1677] Ctrl-C will exit out of Python interpreter in Windows
Changes by Jesús Cea Avión j...@jcea.es: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Yuriy: I set my location to Moscow (using the Gnome date widget) and ran the test, but no failure occurs. vinay@eta-jaunty:~/projects/python/default$ date Tue Jul 3 15:12:39 MSD 2012 vinay@eta-jaunty:~/projects/python/default$ ./python Lib/test/regrtest.py test_logging [1/1] test_logging 1 test OK. @Juan: Since the logging test doesn't seem to be broken, I'd rather not patch it; it was at least useful for throwing up a problem. For some reason time.timezone seems to be off, and that should probably be flagged as a separate issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Yuriy Syrovetskiy c...@cblp.su added the comment: @vinay.sajip My time.timezone is -14400. What is yours? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Yuriy Syrovetskiy c...@cblp.su added the comment: And datetime.datetime.now().tzinfo is always None. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15180] Cryptic traceback from os.path.join when mixing str bytes
Hynek Schlawack h...@ox.cx added the comment: Cool, I'll finish it up in the sprints on Saturday. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15180 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Juancarlo Añez apal...@gmail.com added the comment: @Vinay The test *is* broken in theory, because it uses today's time.timezone to make calculations over a datetime in the past (1993), even when official time zones have changes in recent years for Caracas, Moscow, and others: http://www.timeanddate.com/news/time/. As it is, the test will pass on some locations and fail on others, even if time.timezone is correct. If time.timezone is wrong for certain locations is a separate issue that I will post as soon as I complete the unit test. I took a look at Modules/timemodule.c,and there seems to be nothing wrong there. In short, the bug is: test_time() incorrectly uses the current time.timezone to make calculations over dates in the past. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Juancarlo Añez apal...@gmail.com added the comment: And datetime.datetime.now().tzinfo is always None. I can reproduce that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11880] add a {dist-info} category to distutils2
Daniel Holth dho...@fastmail.fm added the comment: I appreciate it. I had trouble using the patch system after that. I will see whether I can generate a better one. Daniel Holth On Jul 3, 2012, at 12:49 AM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: Did a first review on Rietveld, but I see that the patch may be outdated (it had no tests). -- versions: +3rd party, Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11880 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Jesús Cea Avión j...@jcea.es added the comment: Lorenzo, 3.3 is in beta mode now. No new features accepted :-(. Please, fulfill a PSF contributor agreement http://www.python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15033] Different exit status when using -m
Jeff Knupp jkn...@gmail.com added the comment: Fixed for 3.3. Does this need to be back ported as well? -- keywords: +patch nosy: +Jeff.Knupp Added file: http://bugs.python.org/file26244/exit_code.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15033] Different exit status when using -m
Jeff Knupp jkn...@gmail.com added the comment: And by 'Fixed' I of course meant 'Patched, awaiting review'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Sorry, I didn't quite grasp what the problem was before (timezones changing over time). I understand better now :-) @Yuriy: On my test machine (Ubuntu Jaunty), with Moscow set as my location, the value of time.timezone is -10800 (for Caracas, it's 16200). The datetime.datetime.now().tzinfo is None, as you've both said. I will look at this soon. Yuriy, can you confirm that with Juancarlo's patch, the test also works for you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: BTW I just noticed that you created this issue on 24 May. Sorry I only saw it today - in future, if you add logging issues, please add me to the nosy list, and that way I'll pick it up sooner. Usually one of the other committers adds me, but this time no-one did :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15243] Misleading documentation for __prepare__
New submission from William Schwartz wkschwa...@gmail.com: Section 3.3.3.2. Preparing the class namespace of the documentation (http://docs.python.org/dev/reference/datamodel.html#preparing-the-class-namespace) states that If the metaclass has a __prepare__ attribute, it is called as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` This isn't quite true. By just defining a ``__prepare__`` method in a metaclass, the interpreter calls it as it would a static method -- there is no implicit first argument referring to ``metaclass`` as the documentation implies. The documentation should be amended to say that users can decorate ``__prepare__`` as a class method to get ``metaclass`` passed in as the implicit first argument. -- assignee: docs@python components: Documentation, Tests messages: 164606 nosy: William.Schwartz, docs@python priority: normal severity: normal status: open title: Misleading documentation for __prepare__ type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15243] Misleading documentation for __prepare__
William Schwartz wkschwa...@gmail.com added the comment: Attached a unittest script to demonstrate that __prepare__ is implicitly a staticmethod. -- Added file: http://bugs.python.org/file26245/test_metaclass.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Juancarlo Añez apal...@gmail.com added the comment: I did extensive testing on time.timezone, and it is correct as far as the current date is concerned. The problem, as mentioned before, is that test_logging is using time.timezone for dates in the past for which the time zone may have been different from the current one on the current location. The attached patch shows that time calculations involving time.timezone may not be valid for dates different from the current one, as not even daylight-savings/summer times are taken into account, so the test may also fail depending on the time of the year it is run on. -- Added file: http://bugs.python.org/file26246/test_timezones.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15241] venv module and pyvenv script documented, but not python behavior itself
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4a39ea2c1b11 by Vinay Sajip in branch 'default': Issue 15241: Improved site.py documentation relating to venvs. http://hg.python.org/cpython/rev/4a39ea2c1b11 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file26247/56ac083c60dc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file26248/d12ded643482.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Jesús Cea Avión j...@jcea.es added the comment: Thanks to Marc Abramowitz huge help and support, current patch builds and works perfectly fine under: 1. x86 32 and 64 bits, static and shared library, Solaris 10. 2. x86 32 and 64 bits, static and shared library, OpenSolaris derivatives (Solaris 11, Openindiana) 3. x86 32 and 64 bits, static and shared library, Mac OS X, recent versions. Pending stuff: 1. SPARC CPU testing. 2. FreeBSD (the custom buildbot we have was not compiled with the right kernel flags). Could anybody help in those areas?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15241] venv module and pyvenv script documented, but not python behavior itself
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 18c2519b9114 by Vinay Sajip in branch 'default': Issue #15241: Added test for venv prefixes. http://hg.python.org/cpython/rev/18c2519b9114 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15241] venv module and pyvenv script documented, but not python behavior itself
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Note that the prefix values (and their meanings in venv/non-venv environments) are documented in the sys module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file25192/aa2dcffa267f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file25203/4a072278b866.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15241] venv module and pyvenv script documented, but not python behavior itself
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 74fea1763d02 by Vinay Sajip in branch 'default': Closes #15241: Added information on venv prefixes to pyvenv section. http://hg.python.org/cpython/rev/74fea1763d02 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Yes, thanks for doing the detailed analysis. I see that the original code was trying to adjust the timezone for a past time effectively using current timezone rules, which is why it doesn't work. Your patch appears equivalent to the slightly simpler dt = datetime.datetime(1993, 4, 21, 8, 3, 0, 0, utc) r.created = time.mktime(dt.astimezone(None).timetuple()) which echoes the intent of the original code to adjust for the timezone. Can you see any reason why the above shouldn't work? On my test machine, it worked fine with the above code and locations of Moscow, London and Caracas (the original code failed with Caracas, though not with Moscow - but do I understand that the original is broken). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15243] Misleading documentation for __prepare__
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +daniel.urban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Juancarlo Añez apal...@gmail.com added the comment: @Vinay No reason. datetime.astimezone(None) is documented in 3.3. You may even use: r.created = time.mktime(dt.astimezone().timetuple()) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Changes by Juancarlo Añez apal...@gmail.com: -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows
New submission from Richard Oudkerk shibt...@gmail.com: On Unix, files (unless specifically locked) can be renamed and deleted while file descriptors for the file remain open. The file descriptors remain valid even after deletion of the file. On Windows this is not possible for files opened using io.open() or os.open(). However, by using the FILE_SHARE_DELETE flag in CreateFile() one can get Unix-like behaviour. Unfortunately, FILE_SHARE_DELETE is only available through the Win32 API, not through the CRT. Also, Issue #14243 concerns the fact that on Windows temporary files cannot be reopened unless one uses the FILE_SHARE_DELETE flag. One can only reopen a file by using a share mode that is at least as permissive as the share mode for all the currently open handles. The attached patch adds a module share (bad name?) with functions share.open() and share.os_open() which act as substitutes for io.open() and os.open(). These by default use FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE as the share mode. (io.open() and os.open() use FILE_SHARE_READ | FILE_SHARE_WRITE instead.) To run the full regression test suite with builtins.open(), io.open() and os.open() monkey patched to use these replacements you can do python -m test.test_share --regrtest Nothing seems to break. -- components: Library (Lib) files: share.patch keywords: patch messages: 164616 nosy: sbt priority: normal severity: normal stage: patch review status: open title: Support for opening files with FILE_SHARE_DELETE on Windows type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file26249/share.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows
Richard Oudkerk shibt...@gmail.com added the comment: I have opened Issue #15244 with a patch to add a share module to the stdlib. After monkey patching builtins.open(), io.open() and os.open() to be equivalents using FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, the regression test suite still runs successfully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
Terry J. Reedy tjre...@udel.edu added the comment: I was reporting stock, as distributed 3.3b0. Is unicode3.py something to run once or import in each app that wants unicode output? Either way, if it is possible to fix the console, why is it not distribute it with the fix? Terry, applications for non-programmers that want to emit Unicode on the console... so the IDLE shell isn't appropriate. Someone just posted on python-list about a problem with that. Hmm. Maybe IDLE should gain a batch-mode console window -- basically a stripped down version of the current shell -- a minimal auto-gui for apps. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Terry said: Is unicode3.py something to run once or import in each app that wants unicode output? I say: The latter... import it. Terry said: Either way, if it is possible to fix the console, why is it not distribute it with the fix? I say: Not sure what you are asking here. Yes it is possible to fix the console, but this fix depends on the version-specific internals of the Python IO system... so unicode3.py works with Python 3.1, but not Python 3.2 or 3.3. I haven't tested to see if my patched unicode3.py still works on Python 3.1 (I imagine it would, due to the nature of the fix just adding something that Python 3.1 probably would ignore. So my opinion is the fix is better done inside Python than inside the application. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Mark Grandi markgra...@gmail.com added the comment: Hi, I noticed in the latest message that d9pounces posted that JSON format does not allow dates and data, so XML is used by default to write files.. Rthe XML version of plists also do not really 'support' those types, and they are converted as follows: NSData - Base64 encoded data NSDate - ISO 8601 formatted string (from http://en.wikipedia.org/wiki/Property_list#Mac_OS_X) So really it should be the same thing when converting to json no? -- nosy: +markgrandi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15245] ast.literal_eval on some literals
New submission from João Bernardo jbv...@gmail.com: `ast.literal_eval` is very strict on names, so it seems to lack some literals that may be result of `repr` on built-in objects. - Obvious cases: ast.literal_eval('...') ast.literal_eval('Ellipsis') both result on ValueError. - Not so obvious: nan_name = repr(float('nan')) ast.literal_eval(nan_name) # ValueError inf_name = repr(float('inf')) ast.literal_eval(inf_name) # ValueError ast.literal_eval(2e308) # == inf `nan` and `inf` are not literals (at least inf should be, but that's another problem), but their representations are not possible to be evaluated unlike any other float numbers with maybe precision loss. I think `literal_eval` should include these 3 names the same way it accepts True, False and None. Another case, that I personally don't care, but seems plausible would be `NotImplemented`. -- components: Library (Lib) messages: 164621 nosy: JBernardo priority: normal severity: normal status: open title: ast.literal_eval on some literals type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14902] test_logging failed
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 56260d30985d by Vinay Sajip in branch 'default': Closes #14902: Fixed timezone conversion of a date/time in the past. Thanks to Yuriy Syrovetskiy for the report and Juancarlo Añez for the patch on which this fix is based. http://hg.python.org/cpython/rev/56260d30985d -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26250/poplib_01_socket_shutdown_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26251/poplib_02_server_capabilities_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file26252/poplib_03_starttls_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26240/poplib_02_server_capabilities.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file26242/poplib_03_starttls.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute
Glenn Linderman v+pyt...@g.nevcal.com added the comment: So this looks like it might be a simple fix... in issue 1602, there was a patch for Windows console for 3.1... sadly not applied then, or 3.2, or 3.3 (yet). But in 3.2, the fix sprouted a failure just like this one: the console output class would get reported to not have an errors attribute when doing an input. A fix there was to add an attribute errors='strict' to the console output class. Here it seems the same symptom sprouted in the same time frame, for a similar situation where the output class has been replaced by one that doesn't have an errors attribute... so it should grow one... -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15030] PyPycLoader can't read cached .pyc files
Brett Cannon br...@python.org added the comment: Maybe you can try emailing in the form again, Marc? Let me know when you have and if it is lost again I will bug the proper people. Anyway, the original patch I committed added you to Misc/ACKS: http://hg.python.org/cpython/file/56260d30985d/Misc/ACKS#l16 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15030 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15245] ast.literal_eval fails on some literals
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson title: ast.literal_eval on some literals - ast.literal_eval fails on some literals versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15033] Different exit status when using -m
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Brett Cannon br...@python.org added the comment: Any suggestions on how to make the test work better? Otherwise I'm fine with dropping the test since the fix has been verified at least on my machine (and if it is broken the other VMs will notice quickly when they start to implement things). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Antoine Pitrou pit...@free.fr added the comment: Any suggestions on how to make the test work better? I would suggest tracking what causes the failure. It seems to be ordering-dependent, so the devguide is your friend: http://docs.python.org/devguide/buildbots.html#ordering-dependent-failures ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Stefan Krah stefan-use...@bytereef.org added the comment: The tests that fail in succession are these: ./python -m test -uall -v test_importlib test_import -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15210] importlib.__init__ checks for the wrong exception when looking for _frozen_importlib
Stefan Krah stefan-use...@bytereef.org added the comment: If I comment out this, both tests run OK (I don't know if that breaks anything else though): diff --git a/Lib/importlib/test/test_api.py b/Lib/importlib/test/test_api.py --- a/Lib/importlib/test/test_api.py +++ b/Lib/importlib/test/test_api.py @@ -172,7 +172,7 @@ del sys.modules[name] except KeyError: continue -modules['_frozen_importlib'] = None +# modules['_frozen_importlib'] = None import importlib for name, module in modules.items(): sys.modules[name] = module -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable
Jason Spiro jasonspi...@gmail.com added the comment: Just a few comments on your new UI design http://i.imgur.com/415Y1.png: == Suggestion 1 == It seems, from your screenshot, that you plan to hide the [ Next ] and [ Cancel ] buttons, and show your [ Yes ] and [ No ] buttons instead. This is doing something completely unexpected to the user. I've used hundreds or thousands of Windows installers and IIRC never seen such a thing. Instead, may I suggest a checkbox: [x] Prepend the Python folder to the PATH environment variable (recommended) and leaving the [ Next ] and [ Cancel ] buttons as-is. == Suggestion 2 == Better yet, get rid of the screen which talks about changing the PATH entirely. Instead, on the feature-selection screen, make the prepend-Python-to-PATH option be selected by default. Why not try implementing this suggestion in the next 3.3.0 beta? Then you can see if the tech-support burden increases or decreases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
Eric Snow ericsnowcurren...@gmail.com added the comment: Can the #defines appear in pyconfig.h instead? I find it easier to discover them this way, and will also simplify the implementation on Windows. Agreed. I'd like to pull them into Python/sysmodule.h, though. I'm also going to drop the part that messes with SOABI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15246] Line coverage for collectionts.abc.Set
New submission from James King ja...@agentultra.com: I'm working on increasing the line-coverage of the tests for the Set ABC in the collections.abc module. I encountered something a little funky IMO that I'm not sure is an issue or bug... but the __and__ method passes a generator object to the constructor of the Set subclass' constructor where the code seems to check for Iterator. This makes my naive tests for the '' operator to fail. So I haven't included them in this patch, statisfied with the equality tests and isdisjoint. First patch, advice welcome. -- components: Tests files: set_abc_coverage.patch keywords: patch messages: 164632 nosy: agentultra priority: normal severity: normal status: open title: Line coverage for collectionts.abc.Set type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file26253/set_abc_coverage.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15247] io.open() is inconsistent re os.open()
New submission from Juancarlo Añez apal...@gmail.com: import io d = io.open('.') Traceback (most recent call last): File stdin, line 1, in module IsADirectoryError: [Errno 21] Is a directory: '.' import os d = io.open(os.open('.',0)) d _io.TextIOWrapper name=3 mode='r' encoding='UTF-8' -- components: Library (Lib) messages: 164633 nosy: apalala priority: normal severity: normal status: open title: io.open() is inconsistent re os.open() type: behavior versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15247] io.open() is inconsistent re os.open()
Juancarlo Añez apal...@gmail.com added the comment: io.open() clearly doesn't care about opening directories as long as they are passed as os.open() file descriptors. Quite unexpected! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable
Brian Curtin br...@python.org added the comment: == Suggestion 1 == I don't think it's that unexpected. I certainly didn't come up with the idea myself - I've seen them before. Surely it might be new to some people, but is it confusing? For one, we think it's an option users should know about. It's also an option that you should explicitly enable. The yes/no seemed like an easy way to ask a yes/no question if you want it. Instead, may I suggest a checkbox: My first iterations of this patch used a checkbox in an additional window. I guess it's a possibility. If I can even figure out how to make any of this actually work, I'll try a version with a checkbox. == Suggestion 2 == We can't make it the default. This has been explained on this issue, other issues around the tracker, on python-dev, and in a lot of other places. Believe me, as one of the biggest Python 3 advocates you can find, making Python 3 the default installation is not the right move here. If it's on by default, it absolutely will cause problems because people just click right through the installer and their system will be modified in a way that they don't want and potentially won't know how to undo. This type of change has to be exposed in a loud and non-default way to start. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11728] mbox parser incorrect behaviour
Petri Lehtinen pe...@digip.org added the comment: Some thoughts on doing clever tricks to enhance mbox parsing: http://www.jwz.org/doc/content-length.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11728 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15248] In TypeError: 'tuple' object is not callable, suggest a comma.
New submission from Ben Longbons b.r.longb...@gmail.com: I frequently construct lists of tuples, such as: [ (1, 2, 3) # oops, missing comma! (4, 5, 6) ] It would be nice if the error message gave a hint on what was *actually* wrong. Although I always use homogeneous containers, the type that's not callable could be something other than 'tuple'. You could possibly cut down on false positives (at the risk of false negatives) by checking that the not-callable object is newly constructed. A better way to cut down on false positives would be to check that a list, tuple, or set is being constructed from a literal, but this might be more complex. -- messages: 164637 nosy: o11c priority: normal severity: normal status: open title: In TypeError: 'tuple' object is not callable, suggest a comma. type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15222] mailbox.mbox writes without empty line after each message
lilydjwg lilyd...@gmail.com added the comment: Hi, I have figured it out. The 'mbox2' file should be in correct format now. Run './bug.py' once to delete the last mail. 'cat newmail mbox2' to append a new mail to that mbox. Run './bug.py' again. Now, 'mbox2' doesn't have a newline at the end. (And I think a correct mbox should end with a blank line?) -- status: pending - open Added file: http://bugs.python.org/file26254/mbox2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15222] mailbox.mbox writes without empty line after each message
Changes by lilydjwg lilyd...@gmail.com: Added file: http://bugs.python.org/file26255/newmail ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15222] mailbox.mbox writes without empty line after each message
Changes by lilydjwg lilyd...@gmail.com: Added file: http://bugs.python.org/file26256/bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com