[issue7882] Compiling on MOX 10.6 Snow Leopard --#warning Building for Intel with Mac OS X Deployment Target 10.4 is invalid.
New submission from WK. wolf.st.kappes...@gmx.de: get followed while compiling with $ /configure --with-universal-archs=64-bit $ make #warning Building for Intel with Mac OS X Deployment Target 10.4 is invalid. See attachment for complete build process. -- assignee: ronaldoussoren components: Macintosh files: build.txt messages: 99040 nosy: global667, ronaldoussoren severity: normal status: open title: Compiling on MOX 10.6 Snow Leopard --#warning Building for Intel with Mac OS X Deployment Target 10.4 is invalid. type: compile error versions: Python 3.1 Added file: http://bugs.python.org/file16177/build.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7876] unittest docs use deprecated method in code example
Bernt Røskar Brenna bernt.bre...@gmail.com added the comment: Sorry, forgot to check svn, I was looking at the 3.1.1 release tarball. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2777] subprocess unit tests for kill, term and send_signal flaky
Changes by Florent Xicluna la...@yahoo.fr: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2777 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2777] subprocess unit tests for kill, term and send_signal flaky
Florent Xicluna la...@yahoo.fr added the comment: The patch looks fine. +1 to enable on trunk and follow the buildbots' behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2777 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7883] CallTips.py _find_constructor does not work
New submission from Bernt Røskar Brenna bernt.bre...@gmail.com: Test case: In IDLE python shell: from http.client import HTTPConnection c = HTTPConnection( Notice that the call tip is an empty parenthesis. This patch works for me: [/tmp/py3k/Lib/idlelib] $ svn diff Index: CallTips.py === --- CallTips.py (revision 78103) +++ CallTips.py (working copy) @@ -116,7 +116,7 @@ def _find_constructor(class_ob): Find the nearest __init__() in the class tree. try: -return class_ob.__init__.__func__ +return class_ob.__init__ except AttributeError: for base in class_ob.__bases__: init = _find_constructor(base) -- components: IDLE messages: 99043 nosy: Bernt.Røskar.Brenna severity: normal status: open title: CallTips.py _find_constructor does not work type: behavior versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space
New submission from Bernt Røskar Brenna bernt.bre...@gmail.com: Platform: Linux Python 3.1.1 built from source. Tk version 8.4, Tcl version 8.4. Idle 2.6.4 (also built from source), works correctly (executes force-open-completions). Test case: - Start idle3 - press Ctrl-Space in the IDLE shell - idle crashes, and a traceback is written to stdout: Traceback (most recent call last): File /usr/local/bin/idle3, line 6, in module main() File /usr/local/lib/python3.1/idlelib/PyShell.py, line 1420, in main root.mainloop() File /usr/local/lib/python3.1/tkinter/__init__.py, line 1009, in mainloop self.tk.mainloop(n) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding -- components: IDLE, Tkinter messages: 99044 nosy: Bernt.Røskar.Brenna severity: normal status: open title: IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space type: crash versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7857] test_logging fails
Antoine Pitrou pit...@free.fr added the comment: There are still random failures: test test_logging failed -- Traceback (most recent call last): File /home2/buildbot/slave/trunk.loewis-sun/build/Lib/test/test_logging.py, line 1612, in test_listen_config_10_ok ], stream=output) File /home2/buildbot/slave/trunk.loewis-sun/build/Lib/test/test_logging.py, line 116, in assert_log_lines self.assertEquals(len(actual_lines), len(expected_values)) AssertionError: 0 != 2 See http://www.python.org/dev/buildbot/trunk/builders/sparc%20solaris10%20gcc%20trunk/builds/348 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15933/windows symlink draft 19.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16003/windows symlink draft 20.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16174/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space
Changes by Brian Curtin cur...@acm.org: -- priority: - normal stage: - test needed type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7857] test_logging fails
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: - Original Message From: Antoine Pitrou rep...@bugs.python..org There are still random failures: Ouch. I'm not sure that I can debug this quickly, because the tests work on all platforms I've got access to (Windows XP, Linux Jaunty) and even where they fail, the verbose re-test often succeeds. Perhaps I should just re-enable skipping of those tests for now to avoid problems on the buildbots, and see if I can get a reproducible error on the systems I have access to. Any suggestions gratefully received :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5802] The security descriptors of python binaries in Windows are not strict enough
Brian Curtin cur...@acm.org added the comment: Is the situation any different if you install Python to C:\Program Files? This seems to be at least part of the reason IronPython installs to C:\Program Files, which was discussed on the IronPython list [1] a few months ago. [1] http://lists.ironpython.com/pipermail/users-ironpython.com/2009-October/011345.html -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5802 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +Alexander.Belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7883] CallTips.py _find_constructor does not work
Brian Curtin cur...@acm.org added the comment: That change works for me. -- nosy: +brian.curtin priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7877] Iterators over _winreg EnumKey and EnumValue results
Tim Golden m...@timgolden.me.uk added the comment: Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 6] The handle is invalid I suspect that .iterkeys / .itervalues would be more acceptable spellings as those mirror the dict methods. Whether the idea of extending _winreg beyond the absolute basics will fly I'm not sure. I don't often use it, but this would be useful if I did... # On 07/02/2010 21:31, Brian Curtin wrote: New submission from Brian Curtincur...@acm.org: While EnumKey and EnumValue directly implement the underlying Windows calls of the same name, they don't feel very Pythonic. The user has to create their own loop and increment a counter to get all of the keys or values, stopping the loop when WindowsError is raised. I created IterKey and IterValue, iterators over RegEnumKeyEx and RegEnumValueEx respectively. This mainly began as playing around with writing Python iterators in C, but has proven to work pretty nicely so I figured I'd put it out there. Patch includes docs and tests. Comments/suggestions welcome and appreciated. -- components: Library (Lib), Windows files: keyvalue_iterators.diff keywords: needs review, patch, patch messages: 99020 nosy: brian.curtin priority: normal severity: normal stage: patch review status: open title: Iterators over _winreg EnumKey and EnumValue results type: feature request versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file16170/keyvalue_iterators.diff ___ Python trackerrep...@bugs.python.org http://bugs.python.org/issue7877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/mail%40timgolden.me.uk -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7877] Iterators over _winreg EnumKey and EnumValue results
Tim Golden m...@timgolden.me.uk added the comment: Sorry; the email interface messed that up. The code which triggered the error was: import _winreg list ( _winreg.IterValue ( _winreg.OpenKey (_winreg.HKEY_CURRENT_USER, Console) ) ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Ezio Melotti ezio.melo...@gmail.com added the comment: Final version of the patch, with the temp_cwd context manager added to test_support and used in test_regrtest to run the test suite in a temporary directory. It also includes a fix for test_subprocess that was failing when the tests are not run in the original cwd. -- Added file: http://bugs.python.org/file16179/issue7712v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space
Ezio Melotti ezio.melo...@gmail.com added the comment: Duplicate of #1028 (and #6920). -- nosy: +ezio.melotti resolution: - duplicate stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7877] Iterators over _winreg EnumKey and EnumValue results
Brian Curtin cur...@acm.org added the comment: Interesting, I'll take a look and see why that's happening. Good point about the names. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7885] test_distutils fails if Python built in separate directory
New submission from Neil Schemenauer nas-pyt...@arctrix.com: Lib/test/test_distutils.py crashes if Python was built in a directory other than the source directory. Using a separate build directory is handy if you are building Python with different sets of configure options since you only need one copy of the source. For example, in the source directory: $ mkdir build-opt $ cd build-opt $ ../configure $ make $ cd .. $ mkdir build-debug $ cd build-debug $ ../configure --with-pydebug $ make I fixed a similar problem in rev 69304 but now it is broken again. I get: /tmp/tmpbxrmiB/xxmodule.c:17:20: error: Python.h: No such file or directory Probably it is looking in the wrong directory for Python.h (assuming that the cwd is the top-level directory of the source). -- assignee: tarek components: Tests messages: 99054 nosy: nascheme, tarek priority: normal severity: normal stage: needs patch status: open title: test_distutils fails if Python built in separate directory type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7885 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
R. David Murray rdmur...@bitdance.com added the comment: That would be test_support.import_module, which at your recommendation I changed to use importlib.import_module at the last pycon sprint :) I'm not clear on why option 3 would interfere with __import__ getting tested? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
R. David Murray rdmur...@bitdance.com added the comment: I meant test.support for py3k, of course. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
Antoine Pitrou pit...@free.fr added the comment: That would be test_support.import_module, which at your recommendation I changed to use importlib.import_module at the last pycon sprint :) I don't think it's the culprit. According to the traceback, importlib is triggered by a simple import xmlrpc.client as xmlrpclib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
Brett Cannon br...@python.org added the comment: So option 3 would marginalize __import__ testing as importlib's finders and loaders as pulled from sys.path_importer_cache would be used over __import__'s own implicit importers that it contains. As for test.support.import_module being the culprit, it is. The reason the traceback shows an import statement as the trigger is that __import__ is using a loader as defined by importlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7886] reverse on an empty list returns None
New submission from tormen tor...@gmx.net: # python 3.1.1: myList = [] for item in myList: print( item ) # works for item in myList.reverse(): # breaks with: TypeError: 'NoneType' object is not iterable print( item ) # # But the reverse of an empty list should really be an empty list # ... or do I miss something here? -- messages: 99059 nosy: tormen severity: normal status: open title: reverse on an empty list returns None type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
Antoine Pitrou pit...@free.fr added the comment: Option 3 is ok with me. There could also be option 4: add a special flag (or environment var) to regrtest so as to run all tests with __import__ pulled from importlib. Then we can setup a buildbot with that flag / env var. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7886] reverse on an empty list returns None
Ezio Melotti ezio.melo...@gmail.com added the comment: list.reverse() reverses the list *in place* and returns None, and for item in None: ... correctly raises a TypeError because None is not iterable. You either want for item in reversed(mylist): ... or mylist.reverse() for item in mylist: ... -- nosy: +ezio.melotti priority: - low resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7875] test_multiprocessing / importlib failure
Brett Cannon br...@python.org added the comment: Importlib actually already can do this: importlib.test.regrtest. It runs regrtest after importlib has been set for __import__. It also skips tests known to fail for stupid reasons (typically they don't expect __loader__ to be defined). You can also run the importlib tests using __import__; importlib.test --builtin. Anyway, seems like people are fine with option 3, and since that's the easiest that's what I will go with. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7296] OverflowError: signed integer is greater than maximum on mips64
Otto o...@drijf.net added the comment: This problem has been diagnosed as a problem in the mips64 port of OpenBSD. mips64 systems need to emulate some floating point instructions in software, depending on the cpu type. In this case we hit an instruction for which the emulation was incomplete. The floating point exception actually signals this. Work is being done to fix this. -- nosy: +omoerbeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Jason R. Coombs jar...@jaraco.com added the comment: This latest patch (22) does some refactoring in test_posixpath to reduce nesting, limit duplicated code, and skip failing tests on Windows. The only task now is to address the failing tests in a limited user account. -- Added file: http://bugs.python.org/file16180/windows symlink draft 22.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7878] regrtest should check for changes in import machinery
Changes by Florent Xicluna la...@yahoo.fr: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6366] rare assertion failure in test_multiprocessing
Changes by Florent Xicluna la...@yahoo.fr: -- resolution: - duplicate superseder: - Transient error in multiprocessing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6366] rare assertion failure in test_multiprocessing
Florent Xicluna la...@yahoo.fr added the comment: Closed as duplicate. -- nosy: +flox stage: needs patch - status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6747] test test_multiprocessing failed
Florent Xicluna la...@yahoo.fr added the comment: See #5930. -- nosy: +flox resolution: - duplicate stage: test needed - status: open - closed superseder: - Transient error in multiprocessing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6747 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5930] Transient error in multiprocessing
Changes by Florent Xicluna la...@yahoo.fr: -- components: +Tests stage: needs patch - test needed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7861] 2to3: import foo - from . import foo
Thomas Spura toms...@fedoraproject.org added the comment: The commit I'm talking about was 22 months ago (r61755), python 2.6.2 was released April 14, 2009. At least strange, that this is not jet in there, but if you think, it will in the next version... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7296] OverflowError: signed integer is greater than maximum on mips64
Mark Dickinson dicki...@gmail.com added the comment: Many thanks for the update. I'll close this as not a Python bug, then. (Unless there's an easy and nonintrusive workaround...) -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7876] unittest docs use deprecated method in code example
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed on 3.1 in r78111. -- assignee: georg.brandl - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7876 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7826] support caching for 2to3
Brian Harring ferri...@gmail.com added the comment: Contributor agreement form is enroute via snail mail... kind of wish y'all accepted pdf's via email though ;) As for the print(cache hit), that should be punted- not very useful in it's current form (doesn't indicate what 'hit') and slipped in accidentally. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7032] Make assertMultilineEqual default for unicode string comparison in
Michael Foord mich...@voidspace.org.uk added the comment: Revision 78116. -- resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Hi, thanks for the update! Just for the unlikely case, it hasn't been noticed sofar, using python 2.6.4 or 2.5.4 with the regexp build issue2636-20100204.zip I am getting the following easy-to-fix error: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import regex Traceback (most recent call last): File stdin, line 1, in module File C:\Python26\lib\regex.py, line 2003 print Header file written at %s\n % os.path.abspath(header_file.name)) ^ SyntaxError: invalid syntax After removing the extra closing paren in regex.py, line 2003, everything seems ok. vbr -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7855] Add test cases for ctypes/winreg for issues found in IronPython
Michael Foord mich...@voidspace.org.uk added the comment: Does this need committing? Dino - do you have checkin rights? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7887] errno 107 socket.recv issure
New submission from Jordan Apgar twistedphr...@gmail.com: I have a simple tcp server and client where the server sits and waits for a message and then processes it, my client sends its first message to the server. On the server I receive: socket.error: [Errno 107] Transport endpoint is not connected when calling msg = self.socket.recv(self.buffer) My client receives the error: socket.error: [Errno 104] Connection reset by peer when calling msg = self.socket.recv(self.buffer) I was working on the server and client over the weekend and sending and receiving worked fine, I wanted to debug a few things and I get this when I try to run it (no changes made from what I had on the weekend) -- components: None messages: 99074 nosy: twistedphrame severity: normal status: open title: errno 107 socket.recv issure versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7855] Add test cases for ctypes/winreg for issues found in IronPython
Dino Viehland di...@microsoft.com added the comment: Brett Cannon was going to try and look at it and commit it. If you think it looks good you can commit it :) I do not yet have commit privledges simply because I need to gen my SSH key and send that off to Brett. I'm also hoping to get a little hand holding on the 1st few check-ins. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7855] Add test cases for ctypes/winreg for issues found in IronPython
Michael Foord mich...@voidspace.org.uk added the comment: Well, probably better for you to get the commit bit and DIY then. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7888] turtle settiltangle should be marked deprecated, not tiltangle
New submission from Michael Newman michael.b.new...@gmail.com: In the turtle module documentation: http://docs.python.org/3.1/library/turtle.html http://docs.python.org/py3k/library/turtle.html Currently it says Deprecated since Python 3.1 under the turtle.tiltangle section. That should be under turtle.settiltangle instead. For reference, the comments at the end of the documentation page correctly explains: Turtle.tiltangle() has been enhanced in functionality: it now can be used to get or set the tiltangle. Turtle.settiltangle() has been deprecated. -- assignee: georg.brandl components: Documentation messages: 99077 nosy: georg.brandl, mnewman severity: normal status: open title: turtle settiltangle should be marked deprecated, not tiltangle versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7889] random produces different output on different architectures
New submission from Terrence Cole terre...@zettabytestorage.com: This code: random.seed(b'foo') random.getrandbits(8) ...repeated 7 more times... Yields the sequence of values: amd64: 227, 199, 34, 218, 83, 115, 236, 254 x86: 245, 198, 204, 66, 219, 4, 168, 93 Comments in the source seem to indicate random should produce the same results on all platforms. I first thought that the seed was not resetting the state correctly, however, if I do a 'random.setstate( (3,(0,)*625,None) )' before seeding the generator, the results do not change from what is given above. Also, calls to getrandbits after the setstate, but before another seed, correctly return 0. It seems from this that seed is resetting the state properly, but some of the internals are not 32bit/64bit consistent. -- components: Library (Lib) messages: 99078 nosy: terrence severity: normal status: open title: random produces different output on different architectures type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Brian Curtin cur...@acm.org added the comment: With the latest patch I get one failure: test_bufio. I piped that test to a file and attached the results here. There are numerous Permission denied: @test IOErrors. -- Added file: http://bugs.python.org/file16181/test_bufio.stdout.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Florent Xicluna la...@yahoo.fr added the comment: Brian, is it the only one failing? Did you have some test running before? Which one? (alphabetic order?) Do you reproduce the error when running this test alone? -m test.regrtest -uall test_bufio -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7826] support caching for 2to3
Benjamin Peterson benja...@python.org added the comment: I'm apprehensive about accepting this patch for several reasons. First of all, it has no tests. Secondly, and more importantly, I dislike the hacks that it adds. I would prefer 2to3 to grow a more general plugin API, which people could use to add new fixer etc as well and customizes behavior like this. -- keywords: -needs review priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7826 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7886] reverse on an empty list returns None
tormen tor...@gmx.net added the comment: Thanks for your nice feedback even though my bug report was so stupid! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Brian Curtin cur...@acm.org added the comment: Yep, that's the only one failing. The output I attached is the result of running the test alone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7890] equal unicode/str objects can have unequal hash
New submission from lplatypus l...@deller.id.au: The documentation for the hash() function says: Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0) This can be violated when comparing a unicode object with its str equivalent. Here is an example: C:\c:\Python27\python -S Python 2.7a3 (r27a3:78021, Feb 7 2010, 00:00:09) [MSC v.1500 32 bit (Intel)] on win32 import sys; sys.setdefaultencoding('utf-8') unicodeobj = u'No\xebl' strobj = str(unicodeobj) unicodeobj == strobj True hash(unicodeobj) == hash(strobj) False The last response should be True not False. I tested this on Python 2.7a3/windows, 2.6.4/linux, 2.5.2/linux. The problem is not relevant to Python 3.0+. Looking at unicodeobject.c:unicode_hash() and stringobject.c:string_hash(), I think that this problem would arise for equal objects strobj and unicodeobj when the unicode code points are not aligned with the encoded bytes, ie when: map(ord, unicodeobj) != map(ord, strobj) This means that the problem never arises when sys.getdefaultencoding() is 'ascii' or 'iso8859-1'/'latin1'. -- components: Interpreter Core messages: 99084 nosy: ldeller severity: normal status: open title: equal unicode/str objects can have unequal hash type: behavior versions: Python 2.5, Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7889] random produces different output on different architectures
Martin v. Löwis mar...@v.loewis.de added the comment: Would you like to work on a patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7890] equal unicode/str objects can have unequal hash
Martin v. Löwis mar...@v.loewis.de added the comment: This is not a bug in Python, but in your code. sys.setdefaultencoding is only supported when setting the default encoding to either latin-1, or ascii, or 'undefined'. Setting it to any other value will have undesirable consequences like the one you report. Likewise, changing it after any Unicode objects have been created is not supported, either. -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7889] random produces different output on different architectures
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Hmm, this may be difficult to fix without breaking somebody's expectation of repeating sequences they've already generated. The code is in random_getrandbits(): http://svn.python.org/view/python/trunk/Modules/_randommodule.c?revision=72344view=markup -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Florent Xicluna la...@yahoo.fr added the comment: Ok, it may be not related directly with this patch. Can you diagnose if it something like #7443? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7443] test.support.unlink issue on Windows platform
Florent Xicluna la...@yahoo.fr added the comment: Another report of something looking very similar on #7712. -- nosy: +brian.curtin, flox priority: low - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7443 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Florent Xicluna la...@yahoo.fr added the comment: And you could try the patch attached to #7443, and see if it fixes the test_bufio issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.
Florent Xicluna la...@yahoo.fr added the comment: The command line used to run the tests is important. If you run through test.regrtest, it should chdir to a sandbox directory to run the test. If you call directly the test_bufio.py file, it runs in the current directory (as before the patch). And the permission of the current directory may give a difference in the 2nd case. Variants: python.exe -m test.regrtest test_bufio python.exe Lib/test/regrtest.py test_bufio python.exe Lib/test/test_bufio.py(fail if home directory is RO) And another full run: python.exe -m test.regrtest Try some of these variants, it may help diagnose the windows issue. (Note: maybe some antivirus or other software may be related to the race condition described on #7443) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com