Ned Deily n...@acm.org added the comment:
A similar issue on StackOverflow reminded me that Distutils has support for the
ARCHFLAGS environment variable on Mac OS X which you can use when building a C
extension module to override the ARCH values that Python was built with. I
don't have Xcode
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11665
___
___
New submission from Graham Wideman initcont...@grahamwideman.com:
In Language Ref section 7 Compound Statements:
http://docs.python.org/release/3.1.3/reference/compound_stmts.html
there's a footnote regarding what happens to unhandled exceptions in a
try-except statement:
[1] The exception is
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
You should override the OPT variable as well. I tried:
$ CFLAGS= OPT=-fwrapv -O3 -Wall ./configure
Then make shows lines like:
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -fwrapv -O3 -Wall -I. -IInclude
-I./Include
Thomas Wouters tho...@python.org added the comment:
I'm not surprised this test takes up more memory... It claims to take up 9
times the test size in memory, with a minimum useful test size of 1G. With a
limit of 12G that would make the test size about 1.33G. However, it then
proceeds to
New submission from Larry Hastings la...@hastings.org:
The documentation for configparser.RawConfigParser.read_file() states:
Read and parse configuration data from the file or file-like object in f (only
the readline() method is used).
This was true in Python 3.1 and before. However in 3.2
Larry Hastings la...@hastings.org added the comment:
By the same token, readfp is now deprecate in favor of the new spelling
read_file. That change *is* mentioned in configparser. If I'm touching What's
New In Python 3.2, mind if I add a mention of that too?
--
Gunnar Aastrand Grimnes gromg...@gmail.com added the comment:
I came across the bug when trying to write XML documents to StringIO objects.
This does not work, since the output contains a mix of unicode and str objects,
and StringIO gets confused.
A better alternative is to use io.BytesIO,
David Kirkby david.kir...@onetel.net added the comment:
Thank you. That solved it, so you can close this.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11667
___
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11667
___
___
David Kirkby david.kir...@onetel.net added the comment:
I've just downloaded libffi-3.0.9 (the latest) and it builds with no problems
on my AIX 5.3 system.
Is there any chance of the version of libffi in Python being updated?
--
nosy: +drkirkby
New submission from Felix Gröbert groeb...@google.com:
As noted by secur...@python.org's response I'm filing this bug here.
In wsgiref.headers.Headers it is possible to include headers which
contain a newline (i.e. \n or \r) either through add_header or
__init__. It is not uncommon that
Davide Rizzo sor...@gmail.com added the comment:
The bugs seems not to be limited to the REPL.
# Python 2.6 with readline on Mac OS X
$ python -c raw_input()
^Z
[1]+ Stopped python -c raw_input()
$ fg
python -c raw_input()
Traceback (most recent call last):
File string, line
Roundup Robot devnull@devnull added the comment:
New changeset 1402c719b7cf by Ezio Melotti in branch '3.1':
#2650: Refactor the tests for re.escape.
http://hg.python.org/cpython/rev/1402c719b7cf
New changeset 9147f7ed75b3 by Ezio Melotti in branch '3.1':
#2650: Add tests with non-ascii chars
Ray.Allen ysj@gmail.com added the comment:
Comparing to the atexit() in C, I think this is the wrong behavior. I's weird
that error in atexit does't change process exit code while error in common
python code does. There should be a fix.
--
nosy: +ysj.ray
Roundup Robot devnull@devnull added the comment:
New changeset d52b1faa7b11 by Ezio Melotti in branch '2.7':
#2650: Refactor re.escape and its tests.
http://hg.python.org/cpython/rev/d52b1faa7b11
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
I did a few more tests and using a re.sub seems indeed slower (the
implementation is just 4 lines though, and it's more readable):
wolf@hp:~/dev/py/3.1$ ./python -m timeit -s 'import re,string; escape_pattern =
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Mar 25, 2011 at 12:25:21PM +, Davide Rizzo wrote:
Some remarks here:
1) the patch does fix it.
Yes!
I can't comment the rest except for what
.. function:: input([prompt])
states, which Davide surely have read
Ezio Melotti ezio.melo...@gmail.com added the comment:
The attached patch (issue2650.diff) adds '_' to the list of chars that are not
escaped.
--
keywords: +patch
Added file: http://bugs.python.org/file21390/issue2650.diff
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Thinking about this some more, I now think it is incorrect that an 8bit header
causes getitem to return a Header object. I think instead it should be
returning the stringified version of the header, including the unknown-8bit
encoding.
R. David Murray rdmur...@bitdance.com added the comment:
It is reasonably likely that the attached patch will fix this. It also removes
3 seconds of fixed overhead from the test.
--
keywords: +patch
nosy: +r.david.murray
stage: - patch review
versions: +Python 2.7, Python 3.1, Python
Ray.Allen ysj@gmail.com added the comment:
Agreed with nick's idea, the implicitly recreation of the context managers
would confuse users.
How about removing the generator must yield exactly one value restriction of
@contextlib.contextmanage? Then if I want a generator to be used as a
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Mar 25, 2011 at 01:51:46PM +, R. David Murray wrote:
I now think it is incorrect that an 8bit header causes getitem
to return a Header object.
I think instead it should be returning the stringified version
of the
Ray.Allen ysj@gmail.com added the comment:
A straight forward fix maybe making the interpreter exit code a static global
variable and change it in Modules/atexitmodule.c:atexit_callfuncs() in the case
of errors occurred.
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
I documented that? Where?
It is true that the fact that all headers will be objects when using the email6
API was one reason I did it this way, but in hindsight I don't think it was the
right choice. However, I/we may now be stuck
Antoine Pitrou pit...@free.fr added the comment:
Agreed with nick's idea, the implicitly recreation of the context
managers would confuse users.
Uh, why would it? That's exactly what I expect the decorator to do, and
I was astonished to discover that it *doesn't*.
--
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Mar 25, 2011 at 02:29:24PM +, R. David Murray wrote:
I documented that? Where?
Changeset: 67447:cad1811d9e13
user:R. David Murray rdmur...@bitdance.com
date:Fri Jan 07 23:25:30 2011 +
summary:
Ray.Allen ysj@gmail.com added the comment:
Agreed with nick's idea, the implicitly recreation of the context
managers would confuse users.
Uh, why would it? That's exactly what I expect the decorator to do, and
I was astonished to discover that it *doesn't*.
Because there is no
R. David Murray rdmur...@bitdance.com added the comment:
Heh.
OK, so I think we're stuck with it, then. It does mean I don't have to handle
certain other edge cases, and can punt more convenient handling of them into
email6. I'll make the patch for decode_header instead, then.
--
Éric Araujo mer...@netwok.org added the comment:
To complement Terry’s closing message: bdist_rpm is frozen in distutils,
removed in distutils2/packaging, but has a new life at
https://bitbucket.org/tarek/pypi2rpm/
--
nosy: +eric.araujo
___
Python
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.3 -3rd party, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1597850
___
R. David Murray rdmur...@bitdance.com added the comment:
OK, here is the patch.
--
keywords: +patch
Added file: http://bugs.python.org/file21392/decode_Header.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11584
Antoine Pitrou pit...@free.fr added the comment:
Because there is no *OBVIOUS* code or sign which can illustrate that
context manager changes from a one-shot to a reusable.
I'm talking about the decorator, not the context manager. Surely there
is a way for the decorator to instantiate a new
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Mar 25, 2011 at 03:04:29PM +, R. David Murray wrote:
OK, here is the patch.
Works fine at a first glance and for me - i see you didn't stuck :/.
Say, though not belonging here, can you think of problems incurred
in
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3754
___
Éric Araujo mer...@netwok.org added the comment:
I see some “fix for issue #NNN is bogus” in your patch: would you open separate
bug reports for those? A diff file is not a very useful way to report bugs or
express opinions wink.
--
___
Python
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8982
___
___
Antoine Pitrou pit...@free.fr added the comment:
Well, on my new setup (Windows 7 VM with a Python checkout located on an SMB
drive), the test sometimes passes and sometimes fails, regardless of the patch.
I suspect that maybe maildir requires atomicity guarantees that a network FS
won't
Éric Araujo mer...@netwok.org added the comment:
See also #3754.
Please remember that the bug tracker is meant to develop Python, not offer
support about autoconf or patch(1).
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 3.2
___
Python
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I don't think this is worthy of being in whatsnew.
Feel free to update the other docs though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11670
Éric Araujo mer...@netwok.org added the comment:
Note that I think it would be a perfectly reasonable feature request to better
isolate and improve the compiler in packaging/distutils2. (This does not mean
this issue should be delayed.)
--
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: docs@python - lukasz.langa
nosy: +lukasz.langa
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11670
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - pje
nosy: +pje
stage: - needs patch
title: Potential misuse of wsgiref.headers.Headers - Security hole in
wsgiref.headers.Headers
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Changes by Éric Araujo mer...@netwok.org:
--
keywords: +needs review, patch
stage: - patch review
versions: -Python 2.5, Python 2.6, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11669
STINNER Victor victor.stin...@haypocalc.com added the comment:
Let's try the Remote hg repo feature.
--
hgrepos: +8
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11393
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
keywords: +patch
Added file: http://bugs.python.org/file21393/ec274420e9e2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11393
Éric Araujo mer...@netwok.org added the comment:
LGTM. I’m not sure I’d add it in stable versions, though.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11666
___
R. David Murray rdmur...@bitdance.com added the comment:
Theoretically there should be no way to get bytes into that code path. I'm
sure there's a way if you try hard enough (I haven't tried directly assigning a
byte string as a header value, for example), but they would be broken uses of
STINNER Victor victor.stin...@haypocalc.com added the comment:
Ok, here is a full patch tested on Linux and Windows:
- Add faulthandler module (code, doc, tests) as a builtin module
- Add -X faulthandler=1 command line option and PYTHONFAULTHANDLER=1 en var
to enable the fault handler at
STINNER Victor victor.stin...@haypocalc.com added the comment:
(Reminder for me: add something to Doc/whatsnew/3.3.rst and Misc/NEWS)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11393
R. David Murray rdmur...@bitdance.com added the comment:
That could be, certainly. The code is depending on the mtime having a
resolution of at least one second. Try making the constant 61 instead of 60.
If that doesn't work, try putting the mtime back a lot farther and see if that
makes
Éric Araujo mer...@netwok.org added the comment:
Can you run “./python -m distutils.tests.test_archive_util”? We may get more
output.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
Alex is correct.
This part:
[^]*
can match an empty string, and it's nested with a repeated group. It stalls,
repeatedly matching an empty string.
Incidentally, my regex implementation (available on PyPI) returns [].
Łukasz Langa luk...@langa.pl added the comment:
Ouch, this would be my fault. I agree with Raymond, at this point I think we
should only update the docs.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11670
Antoine Pitrou pit...@free.fr added the comment:
Indeed, 61 seems to work. I don't understand the comment about one-second
granularity, shouldn't it be one-minute? (or why do you need 61?)
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Ned, does readline.read_init_file() with libedit?
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11664
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. You are right, I wasn't thinking clearly, and I copied that mtime setting
call from another test. Now I have no idea why 61 would work, unless the clock
between your virthost and your smb server is off by a minute?
--
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11640
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Hmm. You are right, I wasn't thinking clearly, and I copied that
mtime setting call from another test. Now I have no idea why 61 would
work, unless the clock between your virthost and your smb server is
off by a minute?
No, they seem
Ned Deily n...@acm.org added the comment:
readline.read_init_file() does work with libedit. The directives read have to
be in libedit format.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
R. David Murray rdmur...@bitdance.com added the comment:
Could you print out the mtime values that are being set, and the value of
self._mbox._last_read? Or, rather, print out the result of calls to
os.path.getmtime on the two directories after the mtime is changed.
--
Éric Araujo mer...@netwok.org added the comment:
Ditto for sysconfig.
--
nosy: +benjamin.peterson, jcea, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11600
___
Éric Araujo mer...@netwok.org added the comment:
What’s import __hello__? I don’t have it in any version from 2.4 to 3.2.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11614
Éric Araujo mer...@netwok.org added the comment:
get_makefile_filename also fails when run from a checkout.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6087
___
Éric Araujo mer...@netwok.org added the comment:
Is this worth a README or doc update?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11667
___
Antoine Pitrou pit...@free.fr added the comment:
before: os.path.getmtime('cur') = 1301075411.6942866
before: os.path.getmtime('new') = 1301075411.693287
after: os.path.getmtime('cur') = 1301075347.38
after: os.path.getmtime('new') = 1301075347.38
self._box._last_read = 1301075407.365
Éric Araujo mer...@netwok.org added the comment:
Okay, it doesn’t work with -m __hello__, but using -c import __hello__ I can
see the message in all versions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11614
Ezio Melotti ezio.melo...@gmail.com added the comment:
I put the list under the table and grouped a few more ABCs. If this patch is OK
I'll commit it.
--
Added file: http://bugs.python.org/file21394/issue10617-2.diff
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
“unencoded” is still here.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11071
___
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. 411-61=350. Three seconds difference looks a little odd. But doesn't
explain 60 vs 61 making the difference in the test.
Can you change it back to 60 (or even less) and see what the values look like
when the test fails?
It is
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file21395/10617-2.png
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10617
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11614
___
___
Éric Araujo mer...@netwok.org added the comment:
What about making the class names in the table not links?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10617
___
Phillip J. Eby p...@telecommunity.com added the comment:
It is not uncommon that developers provide web applications
to the public in which the HTTP response headers are not filtered for
newlines but are controlled by the user.
Really? Which applications, and which response headers?
Antoine Pitrou pit...@free.fr added the comment:
Hmm. 411-61=350. Three seconds difference looks a little odd. But
doesn't explain 60 vs 61 making the difference in the test.
Can you change it back to 60 (or even less) and see what the values
look like when the test fails?
Hmm, 60
R. David Murray rdmur...@bitdance.com added the comment:
All right, so how about I set the add factor to, say, 5, so that if things are
mostly in sync it will succeed, and otherwise just ignore your failures :)
--
___
Python tracker
Jacob Godserv jacobgods...@gmail.com added the comment:
I have two questions:
Will a new developer be assigned to this bug?
And, why are we wasting comments and grave-digging five-year-old discussions?
--
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11664
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Will a new developer be assigned to this bug?
If someone is willing to take charge, yes. We’re all volunteers, with varying
free time and skill sets. For example, I’m not an expert about compilation, so
I try to learn thanks to those issues.
Éric Araujo mer...@netwok.org added the comment:
See also the fifth piece in
http://docs.python.org/release/3.2/howto/pyporting#universal-bits-of-advice
Resources are here, but lack links.
--
resolution: out of date -
stage: - needs patch
status: pending - open
title: 2to3
Changes by Brett Cannon br...@python.org:
--
keywords: +needs review
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11572
___
Mike Frysinger vap...@users.sourceforge.net added the comment:
i really dont understand your point. python uses autoconf and therefore any
questions about python's usage of autoconf to accomplish cross-compiles is
completely valid here.
no one was asking for general autoconf help.
Éric Araujo mer...@netwok.org added the comment:
It seemed to me that there were quite a number of messages asking about how to
apply the patch and what to do after the configure step.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thanks for the updated patch.
-t = getattr(types, CodeType, None)
-if t is not None:
-d[t] = _copy_immutable
+d[types.CodeType] = _copy_immutable
What was the use case for this again? The defunct restricted mode, another VM
or something
Roundup Robot devnull@devnull added the comment:
New changeset b21fdfa0019c by R David Murray in branch '3.2':
#11584: Since __getitem__ returns headers, make decode_header handle them.
http://hg.python.org/cpython/rev/b21fdfa0019c
New changeset 12e39cd7a0e4 by R David Murray in branch
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11584
Roundup Robot devnull@devnull added the comment:
New changeset a805d4415e34 by Raymond Hettinger in branch '3.2':
Issue #11071: Fix whatsnew description of O/S access to raw bytes.
http://hg.python.org/cpython/rev/a805d4415e34
New changeset df1a1774a544 by Raymond Hettinger in branch
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11071
___
___
New submission from Mark Dickinson dicki...@gmail.com:
[From a problem encountered by an EPD user, analyzed by Robert Kern]
There appears to be an
if isinstance(size_or_initializer, (int, long)):
check in the Python 2.x source for multiprocessing.RawArray. As a result, the
following
New submission from Robert Kern robert.k...@gmail.com:
The constructor for multiprocessing.RawArray() takes an argument that is either
an integer size or a sequence to initialize the contents. To determine if the
argument is a size, it uses isinstance(x, int). This means that integers that
Mark Dickinson dicki...@gmail.com added the comment:
Duplicate of issue 11673 :-)
--
resolution: - duplicate
superseder: - RawArray does not accept long
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11672
Changes by Mark Dickinson dicki...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11672
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the patch.
Are there practical cases where the operator.index check is more useful that
the isinstance(..., (int, long)) check that you originally proposed
(off-tracker)? While I agree that it's the right fix in principle, the
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: - mark.dickinson
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11673
___
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11673
___
___
Python-bugs-list
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Looks good to me.
[...] but I couldn't find any patches that fix this specific issue.
Well, test_select_unbuffered() was only introduced a few days ago (changeset
cb148da52c47), so I'm not surprised :)
--
nosy: +nvawda
Roundup Robot devnull@devnull added the comment:
New changeset 9a184d8211f5 by R David Murray in branch '3.1':
#9557: eliminate 3 seconds of static overhead from test_mailbox.
http://hg.python.org/cpython/rev/9a184d8211f5
New changeset 268ab32a89a9 by R David Murray in branch '3.2':
Merge
R. David Murray rdmur...@bitdance.com added the comment:
Antoine agreed in IRC that this was an acceptable closure.
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
hgrepos: +9
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
___
Python-bugs-list mailing list
1 - 100 of 194 matches
Mail list logo