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

2010-02-01 Thread Ezio Melotti
Ezio Melotti 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 if two sequences have

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

2010-02-01 Thread Kees Bos
Kees Bos 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 tracker

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

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith 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 tracker

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

2010-02-01 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file16094/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-02-01 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file14770/subprocess.rst.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-02-01 Thread Chris Rebert
Chris Rebert 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: http://bugs.python.org/file16095/subprocess.rst.pa

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

2010-02-01 Thread Chuck Rhode
Chuck Rhode 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

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

2010-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith 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 http://code.goog

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

2010-02-01 Thread Benjamin Peterson
Benjamin Peterson 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 ___

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

2010-02-01 Thread Chuck Rhode
Chuck Rhode 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 = 'd[1,] = 2' print 'l

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

2010-02-01 Thread Meador Inge
Meador Inge 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 recent call last)

[issue7316] Add a timeout functionality to common locking operations

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-02-01 Thread Brian Curtin
Brian Curtin 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 options should not

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

2010-02-01 Thread Brian Curtin
Brian Curtin 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 Lib/test/test_wi

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

2010-02-01 Thread Chris Rebert
Chris Rebert 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 _

[issue5673] Add timeout option to subprocess.Popen

2010-02-01 Thread Reid Kleckner
Reid Kleckner 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 granularity

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

2010-02-01 Thread Brian Curtin
Brian Curtin added the comment: I haven't yet had a chance to look into what caused the failures, but test_tarfile did not pass. This is on Windows 7 x64. == ERROR: test_extract_hardlink (__main__.MiscReadTest) --

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

2010-02-01 Thread R. David Murray
R. David Murray 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 prove it doesn't generat

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

2010-02-01 Thread Chris Rebert
Chris Rebert added the comment: Working on a more concise new draft... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Alexander Belopolsky
Alexander Belopolsky 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 flattening partial_subtype(f

[issue7266] test_lib2to3 failure under Windows

2010-02-01 Thread Meador Inge
Meador Inge 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] http://www.python.org/dev/buildbot/builders/x

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

2010-02-01 Thread Jesse Aldridge
Jesse Aldridge 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: http://stackoverflow.com/questions/2180946/really-weird-issue-with-shelve-python

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

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

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

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16089/issue4772.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-02-01 Thread Brian Curtin
Brian Curtin 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 _

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

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file15665/issue4772.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you produce a patch? -- keywords: +easy nosy: +pitrou priority: -> normal stage: -> needs patch ___ Python tracker ___ _

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

2010-02-01 Thread Mathew Martineau
New submission from Mathew Martineau : 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 struct to 0 in getsocka

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

2010-02-01 Thread Christoph Gohlke
Christoph Gohlke 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 setup(name='testpyd', scripts =

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou 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

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

2010-02-01 Thread Florent Xicluna
Florent Xicluna 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: http://bugs.python.org/file16087/issue7832_assertIt

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

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis 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 assembly. -- nosy

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

2010-02-01 Thread Robert Buchholz
Robert Buchholz 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 server). However, when the

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

2010-02-01 Thread Christoph Gohlke
New submission from Christoph Gohlke : Wininst-9.0.exe and wininst-9.0-amd64.exe are missing MSVCRT90 dependencies in the embedded manifest. While testing installers of pywin32 version 214 built with Python 2.6.4 and the msvc9compiler_stripruntimes_r

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

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis 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. -- __

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

2010-02-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2010-02-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2010-02-01 Thread Florent Xicluna
New submission from Florent Xicluna : 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. There's alrea

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

2010-02-01 Thread Florent Xicluna
Changes by Florent Xicluna : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2010-02-01 Thread Florent Xicluna
Florent Xicluna 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 __

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

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis 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 key=id. -- no

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor added the comment: Oops oops oops, samwyse wrote exactly the same idea than me in the first comment! -- ___ Python tracker ___ ___

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor added the comment: Oops, I mean "client_address is interresting, but ..." -- ___ Python tracker ___ ___ Python-bugs-lis

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor 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 the client address * handler.

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy 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 plausible inference. -

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

2010-02-01 Thread Florent Xicluna
Florent Xicluna 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. -- __

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

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy 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 ___

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

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy 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 x) if you are

[issue7640] buffered io seek() buggy

2010-02-01 Thread Pascal Chambon
Pascal Chambon added the comment: The patch itself... -- Added file: http://bugs.python.org/file16085/Py26_relative_seek.patch ___ Python tracker ___

[issue7640] buffered io seek() buggy

2010-02-01 Thread Pascal Chambon
Pascal Chambon 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
Changes by Pascal Chambon : Removed file: http://bugs.python.org/file15759/seek_cur_buffers_py26.patch ___ Python tracker ___ ___ Python-bugs-l

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

2010-02-01 Thread Florent Xicluna
New submission from Florent Xicluna : 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 priority: normal s

[issue7813] Bug in command-line module launcher

2010-02-01 Thread Pascal Chambon
Pascal Chambon 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 patch worth commiting anywa

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

2010-02-01 Thread Sijin Joseph
Sijin Joseph 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 that the underlying s

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou 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 well, right?

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 pointer to the Py_UNI

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

2010-02-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please see issue7830 for a related patch. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7830] Flatten nested functools.partial

2010-02-01 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : 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, p.args (, (2,)) Propos

[issue6939] shadows around the io truncate() semantics

2010-02-01 Thread Pascal Chambon
Pascal Chambon 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 # * test_fileio - tests FileIO # * t

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 HAVE_USABLE_WCHAR

[issue7798] document pydoc methods

2010-02-01 Thread anatoly techtonik
anatoly techtonik added the comment: I won't mind against the pager module in the main library. -- ___ Python tracker ___ ___ Python-b

[issue7749] pydoc error - "No module named tempfile"

2010-02-01 Thread R. David Murray
R. David Murray added the comment: Just FYI, it was backported to 2.6 in r76313. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___

[issue3872] Python 2.6rc2: Tix ComboBox error

2010-02-01 Thread Matthieu Labbé
Changes by Matthieu Labbé : -- nosy: +matthieu.labbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc 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 >CreateDirectoryW(PyUnicode_AS_UNICODE(po),

[issue6906] Tkinter sets an unicode environment variable on win32

2010-02-01 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Windows keywords: +needs review nosy: +brian.curtin priority: -> normal stage: -> test needed type: -> behavior ___ Python tracker ___

[issue7805] test_multiprocessing failure

2010-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.6, Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7805] test_multiprocessing failure

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou 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 self.assert

[issue6906] Tkinter sets an unicode environment variable on win32

2010-02-01 Thread Jon Foster
Jon Foster 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 offending variables are TK_

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

2010-02-01 Thread Brian Curtin
Brian Curtin added the comment: The patch intentionally doesn't use assertIsInstance because that method doesn't exist in 2.6. -- ___ Python tracker ___

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

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think checking errno would be fine (provided it eliminates all variations ot this bug). -- ___ Python tracker ___ ___

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

2010-02-01 Thread Stefan Krah
Stefan Krah 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, additional checks would need to

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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! -- ___ Pytho

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

2010-02-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: georg.brandl -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list m

[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 : >From python-dev: On Fri, Jan 29, 2010 at 15:04, 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 Coghlan wrote: >> >>> Agreed. We originally switched Unladen S

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

2010-02-01 Thread Andrew Dalke
Andrew Dalke 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: http://bugs.python.org/file16

[issue7823] multiplying a list of dictionaries

2010-02-01 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7823] multiplying a list of dictionaries

2010-02-01 Thread R. David Murray
R. David Murray 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 objects. So lists and

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

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a particularly verbose patch for the information it is trying to convey. -- nosy: +pitrou ___ Python tracker ___ ___

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Antoine Pitrou
Antoine Pitrou 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 end of the st

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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. The new IO library mak

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

2010-02-01 Thread Ezio Melotti
Ezio Melotti added the comment: s/r77788/r77888/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-02-01 Thread Ezio Melotti
Ezio Melotti 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

[issue7826] support caching for 2to3

2010-02-01 Thread Martin v . Löwis
Martin v. Löwis 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 put the output (3.x)

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Changes by Brian Harring : Removed file: http://bugs.python.org/file16080/2to3-caching.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Changes by Brian Harring : Removed file: http://bugs.python.org/file16078/2to3-caching.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Brian Harring 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. Doubly pardon. As f

[issue7826] support caching for 2to3

2010-02-01 Thread Brian Harring
Brian Harring 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: http://bugs.python.or