[Python-Dev] Builtin functions are magically static methods?

2015-03-29 Thread Paul Sokolovsky
Hello, I looked into porting Python3 codecs module to MicroPython and saw rather strange behavior, which is best illustrated with following testcase: == def foo(a): print("func:", a) import _codecs fun = _codecs.utf_8_encode #fun = hash #fun = str.upper #fun = foo class Bar: me

Re: [Python-Dev] MemoryError and other bugs on AMD64 OpenIndiana 3.x

2015-03-29 Thread Jesus Cea
Sorry, I am currently traveling. Away from real computer until April 7th. On 28/03/15 10:48, Victor Stinner wrote: > Hi, > > The buildbot AMD64 OpenIndiana 3.x is always red since at least 6 > months. Almost always, tests fail because the buildbot has not enough > memory. Well, it's fun to see h

Re: [Python-Dev] Builtin functions are magically static methods?

2015-03-29 Thread Mark Shannon
On 29/03/15 19:16, Paul Sokolovsky wrote: Hello, I looked into porting Python3 codecs module to MicroPython and saw rather strange behavior, which is best illustrated with following testcase: == def foo(a): print("func:", a) import _codecs fun = _codecs.utf_8_encode #fun = hash

Re: [Python-Dev] Sporadic failures of test_subprocess and test_multiprocessing_spawn

2015-03-29 Thread Victor Stinner
Hi, 2015-03-28 12:26 GMT+01:00 Chris Angelico : > It seems to be stalling out. I'm not sure exactly what's happening > here. Running just that one file doesn't do it, but running the full > test suite results in a stall. Ok, I reproduced the issue on David's buildbot. A (child) process was stuck

Re: [Python-Dev] Sporadic failures of test_subprocess and test_multiprocessing_spawn

2015-03-29 Thread Victor Stinner
Hi Serhiy, 2015-03-28 17:40 GMT+01:00 Serhiy Storchaka : > Just run tests with low memory limit. > > (ulimit -v 6; ./python -m test.regrtest -uall -v > test_multiprocessing_spawn;) > > test_io also hangs. I confirm that some tests using threads hang under very low memory condition. At bootstr

Re: [Python-Dev] cpython: Issue #23752: When built from an existing file descriptor, io.FileIO() now only

2015-03-29 Thread Serhiy Storchaka
On 30.03.15 04:22, victor.stinner wrote: https://hg.python.org/cpython/rev/bc2a22eaa0af changeset: 95269:bc2a22eaa0af user:Victor Stinner date:Mon Mar 30 03:21:06 2015 +0200 summary: Issue #23752: When built from an existing file descriptor, io.FileIO() now only calls fstat