[issue6300] encode and decode should accept 'errors' as a keyword argument
Jeff Bradberry jeff.bradbe...@gmail.com added the comment: As it turns out, someone had previously made this adjustment to str() and unicode(). My updated patch adds this behavior to unicode.decode and unicode.encode, adds a couple of tests to test_unicode.py, and updates the documentation to show that these functions (and str.format, which had failed to be noted as taking them) now take keyword arguments. -- Added file: http://bugs.python.org/file14906/python27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6912] Add 'with' block support to Tools/Scripts/pindent.py
Georg Brandl ge...@python.org added the comment: Added in r74865. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6915] os.listdir inconsistenly releases the GIL on win32
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6915 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6300] encode and decode should accept 'errors' as a keyword argument
Marc-Andre Lemburg m...@egenix.com added the comment: The patch looks fine, the idea is good as well. I'm just a little worried about the performance impact this might have (not much though). Could you run a quick comparison of before applying the patch compared to after the patch is applied, using positional arguments in both cases ? Thanks. -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6508] expose setresuid
Martin v. Löwis mar...@v.loewis.de added the comment: Please do try this out on your system. Installing autoconf locally is really not difficult: download 2.61, then do ./configure --prefix=$HOME/ac261 make make install This will give you $HOME/ac261/bin/auto{conf|header}; automake is not needed for Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6508] expose setresuid
Martin v. Löwis mar...@v.loewis.de added the comment: Your patch looks right, although I have a few style issues: - the if chaining looks complicated: we don't usually have an else when the if returns - make sure you use tabs consistently with the rest of the file - it may be better to use uid_t where appropriate, see issue6873 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6919] Link CRT Statically
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It will seem to work for simple scripts, but many extension modules won't behave properly because: - some API functions (PyFile_AsFile, many PyRun_*functions, PyMarshal_*+FromFile) pass FILE* structures, which differ between instances of the CRT. - file descriptors, environment variables, locale settings, the errno variable, are not shared. - when a thread exits, it would have to free thread-local storage for each CRT. Python uses Ansi C, and has to use the same system as the extension modules it wants to support. Linking statically with the CRT may be a solution in specific cases, but not for the general python distribution. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6919 ___ ___ 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
Mark Dickinson dicki...@gmail.com added the comment: Do the remove_history_item and replace_history_item functions also need the off-by-one adjustment? -- nosy: +marketdickinson ___ 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
[issue1613573] xmlrpclib ServerProxy uses old httplib interface
anatoly techtonik techto...@gmail.com added the comment: This bug may be fixed. Unfortunately I do not possess original setup anymore. The primary issue is still issue648658 and that affects bzr + launchpad integration, XML-RPC access to bugzilla and probably more. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1613573 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1613573] xmlrpclib ServerProxy uses old httplib interface
anatoly techtonik techto...@gmail.com added the comment: And I want to add that I am glad that is finally fixed, so I really appreciate the work people done in this direction in their free time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1613573 ___ ___ 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
Ronald Oussoren ronaldousso...@mac.com added the comment: Mark: yes those functions need to be changed as well. -- ___ 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
[issue6929] Confusion between write method of rowiobase and rawfileio
New submission from Pascal Chambon chambon.pas...@gmail.com: It seems the properties of the write methods of these two classes are mixed up in documentation. I've checked the sources, and actually it seems the behviour is inverted : rawiobase streams, which can be pipes or other limited streams, may write less than len(b) bytes in one operation, and return ; whereas rawfileio instances, which write on disk, will never fail writing all the data unless the disk is full (resulting in IOError). It's rawiobase which does one system call, not rawiofile which will try again until all is written, isn't it ? RawIoBase write(b) Write the given bytes or bytearray object, b, to the underlying raw stream and return the number of bytes written (never less than len(b), since if the write fails an IOError will be raised). A BlockingIOError is raised if the buffer is full, and the underlying raw stream cannot accept more data at the moment. RawFileIO : write(b) Write the bytes or bytearray object, b, to the file, and return the number actually written. Only one system call is made, so it is possible that only some of the data is written. -- assignee: georg.brandl components: Documentation messages: 92751 nosy: georg.brandl, pakal severity: normal status: open title: Confusion between write method of rowiobase and rawfileio type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.
Georg Brandl ge...@python.org added the comment: This patch fixes it (seems like a refactoring oversight, I used the UTF16 decoder for reference, where it works fine) and adds a test, assigning to MAL for review. Marking as a release blocker so that 2.6.3 won't get released without a fix. -- assignee: - lemburg keywords: +patch nosy: +georg.brandl, lemburg priority: - release blocker resolution: - accepted stage: - patch review type: - crash versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14907/fix-utf32-errorhandling.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2517] Error when printing an exception containing a Unicode string
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2517 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6883] OptionParser.allow_interspersed_args is undocumented
Georg Brandl ge...@python.org added the comment: The (en|dis)able_interspersed_args accessors are already documented, so I see no reason to document the attribute as well... -- nosy: +georg.brandl resolution: - works for me status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.
Marc-Andre Lemburg m...@egenix.com added the comment: The patch looks good. Thanks. Aside: This is what you get when using too many single character variable names in a function... The function should really do just one cast to (unsigned char *) at the very top and then work with that variable all along. -- assignee: lemburg - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6860] Inconsistent naming of custom command in setup.py help output
Tarek Ziadé ziade.ta...@gmail.com added the comment: To be able to do this fix, I also need to change the way commands are registered in Distutils. Right now, Distutils scans packages that were provided as command packages and just adds all commands from the namespace, using the class name. Which means there's no way to provide a command this way that is not using something else than the class name. To make it better I will introduce an explicit registration mecanism, where a specific mapping will have to be provided in the package, instead of looking directly for pkgname.command, which is not very handy from a developer point of view. (this behavior will be deprecated but will still be used as the last way to register a command) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6516] reset owner/group to root for distutils tarballs
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1180] Option to ignore or substitute ~/.pydistutils.cfg
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1180 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1180] Option to ignore or substitute ~/.pydistutils.cfg
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: critical - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1180 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3984] python interpreter import dependency with disutils/util
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek priority: - low versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3984 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6925] Doc for locals and vars
Changes by S Arrowsmith si...@chiark.greenend.org.uk: -- nosy: +siona ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue793069] Add --remove-source option
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue793069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.
Georg Brandl ge...@python.org added the comment: I'm leaving a refactoring to someone with more time :) Committed in r74869, backported to 2.6 in r74870. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Antoine Pitrou pit...@free.fr added the comment: Hm, first, which version of the documentation are you looking at? For the new IO lib, you should probably refer to the current py3k docs: http://docs.python.org/py3k/library/io.html Then, the documentation looks confused indeed. But your interpretation is a bit confused as well ;) RawIOBase is only an abstract base class, it doesn't provide any meaningful implementation. The doc for write() here is wrong when it says ... return the number of bytes written (This is never less than len(b), since if the write fails, an IOError will be raised). FileIO, which is an implementation of RawIOBase (see below), *can* return less than len(b). FileIO (not RawFileIO, which doesn't exist) is an implementation of RawIOBase. Its write() method does only one system call and does not try to consume all of the input. Therefore, it can return less than the length of the input string, particularly if the underlying file is in non-blocking mode. It will return None if in non-blocking mode and *no* byte of input has been consumed (this is to distinguish from the case where the input would have been a 0-byte string). It will raise an IOError in all other error cases. However --- In daily life, most uses of FileIO will be wrapped in a BufferedWriter, BufferedReader or BufferedRandom object (this is what happens if you use the builtin open()). These classes *will* retry when write() is called, until everything is written out or an error occurs. The only exception is if the underlying file is in non-blocking mode, in which case write() might raise a BlockingIOError if it couldn't write everything without blocking. Bottom line: write() on a *buffered* IO object (not a *raw* one) will either write everything, or raise an exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Antoine Pitrou pit...@free.fr added the comment: I might add, in case it wasn't clear, that you will only encounter a raw IO object (rather than a buffered one) if you construct one directly, or if you give buffering=0 to open(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6925] Doc for locals and vars
Georg Brandl ge...@python.org added the comment: Free variables *are* returned by locals(). (Note that globals *aren't* free variables.) For example, try this: def f(): x = 1 def g(): print locals() g() f() -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6925] Doc for locals and vars
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Eric Smith e...@trueblade.com added the comment: The patch looks okay to me, and solves the issue on my Fedora box. But perhaps a context manager in a with block would be clearer? I've attached a patch. -- Added file: http://bugs.python.org/file14908/issue6882-contextlib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5754] Shelve module writeback parameter does not act as advertised
Robert Lehmann lehman...@gmail.com added the comment: I think you're misquoting Python's shelve module documentation in your first sentence. The documentation says: By default modified objects are written only when assigned to the shelf [...]. If the optional writeback parameter is set to True, all entries accessed are cached in memory, and written back at close time [...]. The emphasis should be on the word only: it does *always* write to the database when assigned to the shelf but, iff writeback=True, *also* to the cache. Also consider the consequences of *only* caching keys: (a) __contains__ and has_key have to consult the dict and the cache for membership tests. (b) keys and __len__ need to compute a union of both sources. (c) __delitem__ is no longer guaranteed to fail on the cache if it failed for the database. I admit the docs could spell this out more clearly. I attached a patch ensuring the behaviour I described in a test and updating the docs. (Note: shelve is no extension module -- it's part of the stdlib. Patch applies to 3.x as well.) -- components: +Library (Lib) -Extension Modules keywords: +patch nosy: +lehmannro Added file: http://bugs.python.org/file14909/issue5754.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Thomas Heller thel...@ctypes.org added the comment: Since ctypes should stay compatible with Python versions down to 2.4, a with block cannot be used. Of course would closing the object returned by os.popen() explicitely be better style, but I wonder what the real problem is. My observations so far: - The bug doesn't happen with Python 2.X, only with 3.X. - If I assign the result of os.popen() to a local variable, _without_ closing it explicitely, the bug also doesn't happen (tested on Ubuntu). I really wonder what's going on here... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6729] Add support for ssize_t
Thomas Heller thel...@ctypes.org added the comment: Would you like to work on a patch? -- versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6918] ctypes compilation error on SnowLeopard
Changes by Radim Novotny novotny.ra...@gmail.com: -- nosy: +naro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6930] [PATCH] PyUnicode_DecodeUTF16 docs wrong (byteorder param)
New submission from Jon Foster jon.fos...@cabot.co.uk: The documentation for the C API function PyUnicode_DecodeUTF16() does not match the code. If *byteorder is 1 or -1, the documentation says that the function looks for a BOM. It doesn't. This patch updates the documentation to match the code. (Also, I just realised that the docs for PyUnicode_DecodeUTF32() have the exact same bug. That is NOT fixed by this patch). This patch also clarifies the PyUnicode_EncodeUTF16() docs. -- assignee: georg.brandl components: Documentation files: unicodedocs.patch keywords: patch messages: 92764 nosy: JonFoster, georg.brandl severity: normal status: open title: [PATCH] PyUnicode_DecodeUTF16 docs wrong (byteorder param) type: behavior versions: Python 2.6, Python 2.7 Added file: http://bugs.python.org/file14910/unicodedocs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6923] Need pthread_atfork-like functionality in CPython
Gregory P. Smith g...@krypto.org added the comment: For reference, this is related to http://bugs.python.org/issue6721 but deals with the C API side of things for an atfork mechanism to be used by extension modules. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6923 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6721] Locks in python standard library should be sanitized on fork
Gregory P. Smith g...@krypto.org added the comment: issue 6923 has been opened to provide a C API for an atfork mechanism for use by extension modules. -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Eric Smith e...@trueblade.com added the comment: The py3k version of the file already contains 3.x only code, and it's missing the comment at the top that it should be compatible. But it's not really a big deal to me. The py3k version also already has some try/finally logic on some popen calls that the trunk version doesn't, so I suspect this was a known problem that was addressed, and this case was missed or added later. research ensues Looking at svn blame, this was a change made by Guido in r59477. In the checkin, he points to issue 1597 where this was originally discussed. So I suggest that the original patch be applied. I have not checked if there are other cases in util.py where this should be cleaned up. I also think it would be reasonable to change the try/finally's to with's, since those are the very places that the 2.x code differs from the 3.x code. But as I said, I don't feel too strongly about that. I don't know why this problem doesn't show up in 2.x. I agree it would be nice to understand why, but I don't have time to research it. Since the new code (with try/finally) looks more correct, if there's a desire to keep them in sync then the try/finally fixes should be back-ported to 2.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6931] awful performance in difflib: ndiff and HtmlDiff
New submission from Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net: Relatively small set of lines with differences in most lines can destroy the performance of difflib.HtmlDiff.make_table and difflib.ndiff. I am using it like this: ... htmldiffer = HtmlDiff() return htmldiffer.make_table(src_lines, dst_lines, fromdesc=file1, todesc=file2, context=True) I have written the src_lines and dst_lins to files and tried this with the Tools/scripts/diff.py wrapper with same results when using the switches -m or -n. The performance is fine when using difflib.unified_diff or switch -u on diff.py Attached are files that show this clearly. left200.txt,right200.txt - 200 lines of text - duration 11 seconds. left500.txt,right500.txt - 500 lines of text - duration 2min 58 sec left1000.txt,right1000.txt - 1000 lines of text - duration 29min 4sec tested on Intel dualcore T2500 2GHz with 2 GB of memory, python 2.5.2 on Ubuntu. Same problom on python 2.6 on Fedora-11 For reference, the kdiff3 utility performs beautifully on these files. -- components: Library (Lib) files: python.difflib.bug.tgz messages: 92768 nosy: heidar.rafn severity: normal status: open title: awful performance in difflib: ndiff and HtmlDiff type: performance versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file14911/python.difflib.bug.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6931] dreadful performance in difflib: ndiff and HtmlDiff
Changes by Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net: -- title: awful performance in difflib: ndiff and HtmlDiff - dreadful performance in difflib: ndiff and HtmlDiff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6919] Link CRT Statically
Martin v. Löwis mar...@v.loewis.de added the comment: If you do not *want* to change it, that is your prerogative, but it *can* definitely work. I don't believe it can work; Amaury has already given a number of reasons. If you still believe otherwise, and want to see something change, please try coming up with a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Eric Smith e...@trueblade.com added the comment: Indeed, the code that introduced this bug was in r68489, so it was written after Guido went through the module and cleaned it up to use try/finally. And since r68489 was a merge of r68487, the change was originally made on the 2.x version (which doesn't use try/finally) to the 3.x version (which does). Which makes me think that we should go back and add try/finally to all the popen calls in the 2.x version, so that it serves as a better example when/if new popen calls are added. I'm willing to do that once this issue is resolved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Thomas Heller thel...@ctypes.org added the comment: The py3k version of the file already contains 3.x only code, and it's missing the comment at the top that it should be compatible. But it's not really a big deal to me. Yes, I had deleted the comment since the 3.x code cannot be compatible with 2.x anyway (and I didn't remember that in my previous comment). So I suggest that the original patch be applied. I have not checked if there are other cases in util.py where this should be cleaned up. I also think it would be reasonable to change the try/finally's to with's, since those are the very places that the 2.x code differs from the 3.x code. But as I said, I don't feel too strongly about that. I don't know why this problem doesn't show up in 2.x. I agree it would be nice to understand why, but I don't have time to research it. Since the new code (with try/finally) looks more correct, if there's a desire to keep them in sync then the try/finally fixes should be back-ported to 2.x. So I would suggest the following approach: Add try/finally in py3k branch where missing, backport the patch to 2.x, and then change the try/finally into with blocks in py3k branch but do not backport this. If you have the time, and if you have commit privs could you please go ahead? Thanks, Thomas -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Changes by Thomas Heller thel...@ctypes.org: -- assignee: theller - eric.smith resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ 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
Joel Martin pythonb...@martintribe.org added the comment: I can reproduce the problem (or at least get the same symptom) by doing this (in 2.4.6, 2.5.4 and 2.6.2): import subprocess, signal signal.signal(signal.SIGCLD, signal.SIG_IGN) subprocess.Popen(['echo','foo']).wait() The echo command completes, but the subprocess command throws the no child exception. It seems like the subprocess command should either: - detect that SIGCLD is not set correctly and throw a more informative exception before running the command. - override SIGCLD during the running of the sub-command. Not sure what the UNIX correctness implications of this are. - or allow the child to zombie without throwing an exception. The fact that the programmer has overridden SIGCLD sort of implies that reaping of zombie children has been switched off. I don't have good enough understanding of the underlying implementation to know if this is a reproducer as requested or if this should be a new bug. Please advise and I will file a new bug if requested. This is a follow-up to trying to resolve this problem in the PEP 3143 python-daemon module. See this thread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/9a853d0308c8e55a -- nosy: +kanaka status: pending - open ___ 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
[issue6932] Open shelves fail when Python exits
New submission from Robert Lehmann lehman...@gmail.com: I'm reopening issue5483 by Zhigang Wang (zhigang) as a separate bug. Shelves that are still open when Python terminates will try to sync. If writeback=True, this pickles cached items. In this example, serialization of Test() re-imports __main__, which is already gc'd, and raises: Exception cPickle.PicklingError: Can't pickle class '__main__.Test': it's not the same object as __main__.Test in bound method Shelf.__del__ of {'a': __main__.Test object at 0x...} The error is ignored (due to Python already tearing down) but all cached modifications are lost. The promise [t]he __del__() method of the Shelf class calls the close() method, so the programmer generally need not do this explicitly is not true with writeback enabled. I'm unsure if this error can be fixed (probably with atexit/weakref, but that's more trouble than gain). I attached a patch to the docs simply warning the user of this issue (+ documenting Shelf.close, + removing above quote). -- assignee: georg.brandl components: Documentation, Extension Modules, Library (Lib) files: example.py messages: 92773 nosy: georg.brandl, lehmannro severity: normal status: open title: Open shelves fail when Python exits type: behavior versions: Python 2.7, Python 3.1 Added file: http://bugs.python.org/file14912/example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6932] Open shelves fail when Python exits
Changes by Robert Lehmann lehman...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14913/shelve-warning.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5483] [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when writeback=True
Robert Lehmann lehman...@gmail.com added the comment: I addressed the other bug you were experiencing in issue6932. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6729] Add support for ssize_t
Nikolaus Rath nikol...@rath.org added the comment: I can give it a shot if you give me a rough idea where I have to make the appropriate changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6932] Open shelves fail when Python exits
Georg Brandl ge...@python.org added the comment: Fixed docs (a bit differently) in r74876. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6932 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6883] OptionParser.allow_interspersed_args is undocumented
Skip Montanaro s...@pobox.com added the comment: Georg The (en|dis)able_interspersed_args accessors are already Georg documented, so I see no reason to document the attribute as Georg well... But it is documented in the class's docstring and there are no docstrings for the methods. It's not at all clear which is the best way to change that particular behavior. Skip -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6883] OptionParser.allow_interspersed_args is undocumented
Georg Brandl ge...@python.org added the comment: The methods do have docstrings (trunk rev, line 1283 and 1291). And usually, when there are accessors for a property, they are the preferred way to change it. Anyway, I don't see a reason to do something here, so please propose a patch if you still think the docs inadequate. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Pascal Chambon chambon.pas...@gmail.com added the comment: Allright, then only rawIoBase's documentation is wrong... and I'll have to modify my work-in-progress library to mimic FileIo more accurately. Thansk for teh info B-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Pascal Chambon chambon.pas...@gmail.com added the comment: I forgot to note - yep I was actually improperly looking at the python 2.6 documentation, which is erroneous ocncerning the io module. But the py3k doc seems to summarize it allright B-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6933] Threading issue with Tkinter Frame.insert
New submission from Moray Grieve m...@progress.com: The attached file has an example where a Tk GUI is launched as a seperate thread - this all works fine in Python 2.5, but in Python 2.6 the thread hangs. The issue seems to be in the line; self.messageBoxDetails.insert(INSERT, Hello world) Comment this line out, or use an empty string rather than Hello World, and the example works in both Python 2.5 and Python 2.6. I have not been able to seen any related issues to this and wonder if this is a bug in the 2.6 Tkinter module. -- components: Tkinter files: example.py messages: 92781 nosy: moraygrieve severity: normal status: open title: Threading issue with Tkinter Frame.insert type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file14914/example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6933] Threading issue with Tkinter Frame.insert
Moray Grieve m...@progress.com added the comment: I should say this is running on Windows XP -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6895] locale._parse_localename fails when localename does not contain encoding information
Santhosh Thottingal santhosh.thottin...@gmail.com added the comment: Attached the testcases as a patch to Lib/test/test_locale.py -- Added file: http://bugs.python.org/file14915/test_locale.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6929] Confusion between write method of rowiobase and rawfileio
Antoine Pitrou pit...@free.fr added the comment: Checked in a bunch of corrections and precisions in r74879, and r74880. -- resolution: - fixed status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6860] Inconsistent naming of custom command in setup.py help output
Patrick Näf herzb...@herzbube.ch added the comment: To be able to do this fix, I also need to change the way commands are registered in Distutils. Hm, I thought commands were registered in the setup() function with the cmdclass dict. Like this: setup( # test is the name that should be used for display cmdclass = { test : TestClass }, ) And the dict key can then be used as the name to display. At least --help-commands does it this way. Please note that I don't want to criticize: I'm just a dumb user who hasn't spent 5 seconds investigating how distutils works. I just thought, maybe you have overlooked something and this could save you some time... Anyway, thanks for taking this on. Patrick -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).
New submission from Svetoslav Agafonkin svet...@gmail.com: postflight.framework fails during installation: . . . Sep 17 17:36:53 mcfro Installer[1613]: run postflight script for Python Framework Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python 3.1.1/Python.mpkg/Contents/Packages/PythonFramework- 3.1.pkg/Contents/Resources/postflight: line 9: /Library/Frameworks/Python.framework/Versions/3.1/bin/python: No such file or directory Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python 3.1.1/Python.mpkg/Contents/Packages/PythonFramework- 3.1.pkg/Contents/Resources/postflight: line 14: /Library/Frameworks/Python.framework/Versions/3.1/bin/python: No such file or directory Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python 3.1.1/Python.mpkg/Contents/Packages/PythonFramework- 3.1.pkg/Contents/Resources/postflight: line 19: /Library/Frameworks/Python.framework/Versions/3.1/bin/python: No such file or directory Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python 3.1.1/Python.mpkg/Contents/Packages/PythonFramework- 3.1.pkg/Contents/Resources/postflight: line 24: /Library/Frameworks/Python.framework/Versions/3.1/bin/python: No such file or directory Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: chown: admin: Invalid argument Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: The first problem is that in /Library/Frameworks/Python.framework/Versions/3.1/bin there is no executable 'python' anymore - there is 'python3.1', etc. Also chown at the end should set the group to 'admin', not the owner. I've attached a patch that fixes these issues. (the problem with chown is also present in the installer for 2.6.x ). -- assignee: ronaldoussoren components: Installation, Macintosh files: postflight.framework.patch keywords: patch messages: 92786 nosy: ronaldoussoren, slavi severity: normal status: open title: postflight.framework script (from the Mac OS X .dmg installer) fails (patch given). type: compile error versions: Python 3.0, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14916/postflight.framework.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).
Changes by Svetoslav Agafonkin svet...@gmail.com: Removed file: http://bugs.python.org/file14916/postflight.framework.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).
Changes by Svetoslav Agafonkin svet...@gmail.com: Added file: http://bugs.python.org/file14917/postflight.framework.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6882] uuid creates zombies
Eric Smith e...@trueblade.com added the comment: Yes, I'll take care of this. I can't think of any way to add a test that the zombie process doesn't exist, but if anyone has an idea I'd like to hear about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6508] expose setresuid
Travis H. travis+w-python@subspacefield.org added the comment: Simplified if/else chaining Uploading here before testing on new machine (m4 was too old on previous machine) -- Added file: http://bugs.python.org/file14918/foo.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6300] encode and decode should accept 'errors' as a keyword argument
Jeff Bradberry jeff.bradbe...@gmail.com added the comment: Before: ~/python2.7$ ./python -mtimeit u'Andr\202 x'.encode('ascii', 'replace') 100 loops, best of 3: 1.8 usec per loop After: ~/python2.7-patched$ ./python -mtimeit u'Andr\202 x'.encode('ascii', 'replace') 100 loops, best of 3: 1.73 usec per loop The difference in performance seems to be trivial, perhaps favoring the patched version slightly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5207] extend strftime/strptime format for RFC3339 and RFC2822
Changes by Matías Ribecky m...@mribecky.com.ar: -- nosy: +mribecky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6508] expose setresuid
Travis H. travis+w-python@subspacefield.org added the comment: I applied the same patch to Python 2.6.2 and believe that I got the tab/space situation worked out so that it's consistent with the rest of posixmodule.c I also executed autoconf to convert configure.in to configure, and judging by the config.log, it is testing for and finding setresuid and friends. It is also defining HAVE_SETRESUID to 1 as expected. However, when I execute this python and import os (or posix), it says that module doesn't have the setresuid attribute. I ran strings on libpython2.6a and found that it has the strings setuid and setreuid as expected, but not my setresuid. Does anyone have any idea why this might be? I'm trying hard to get this into python but I'm not an expert on how the build works. -- keywords: +patch Added file: http://bugs.python.org/file14919/setresuid.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6934] {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails.
Changes by Svetoslav Agafonkin svet...@gmail.com: -- title: postflight.framework script (from the Mac OS X .dmg installer) fails (patch given). - {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6934] [PATCH] postflight.framework script (from the Mac OS X .dmg installer) fails.
Changes by Svetoslav Agafonkin svet...@gmail.com: -- title: {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails. - [PATCH] postflight.framework script (from the Mac OS X .dmg installer) fails. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6300] encode and decode should accept 'errors' as a keyword argument
Marc-Andre Lemburg m...@egenix.com added the comment: Perfect. Thanks for checking. Benjamin, could you please check this in ? Thanks. -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5042] Structure sub-subclass does not initialize with base class positional arguments
Changes by Thomas Heller thel...@ctypes.org: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5042] Structure sub-subclass does not initialize with base class positional arguments
Thomas Heller thel...@ctypes.org added the comment: The problem is the implementation of the current __init__ method, in Modules/_ctypes/_ctypes.c, line 4024. Rewritten in Python, and slightly simplified it looks like this: def __init__(self, *args, **kw): The current BUGGY __init__ method names = [f[0] for f in self._fields_] for n, v in zip(names, args): setattr(self, n, v) for n, v in kw.iteritems(): setattr(self, n, v) It assigns positional parameters to the names found in the _fields_ list of the subclass, but it should look up all the _fields_ definitions in all the superclasses, too. Working pseudo Python code: def __init__(self, *args, **kw): This is how the Structure's __init__method SHOULD be if args: names = [] for tp in self.__class__.mro()[2::-1]: for n, _ in tp._fields_: names.append(n) for n, v in zip(names, args): setattr(self, n, v) for n, v in kw.iteritems(): setattr(self, n, v) Now, I don't really want to write the above code in C ;-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5042] Structure sub-subclass does not initialize with base class positional arguments
Jason R. Coombs jar...@jaraco.com added the comment: Heh. Me neither. Is it possible to use something like Cython to generate the C code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5042] Structure sub-subclass does not initialize with base class positional arguments
Jason R. Coombs jar...@jaraco.com added the comment: That was easier than I thought. The generated code is _ugly_ but it did seem to be able to generate it. I created init.pyx {{{ class X(object): def __init__(self, *args, **kw): This is how the Structure's __init__method SHOULD be if args: names = [] for tp in self.__class__.mro()[2::-1]: for n, _ in tp._fields_: names.append(n) for n, v in zip(names, args): setattr(self, n, v) for n, v in kw.iteritems(): setattr(self, n, v) }}} Then, ran cython init.pyx and got the attached file. Is that any help? -- Added file: http://bugs.python.org/file14920/init.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6300] encode and decode should accept 'errors' as a keyword argument
Benjamin Peterson benja...@python.org added the comment: I still have a few things I would like changed: - Instead of listing which methods take keyword arguments at the top of the section, I would prefer that each used the versionchanged: 2.7 directive and indicated the added ability to use keyword arguments. - Your tests only cover str.decode and unicode.encode, not vice-versa. - In your tests, there should be a space between the comma in the arguments and the next argument. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2504] Add gettext.pgettext() and variants support
nh2 n...@deditus.de added the comment: Me too. This makes developing applications with good localizations in Python really difficult. -- nosy: +nh2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6895] locale._parse_localename fails when localename does not contain encoding information
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4033] python search path - .pth recursion
Bill Janssen bill.jans...@gmail.com added the comment: Looks like 1431 was closed by removing a line from the documentation, so it's not surprising that it's not clear. -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6935] Version updates needed in tutorial
New submission from Mitchell Model m...@acm.org: Footnote 1 in section 2.1 of the Tutorial and the example of invoking Python in the middle of the page need their version number upped to 3.2 in both the invocation and the greeting. The same page in the 3.1 documentation should have the 'a' removed from the version number in the greeting. -- assignee: georg.brandl components: Documentation messages: 92798 nosy: MLModel, georg.brandl severity: normal status: open title: Version updates needed in tutorial versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6936] Import needed to quit Python?
New submission from Mitchell Model m...@acm.org: Section 2.1 of the tutorial describes using import sys; sys.exit() if ^D or ^Z doesn't work. However, both quit() and exit() work, as documented in the Built-in Constants section of the Library documentation. Is there something about them that should be hidden from the ordinary user that they aren't used in place of the import sys; sys.exit() combination? Seems easier to just say use quit() or exit(), especially for beginners following the tutorial who won't know what import or sys are, or even the dot notation. -- assignee: georg.brandl components: Documentation messages: 92799 nosy: MLModel, georg.brandl severity: normal status: open title: Import needed to quit Python? versions: Python 3.0, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6936 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add DTrace probes
Changes by Jim Baker jba...@zyasoft.com: -- nosy: +jbaker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6925] Doc for locals and vars
Terry J. Reedy tjre...@udel.edu added the comment: Except for the variable name and 3.1 print(), that is exactly what I tested before posting: {} Was 2.x different? Anyway, from Wikipedia: In computer programming, a free variable is a variable referred to in a function that is not a local variable or an argument of that function. (from page called 'Free variables in Lisp) Globals qualify under that definition. It goes on to say An upvalue is a free variable that has been bound (closed over) with a closure. which is what Python calls nonlocal or cell var. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6937] multiprocessing lock on OS X Snow Leopard dumps core
New submission from aaditya sood aadi...@sood.net.in: On a Snow Leopard system, doing this core dumps: import multiprocessing lck1=multiprocessing.Lock() with lck1: print foo The stack trace: Process: Python [23100] Path: /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: ??? (???) Code Type: X86-64 (Native) Parent Process: zsh [23055] Date/Time: 2009-09-18 10:39:39.611 +0530 OS Version: Mac OS X 10.6.1 (10B504) Report Version: 6 Interval Since Last Report: 83665 sec Crashes Since Last Report: 60 Per-App Crashes Since Last Report: 55 Anonymous UUID: 38A426BB-52F7-4282-9FA8-A04AB8896489 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x004300ee Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 org.python.python 0x000100096763 _PyArg_ParseTupleAndKeywords_SizeT + 113 1 _multiprocessing.so 0x0001001fa8c8 sem_timedwait_save + 456 2 org.python.python 0x0001000891df PyEval_EvalFrameEx + 15001 3 org.python.python 0x00010008accf PyEval_EvalCodeEx + 1803 4 org.python.python 0x00010008ad62 PyEval_EvalCode + 54 5 org.python.python 0x0001000a265a Py_CompileString + 78 6 org.python.python 0x0001000a44dd PyRun_InteractiveOneFlags + 503 7 org.python.python 0x0001000a4615 PyRun_InteractiveLoopFlags + 206 8 org.python.python 0x0001000a4685 PyRun_AnyFileExFlags + 76 9 org.python.python 0x0001000b0286 Py_Main + 2718 10 org.python.python.app 0x00010e6c start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00430043 rbx: 0x000100200150 rcx: 0x0001001fc7f0 rdx: 0x0001001fb632 rdi: 0x0001001af050 rsi: 0x00010003af24 rbp: 0x7fff5fbfeff0 rsp: 0x7fff5fbfef20 r8: 0x000100096748 r9: 0x7fff5fbff030 r10: 0x r11: 0x0001001fa86f r12: 0x r13: 0x0001004a4570 r14: 0x000100123100 r15: 0x0001001af050 rip: 0x000100096763 rfl: 0x00010206 cr2: 0x004300ee Binary Images: 0x1 -0x10ff7 org.python.python.app 2.6 (2.6) BDEA119D-4E2F-D97F-07BA-713A6E5A39B6 /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python 0x14000 -0x100114ff7 org.python.python 2.6.1 (2.6.1) 01EBD0D4-F181-045F-C7A8-B7B3C5D4204F /System/Library/Frameworks/Python.framework/Versions/2.6/Python 0x1001f -0x1001f2ff7 readline.so ??? (???) A8236667-A9DD-30A5-6DE8-201C6EF317E6 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/readline.so 0x1001f8000 -0x1001fbfff _multiprocessing.so ??? (???) 03672D74-6FAC-DE76-6DE6-604A8C0F2D50 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_multiprocessing.so 0x1004b -0x1004ccff7 libedit.2.dylib ??? (???) F9D005F8-74B8-CC05-2697-24C49E0CC1EF /usr/lib/libedit.2.dylib 0x1004db000 -0x1004e0fff itertools.so ??? (???) 06555874-952C-C770-64BF-6BC7A2455E10 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/itertools.so 0x1004e8000 -0x1004f4fff cPickle.so ??? (???) 98485D07-D504-74EB-B3A1-4EBB2474BFE6 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/cPickle.so 0x1004fa000 -0x1004fbfff cStringIO.so ??? (???) 7600C3A8-3C81-2A81-0853-B09107768C8C /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/cStringIO.so 0x10054 -0x100541ff7 _functools.so ??? (???) 1CE29F88-7B8C-77CC-5E87-555BA210EA8F /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_functools.so 0x100545000 -0x100546ff7 time.so ??? (???) 5F01F2A9-8557-5DF1-F006-44E02E0469CE /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/time.so 0x10054d000 -0x100550fff _collections.so ??? (???) 1F62A5C3-6E6C-D0BC-7AA6-DA2820B5F157 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_collections.so 0x100556000 -0x100559fff operator.so ??? (???) 68C1CC88-5F73-E029-5C19-685BBADACFA6 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/operator.so 0x10055f000 -0x10055 _weakref.so ??? (???) 89F1302D-1CFA-7B9B-4425-70DA55215DAE /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_weakref.so 0x1005a3000 -0x1005a7ff7
[issue6937] multiprocessing lock on OS X Snow Leopard dumps core
aaditya sood aadi...@sood.net.in added the comment: Additional Info: Snow Leopard is shipping with Python 2.6.1 64 bit build. -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6937 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6937] multiprocessing lock on OS X Snow Leopard dumps core
Ned Deily n...@acm.org added the comment: Reproducible here. Fails with Apple 2.6.1 in 64-bit mode but *not* in 32-bit mode. Also does not fail on 10.6 with recent 64-bit 4-way trunk built on 10.5. $ arch -i386 /usr/bin/python2.6 Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. import multiprocessing lck1=multiprocessing.Lock() with lck1: ... print foo ... foo ^D $ arch -x86_64 /usr/bin/python2.6 Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. import multiprocessing lck1=multiprocessing.Lock() with lck1: ... print foo ... Segmentation fault -- assignee: - ronaldoussoren components: +Macintosh nosy: +nad, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6937 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com