[issue15521] Dev Guide should say how to run tests in 2.7
Roundup Robot added the comment: New changeset 851adff2d434 by Ezio Melotti in branch 'default': #15521: mention that test.regrtest is necessary to run tests on 2.7. Patch by Chris Jerdonek. http://hg.python.org/devguide/rev/851adff2d434 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15521] Dev Guide should say how to run tests in 2.7
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Tim Golden added the comment: I'm +1 on the approach in principle. I'm tentative about using ctypes for this just because I don't believe we use it anywhere else. But at the least I suggest applying the patch to see how Jeremy's buildbot behaves. If there are wider objections to ctypes we could always work up a C patch. (In 3.3+ we could use the new _winapi module). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10731] UnicodeDecodeError in OS X tkinter when binding to MouseWheel
Ned Deily added the comment: Tcl/Tk 8.5.12 has now been released. After installing ActiveTcl 8.5.12 for OS X, your 3.2 test case that previously readily failed for me no longer does. So I hope you also find that the problem is now resolved. -- stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10731 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15534] xmlrpc escaping breaks on unicode \u043c
New submission from Dmitry Dvoinikov: For the following script import xmlrpc.client; from xmlrpc.client import escape text = ...\u043c.. print(escape(text)) Python 3.3.0b1 produces ...ь..lt;... whereas Python 3.2 ...ь..lt; -- components: Library (Lib) messages: 167199 nosy: ddvoinikov priority: normal severity: normal status: open title: xmlrpc escaping breaks on unicode \u043c type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Nick Coghlan added the comment: My inclination is to say that using ctypes is a reasonable option for improving Windows buildbot stability in the near term, but we'd probably want to move this into _winapi long term. Adding Antoine MvL to get their opinion. -- nosy: +loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15519] finish exposing WindowsRegistryImporter in importlib
Nick Coghlan added the comment: We'll also want to add this to the inheritance tests in test_importlib.test_abc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Martin v. Löwis added the comment: I wonder why it couldn't use os.listdir to find out whether the directory is empty, and os.stat to find out whether a specific file or directory still exists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Nick Coghlan added the comment: In reviewing Eric's changes, I found what I consider a good reason to keep Finder as the root of the hierarchy: *all* finders, both meta path and path entry, will continue to share the optional invalidate_caches API. I'll commit a variant that has the inheritance that way around (still narrowing the find_module API for the new ABCs) and see how it looks to everyone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Roundup Robot added the comment: New changeset 184700df5b6a by Nick Coghlan in branch 'default': Issue #15502: Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow. http://hg.python.org/cpython/rev/184700df5b6a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Nick Coghlan added the comment: Specifically, what I did was to drop find_module from the Finder ABC, but keep the ABC itself as a way to document the common invalidate_caches API. The ABC definition no longer cares whether you implement find_module() or not. MetaPathFinder then enforces find_module(), while PathEntryFinder enforces find_loader(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15519] finish exposing WindowsRegistryImporter in importlib
Nick Coghlan added the comment: This didn't close automatically (I assume the open dependency upset matters, since it also prevented me from closing it manually the first time). Applied to trunk in http://hg.python.org/cpython/rev/a1ac1e13c5a0 (including the rename from #15502) -- dependencies: -Meta path finders and path entry finders are different, but share an ABC resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15519] finish exposing WindowsRegistryImporter in importlib
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Nick Coghlan added the comment: I also dealt with #15519 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15534] xmlrpc escaping breaks on unicode \u043c
STINNER Victor added the comment: Hum, it's a regression introduced by the super-optimized fastsearch. It is just a typo: _s = s. I renamed _s to ptr to avoid future confusion ;-) -- For your information, str.find(), str.rfind(), str.index(), str.rindex() and str.replace() are now using memchr() and memrchr() to find a substring, even if the substring contains characters outside the ASCII (U+-U+007F) and latin1 ranges (U+-U+00FF). memchr() and memrchr() are much faster than a dummy C loop, even if there are false positive. -- keywords: +patch nosy: +flox, haypo, loewis, pitrou Added file: http://bugs.python.org/file26661/fastsearch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15534] xmlrpc escaping breaks on unicode \u043c
Changes by STINNER Victor victor.stin...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15534] xmlrpc escaping breaks on unicode \u043c
Antoine Pitrou added the comment: Ow, nice find. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Roundup Robot added the comment: New changeset 1f8351cf00f3 by Nick Coghlan in branch 'default': Issue #15502: Bring the importlib.PathFinder docs and docstring more in line with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue http://hg.python.org/cpython/rev/1f8351cf00f3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Antoine Pitrou added the comment: On my machine I have programs that simply do not have an option to ignore any directories thus causing some grief during testing. What are those programs exactly? A buildbot should ideally have a lean system install that does not interfere with the tests running. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Nick Coghlan added the comment: OK, that last commit (along with one I did earlier for the import statement) brought over all the fixes I was previously overly hasty in committing to Barry's importdocs branch. I've decided I can live with regular packages as the term for initialised packages (especially given the drawn out arguments on import-sig with the namespace package PEPs). If it becomes an anachronism by the time 4.0 rolls around, well, so be it. The last big issue to be resolved is the terminology conflict between importlib.PathFinder, path importer and importer. I think the first thing to try there is a rename to importlib.PathImportFinder and path import finder to see how well it reads. My current feeling is that the result will have to be pretty horrible to make changing the long standing definition of importer to look like a superior option :) I'm busy for the next couple of days though, so this may not make beta2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15535] Fix pickling of named tuples in 2.7.3
New submission from Thomas Miedema: Pickling a namedtuple Point(x=10, y=20, z=30) in Python 2.7.2 with protocol level 0 would result in something like the following output: ccopy_reg _reconstructor p0 (c__main__ Point p1 c__builtin__ tuple p2 (I10 I20 I30 tp3 tp4 Rp5 . In Python 2.7.3, the same namedtuple dumps to: ccopy_reg _reconstructor p0 (c__main__ Point p1 c__builtin__ tuple p2 (I10 I20 I30 tp3 tp4 Rp5 ccollections OrderedDict p6 ((lp7 (lp8 S'x' p9 aI10 aa(lp10 S'y' p11 aI20 aa(lp12 S'z' p13 aI30 aatp14 Rp15 b. Note the OrderedDictionary at the end. All data, the field names and the values, are duplicated, which can result in very large pickled files when using nested namedtuples. Loading both dumps with CPython 2.7.3 works. This is why this bug was not noticed any earlier. Loading the second dump with CPython or pypy 2.7.2 does not work however. CPython 2.7.3 broke forward compatibility. Attached is a patch with a fix. The patch makes pickled namedtuples forward compatibile with 2.7.2. This patch does not break backward compability with 2.7.3, since the extra OrderedDict data contained the same information as the tuple. Introduced: http://hg.python.org/cpython/diff/26d5f022eb1a/Lib/collections.py Also relevant: http://bugs.python.org/issue3065 -- components: Library (Lib) files: namedtuple_pickle_fix.patch keywords: patch messages: 167215 nosy: rhettinger, thomie priority: normal severity: normal status: open title: Fix pickling of named tuples in 2.7.3 type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file26662/namedtuple_pickle_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Barry A. Warsaw added the comment: What about Path Scanner? Came to me in a dream, so it has to be perfect, right? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Jeremy Kloth added the comment: What are those programs exactly? A buildbot should ideally have a lean system install that does not interfere with the tests running. My development machine has add'l programs, not the buildbot machine. Sorry is there was any confusion. I get the same occasional access denied errors when running the tests locally. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Eric Snow added the comment: Regarding the ABCs, I'm okay with it as long as invalidate_caches() is meant to be a part of meta path finders. I had considered this while writing the patch, so how I had it wasn't a fluke. The fluke was that I didn't bring it up for discussion like I had meant to do. Anyway, my rationale was that importlib.invalidate_caches() is specific to path entry finders. My patch reflected this. If invalidates_caches() were meaningful for meta path finders then we could address that later without losing backward compatibility. As to pulling find_module() off Finder, I felt that having a distinct signature, while semantically unimportant, made a clearer distinction between the old and the new. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Barry A. Warsaw added the comment: On Aug 02, 2012, at 11:33 AM, Nick Coghlan wrote: Specifically, what I did was to drop find_module from the Finder ABC, but keep the ABC itself as a way to document the common invalidate_caches API. The ABC definition no longer cares whether you implement find_module() or not. MetaPathFinder then enforces find_module(), while PathEntryFinder enforces find_loader(). One problem I have, which I'm not sure how to solve, is that the protocol defines a couple of optional methods, specifically find_loader() on meta path finders, and module_repr() on loaders. You'd like for the ABC to be able to capture both the support of these methods if they exist, and their optional nature, but I don't believe that's possible with @abc.abstractmethod. Correct me if I'm wrong, but by adding these methods to the ABC, it requires subclasses to define them. I noticed this when I broke the test suite, and solved it by just adding the methods to the mocks and other test classes. But I think this is not the best solution. Maybe we need an @abc.optionalabstractmethod decorator? ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Jeremy Kloth added the comment: Tim Golden added the comment: I'm tentative about using ctypes this just because I don't believe we use it anywhere else. ctypes is already used later in test_support so I figured it was fine to use for this as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15311] Dev Guide update hook broken
Chris Jerdonek added the comment: Has this issue been resolved? I saw that the following change is on the web site today: http://hg.python.org/devguide/rev/851adff2d434 (though I didn't verify it immediately, just 6 hours after). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Jeremy Kloth added the comment: I wonder why it couldn't use os.listdir to find out whether the directory is empty, and os.stat to find out whether a specific file or directory still exists. It is possible to do the same thing with just os.listdir. The use of the Find*File functions was chosen to eliminate duplicating the wait function for the two different cases. Also, it is just less resource and time intensive to use the Find*File API directly (no need to build an entire list when just testing if any entries exist). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Antoine Pitrou added the comment: I wonder why it couldn't use os.listdir to find out whether the directory is empty, and os.stat to find out whether a specific file or directory still exists. It is possible to do the same thing with just os.listdir. The use of the Find*File functions was chosen to eliminate duplicating the wait function for the two different cases. Also, it is just less resource and time intensive to use the Find*File API directly (no need to build an entire list when just testing if any entries exist). But it's certainly much easier to maintain using regular Python APIs. We would use ctypes if the functionality wasn't accessible from pure Python, but since it is, we don't want to reinvent the wheel. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15536] re.split doesn't respect MULTILINE
New submission from Dave Abrahams: This session demonstrates. See especially the very last expression evaluated s='''this is the end s='''this is the end ... your only friend your only friend ... the end''' the end''' re.split('^', s, re.MULTILINE) re.split('^', s, re.MULTILINE) ['this is the end\nyour only friend\nthe end'] re.split('t', s, re.MULTILINE) re.split('t', s, re.MULTILINE) ['', 'his is ', 'he end\nyour only friend\n', 'he end'] re.split('\n', s, re.MULTILINE) re.split('\n', s, re.MULTILINE) ['this is the end', 'your only friend', 'the end'] re.split('(?=\n)', s, re.MULTILINE) re.split('(?=\n)', s, re.MULTILINE) ['this is the end\nyour only friend\nthe end'] re.split('^y', s, re.MULTILINE) re.split('^y', s, re.MULTILINE) ['this is the end\nyour only friend\nthe end'] re.split('$', s, re.MULTILINE) re.split('$', s, re.MULTILINE) ['this is the end\nyour only friend\nthe end'] re.split('$\n', s, re.MULTILINE) re.split('$\n', s, re.MULTILINE) ['this is the end\nyour only friend\nthe end'] re.split('\n', s, re.MULTILINE) re.split('\n', s, re.MULTILINE) ['this is the end', 'your only friend', 'the end'] re.split('^t', s, re.MULTILINE) re.split('^t', s, re.MULTILINE) ['', 'his is the end\nyour only friend\nthe end'] re.split('^t', s) re.split('^t', s) ['', 'his is the end\nyour only friend\nthe end'] -- components: Regular Expressions messages: 167224 nosy: dabrahams, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: re.split doesn't respect MULTILINE type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Eric Snow added the comment: I wish path subsystem finder weren't so long. Then PathFinder would probably still be appropriate for the class name (as FileFinder is appropriate for FilePathEntryFinder :). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Jeremy Kloth added the comment: OK, here is another patch that uses just os.listdir -- Added file: http://bugs.python.org/file26663/support.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Eric Snow added the comment: Maybe we need an @abc.optionalabstractmethod decorator? Perhaps you are kidding, but I've had a similar thought on a number of occasions. For kicks, I'll float this by python-ideas. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15537] MULTILINE confuses re.split
New submission from Dave Abrahams: compare the output of $ python -c open('/tmp/tst','w').write(100*'x\n');import re;print len(re.split('\n(?=x)', open('/tmp/tst').read())) 100 with $ python -c open('/tmp/tst','w').write(100*'x\n');import re;print len(re.split('\n(?=x)', open('/tmp/tst').read(), re.MULTILINE)) 9 -- components: Regular Expressions messages: 167228 nosy: dabrahams, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: MULTILINE confuses re.split versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14873] Windows devguide: clarification for build errors due to missing optional dependencies
Chris Jerdonek added the comment: I also think this would be worth a note. May I propose a patch? -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15518] Provide test coverage for filecmp.dircmp.report methods.
Chris Calloway added the comment: Well, really, the reason I'm deferring is to get the patch accepted, because it seems kind of unacceptable for standard library modules not to have full test coverage. So far, I don't see evidence that the issue has even been triaged. Of the three approaches, regex, cd, or decoration, which do you see as most likely to be accepted? I understand that cd might be common in some tests. But it also appears that, at least in test_filecmp, some pretty heinous practices are also common like piling a ridiculous number of asserts into one test method. (And I'll fix that, too.) I do really appreciate your advice, core developer or not. You are the only one providing advice here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15311] Dev Guide update hook broken
Ezio Melotti added the comment: I think MvL fixed it. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15496] harden directory removal for tests on Windows
Martin v. Löwis added the comment: I fail to see the point of not using os.stat. IIUC, Windows will delete the file once the last handle is been closed. Since stat will close any handle it temporarily gets, it will not prolong the live of the file; the file will still go away when the last process has closed it. Performance is not an issue at all here, since we are waiting for the deletion of the file anyway. So checking whether the file is in the directory listing is fine with me as well. Unless someone can demonstrate how os.stat can prevent removal of the file, I'd like to see the comment corrected, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15538] Avoid nonstandard s6_addr8
New submission from Philipp Hagemeister: The s6_addr8 field of in6_addr structs is nonstandard, and therefore not supported on all platforms (android in my example). cpython's socket module should use the standard s6_addr field instead. -- components: IO hgrepos: 144 messages: 167233 nosy: phihag priority: normal severity: normal status: open title: Avoid nonstandard s6_addr8 type: compile error versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15538] Avoid nonstandard s6_addr8
Changes by Philipp Hagemeister phi...@phihag.de: -- keywords: +patch Added file: http://bugs.python.org/file26664/issue15538.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15311] Dev Guide update hook broken
Martin v. Löwis added the comment: I added an automated build process, yes. However, the current text is incorrect as it states that the build occurs immediately through a hook. This is not the case; instead, there is a cronjob that pulls changes. I refuse to report the frequency with which this happens, and advise against documenting the status quo, since that may again get outdated. It should be safe to say that changes should be published within a day. -- priority: critical - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15311] Dev Guide update procedure documentation in dev guide outdated
Changes by Martin v. Löwis mar...@v.loewis.de: -- title: Dev Guide update hook broken - Dev Guide update procedure documentation in dev guide outdated ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15538] Avoid nonstandard s6_addr8
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Brett Cannon added the comment: In terms of invalidate_caches(), it could easily be changed to walk sys.meta_path and to call the method on the meta path finders. Not sure if that generalization is reasonable or not, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15518] Provide test coverage for filecmp.dircmp.report methods.
Chris Jerdonek added the comment: Of the three approaches, regex, cd, or decoration, which do you see as most likely to be accepted? In my limited experience, I think the patch most likely to be accepted is the one that changes existing code the least. That would mean adding to the practices you're observing, unfortunately. Personally, I would go with trying to use test.support.temp_cwd() and doing an exact string match (since it provides a more precise test) -- taking appropriate cross-platform measures as necessary. I do really appreciate your advice, core developer or not. You are the only one providing advice here. You're welcome. I'm in the same boat as you, so I know how it feels. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15216] Support setting the encoding on a text stream after creation
Changes by Atsuo Ishimoto ishim...@gembook.org: -- nosy: +ishimoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15216 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15538] Avoid nonstandard s6_addr8
Antoine Pitrou added the comment: Android doesn't have getaddrinfo()? getaddrinfo.c and getnameinfo.c only get compiled when the OS doesn't provide the same-named functions. -- nosy: +pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists
Changes by Jonathan Paugh jpa...@gmx.us: -- nosy: +jpaugh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15502] Meta path finders and path entry finders are different, but share an ABC
Eric Snow added the comment: Not to detract from the fun wink terminology discussion, but I have lingering concerns with the ABC inheritance model here. Looking over changeset 184700df5b6a, I'm still fine with the change if invalidate_caches() is appropriate for both. If not or if we don't know yet, I think we should hold off on moving invalidate_caches() up into Finder. If it is okay then we should add meta path finder traversal to importlib.invalidate_caches(). Either way there's a (not substantial) loose end. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com