Favicon

[issue6943] setup.py fails to find headers of system libffi


Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA <at> GMail.Com> added the comment:

The previous patches don't work with Python 3, in which os.popen()
internally uses subprocess.Popen(), and also don't work during
crosscompilation, so I'm attaching the new patch.

----------
Added file: http://bugs.python.org/file15715/python-fix_search_for_libffi_headers.patch

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6943>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Richard Hansen | 1 Jan 2010 04:28
Favicon

[issue7615] unicode_escape codec does not escape quotes


New submission from Richard Hansen <rhansen <at> bbn.com>:

The description of the unicode_escape codec says that it produces "a
string that is suitable as Unicode literal in Python source code." [1] 
Unfortunately, this is not true as it does not escape quotes.  For example:

  print u'a\'b"c\'\'\'d"""e'.encode('unicode_escape')

outputs:

  a'b"c'''d"""e

I have attached a patch that fixes this issue by escaping single quotes.
 With the patch applied, the output is:

  a\'b"c\'\'\'d"""e

I chose to only escape single quotes because:
  1.  it simplifies the patch, and
  2.  it matches string_escape's behavior.

[1] http://docs.python.org/library/codecs.html#standard-encodings

----------
components: Unicode
files: unicode_escape_single_quotes.patch
keywords: patch
messages: 97112
nosy: rhansen
(Continue reading)

Ezio Melotti | 1 Jan 2010 06:04
Favicon

[issue7615] unicode_escape codec does not escape quotes


Changes by Ezio Melotti <ezio.melotti <at> gmail.com>:

----------
nosy: +ezio.melotti
priority:  -> normal
stage:  -> test needed

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue7615>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

ivank | 1 Jan 2010 06:38
Favicon

[issue7616] test_memoryview test_setitem_writable failures with Intel ICC


New submission from ivank <ivan <at> ludios.org>:

3 memoryview tests fail with Intel ICC 11.1. They don't fail with gcc
4.4.1-4ubuntu8 on the same machine.

======================================================================
FAIL: test_setitem_writable (__main__.BytesMemorySliceSliceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_memoryview.py", line 98, in test_setitem_writable
    self._check_contents(tp, b, b"ababcf")
  File "Lib/test/test_memoryview.py", line 290, in _check_contents
    self.assertEquals(obj[1:7], tp(contents))
AssertionError: bytearray(b'ababaf') != bytearray(b'ababcf')

======================================================================
FAIL: test_setitem_writable (__main__.BytesMemorySliceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_memoryview.py", line 98, in test_setitem_writable
    self._check_contents(tp, b, b"ababcf")
  File "Lib/test/test_memoryview.py", line 273, in _check_contents
    self.assertEquals(obj[1:7], tp(contents))
AssertionError: bytearray(b'ababaf') != bytearray(b'ababcf')

======================================================================
FAIL: test_setitem_writable (__main__.BytesMemoryviewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
(Continue reading)

Favicon

[issue7617] distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option() should recognize ${configuration_name}-gcc


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA <at> GMail.Com>:

distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option()
currently only recognizes "gcc" or "gcc-${version" (e.g. "gcc-4.4.2"),
but it doesn't recognize "${configuration_name}-gcc" (e.g. "x86_64-pc-
"x86_64-pc-linux-gnu-gcc-4.4.2"). Python is configured with such fully
qualified configuration names in some distributions (e.g. Gentoo).

Configuration names are described in:
http://sourceware.org/autobook/autobook/autobook_17.html
http://www.gnu.org/software/autoconf/manual/html_node/Specifying-

----------
assignee: tarek
components: Distutils
files: python-distutils-recognize_configuration_names.patch
keywords: patch
messages: 97114
nosy: Arfrever, tarek
severity: normal
status: open
title: distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option() should recognize ${configuration_name}-gcc
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15717/python-distutils-recognize_configuration_names.patch

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue7617>
_______________________________________
(Continue reading)

Favicon

[issue7617] distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option() should recognize ${configuration_name}-gcc


Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA <at> GMail.Com> added the comment:

This bug tracker removes parts of splitted, long lines when the
previous line was ending with '-' :( .

There should be:

"but it doesn't recognize "${configuration_name}-gcc"
(e.g. "x86_64-pc-linux-gnu-gcc") or
"${configuration_name}-gcc-${version}"
(e.g. "x86_64-pc-linux-gnu-gcc-4.4.2")."

The second URL has 2 parts:
http://www.gnu.org/software/autoconf/manual/html_node/
Specifying-Target-Triplets.html

----------

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue7617>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Antoine Pitrou | 1 Jan 2010 15:08
Favicon

[issue7615] unicode_escape codec does not escape quotes


Changes by Antoine Pitrou <pitrou <at> free.fr>:

----------
nosy: +lemburg

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue7615>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Benjamin Peterson | 1 Jan 2010 16:16
Favicon

[issue6943] setup.py fails to find headers of system libffi


Benjamin Peterson <benjamin <at> python.org> added the comment:

Fixed in r77212.

----------
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6943>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Benjamin Peterson | 1 Jan 2010 17:12
Favicon

[issue6491] Improve --with-dbmliborder option


Benjamin Peterson <benjamin <at> python.org> added the comment:

Applied in r77215.

----------
nosy: +benjamin.peterson
resolution:  -> accepted
status: open -> closed

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Mark Dickinson | 1 Jan 2010 18:29
Favicon

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format


Mark Dickinson <dickinsm <at> gmail.com> added the comment:

Applied to trunk in r77218.  The DeprecationWarning for the 'L' format 
needs to be merged to py3k.

----------
versions: +Python 3.2

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue5080>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org


Gmane