Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Attached is a patch for configure.in and configure that implements Benjamin's
suggestion. The patch sets things up to continue to use -fno-strict-aliasing
on gcc versions that support -fno-strict-aliasing *and* generate
R. David Murray rdmur...@bitdance.com added the comment:
That sounds like the likely explanation.
--
resolution: - works for me
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Eric Smith e...@trueblade.com added the comment:
Meador: Your patch (-3) looks identical to mine (-2), unless I'm making some
mistake. Could you check? I'd like to get this applied in the next few days,
before 2.7b1.
Thanks!
--
___
Python tracker
Valerio turturici.vale...@gmail.com added the comment:
Now i make patches for other versions of Python.
How i try if the patched test still work with the older zlib?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8193
Nick Coghlan ncogh...@gmail.com added the comment:
I'm not sure simply changing the value is the right thing to do - with older
zlib versions (which do the wrong thing with 0), we definitely want that
exception to be triggered.
For newer versions, we want to check that passing in 0 worked as
Valerio turturici.vale...@gmail.com added the comment:
Seems that from Python 2.6 to 3.2 the test work fine. With -1 still raises the
exception. By the way, the original problem of Arkadiusz was with Python 2.5.
--
___
Python tracker
Valerio turturici.vale...@gmail.com added the comment:
The original test, with 0, pass in all versions of Python, from 2.6 to 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8193
___
New submission from Florent Xicluna florent.xicl...@gmail.com:
The regrtest returns success, even if the test suite is not run completely.
The last running test is test_unittest.
http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%20trunk/builds/171
...
51 tests OK.
2 tests skipped:
Michael Foord mich...@voidspace.org.uk added the comment:
I wonder if unittest.test.test_break runs and the signals.SIGINT it sends
terminates a process early? Do you have access to this platform to try it
Florent?
--
___
Python tracker
New submission from Nick Craig-Wood n...@craig-wood.com:
I just spend a while tracking down a bug in my code which turned out to be an
unexpected behaviour of hasattr.
Running this
class Test(object):
def __init__(self):
self.__private = Hello
def test(self):
New submission from Florent Xicluna florent.xicl...@gmail.com:
All the ARM Linux EABI buildbots fail on the same test.
http://www.python.org/dev/buildbot/all/builders/ARM%20Linux%20EABI%202.6/builds/5
test_float
test test_float failed -- Traceback (most recent call last):
File
Neil Muller drnlmuller+b...@gmail.com added the comment:
With the recent ElementTree changes on trunk, this bug no longer applies,
AFAICS.
--
nosy: +Neil Muller, flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3409
Florent Xicluna florent.xicl...@gmail.com added the comment:
Same failure on trunk:
http://www.python.org/dev/buildbot/all/builders/ARM%20Linux%20EABI%20trunk/builds/12
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8265
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
priority: - normal
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3409
R. David Murray rdmur...@bitdance.com added the comment:
You are correct, this is the expected behavior. Name mangling happens only at
compilation time (see
http://docs.python.org/reference/expressions.html#atom-identifiers). A doc
note for get/setattr would probably be useful.
(I removed
Valerio turturici.vale...@gmail.com added the comment:
I try again and ValueError not raised. The test pass without problem, both
Python 2.6 and next.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8193
Valerio turturici.vale...@gmail.com added the comment:
P.S: the value it's default, 0.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8193
___
Neil Muller drnlmuller+b...@gmail.com added the comment:
Is it preferable to specify a URL for the Source
field in a .spec file (rather than just a filename)?
Fedora (see for example http://fedoraproject.org/wiki/Packaging/SourceURL )
encourages using a full url when available, so having
Florent Xicluna florent.xicl...@gmail.com added the comment:
Sorry, but I don't have such environment.
Proposed patch will add a notice if the regrtest is interrupted (Ctrl+C).
And the exitcode is set to 1, meaning test failed for the buildbot.
--
keywords: +patch
Added file:
Michael Foord mich...@voidspace.org.uk added the comment:
That sounds very useful from a diagnostic point of view. If it does turn out to
be the problem then we will have to disable the test for that platform. At the
moment test_break runs on all platforms that have os.kill(...).
--
Changes by Florent Xicluna florent.xicl...@gmail.com:
Removed file: http://bugs.python.org/file16697/issue8263_regtest_SIGINT.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8263
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Slightly different, with a count of omitted tests
And removed All .. tests OK is there's some tests omitted.
--
Added file: http://bugs.python.org/file16698/issue8263_regtest_SIGINT_v2.diff
Changes by tdjacr tdjacr.f...@gmail.com:
--
nosy: thedjatclubrock
severity: normal
status: open
title: tarfile library should support xz compression
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
New submission from tdjacr tdjacr.f...@gmail.com:
See http://bugs.python.org/issue6715 for more info regarding support of .xz in
general
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8266
tdjacr tdjacr.f...@gmail.com added the comment:
https://launchpad.net/pyliblzma may help?
--
components: +Library (Lib)
versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python
3.3
___
Python tracker rep...@bugs.python.org
tdjacr tdjacr.f...@gmail.com added the comment:
Once xz is implemented, xz compatibility should be added to the tarfile library.
--
nosy: +thedjatclubrock
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6715
Brian Curtin cur...@acm.org added the comment:
Duplicate of #5689.
--
nosy: +brian.curtin
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8266
Meador Inge mead...@gmail.com added the comment:
Hi Eric,
(-2) and (-3) are different. The changes that I made, however, are pretty
minor. Also, they are all in 'test_builtin.py'.
--
___
Python tracker rep...@bugs.python.org
Cyril c...@excellency.fr added the comment:
Hmm, indeed. What you can do, very simply, is cache the getvalue()
result once you have generated it.
After some thoughts, it's not really an option: my cStringIO.StringIO buffer
is, well a buffer. To append data to the buffer, I call
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Which functions are affected by this change?
Py_UNICODE_ISLINEBREAK()? unicode.splitlines()?
--
assignee: - flox
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
If socket.write() returns zero byte written, I'll have to wait until I
get another chance to send my buffer. But in the meantime, some more
data might get appended to the buffer, and the string returned by
getvalue() will be different from the
Changes by Florent Xicluna florent.xicl...@gmail.com:
Removed file: http://bugs.python.org/file16698/issue8263_regtest_SIGINT_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8263
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Regrtest.py fixed with r79497 to report keyboard interrupt as a failure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8263
Florent Xicluna florent.xicl...@gmail.com added the comment:
Committed to trunk: r79494 and r79496.
Afaict, it changes Py_UNICODE_ISLINEBREAK, _PyUnicode_IsLinebreak and the
Unicode functions which depend on it (splitlines(), _sre module).
--
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Matthias, can you please take a look?
--
nosy: +doko, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8265
___
Benjamin Peterson benja...@python.org added the comment:
Thanks for the patch. Applied in r79499.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3326
Changes by Pascal Chambon chambon.pas...@gmail.com:
--
nosy: +pakal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
___
Python-bugs-list
Benjamin Peterson benja...@python.org added the comment:
Applied in r79500. Note I removed the error checking that a bound method
received an instance of the class as the first argument because that error
checking is a function of the calling of the function, not the binding of the
arguments.
Antoine Pitrou pit...@free.fr added the comment:
Committed in r79502, r79504 (trunk) and r79503 (py3k). Thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Kent Engström k...@lysator.liu.se:
The 2.[567] documentation recommends the use of the sort() method
to get a sorted list of dictionary keys. If would be less confusing
to new users if we recommended the sorted() functions instead.
The corresponding piece of Python 3
Changes by Kent Engström k...@lysator.liu.se:
--
title: Tutorial secion on dictionary keys recommends sort instead of sorted -
Tutorial section on dictionary keys recommends sort instead of sorted
___
Python tracker rep...@bugs.python.org
Matthias Klose d...@debian.org added the comment:
the buildbot labeled ARM Linux 3.x is an ARM EABI as well, compiler defaults
-march=armv7 -math=vfp -float-abi=softfp.
The failing test_float test is an ARM EABI, armv4, ARM mode, soft floating
point. I never did see the test_float test suceed
Florent Xicluna florent.xicl...@gmail.com added the comment:
Ported to 3.x with r79506
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
Filip Gruszczyński grusz...@gmail.com added the comment:
I have read, that I shouldn't directly use Py_FileSystemDefaultEncoding and
rather use PyUnicode_GetDefaultEncoding, so I have changed the code a little.
--
Added file: http://bugs.python.org/file16700/8256_3.patch
Changes by Filip Gruszczyński grusz...@gmail.com:
Removed file: http://bugs.python.org/file16688/8256_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8256
___
Changes by Filip Gruszczyński grusz...@gmail.com:
Removed file: http://bugs.python.org/file16689/8256_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8256
___
New submission from Antoine Pitrou pit...@free.fr:
New-style classes are weak referenceable, but old-style classes are not.
For a proper implementation of ABC caches without any memory leaks (see
issue2521), this limitation should be raised.
--
components: Interpreter Core
messages:
Changes by Antoine Pitrou pit...@free.fr:
--
dependencies: +Make old-style classes weak referenceable
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2521
___
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch.
--
keywords: +patch
nosy: +amaury.forgeotdarc
stage: needs patch - patch review
Added file: http://bugs.python.org/file16701/weakref-classobj.patch
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file16701/weakref-classobj.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8268
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file16702/weakref-classobj.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8268
___
New submission from Arnaud Fontaine ar...@debian.org:
For example, PyUnicode_FromFormat() does not specify the return value but it
does not seem to be only one. I only have a basic knowledge of Python C/API, so
I am not sure whether it is meaningful.
--
assignee: georg.brandl
Antoine Pitrou pit...@free.fr added the comment:
Hmm, Benjamin pointed out that ABCs only support new-style classes, so
old-style classes could be detected early instead of being added to the
_abc_negative_cache.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
By the way, Daniel, your patch doesn't look right.
First, you shouldn't need all the sortedlist/sortedset hierarchy.
Second, len(gc.get_objects()) is a truly horrible way of checking the classes
have been destroyed. Just take a weakref to the
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
I hadn't realized that old style classes didn't support ABCs. That certainly
simplifies things! I'm working on a new patch.
--
___
Python tracker rep...@bugs.python.org
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Are you sure the old-style classes don't support ABCs?
ABCTestCase.validate_isinstance in Lib/test/test_collection.py specifically
tests that both new-style and old-style classes work, unless I'm reading it
wrong.
(and those
Benjamin Peterson benja...@python.org added the comment:
In those cases, it's because __subclasscheck__ is overridden. You can't
register a old-style class.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Florent Xicluna florent.xicl...@gmail.com added the comment:
ABCTestCase.validate_isinstance ... specifically tests that
both new-style and old-style classes work...
I fixed some parts with issue #7624, and changeset r78800.
--
___
Python tracker
New submission from Denilson Figueiredo de Sá denilso...@gmail.com:
If you look at socket module, there are around 29 AF_* constants (like AF_INET).
On the other hand, there is only one PF_ constant: PF_PACKET. This constant is
also defined as AF_PACKET.
Following the There should be one--
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
nosy: +loewis
priority: - low
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8270
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
You can't register an old-style class, but many ABCs support duck-typing by
implementing __subclasshook__. ABCMeta caches those results and stores a
reference to old-style classes, sometimes in _abc_cache and sometimes in
Shashwat Anand anand.shash...@gmail.com added the comment:
I did not find any issue here.
Trunk running on OS X 10.6.2:
06:25:00 l0nwlf-MBP:test $ python2.7 -V
Python 2.7a4+
06:25:05 l0nwlf-MBP:test $ python2.7 test_pep263.py
test_compilestring (__main__.PEP263Test) ... ok
test_issue3297
Shashwat Anand anand.shash...@gmail.com added the comment:
I do not understand why python2.7 is marked in Version tag ?
I reproduced the error on 3.1 but no isues on 2.7
06:39:30 l0nwlf-MBP:data $ python2.7
Python 2.7a4+ (trunk:78750, Mar 7 2010, 08:09:00)
[GCC 4.2.1 (Apple Inc. build 5646)
Changes by Shashwat Anand anand.shash...@gmail.com:
--
nosy: +l0nwlf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7040
___
___
Python-bugs-list
Changes by Shashwat Anand anand.shash...@gmail.com:
--
nosy: +l0nwlf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1693050
___
___
Brian Curtin cur...@acm.org added the comment:
Here is a patch with some tests and doc changes.
I'm having trouble coming up with tests which will work with CTRL_C_EVENT and
CTRL_BREAK_EVENT. Based on my understanding of GenerateConsoleCtrlEvent, I
figured this example
Ilya Sandler ilya.sand...@gmail.com added the comment:
Is there anything else I can do for this patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7245
___
New submission from John Machin sjmac...@users.sourceforge.net:
Unicode 5.2.0 chapter 3 (Conformance) has a new section (headed Constraints on
Conversion Processes) after requirement D93. Recent Pythons e.g. 3.1.2 don't
comply. Using the Unicode example:
Changes by Brian Curtin cur...@acm.org:
Removed file: http://bugs.python.org/file16703/issue1220212.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1220212
___
Brian Curtin cur...@acm.org added the comment:
Removed an unnecessary goto and fixed a few tab/space inconsistencies (ugh).
--
Added file: http://bugs.python.org/file16704/issue1220212.patch
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
Fixed in trunk (r79518), release26-maint (r79519), py3k (r79520), and
release31-maint (r79521).
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.1, Python 3.2
Brian Curtin cur...@acm.org added the comment:
Anyone opposed to this being checked in? Other than some style issues which
I'll fix on checkin, I believe this is ready to go. I'd like to get it in so I
can backport it to 2.7 before the beta on Saturday.
--
assignee: eric.smith -
Eric Smith e...@trueblade.com added the comment:
I had some style issues at one point, but I haven't looked at it closely
recently. I won't have time to look at this before next week, so proceed
without me.
--
___
Python tracker
sorin sorin.sbar...@gmail.com added the comment:
For me the patch worked. It would be really nice to have it in 2.7 - I really
hate Python functions that are not working on Windows.
--
___
Python tracker rep...@bugs.python.org
New submission from workshed workshe...@gmail.com:
Just a minor nit (or I'm missing something), but the results of trying to use a
cStringIO.StringIO instance as a callable look wrong to me. It should of
course raise an exception, but shouldn't the 'cStringIO.StringO' and
'cStringIO.StringI'
76 matches
Mail list logo