Branches

py3k-ceil-floor

View source
py3k-ceil-floor
Author Commit Message Labels Comments Date
250+ commits behind default.
Timo Paulssen
use math1, test custom classes with __float__, fix docstring.
Timo Paulssen
missing minus, removed "almost_equal".
Timo Paulssen
do the same changes with math.floor, too.
Timo Paulssen
math.ceil behaves a lot like cpython now.
Timo Paulssen
adapted a test case from 3.2/test/test_math for ceil.
Amaury Forgeot d'Arc
The Grand renaming: PyString->PyBytes
Amaury Forgeot d'Arc
cpyext: Implement the various FileSystem encoding functions.
Amaury Forgeot d'Arc
cpyext: implement PyBytes_FromObject.
Amaury Forgeot d'Arc
cpyext: implement PyUnicode_AsWideCharString.
Amaury Forgeot d'Arc
cpyext: Regenerates stubs.py. List is longer by 26 functions...
Amaury Forgeot d'Arc
cpyext: PyUnicode_AsWideCharString() now takes a PyObject*, not a PyUnicodeObject*
Amaury Forgeot d'Arc
cpyext: add definitions for Py_hash_t
Amaury Forgeot d'Arc
cpyext: add PyLong_AS_LONG
Amaury Forgeot d'Arc
Drop copy of _testcapimodule.c from CPython3.2
Amaury Forgeot d'Arc
Finally enable cpyext module. Yes!
Amaury Forgeot d'Arc
This str0 hack is no longer necessary :-)
Amaury Forgeot d'Arc
Ensure that zipimport paths don't contain NUL characters:
Amaury Forgeot d'Arc
Propagate no-NULness in str.replace()
Amaury Forgeot d'Arc
Translation fix for the buffer interface in cpyext
Amaury Forgeot d'Arc
Ensure that Pycode.co_filename is a string without NUL bytes.
Amaury Forgeot d'Arc
PyMethod_Class() is no more.
Amaury Forgeot d'Arc
Rename nb_nonzero to nb_bool
Amaury Forgeot d'Arc
Fix test_classmethod()
Amaury Forgeot d'Arc
cpyext: fix PyObject_AsCharBuffer, and remove
Amaury Forgeot d'Arc
zipimport.get_source() returns a unicode string. Test and fix.
Amaury Forgeot d'Arc
Make most zipimport tests pass with -A
Amaury Forgeot d'Arc
Improve error messages in tuple unpacking
Amaury Forgeot d'Arc
If it's decoded, it was certainly a bytes string.
Philip Jenvey
math.ceil/floor/trunc now fallback to their special methods
Philip Jenvey
2to3
Philip Jenvey
split distutils.sysconfig in 2, copy ours from 2.7
Philip Jenvey
this is now an AttributeError
Amaury Forgeot d'Arc
Apply 2.7 workarounds
Amaury Forgeot d'Arc
Skip this test: pypy does not crash here :-):
Amaury Forgeot d'Arc
cPickle was renamed to _pickle.
Amaury Forgeot d'Arc
Fix test, now passes with -A (cpython3.2) and without (py.py)
Amaury Forgeot d'Arc
Import is always absolute. This fixes many tests.
Amaury Forgeot d'Arc
Remove __builtin__.reload, it's now in imp module
Amaury Forgeot d'Arc
Fix most tests when run with -A.
Amaury Forgeot d'Arc
Fix tests in module/imp, and add -A support to run most of them.
Amaury Forgeot d'Arc
os.listdir() == os.listdir('.')
Amaury Forgeot d'Arc
listdir(bytes) is now the special case, be sure to test it.
Amaury Forgeot d'Arc
Fix error message: exec() is a function now.
Philip Jenvey
cpython issue1294232: fix certain cases of metaclass calculation
Philip Jenvey
print() should always call str()
Amaury Forgeot d'Arc
_posixsubprocess seems to translate and work correctly
Amaury Forgeot d'Arc
Translation hack: annotation of liststr2charpp fails when used both in RPython
Amaury Forgeot d'Arc
_posixsubprocess: handle the (usual) case when preexec_fn is None,
Amaury Forgeot d'Arc
Use signed number for array length, the binary search seems to use negative numbers.
Amaury Forgeot d'Arc
Fixes in _posixsubprocess module.
Philip Jenvey
fix an obscure bytes() bug
Philip Jenvey
add some docstrings, some required by test_descr
Philip Jenvey
reapply our 2.7 workarounds
Philip Jenvey
fix popen tests from default
Amaury Forgeot d'Arc
Port _posixsubprocess module.
Amaury Forgeot d'Arc
Apply 2.7 tweaks to 3.2 test_copy
Amaury Forgeot d'Arc
A small gc_collect() after "del", and all tests pass... almost!
Amaury Forgeot d'Arc
Disable StringDictStrategy again, and write a test.
Amaury Forgeot d'Arc
Add basic tests for RLock._release_save(),
Amaury Forgeot d'Arc
Use OverflowError for timeout float->long conversion, it's more precise than ValueError.
Amaury Forgeot d'Arc
One more implementation detail in test_multibytecodec
Amaury Forgeot d'Arc
Fix _sha modules until test_hashlib passes.
Philip Jenvey
+bytes/bytearray, -unicode tests
Philip Jenvey
fix range __length_hint__, test_xrange -> test_range
Philip Jenvey
oops, use importing.PYC_TAG (thanks amaury)
Philip Jenvey
merge default
Antonio Cuni
merge heads
Antonio Cuni
unskip and fix this test
Antonio Cuni
py3k-ify this test
Antonio Cuni
make sure that StringListStrategy actually wraps bytes
Philip Jenvey
add imp.get_tag
Philip Jenvey
restrict globals to an exact dict in exec/eval
Amaury Forgeot d'Arc
Finally found why translation of the _hashlib module segfaults with pypy:
Amaury Forgeot d'Arc
Fix _md5 tests
Amaury Forgeot d'Arc
hg backout 3eeeb257e9ca
Amaury Forgeot d'Arc
Fix translation
Amaury Forgeot d'Arc
annotation of range(): if start and step are non-negative,
Amaury Forgeot d'Arc
Skip another implementation detail.
Amaury Forgeot d'Arc
Skip some implementation details
Philip Jenvey
long -> integer in error messages
Philip Jenvey
add gc_collects
Philip Jenvey
add bytearray.maketrans and force it to always return exact bytes
Amaury Forgeot d'Arc
Skip implementation details in test_ast
Amaury Forgeot d'Arc
Add array.frombytes, depreate array_fromstring
Amaury Forgeot d'Arc
test_array.py: Apply 2.7 changes to 3.2
Amaury Forgeot d'Arc
Implement array._array_reconstructor: used with pickle protocol 3, allows
Amaury Forgeot d'Arc
Skip a test in test_aifc, like we do for 2.7.
Amaury Forgeot d'Arc
A bytes string is not a sequence of bytes characters, but a sequence of numbers.
Amaury Forgeot d'Arc
Fix most test_sqlite failures.
Amaury Forgeot d'Arc
_rawffi.Array('c') now store char as numbers, like bytes strings.
Amaury Forgeot d'Arc
Most integers are bigints in py3k
Amaury Forgeot d'Arc
Fix spaceconfig: usemodules is a tuple!
Amaury Forgeot d'Arc
Fix most cffi tests
Philip Jenvey
disable StringListStrategy for now to fix translation
Philip Jenvey
fix atexit's iteration order, missing import
Philip Jenvey
missing imports
Philip Jenvey
base binascii.Error on ValueError
Philip Jenvey
bool now rejects plain ints
Philip Jenvey
always try the right side comparison even when the types match exactly
Amaury Forgeot d'Arc
_ssl: Basic test for the server_hostname parameter,
Amaury Forgeot d'Arc
Tests and fixes for ssl certificates
Amaury Forgeot d'Arc
_ssl._SSLSocket.read() is also a readinto method.
Amaury Forgeot d'Arc
Copy some tweaks from the 2.7 version of the test suite.
Philip Jenvey
translation fixes
Amaury Forgeot d'Arc
hg merge default
Amaury Forgeot d'Arc
Fix test_unicodeobject, and remove two 'itertools' that are not useful anymore.
Amaury Forgeot d'Arc
Fix test_compiler
Philip Jenvey
merge default
Amaury Forgeot d'Arc
conftest.py is now importable by python3!
Amaury Forgeot d'Arc
Fixes in _ctypes module
Amaury Forgeot d'Arc
py3k-ify ctypes_test. Certainly incomplete, but at least they can be imported.
Amaury Forgeot d'Arc
py3k-ify the _ctypes module
Amaury Forgeot d'Arc
Use _ffi in ctypes module (Same hack as 2.7 version)
Amaury Forgeot d'Arc
Ensure that sys.stdout &co have a "mode" attribute.
Amaury Forgeot d'Arc
Attempt to enable _rawffi and _ffi
Amaury Forgeot d'Arc
Fix failing test in _rawffi
Amaury Forgeot d'Arc
Tweak test_fileio.py, just like version 2.7.
Amaury Forgeot d'Arc
hg merge default. Phew.
Antonio Cuni
hg merge default; in particular, this also merges the unicode-strategies branch; the merge was not completely straightforward because some strategies were migrated from string to unicode in py3k. However, earlier it was a mess and now all containers have separated strategies for string/bytes and unicode
Philip Jenvey
fix from/to_bytes default signed=False, add some more tests
Philip Jenvey
adapt to py3 and osx
Philip Jenvey
rename run_with_python's args to avoid clashing with arbitrary **definitions
Philip Jenvey
add more from/tobytes tests
Philip Jenvey
Antonio Cuni
more and more itertools
Antonio Cuni
py3k-ify syntax
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
more and more itertools
Antonio Cuni
add itertools a bit everywhere
Antonio Cuni
we need itertools very indirectly here. If we don't include it, we get an 'unknown encoding idna' problem; I suppose that 'import encodings' needs itertools to work
Antonio Cuni
guess what? We need itertools also here
Antonio Cuni
we need itertools for weakrefs
Antonio Cuni
we need itertools for test_copy
Antonio Cuni
we need itertools for test_insecure_pickle
Antonio Cuni
we need itertools for test_weakref
Antonio Cuni
we need itertools for test_pickle
Antonio Cuni
no idea why we imported itertools and re
Antonio Cuni
import pprint needs itertools now
Antonio Cuni
hg merge default; this has been painful because it also merged the translation-cleanup branch (again). It's possible that I break something, although most interpreter/objspace tests pass
Philip Jenvey
escape surrogates in marshal
Philip Jenvey
cleanup
Philip Jenvey
update input to py3
Philip Jenvey
bounds check for bad data (thanks amaury)
Amaury Forgeot d'Arc
Make lib_pypy/_marshal.py work for both Python2 and Python3.
Antonio Cuni
update to pyrepl c385792628a7 (py3k-readline branch); now even fancycompleter and colored tab-completion works :)
Philip Jenvey
add the surrogatepass error handler
Philip Jenvey
check for the magic encoding comment even w/ bytes and or PyCF_SOURCE_IS_UTF8
Philip Jenvey
clarify the intent of compile(), fix eval's bytes handling
Philip Jenvey
a couple more encoding related failures
Amaury Forgeot d'Arc
Update pyrepl from upstream (py3k-readline branch)
Amaury Forgeot d'Arc
io module: replace some ValueError by UnsupportedOperation.
Amaury Forgeot d'Arc
CPython issue 13343: Fix a crash when a lambda expression uses a global
Amaury Forgeot d'Arc
Skip an implementation detail, and cherry-pick change for CPython Issue #14177
Amaury Forgeot d'Arc
Also skip part of this test, like for 2.7
Amaury Forgeot d'Arc
Do the same changes as in the 2.7 test suite.
Amaury Forgeot d'Arc
test_itertools: skip some implementation details
Philip Jenvey
kill refs to the exceptions module
Philip Jenvey
2to3 most of lib_pypy except _ctypes/numpypy/pyrepl
Philip Jenvey
update error message
Philip Jenvey
partly revert b59013f9587e, this part is needed for the recently fixed
Antonio Cuni
catch the correct exception type for both pypy and cpython
Antonio Cuni
we must ignore the encoding cookie even if we are compiling bytes
Antonio Cuni
merge heads
Antonio Cuni
finish the work started in 97e1b1af67ce: run list comprehensions in their own scope, as we do for genexp, setcomp and dictcomp
Antonio Cuni
in-progress: make list comprehensions in their own function; I just check this is to push it on my notebook :-)
Amaury Forgeot d'Arc
Fix translation
Amaury Forgeot d'Arc
Fix syntax error when importing hashlib, or random, or tempfile.
Amaury Forgeot d'Arc
Like CPython, avoid too large factorials.
Amaury Forgeot d'Arc
Fix tests in _multiprocessing
Amaury Forgeot d'Arc
Remove socket.fromfd(), and dup() is now a module-level function.
Amaury Forgeot d'Arc
remove _socket.makefile: it's now implemented in socket.py.
Amaury Forgeot d'Arc
Fix translation
Philip Jenvey
fix tests for CO_FUTURE_BARRY_AS_BDFL
Philip Jenvey
fill in the optional _string module's docs
Amaury Forgeot d'Arc
Implement {:a} format spec for str.format().
Amaury Forgeot d'Arc
Implement "Barry as BDFL" compile flag.
Amaury Forgeot d'Arc
In "raise exc from cause", cause can be a exception type,
Amaury Forgeot d'Arc
Fix time module to pass tests.
Amaury Forgeot d'Arc
Fix tests when run with python3 and -A.
Amaury Forgeot d'Arc
Some fixes in the pure-python version of _sha512.
Amaury Forgeot d'Arc
One more collect() to fix the test.
Amaury Forgeot d'Arc
__unicode__ don't exist anymore. __bytes__ is now the space method that wekrefs have to forward.
Amaury Forgeot d'Arc
Add support for the __bytes__ special method.
Amaury Forgeot d'Arc
csv: fix tests when run with -A, then fix the implementation.
Amaury Forgeot d'Arc
Implement the %a format code.
Amaury Forgeot d'Arc
Fix two CPython specific tests
Amaury Forgeot d'Arc
Use 'surrogateescape' error handling in fsencode/fsdecode functions.
Amaury Forgeot d'Arc
Fix own tests in module/_codecs
Amaury Forgeot d'Arc
__eq__ should be called even when the object is compared with itself.
Amaury Forgeot d'Arc
Add a bunch of gc.collect() to test_weakref.
Amaury Forgeot d'Arc
Add timeout to RLock.acquire()
Amaury Forgeot d'Arc
PyPy extension: inspect.getargs() works on built-in functions.
Amaury Forgeot d'Arc
Fix one test in test_unicode.py
Amaury Forgeot d'Arc
Fix for -A tests which define a "cls.w_xxx"
Amaury Forgeot d'Arc
Fix %r formatting when given a string with printable character: the result is not ascii...
Amaury Forgeot d'Arc
Fix tests to pass with -A
Amaury Forgeot d'Arc
Remove pyexpat.Parser.returns_unicode (always True)
Amaury Forgeot d'Arc
pyexpat: add mappings for error messages.
Amaury Forgeot d'Arc
Fix test: don't mix unicode and byte strings in regexp search/replace.
Amaury Forgeot d'Arc
Fix test_app_sre when run with -A
Amaury Forgeot d'Arc
Found a way to have space.appexec() work with the -A option.
Amaury Forgeot d'Arc
hg merge default
Amaury Forgeot d'Arc
Skip an implementation detail about unitialized module.__dict__
Amaury Forgeot d'Arc
Context manager for mmap.
Philip Jenvey
utilize isfinite
Philip Jenvey
py3 round
Philip Jenvey
merge default
Antonio Cuni
revert 8617a5ed3187 and fix it by actually returning NotImplemented from complex.__lt__&co. Not sure this is the 100% right way to do it, but it seems to do the job
Antonio Cuni
implement isdisjoint for keys/items dict views
Antonio Cuni
merge heads
Antonio Cuni
if a complex number is created by just a negative imaginary part, the real part should be -0.0, not 0.0.
Antonio Cuni
the fact that complex.__lt__ & co. returns NotImplemented is an impl detail
Antonio Cuni
in pypy we simply don't have complex.__floordiv__, but TypeError is raised anyway when trying to // a complex number
Philip Jenvey
we still need to special case unwrapped defaults too, now w/ a test
Philip Jenvey
avoid OverflowErrors in specialised int tuples now that our w_int is long
Philip Jenvey
fix for py3 map
Antonio Cuni
add one more edge case to complex parsing
Antonio Cuni
allow special unicode decimal digits and spaces in complex ctor
Antonio Cuni
long is no longer there in py3k (sorry for the word play)
Antonio Cuni
hg merge default
Antonio Cuni
hg merge default
Philip Jenvey
use py3 __next__/builtins.next()
Philip Jenvey
fix None handling
Philip Jenvey
fdopen now resides in os
Philip Jenvey
py3 syntax
Philip Jenvey
fix for py3 map
Philip Jenvey
don't export SSL_CTX_clear_options unless we have it
Philip Jenvey
fix None default
Amaury Forgeot d'Arc
compile() and eval() accept unicode strings with a "-*- coding: -*-" cookie,
Amaury Forgeot d'Arc
py3k does not allow utf-8 surrogates.
Philip Jenvey
fix new None handling in exec
Philip Jenvey
rework py3k's bytes workaround directly to WrappedDefault
Philip Jenvey
merge default
Philip Jenvey
merge default
Philip Jenvey
o all classes are newstyle now and thus cachable
Philip Jenvey
__getslice__ -> __getitem__
Philip Jenvey
move the older py2 range tests (adapted to py3) into test_functional, they were
Philip Jenvey
thread -> _thread
Amaury Forgeot d'Arc
Fix range.__repr__, test passes._
Amaury Forgeot d'Arc
Fix tests for _cffi_backend
Philip Jenvey
fill in missing export for RPyThreadAcquireLockTimed
Philip Jenvey
move py3's isfinite into rcomplex with the rest of the impls
Philip Jenvey
merge default
Amaury Forgeot d'Arc
map(), filter(), zip() now return iterators.
1137 commits not shown.