[issue6121] help('modules ') causes IndexError.
Changes by Thomas Heller thel...@ctypes.org: -- assignee: theller - components: -ctypes nosy: -theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6121] help('modules ') causes IndexError.
New submission from R. David Murray rdmur...@bitdance.com: Here is a trivial patch for pydoc with a minimal test. -- components: +Library (Lib) keywords: +easy, patch nosy: +r.david.murray priority: - low stage: - patch review versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14085/issue6121.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6105] json.dumps doesn't respect OrderedDict's iteration order
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: r72961 Fixed for Py3.1. Leaving open until backported to 2.7. -- priority: critical - normal versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1731717] race condition in subprocess module
Yonas yona...@gmail.com added the comment: I always get a subprocess error when using embedded python 2.6.2: File /usr/lib/python2.6/subprocess.py, line 1123, in wait: pid, sts = os.waitpid(self.pid, 0): OSError: [Errno 10] No child processes Example library and main program are attached. -- nosy: +yonas Added file: http://bugs.python.org/file14086/mylib.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1731717] race condition in subprocess module
Changes by Yonas yona...@gmail.com: Added file: http://bugs.python.org/file14087/main.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] [Errno 10] No child processes
New submission from Yonas yona...@gmail.com: I always get a subprocess error when using embedded Python 2.6.2: File /usr/lib/python2.6/subprocess.py, line 1123, in wait: pid, sts = os.waitpid(self.pid, 0): OSError: [Errno 10] No child processes Sample library and main files attached. -- files: mylib.c messages: 88407 nosy: yonas severity: normal status: open title: [Errno 10] No child processes versions: Python 2.6 Added file: http://bugs.python.org/file14088/mylib.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] [Errno 10] No child processes
Changes by Yonas yona...@gmail.com: Added file: http://bugs.python.org/file14089/main.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Changes by Yonas yona...@gmail.com: -- title: [Errno 10] No child processes - OSError: [Errno 10] No child processes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Changes by Yonas yona...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The content of exim_local_scan2.py would be useful as well. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6120] zipfile.ZipFile's extractall works inproperly under Windows
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file14090/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6102] When the package has non-ascii path and .pyc file, we cannot import them.
Antoine Pitrou pit...@free.fr added the comment: Could you test with the 3.1 beta? There's a Windows installer here: http://python.org/download/releases/3.1/ -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: File descriptors wrapped by the new IO module should be opened in binary mode. The attached patch changes TemporaryFile and NamedTemporaryFile to always call os.open() in binary mode; the mode is really used by the io.open() function. mkstemp() returns a raw file descriptor and was not changed. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14092/tempfile.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6120] zipfile.ZipFile's extractall works inproperly under Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I confirmed error happened on Python2.6, 2.7, 3.0. But not happen on Python3.1. Interesting. -- versions: +Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6120] zipfile.ZipFile's extractall works inproperly under Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is traceback for trunk(Py2.7) Traceback (most recent call last): File b.py, line 3, in module f.extractall() File e:\python-dev\trunk\lib\zipfile.py, line 947, in extractall self.extract(zipinfo, path, pwd) File e:\python-dev\trunk\lib\zipfile.py, line 935, in extract return self._extract_member(member, path, pwd) File e:\python-dev\trunk\lib\zipfile.py, line 974, in _extract_member os.mkdir(targetpath) WindowsError: [Error 183] 既に存在するファイルを作成することはできませ ん。: 'E:\ \temp\\b' # Error message says Cannot create the file which already exists -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6102] When the package has non-ascii path and .pyc file, we cannot import them.
Suzumizaki suzumiz...@free.japandesign.ne.jp added the comment: Thanks for reply. I tried Python 3.1 Beta, and the testcode goes fine. (and my current work also.) I checked with Windows XP, I told before. My problem seems resolved, and here is answers only to make sure. (What is the value of sys.maxunicode there though?) 65535. I ran the script from the terminal with python3 test.py twice and it worked both the time (is this the correct way to use the script?). Yes. If you delete the .pyc an reload the script again, does it work? You mean and insted of an, right? The answer is Yes, even Python 3.0.1. (Next time upload the files separately, it's easier for us to see them.) OK, I know. Thank you very much for all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6120] zipfile.ZipFile's extractall works inproperly under Windows
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think this was fixed by r72893: Issue #6050: Don't fail extracting a directory from a zipfile if the directory already exists. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Library (Lib) type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6123] tarfile:
New submission from Evan Jones ev...@mit.edu: tarfile.open() with an empty tar archive fails with a ReadError exception. GNU tar refuses to create empty archives, but tarfile allows it. See the following code which reproduces the error. I used the version of tarfile.py from subversion (revision 72458) with Python 2.5 on Linux. Exception: Traceback (most recent call last): File test.py, line 15, in module tar = tarfile.open(fileobj=data) File /home/evanj/taskmgr/tarfile.py, line 1649, in open raise ReadError(file could not be opened successfully) tarfile.ReadError: file could not be opened successfully The problem seems to be that when TarFile.next() is called, it raises the following exception for the empty tar file: File /home/evanj/taskmgr/tarfile.py, line 2310, in next tarinfo = self.tarinfo.fromtarfile(self) File /home/evanj/taskmgr/tarfile.py, line 1235, in fromtarfile obj = cls.frombuf(buf) File /home/evanj/taskmgr/tarfile.py, line 1190, in frombuf raise HeaderError(empty header) The attached patch works for me, but no guarantees that it doesn't cause other problems! Sample code: import cStringIO import tarfile # Create an empty tar file data = cStringIO.StringIO() tar = tarfile.open(mode=w, fileobj=data) tar.close() print empty tar file; length:, len(data.getvalue()) # Open the tar file data.seek(0) tar = tarfile.open(fileobj=data) print tar -- components: Extension Modules files: tarfile-empty.diff keywords: patch messages: 88416 nosy: ev...@mit.edu severity: normal status: open title: tarfile: type: behavior Added file: http://bugs.python.org/file14093/tarfile-empty.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6123] tarfile: opening an empty tar file fails
Changes by Evan Jones ev...@mit.edu: -- title: tarfile: - tarfile: opening an empty tar file fails ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6120] zipfile.ZipFile's extractall works inproperly under Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Oops, sorry. I forgot to update working copy. I confirmed this was fixed already. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5851] Add a stream parameter to gc.set_debug
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Would you like to work on a patch? -- components: +Interpreter Core -Extension Modules nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5851 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6124] Tkinter should support the OS X zoom button
New submission from Marc Culler cul...@math.uic.edu: As far as I can tell, no Tkinter event or pseudo event is generated by clicking the green zoom button on Mac OS X windows. This makes it impossible to support that OS X paradigm in a Tkinter application. I would like to be able to bind Zoom to a command that resizes the window according to the OS X UI guidelines. By the way, the guidelines specify that the interpretation of zoom depends on the application, and the effect need not be the same as maximize. -- components: Tkinter messages: 88419 nosy: culler severity: normal status: open title: Tkinter should support the OS X zoom button type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite
Peter Simanyi psima...@namcobandaigames.com added the comment: Re: chmod 0666 inappropriate: I agree that leaving a file 0666 is inappropriate, however theoretically the code should never leave the file 0666 since the unlink will delete the file. The code was intended to show what the problem is by demonstrating a solution. Note that the line immediately following the chmod 0666 is an unlink call, which will delete the file if the user had sufficient permission to chmod the file to 0666. I suppose the meta-level description of the problem is: [1] Without the chmod 0666, the unlink will fail if the file is 0400 or similar. [2] With the chmod 0666, the unlink succeeds, and the file will be recreated with new permissions (not 0666: I believe my tests show 0444) after the post-unlink file creation. [3] Someone familiar with windows should analyze, propose a solution, test it under all relevant scenarios of file/group ownership (and again the chmod is only required on Windows), and on XP/Vista/Win7. The only problem I can see with the chmod 0666 is if for some reason the file still exists with bad permissions after the unlink. Since this is a low-overhead operation compared to the time to regenerate the .pyc file, I think that it would be reasonable to have an #ifdef MS_WINDOWS, if the file exists after the unlink(), print a big warning message that will always be visible even if -v is not used when invoking Python. This is getting complicated enough that you may want to see if you can get someone else to review it for ideas about how to address the chmod/unlink code. I am certainly not a Windows expert hence I'm making a best Unix-like attempt to analyze and test fixes. Good luck and thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6074 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6106] read_until
Pal Subbiah pal.subb...@gmail.com added the comment: Thanks for your support. But the telnetlib from 3.1 also behaves in the same way. read_until always times out and returns b''. The problem seems to be with the byte string expected. The string after letter b is not passed properly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: The test doesn't fail when run directly from ./main, but it fails when run from exim4 mail server. exim will dlopen() mylib and run local_scan(). Besides using Popen, I haven't had any problems. -- Added file: http://bugs.python.org/file14094/exim_local_scan2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: your program works for me. How did you compile the files? I used the following commands: $ gcc -fPIC -I/usr/local/include/python2.6/ mylib.c -L /usr/local/lib -lpython2.6 --shared -o mylib.so $ gcc main.c -ldl $ ./a.out test (after removing all references to exim4, which is not really used) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: Thanks for testing, it works when running ./main, but not when run through exim. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6081] str.format_from_mapping()
Eric Smith e...@trueblade.com added the comment: I think this would be useful. I don't fee terribly strongly about it, but I think I'd like the name str.format_using_mapping(). When I initially saw this, I thought from the name it was creating a format object (whatever that would be) from a mapping object. -- components: +Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: I didn't find anything unusual about how exim uses dlopen, but if you want to see the code, it's here: http://pastebin.com/m52398b30 Line 166 is the actual call. Again, no problems except with Python's Popen(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6125] 2to3 mishandles from module_name import when module_name includes an underscore
New submission from Mitchell Model m...@acm.org: 2to3 -f import l.py --- l.py (original) File p.py (the four modules exist in the same directory as p.py): from mod_a import a from modb import b from mod_c import * from modd import * % 2to3 -f import p.py +++ p.py (refactored) @@ -1,5 +1,5 @@ -from mod_a import a -from modb import b -from mod_c import * -from modd import * +from .mod_a import a +from .modb import b +from .mod_c import * +from .modd import * -- components: 2to3 (2.x to 3.0 conversion tool) messages: 88427 nosy: MLModel severity: normal status: open title: 2to3 mishandles from module_name import when module_name includes an underscore versions: Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6116] frame.f_locals keeps references to things for too long
Jean-Paul Calderone exar...@divmod.com added the comment: Oh, I forgot dictionaries aren't weakrefable. That's such a pain, I thought the third solution would be a good balance between easy and good. :/ Regarding the first solution, my only question right now is whether this should be a new attribute/method, or if the behavior of f_locals should just be changed. The former would be nicer, I think, and perhaps f_locals can be deprecated in favor of it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6116 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6116] frame.f_locals keeps references to things for too long
Antoine Pitrou pit...@free.fr added the comment: Regarding the first solution, my only question right now is whether this should be a new attribute/method, or if the behavior of f_locals should just be changed. The former would be nicer, I think, and perhaps f_locals can be deprecated in favor of it. I think the behaviour of f_locals can just be changed. (Other developers may disagree) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6116 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6126] Python 3 pdb: shows internal code, breakpoints don't work
New submission from Eric Promislow er...@activestate.com: I have a simple test file, test01.py, with this output: $ cat test01.py #!/usr/bin/env python print(Line 1) print(Line 2) print(Line 3) $ $ # Now try debugging it. $ python3.0 -mpdb test01.py --Return-- /home/ericp/opt/Python-3.0.1/lib/python3.0/io.py(762)closed()-False - return self.raw.closed (Pdb) b test01.py:4 Breakpoint 1 at /home/ericp/lab/Python-3.0.1/test01.py:5 (Pdb) r --Return-- /home/ericp/opt/Python-3.0.1/lib/python3.0/io.py(1471)closed()-False - return self.buffer.closed (Pdb) c line 1 line 2 line 3 The program finished and will be restarted Two main problems: 1. I shouldn't see the code for io.py 2. The program doesn't stop at the breakpoint, because that stack frame is exposed to bdb as (file:string, line:4), not (file:/home/.../test01.py, line:4). -- components: Interpreter Core messages: 88431 nosy: ericp severity: normal status: open title: Python 3 pdb: shows internal code, breakpoints don't work type: behavior versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6121] help('modules ') causes IndexError.
Georg Brandl ge...@python.org added the comment: Looks good, please apply. -- assignee: - r.david.murray nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: Could this be a permissions issue? I have no idea how permissions would effect it, though... r...@yonas-laptop:/usr/lib/exim4/local_scan# ls -la /usr/sbin/exim4 -rwsr-xr-x 1 root root 824440 2009-02-11 08:53 /usr/sbin/exim4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6001] Test discovery for unittest
Antoine Pitrou pit...@free.fr added the comment: Would you like to upload your patch to Rietveld? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6073] threading.Timer and gtk.main are not compatible
Antoine Pitrou pit...@free.fr added the comment: Well I'm not a gtk user, but try to do something else than a print in the timer. Perhaps gtk redirects all standard IO or something. It sounds very strange that threads would stop working when gtk is imported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6073] threading.Timer and gtk.main are not compatible
Jean-Paul Calderone exar...@divmod.com added the comment: pygtk doesn't release the GIL around its internal calls unless you call threads_init. So I think this is pretty clearly just a misuse of the pygtk library. There's nothing at all Python can do about it. If an extension library doesn't release the GIL, no Python code can run concurrently with it. In this case, the extension API you've invoked is the Gtk main loop, which runs until you stop it, usually right before your gtk app exits. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6003] ZipFile.writestr compression_type argument
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok. It can certainly go in trunk, as for 3.1 it's up to Benjamin to decide. Note: the docs should state that the new argument appeared in 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6127] Unexpected universal newline behavior (newline duplication) in Windows
New submission from Jason R. Coombs jar...@jaraco.com: Per http://bugs.python.org/issue5265, I'm opening up a new ticket. Universal newline behavior works as expected under Linux but differently under Windows. PS C:\Users\jaraco python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import io io.StringIO('foo\r\nbar\r\n', newline=None).read() u'foo\n\nbar\n\n' As you can see, the newlines get duplicated. The problem doesn't seem to be with universal newline support in general, but the StringIO implementation in particular. PS C:\Users\jaraco\projects\formworx python Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32 open(testnl.txt, wb).write(foo\r\nbar\r\n) open(testnl.txt, rU).read() 'foo\nbar\n' -- components: IO messages: 88438 nosy: jaraco severity: normal status: open title: Unexpected universal newline behavior (newline duplication) in Windows versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6127 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5265] StringIO can duplicate newlines in universal newlines mode
Jason R. Coombs jar...@jaraco.com added the comment: I've filed the Windows issue as http://bugs.python.org/issue6127 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6127] Unexpected universal newline behavior (newline duplication) in Windows
Changes by Jason R. Coombs jar...@jaraco.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6127 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: os.system() works: os.system(echo `date` /tmp/myfile) r...@yonas-laptop:/usr/lib/exim4/local_scan# cat /tmp/myfile Wed May 27 16:04:54 EDT 2009 Wed May 27 16:04:54 EDT 2009 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6128] Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained
New submission from Jean-Paul Calderone exar...@divmod.com: Creation of GC'd types is explained at http://docs.python.org/c-api/gcsupport.html. The docs claim that PyObject_GC_Track must be called once an object created with PyObject_GC_New is initialized. The docs fail to explain what should be done if there is an error during initialization of an object created with PyObject_GC_New. Should PyObject_GC_Track still be called? Should some other API be called to free the object? Overall, the docs are missing an explanation of the overall working of the GC and GC APIs, so it is hard to build an understanding of the system. Without an understand, it's difficult to read between the lines of the API docs, meaning they need to cover every possible case, which they don't currently. -- assignee: georg.brandl components: Documentation messages: 88441 nosy: exarkun, georg.brandl severity: normal status: open title: Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Yonas yona...@gmail.com added the comment: Here's another test, taken from the docs: http://docs.python.org/library/subprocess.html#subprocess-replacements: This is slightly better than Popen because the program executes and shows output, but worse than os.system(), because it still shows the error: -- try: retcode = call(echo + \hello world\, shell=True) if retcode 0: print sys.stderr, Child was terminated by signal, -retcode print sys.stderr, Child was terminated by signal, -retcode else: print sys.stderr, Child returned, retcode except OSError, e: print sys.stderr, Execution failed:, e - hello world Execution failed: [Errno 10] No child processes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6125] 2to3 mishandles from module_name import when module_name includes an underscore
Benjamin Peterson benja...@python.org added the comment: I'm sorry; I don't see why this is a bug. Could you elaborate, please? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
New submission from Mitchell Model m...@acm.org: 2to3 changes import m to from . import m but it doesn't change import sub.s. The directory q.py is in has a file m.py and a subdirectory sub. The subdirectory sub has a file s.py. File q.py contains two lines: import m import sub.s % 2to3 -f q.py --- q.py (original) +++ q.py (refactored) @@ -1,2 +1,2 @@ -import m +from . import m import sub.s RefactoringTool: Files that need to be modified: RefactoringTool: q.py -- messages: 88444 nosy: MLModel severity: normal status: open title: 2to3 does not convert imports of the form 'import sub.mod' to relative import ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6122] OSError: [Errno 10] No child processes
Changes by Yonas yona...@gmail.com: -- versions: +Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
Georg Brandl ge...@python.org added the comment: Is there also a sub/__init__.py? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6130] There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods
New submission from Jean-Paul Calderone exar...@divmod.com: If an extension type supplies a tp_new or tp_init, these will be invoked by the normal instantiation logic. They will also be exposed as `__new__´ and `__init__´ attributes of the type. However, there is no way to supply a docstring for these methods. Instead, these methods get a hard coded docstring defined in typeobject.c. -- components: Interpreter Core messages: 88446 nosy: exarkun severity: normal status: open title: There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
Mitchell Model m...@acm.org added the comment: Yes, I meant to mention that: the directory sub does contain an __init__.py with __all__ = ['s']. I'm attaching a zip of the test package pkg that contains the sub-package sub. It wasn't clear to me what import sub.s should be converted to. By analogy with the conversion of import m to from . import m, I had expected import sub.s to be converted from . import sub.s. However, that is a syntax error (which I don't understand, actually). What works is from sub import s but that could import from a sub module found anywhere; it isn't changed to a relative import. I don't see how to write a relative import of a subpackage's module. I don't doubt that I am confused about something here, but I've experimented with many variations and can't get it straightened out. -- Added file: http://bugs.python.org/file14095/pkg.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6001] Test discovery for unittest
Michael Foord mich...@voidspace.org.uk added the comment: http://codereview.appspot.com/63157 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6001 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6131] test_modulefinder leaks when run after test_distutils
New submission from Antoine Pitrou pit...@free.fr: When run independently, test_modulefinder doesn't leak: $ ./python -m test.regrtest -R 3:2 test_modulefinder test_modulefinder beginning 5 repetitions 12345 . 1 test OK. [93448 refs] But it does leak if test_distutils was run before it: $ ./python -m test.regrtest -R 3:2 test_distutils test_modulefinder test_distutils [31861 refs] beginning 5 repetitions 12345 [31861 refs] .[31861 refs] .[31861 refs] .[31861 refs] .[31861 refs] . test_modulefinder beginning 5 repetitions 12345 . test_modulefinder leaked [145, 145] references, sum=290 The fact that test_modulefinder uses distutils.dir_util could have something to do with this? -- components: Library (Lib), Tests messages: 88449 nosy: pitrou, tarek priority: normal severity: normal status: open title: test_modulefinder leaks when run after test_distutils type: resource usage versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
Benjamin Peterson benja...@python.org added the comment: This is a case that 2to3 cannot handle. There is no way to do a relative import and get the module package.module behavior of absolute import. 2to3 cannot guess how to fix this. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
Mitchell Model m...@acm.org added the comment: Thanks. I sure couldn't find a way! I encountered this trying to convert someone else's code. There is a main directory and a subdirectory, both with __init__.py files. The files in the main directory import each other just by import othermodule. 2to3 changed those to from . import othermodule, which works. There is a module in the sub-package, say 'm', which files in the main package want to import, which they were doing by import subdirectory.m. I'm glad 2to3 can't figure out what to do and, as per your explanation, I guess there isn't anyway to make this work. So I have to ask, though perhaps this isn't the place, how would a module in a package import a module from a sub-package of that package (where the sub-package includes the module in its all list). I've tried a lot of variations and am not doing any better than 2to3 on this. Suggestions? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6132] Implement the GIL with critical sections in Windows
New submission from Phillip Sitbon phillip.sitbon+python-...@gmail.com: At the suggestion of others on the Python-Dev list, I'm going to outline what I've been doing with the GIL and where I see possiblity for improvement. Discussion: http://mail.python.org/pipermail/python-dev/2009-May/089746.html Detail: Currently, Python's global interpreter lock is implemented with the same mechanism that provides locks for the threading module. Moving the GIL's low-level handling to a separate mechanism would free core developers from the feature requirements imposed upon thread locks, specifically: 1. Blocking recursion A thread can acquire a lock when it has already been acquired, and this action will block. 2. Release-anywhere Any thread not owning a lock can release it (provided it is currently owned), thus preventing permanent deadlock in #1. These semantics are that of a semaphore with an initial value of 1, where acquisitions decrease its value and releases increment its value. This behavior cannot change without changing the fundamental behavior of the threading.Lock object that many have probably come to expect. I have been looking into ways to minimize GIL overhead in high concurrency situations. At the moment, I'm only looking at Windows, partly because it was an easy target and I have experience with its synchronization objects. While I have come up with a faster alternative for GIL handling, it breaks the expectations of thread lock objects. I then got to wondering: - Does anyone actually use the GIL-locking/unlocking functions in a manner that requires the features listed above? - If so, could it be accomplished a different way if the GIL were expected to behave more like a recursive mutex? I'm not going to make any assumptions about what extensions do with the GIL, but I can hope at least they do use the API functions. If so, the question is if we can safely apply different locking semantics to the GIL: - Non-blocking recursion A thread that already owns the lock can re-acquire it without blocking, increasing a recursion count. - Owner-only releasing Only the thread owning the lock can release it, and only as many times as it has acquired it. In Windows, this is how critical sections behave. I'm not sure about the Linux futex, but I know pthread mutexes and others like it can be made recursive. I'm mainly interested in separating the GIL from thread locks so we can say do x and y with it but not z without changing the threading module's lock mechanism. I decided to make a case of this when I was testing my ISAPI extension under high load. The current mechanism is as fast as it can possibly be for a single thread, but does not scale well at all. This has a lot to do with its use of event synchronization objects. Critical sections, on the other hand, scale well even when contention is unavoidable. My first experiment involved modifying the thread lock functions in thread_nt.h to use critical sections. Yes, it broke the behavior of threading.Lock, but it still worked for the GIL. The performance improvement can vary, but it's always noticeable in the presence of concurrency. I saw the performance of my server extension nearly double when serving up Django pages from 10-12 threads concurrently. Obviously we can't just slap on a critical section and call it done, unless nobody cares about changing what threading.Lock does. That's what led me believe that a separate GIL mechanism is very important to have. For your hacking pleasure, I've included a patch for thread_nt.h that will facilitate GIL performance testing. It includes the critical section implementation and a semaphore implementation (which is about as fast as the current behavior). I've also included a _very_ basic script for some ballpark GIL contention measurements. The numbers will be a bit exaggerated, especially with a _Py_CheckInterval of 1, but you will see the difference between the current method and the critical section method right away. Especially in terms of scalability. If you want a baseline cost for the iteration loops, change ThreadCount to 1 and make CheckInterval something big (1 million). There are other costs included with the reported numbers, but going between the two lock implementations should make it clear that any big difference you see is due to locking/unlocking/contention. Please feel free to correct me if I did it all wrong - I'm sure there are other/better ways to test GIL performance. My testing was done with Python 2.6.2 x86 on Vista x64. I can provide measurements if it's not convenient for anyone to try out the patch. So where to go from here? It'd be good to know if changing the restrictions on GIL usage will break anything. Also, whether the same performance increase can be had for Linux/Mac/others. I'll continue to look into giving the GIL its own locking API, and hopefully my efforts are not for naught. -- components: Interpreter Core, Windows files: thread_nt.h.patch
[issue6132] Implement the GIL with critical sections in Windows
Changes by Phillip Sitbon phillip.sitbon+python-...@gmail.com: Added file: http://bugs.python.org/file14097/LockingTest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import
Benjamin Peterson benja...@python.org added the comment: The bug tracker is not really the correct forum for this. [See the python-porting list.] You will either have to change the code to use absolute from imports and change the usage of the module in the code base (I would suggest this), or hack it like this: import fullpackage.subpack.mod subpack = fullpackage.subpack -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6129 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6121] help('modules ') causes IndexError.
R. David Murray rdmur...@bitdance.com added the comment: Applied in r72966, r72967 and r72968, r72970. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
New submission from Alex alex.gay...@gmail.com: Basically whenever you have a LOAD_CONST opcode, follwed by a LOAD_ATTR you can replace both with a single LOAD_CONST. This optimizes things like , .join or {} {}.format (in my totally unscientific byte code hackery it's about a 30% speedup on the loading the function). This can be done in the peephole optimizer. I'll try to work up a patch. -- components: Interpreter Core messages: 88455 nosy: alex severity: normal status: open title: LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6125] 2to3 mishandles from module_name import when module_name includes an underscore
Mitchell Model m...@acm.org added the comment: I apologize. This example evolved from my attempt to simplify things from the actual code, and I oversimplified to the point where I misread the 2to3 results. I thought there was a space after the period for the modules without the underscores in their name but obviously there wasn't. In the original results there were a lot of from . import modulename and while experimenting with my examples I carelessly confused the import of an entire module with the import of a name or * from a module. Sorry for the bother. (There really was a problem with the code that read from .modulename import *, but of course it wasn't that a space was missing after the period.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1564508] RFC 2965 BaseCookie does not support $Port
Ben Anhalt ben.anh...@gmail.com added the comment: Actually, I was just bit by this. In fact, RFC 2965 prohibits clients from sending $Port if the port attribute was not included in the Set-Cookie header. But, it turns out that the mono System.Net library (at least) will add the attribute any time the URI includes a non-default port number. See http://go-mono.com/forums/#nabble-f1367 I think this is technically their bug, but it might be nice to have something like a non-strict mode in Cookie.py that would ignore unexpected attributes for handling cases like this. -- nosy: +benanhalt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1564508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6132] Implement the GIL with critical sections in Windows
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1564508] RFC 2965 BaseCookie does not support $Port
Ben Anhalt ben.anh...@gmail.com added the comment: Grrr, the link in my last comment should have been http://www.nabble.com/System.Net.CookieContainer-adding-inappropriate-%24Port-attribute-to-cookies--td23752882ef1367.html Yuck. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1564508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6125] 2to3 mishandles from module_name import when module_name includes an underscore
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6125 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6132] Implement the GIL with critical sections in Windows
Antoine Pitrou pit...@free.fr added the comment: I'm not competent to review Windows-specific stuff, but some style notes: - your indentation is inconsistent with the original file (you should use tabs) - please don't use any C++-style comments -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5673] Add timeout option to subprocess.Popen
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5673] Add timeout option to subprocess.Popen
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: gpolo - r.david.murray priority: - low stage: - needs patch versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2986] difflib.SequenceMatcher not matching long sequences
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Documentation, Library (Lib) -Extension Modules priority: - normal stage: - test needed type: - feature request versions: +Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5353] Improve IndexError messages with actual values
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: -r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
Alex alex.gay...@gmail.com added the comment: Here's my work so far, it seems to work as described. Except for the fact that pyc creation with anything containign something with this optimization will give a valueerror on bad marshall data, from trying to marshall the method I assume. -- keywords: +patch Added file: http://bugs.python.org/file14098/python_const_fold.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
Alex alex.gay...@gmail.com added the comment: Small update so I don't change whitespace all over the plcae. -- Added file: http://bugs.python.org/file14099/python_const_fold.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
Alex alex.gay...@gmail.com added the comment: Switch to using memset instead of a forloop. -- Added file: http://bugs.python.org/file14100/python_const_fold.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST
Alex alex.gay...@gmail.com added the comment: I now *almost* have PyCFunctions marshalling, they seem to marhshall ok but fail on unmarshalling. I think the whitespace stuff may have crept back in, sorry :( -- Added file: http://bugs.python.org/file14101/python_const_fold.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6134] 2to3 tests fail on Windows due to line endings
New submission from James Abbatiello abb...@gmail.com: The tests for 2to3 currently fail on Windows. Data is read from a file in binary mode and then written to a temporary file in text mode which doubles up the carriage returns. Additionally, several files are missing the svn:eol-style property. The attached patch addresses both problems. -- components: 2to3 (2.x to 3.0 conversion tool) files: 2to3_native_eol.patch keywords: patch messages: 88464 nosy: abbeyj severity: normal status: open title: 2to3 tests fail on Windows due to line endings Added file: http://bugs.python.org/file14102/2to3_native_eol.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6134 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6131] test_modulefinder leaks when run after test_distutils
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is workaround for reference leak. I'm not sure what exactly leaks references yet. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file14103/workaround.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com