[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-11-16 Thread Per Rosengren

Per Rosengren  added the comment:

On Linux:
>nm -C /lib/libc.so.6 |grep ' inet_aton'
000cbce0 W inet_aton

This means that when Python is build with GCC (like on linux), inet_aton
is in system libc. 

If you build with GCC in solaris, inet_aton will be taken from the GCC lib dir. 
You need to put that GCC lib dir in your LD_LIBRARY_PATH when you run Python.

--
nosy: +Per.Rosengren

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7010] Rounding when converting float tuple to str

2009-09-28 Thread Per Rosengren

New submission from Per Rosengren :

When a floating point value is stored, the actual value stored is 
something at most some small number eps larger or smaller than the 
original value. Python knows this, so if it stores 0.1, and then prints 
the stored value, it rounds off decimals less significant than eps.
For some reason, if it prints a tuple with the same value, it doesn't do 
the rounding properly. This behavior is incorrect, and very annoying for 
instance when printing manually entered constants in tuples.

'''Shows that floats in tuples are not rounded like floats.
>>> print(.1)
0.1
>>> print((.1,))
(0.10001,)
'''
import doctest
doctest.testmod(verbose=True)

--
components: Interpreter Core
messages: 93193
nosy: scientist47
severity: normal
status: open
title: Rounding when converting float tuple to str
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker 
<http://bugs.python.org/issue7010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7010] Rounding when converting float tuple to str

2009-09-28 Thread Per Rosengren

Per Rosengren  added the comment:

I tried Python 3.1, and it does indeed not have this issue. Thanks for 
swift response!

--

___
Python tracker 
<http://bugs.python.org/issue7010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com