Re: [Python-Dev] Memoryviews should expose the underlying memory address

2012-09-20 Thread Stefan Krah
ess. People who use the pointer via ctypes etc. should know the implications. I've opened #15986 for this. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-28 Thread Stefan Krah
I'm consistently measuring now. Thanks, Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-28 Thread Stefan Krah
793236 time: 0.348100s decimal: result: 3.141592653589793236 time: 43.241220s Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-29 Thread Stefan Krah
vered by float" For numerical programs, 1.4x (9 digits) to 3x (19 digits) slower would be accurate. On Windows the difference is even less. For output formatting, cdecimal is faster than float (at least it was when I posted a benchmark a couple of m

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-29 Thread Stefan Krah
impressive indeed. Of course, if you compare a pure C program that uses libmpdec to a C program that uses floats, the difference will be much higher. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/list

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-30 Thread Stefan Krah
Stefan Krah wrote: > Precision: 19 decimal digits > > float: > result: 3.1415926535897927 > time: 0.112874s > > cdecimal: > result: 3.141592653589793236 > time: 0.348100s > > decimal: > result: 3.141592653589793236 > time: 43.241220s Apparently there wer

Re: [Python-Dev] [Python-checkins] cpython (3.3): Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't

2012-09-30 Thread Stefan Krah
have ... -ansi -DCONFIG_64=1 -DASM=1 ... but the build is silently non-asm. Like for pymath.c, __asm__ is tested for and selected in ./configure. So I'll replace asm with __asm__, same as in pymath.c and ceval.c. Stefan Krah ___ Python-

Re: [Python-Dev] [Python-checkins] cpython (3.3): Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't

2012-09-30 Thread Stefan Krah
/README.txt Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Bad python 2.5 build on OSX 10.8 mountain lion

2012-10-02 Thread Stefan Krah
he 10.7 version of Apple's python2.5 is compiled with > llvm-gcc and handles 2**31 correctly. Yes, this looks like http://bugs.python.org/issue11149 . Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] Bumping autoconf from 2.68 to 2.69

2012-10-16 Thread Stefan Krah
to /home/user/bin or something similar. Installing autoconf from source really takes about 3 minutes. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.or

Re: [Python-Dev] Fwd: Python 3.3 can't sort memoryviews as they're unorderable

2012-10-25 Thread Stefan Krah
emoryview? A lot of documentation has been written and released as well. Use it. In case you don't know: If a PEP and the current documentation diverge, the documentation takes precedence. Stefan Krah ___ Python-Dev mailing list Pyth

Re: [Python-Dev] Python 3.3 vs. Python 2.7 benchmark results (again, but this time more solid numbers)

2012-10-27 Thread Stefan Krah
ter > >> Avg: 0.823600 -> 0.015200: 54.18x faster > > I think the original explanation was cDecimal vs decimal. Yes, the magnitude of the speedup looks correct. In an isolated benchmark with the large input file [1] I'm getting 30x speedup for telco. Stefan Krah [1]

Re: [Python-Dev] [Python-checkins] cpython (3.3): Issue #15814: Use hash function that is compatible with the equality

2012-11-03 Thread Stefan Krah
they were supposed to spell out the equality-hash relationship. But that isn't obvious, so I'll add a comment or remove them. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] python 3.3 module test failures on FreeBSD 9 amd64

2012-12-08 Thread Stefan Krah
s.py", line 1211, in > test_setegid >     self.assertRaises(os.error, os.setegid, 0) > AssertionError: OSError not raised by setegid This is harmless and occurs if the test user is in the wheel group, see: http://bugs.python.org/issue14110 Stefan Krah _

[Python-Dev] hg.python.org down

2012-12-22 Thread Stefan Krah
Hi, hg.python.org seems to be unreachable (tested from various IP addresses). Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] test___all__ polluting sys.modules?

2012-12-30 Thread Stefan Krah
ecimal'] explicitly before calling dumps()/loads(). See: PythonAPItests.test_pickle() ContextAPItests.test_pickle() test_decimal ruthlessly switches sys.modules['decimal'] many times. At the end of all tests there is a sanity check that asserts that the number

Re: [Python-Dev] test___all__ polluting sys.modules?

2012-12-30 Thread Stefan Krah
randomized. Here's an example that might not have been caught with clean-env tests: http://bugs.python.org/issue7384 Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] PyTypeObject type names in Modules/

2013-01-03 Thread Stefan Krah
n the Python version of 3.3 we have this: >>> Element.__module__ 'xml.etree.ElementTree' So IMHO changing the C version to do the same in 3.3.1 is a compatibility fix. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] Point of building without threads?

2013-01-08 Thread Stefan Krah
t; prod at things like correct signal handling and whatnot. For OpenBSD the situation should be fixed in the latest release: http://www.openbsd.org/52.html#new I haven't tried it myself though. Stefan Krah ___ Python-Dev

Re: [Python-Dev] is this the fault of import_fresh_module or pickle?

2013-01-08 Thread Stefan Krah
ove something, but this requirement is rather special; personally I'm okay with switching sys.modules explicitly in the tests, because that reminds me of what pickle does. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] is this the fault of import_fresh_module or pickle?

2013-01-08 Thread Stefan Krah
Eli Bendersky wrote: > On Tue, Jan 8, 2013 at 8:05 AM, Stefan Krah wrote: > > pickle always looks up sys.modules['xml.etree.ElementTree']. Perhaps we > could improve something, but this requirement is rather special; > personally > I'm okay with sw

[Python-Dev] FreeBSD-9.0 bot running --without-doc-strings

2013-01-26 Thread Stefan Krah
f the failures get annoying just open a tracker issue, and I'll revert the change. Stefan Krah ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

[Python-Dev] Anyone building Python --without-doc-strings?

2013-01-26 Thread Stefan Krah
linux-x86_64-3.4/ 24K build/lib.linux-x86_64-3.4/__pycache__ 3.8Mbuild/lib.linux-x86_64-3.4/ $ ls -lh python 1.6M Jan 26 16:33 python $ ls -lh libpython3.4m.a 9.4M Jan 26 16:33 libpython3.4m.a Stefan Krah ___ Python-Dev mailing list Python-

Re: [Python-Dev] Anyone building Python --without-doc-strings?

2013-01-26 Thread Stefan Krah
Stefan Krah wrote: > I'm not sure how accurate the output is for measuring these things, but > according to ``ls'' and ``du'' the option is indeed quite worthless: > > ./configure CFLAGS="-Os -s" LDFLAGS="-s" && make > 1.8M Ja

<    1   2   3   4