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:
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.
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
___
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
___
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
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
Ezio Melotti ezio.melo...@gmail.com added the comment:
s/r77788/r77888/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7030
___
___
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.
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
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
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
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7823
___
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:
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
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
___
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!
--
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,
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
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
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
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
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
___
___
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
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
Changes by Matthieu Labbé bugs.python@mattlabbe.com:
--
nosy: +matthieu.labbe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3872
___
___
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
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
___
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
___
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
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
# *
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,
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
___
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
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
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
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
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
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
___
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.
--
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
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
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
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.
--
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
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
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
___
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
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
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
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
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.
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7832
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7831
___
___
Python-bugs-list mailing
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.
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
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
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
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:
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
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
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
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
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
___
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
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
___
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
___
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:
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]
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
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
___
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
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
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
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
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
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
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
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 =
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
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
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
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
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:
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
___
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
___
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
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
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
88 matches
Mail list logo