[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Brian Harring ferri...@gmail.com added the comment: *Cough*. Ya, going to blame the bugzie on that one. right, it's at fault rather than me being a complete freaking moron. Patch attached, hopefully with far less idiocy than I've demonstrated thus far Pardon. -- Added file:

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Brian Harring ferri...@gmail.com added the comment: Related note, don't be drunk when posting the missing patch- sorry for the noise, here is the caching version,, daftly presumed the early patch contained lib2to3.caching Now I'm going to go crawl in a corner, if you need me, I'll be there.

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Changes by Brian Harring ferri...@gmail.com: Removed file: http://bugs.python.org/file16078/2to3-caching.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7826 ___

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Changes by Brian Harring ferri...@gmail.com: Removed file: http://bugs.python.org/file16080/2to3-caching.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7826 ___

[issue7826] support caching for 2to3

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please submit a contributor agreement, see http://www.python.org/psf/contrib/ I'm still not clear on what the specific use case is: how *exactly* are you going to run 2to3 when you have that patch integrated? In particular, where do you

[issue7030] Update version{added, changed} entries in py3k unittest docs

2010-02-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The versionadded/changed have been fixed in r77788. The doc for assertSameElements should also clarify that repeated elements are ignored. -- ___ Python tracker rep...@bugs.python.org

[issue7030] Update version{added, changed} entries in py3k unittest docs

2010-02-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: s/r77788/r77888/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7030 ___ ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I find that the null termination for 8-bit strings makes low-level parsing operations (e.g., parsing a numeric string) safer and easier: Not to mention faster.

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'd consider that a bug. Esp. the IO lib should be 8-bit clean in the sense that it doesn't add any special meaning to NUL characters or code points. It doesn't add any special meaning to them. It just relies on a NUL being present after the

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is a particularly verbose patch for the information it is trying to convey. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6760

[issue7823] multiplying a list of dictionaries

2010-02-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not quite sure from what you wrote if you understood. Just to make sure no one reading this ticket later gets confused: it works the same way for all objects, and the behavior that sometimes surprises people shows up with mutable

[issue7823] multiplying a list of dictionaries

2010-02-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7823 ___

[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2010-02-01 Thread Andrew Dalke
Andrew Dalke da...@dalkescientific.com added the comment: Since I see the change to test needed, I've attached a diff against Python 2.6's test_socket.py. I would have generated one against the 2.7 version in subversion but that test doesn't exit. -- keywords: +patch Added file:

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-01 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: From python-dev: On Fri, Jan 29, 2010 at 15:04, exar...@twistedmatrix.com wrote: On 10:47 pm, tjre...@udel.edu wrote: On 1/29/2010 4:19 PM, Collin Winter wrote: On Fri, Jan 29, 2010 at 7:22 AM, Nick Coghlanncogh...@gmail.com

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: georg.brandl - brett.cannon nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7829 ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Again, on Windows there are many many usages of PyUnicode_AS_UNICODE() that pass the result to various Windows API functions, expecting a nul-terminated array of WCHARs. Please don't change this! --

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-01 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I see that a complete errno based solution would get messy. To avoid interfering with EAGAIN special cases, this would be needed: #if defined(EBADF) #define ERRNO_EBADF(x) ((x) == EBADF) #else #define ERRNO_EBADF(x) 0 #endif Then,

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think checking errno would be fine (provided it eliminates all variations ot this bug). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5677

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2010-02-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The patch intentionally doesn't use assertIsInstance because that method doesn't exist in 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3426

[issue6906] Tkinter sets an unicode environment variable on win32

2010-02-01 Thread Jon Foster
Jon Foster jon.fos...@cabot.co.uk added the comment: This bug also breaks code that uses the subprocess module, e.g.: env = os.environ.copy() env['MY_VARIABLE'] = 'MY_VAL' subprocess.Popen(... , env=env) Fails on Windows 7 with an error that the environment can only contain strings. The

[issue7805] test_multiprocessing failure

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Also witnessed on one of the buildbots: test test_multiprocessing failed -- Traceback (most recent call last): File /home/pybot/buildarea/3.x.klose-debian-ia64/build/Lib/test/test_multiprocessing.py, line 1076, in test_pool_worker_lifetime

[issue7805] test_multiprocessing failure

2010-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7805 ___ ___

[issue6906] Tkinter sets an unicode environment variable on win32

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Windows keywords: +needs review nosy: +brian.curtin priority: - normal stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6906

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Base type Unicode buffers end with a null-Py_UNICODE termination, but this is not used anywhere, AFAIK On Windows, code like

[issue3872] Python 2.6rc2: Tix ComboBox error

2010-02-01 Thread Matthieu Labbé
Changes by Matthieu Labbé bugs.python@mattlabbe.com: -- nosy: +matthieu.labbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3872 ___ ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Then there are many places to change, in core python as well as in third-party code. And PyArg_ParseTuple(u) would not work any more. -- ___ Python tracker rep...@bugs.python.org

[issue7749] pydoc error - No module named tempfile

2010-02-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Just FYI, it was backported to 2.6 in r76313. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7749 ___

[issue7798] document pydoc methods

2010-02-01 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I won't mind against the pager module in the main library. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7798 ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Note that Python is free to change the meaning of Py_UNICODE (e.g. to use UCS4 on all platforms) Python-UCS4 has never worked on Windows. Most developers on Windows, taking example on core python source code, implicitly assumed that

[issue6939] shadows around the io truncate() semantics

2010-02-01 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Argh, I had indeed missed some IO-related tests, hadn't noticed the new test_io docstring: # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # *

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Alexander Belopolsky
New submission from Alexander Belopolsky alexander.belopol...@gmail.com: Currently applying functools.partial to a callable that is already functools.partial object results in a nested object: from functools import partial def f(a,b,c): pass ... p = partial(partial(f, 1), 2) p.func,

[issue4331] Can't use _functools.partial() created function as method

2010-02-01 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Please see issue7830 for a related patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: modules to py3k. This is not an implementation detail. It is, otherwise I would have documented it. The fact that some developers are not using those APIs correctly doesn't change that. Note that PyUnicode_AsUnicode() only returns a

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le lundi 01 février 2010 à 19:21 +, Marc-Andre Lemburg a écrit : This is not an implementation detail. It is, otherwise I would have documented it. Ok, so the current allocation scheme of unicode objects is an implementation detail as

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-01 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Looking at the code in httplib it seems that response.will_close is set under the following circumstances, 1. HTTP version is 0.9 2. HTTP response header connection is set to close 3. Non-chunked content with a length of zero This suggests

[issue7813] Bug in command-line module launcher

2010-02-01 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Here is the patch you mentionned, it fixes my problem and seems unharmful indeed. The little problem is, I've not found related tests (test_pkgutil doesn't deal with the importer part) to ad little checks around compile(). Is that

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: The cmp(a, b) function is missing in 3.0. This change is slightly documented in Doc/whatsnew/3.0.rst: The cmp() function should be treated as gone. There's no -3 warning and no 2to3 fixer for it. -- messages: 98680 nosy: flox

[issue7640] buffered io seek() buggy

2010-02-01 Thread Pascal Chambon
Changes by Pascal Chambon chambon.pas...@gmail.com: Removed file: http://bugs.python.org/file15759/seek_cur_buffers_py26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7640 ___

[issue7640] buffered io seek() buggy

2010-02-01 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: BufferedRandom's seek() is still borken in the latest svn revision of python2.6 (I haven't checked python2.7 yet), so here is a new, smaller patch, tested with the 6 IO-related test suites this time, on win32 and linux. --

[issue7640] buffered io seek() buggy

2010-02-01 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: The patch itself... -- Added file: http://bugs.python.org/file16085/Py26_relative_seek.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7640

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The note starts out Do not (do x) unless you're not (doing y). This is confusing. I believe this means If you are (doing y), you may (do x). If so, please write it so. If not, please write what you do mean. After thinking about it, Only (do

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: PS. I only looked at the style of the patch. Once that is clearer, someone who knows more than me needs to review it for content correctness. -- ___ Python tracker rep...@bugs.python.org

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: As a replacement, it could be useful to propose a universal key for sort() method and sorted() builtin. lst = sorted([{2: '3'}, 1, '05'], key=list.ukey) There's a reference implementation in the pprint._safe_key private class. --

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: It is, otherwise I would have documented it. The fact that some developers are not using those APIs correctly doesn't change that. If, as Antoine claimed, 'it' is a documented feature of str strings, and Py3 says str = Unicode, it is a

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: client_address is not interresting, but I prefer the handler object (SimpleXMLRPCRequestHandler instance). The handler contains more information: * handler.address_string() gives the FQDN * handler.connection.getpeername() gives

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, I mean client_address is interresting, but ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3058 ___

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops oops oops, samwyse wrote exactly the same idea than me in the first comment! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3058

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No, cmp is not missing. It's intentionally removed, and won't come back. So closing this as won't fix. I'm not sure what you are aiming at with the universal key function; if you want a key function that guarantees a total order, use

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Ok. Maybe we need a -3 warning and/or a 2to3 fixer? -- components: +2to3 (2.x to 3.0 conversion tool) versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7831 ___ ___ Python-bugs-list

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: The current behavior of assertSameElements is not correctly documented. The unit test confirm that it is a tested behaviour. However it seems more useful to provide a method which compares the actual count of each element in both sequences.

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +Merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7832 ___ ___ Python-bugs-list mailing

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +Merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7831 ___ ___ Python-bugs-list mailing

[issue7831] cmp() is missing in 3.x

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think this should be discussed on python-dev (I believe it *has* been discussed on python-dev, I just don't remember the outcome). Creating fixers is not feasible, I think. In any case, it's an issue different from the one you reported.

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-02-01 Thread Christoph Gohlke
New submission from Christoph Gohlke cgoh...@uci.edu: Wininst-9.0.exe and wininst-9.0-amd64.exe are missing MSVCRT90 dependencies in the embedded manifest. While testing installers of pywin32 http://sourceforge.net/projects/pywin32/ version 214 built with Python 2.6.4 and the

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-01 Thread Robert Buchholz
Robert Buchholz r...@freitagsrunde.org added the comment: An example cannot be constructed using the standard python socket class. As you point out, the response.will_close attribute is set correctly: The client is supposed to close to connect after completion of the request (as does the

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This doesn't look right. IIUC, wininst.exe loads python26.dll, which in turn loads pywintypes.dll. So it should be python26.dll which loads the CRT. IIUC, wininst.exe is linked statically, precisely to avoid a dependency on the CRT

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Patch which adds method assertItemsEqual. However we could reuse the assertSameElements name, and replace the current implementation: it is still the alpha stage. -- keywords: +patch Added file:

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Flattening should only happen for instances of the exact type. When people create subclasses, there's usually a reason for it. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-02-01 Thread Christoph Gohlke
Christoph Gohlke cgoh...@uci.edu added the comment: The last line of my previous post should actually read python.exe setup.py bdist_wininst Anyway, here are three files (also attached) that can reproduce the problem: 1) setup.py from distutils.core import setup, Extension

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-02-01 Thread Mathew Martineau
New submission from Mathew Martineau m...@martineau.name: The sockaddr_l2 struct used with connect() has changed in recent versions of the Linux kernel. There is a new l2_cid member. connect() only works with L2CAP sockets if l2_cid is set to 0. Suggest initializing the whole sockaddr_l2

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Could you produce a patch? -- keywords: +easy nosy: +pitrou priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7834

[issue4772] undesired switch fall-through in socketmodule.c

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: Removed file: http://bugs.python.org/file15665/issue4772.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4772 ___

[issue4772] undesired switch fall-through in socketmodule.c

2010-02-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Minor change to the patch to correct for Antoine's suggestion. -- Added file: http://bugs.python.org/file16089/issue4772.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4772

[issue4772] undesired switch fall-through in socketmodule.c

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: Removed file: http://bugs.python.org/file16089/issue4772.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4772 ___

[issue4772] undesired switch fall-through in socketmodule.c

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: Added file: http://bugs.python.org/file16090/issue4772.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4772 ___

[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

2010-02-01 Thread Jesse Aldridge
Jesse Aldridge jessealdri...@gmail.com added the comment: I ran into an error while trying to use the shelve module. Alex Martelli seemed to think I was running into a python bug. He suggested I file a bug report. For more info see:

[issue7266] test_lib2to3 failure under Windows

2010-02-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: This looks to be fixed now [1]. The log shows 'test_lib2to3' passing. BTW, why do we run through Cygwin? I think to test on Windows as most Windows developers do things we need to use the native cmd.exe shell. [1]

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Antoine Flattening should only happen for instances of the exact type. I am attaching a variant of the patch that will only flatten if both nested and wrapping partial is of the exact type. Other possibilities would include

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Working on a more concise new draft... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6760 ___

[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

2010-02-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's a patch that fixes the problem for shelve. For the more general problem with Python shutdown and module cleanup, see issue 812369. I can come up with a sort-of unit test for this (setting _ClosedDict to None, calling close to

[issue5673] Add timeout option to subprocess.Popen

2010-02-01 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: - why do you say Thread.join() uses a busy loop? is it because it uses Condition.wait()? If so, this will be solved in py3k by issue7316 (which you are welcome to review). Otherwise, I think there should be an upper bound on the sleeping

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Okay; new, hopefully better, draft. Feedback? -- versions: -Python 3.1 Added file: http://bugs.python.org/file16094/subprocess.rst.patch ___ Python tracker rep...@bugs.python.org

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Most of the guts have already been reviewed, but here are some mainly minor comments on the last patch. Lib/test/symlink_support.py - No need to import print_function - I'd just put the docstrings on one line - A bunch of if tests are one-lined

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The raw_input() doesn't provide anything. I'd just drop that and pass the string directly to shlex.split. Do not put an argument-taking option together with its argument as a single item in the *args* list -- Something like Argument-taking

[issue7316] Add a timeout functionality to common locking operations

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7316 ___ ___ Python-bugs-list mailing

[issue5211] Fix complex type to avoid coercion in 2.7.

2010-02-01 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Mark, Is this still of interest? I found the relevant changes in py3k, but I am not sure it is the behavior that gumtree is expecting. Since py3k removes coercion completely, the test case from issue 3734 would just issue: Traceback (most

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: Here are four ways to generate things called in the documentation Abstract Syntax Trees (ASTs). Obviously they are not all the same kind of object: #!/usr/local/bin/python2.6 import sys import compiler import parser import ast STATEMENT =

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I don't see why the compiler module is any better than any of the other ways that produce reasonable AST. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6978

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I like that this patch adds a new method with the different behavior. They are both distinct and desirable behaviors. The existing behavior has already been shipped in Python 3.1 so it should not change. Also it is already in use via the

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7832 ___ ___ Python-bugs-list

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Chuck Rhode
Chuck Rhode crh...@lacusveris.com added the comment: I don't see why the compiler module is any better than any of the other ways that produce reasonable AST. It is available on Python releases older than 2.6? -- ___ Python tracker

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Gonna have to disagree about the raw_input(), because the escaping involved would complicate the example and could be distracting/confusing. Rest of Brian's suggestions taken into account. -- Added file:

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file14770/subprocess.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6760 ___

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file16094/subprocess.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6760 ___

[issue1683368] object.__init__ shouldn't allow args/kwds

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: FYI - A discussion on why this change may have been a bad idea and breaks peoples existing code: http://freshfoo.com/blog/object__init__takes_no_parameters -- nosy: +gregory.p.smith ___ Python

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-02-01 Thread Kees Bos
Kees Bos k@zx.nl added the comment: It's available at least since 2.4. We're using it in Pyjamas (pyjs.org) to generate javascript code from python code. If there are better ways to produce python asts, I'd be happy to know that. -- ___ Python

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Just out of curiosity, what are the use cases for assertSameElements? If one has two objects, doesn't care about the order and the duplicates then these two objects are most likely sets and assertSetEqual can be used instead. OTOH checking