Changes by Oren Milman :
Added file: http://bugs.python.org/file43434/badMicroBenchProposedPatches.diff
___
Python tracker
<http://bugs.python.org/issue27298>
___
___
Changes by Oren Milman :
Added file: http://bugs.python.org/file43435/proposedPatches.diff
___
Python tracker
<http://bugs.python.org/issue27298>
___
___
Python-bug
Oren Milman added the comment:
Except for some trailing spaces I have just found in my original proposed
patches, I don't have any extra changes to add. So as soon as Brett answers
about those two assignments, I would update and upload the patches diff file.
With regard to terminolo
Oren Milman added the comment:
Also, Brett was the one who added the three terms to the glossary in
https://hg.python.org/cpython/rev/ea5767ebd903, and a clarification of 'finder'
in https://hg.python.org/cpython/rev/88cee7d16ccb, so I guess his input in this
matter also would
New submission from Oren Milman:
current state
In six different functions, the following happens:
1. Function x calls _PyLong_New, with var y as the size argument.
* Among others, _PyLong_New sets the ob_size of the new int to y (the
size argument it
Changes by Oren Milman :
Added file: http://bugs.python.org/file43609/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue27441>
___
___
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file43608/issue27441_ver1.diff
___
Python tracker
<http://bugs.python.org/issue27
Changes by Oren Milman :
Added file: http://bugs.python.org/file43662/patchedCPythonTestOutput_ver2.txt
___
Python tracker
<http://bugs.python.org/issue27441>
___
___
Oren Milman added the comment:
I am sorry, but I can't see why micro-benchmarking is needed here, as my
patches only remove code that does nothing, while they don't add any new code.
The assembly the compiler generates (on my PC) for 'Py_SIZE(v) = negative ?
-ndigits
Oren Milman added the comment:
Note that http://bugs.python.org/issue26896 is now closed (the patches proposed
in it (with some minor changes) were committed).
--
nosy: +Oren Milman
___
Python tracker
<http://bugs.python.org/issue20
Oren Milman added the comment:
That's awesome! Thanks :)
--
___
Python tracker
<http://bugs.python.org/issue26896>
___
___
Python-bugs-list mailing list
Oren Milman added the comment:
I would be happy to write a patch for this issue, if you don't mind.
Terry, as you were the one to commit the patch for #21559, I guess you are OK
with keeping the OverflowError.
Also, I agree that the error message for '_testcapi.getargs_b(-1)' (a
Oren Milman added the comment:
ImpImporter was first added in changeset 37808
(https://hg.python.org/cpython/rev/ccc0b5412799) and updated a day later in
changeset 37821 (https://hg.python.org/cpython/rev/3135648026c4).
Both of these commits were introduced to support PEP 302.
Since then
Oren Milman added the comment:
Thanks for the review, Mark :)
--
___
Python tracker
<https://bugs.python.org/issue27214>
___
___
Python-bugs-list mailin
New submission from Oren Milman:
In Parser\tokenizer.c, in tok_get, in the identification of a potential NUMBER
token, in case the token starts with a '0', the next char of the token is
retrieved, followed by two redundant checks:
if (c == '.')
goto fraction;
if
Oren Milman added the comment:
Sorry for being so clueless.
The diff is attached.
I manually did some checks to verify that relevant stuff work correctly (the
imaginary number 0j, and fractions starting with '0.').
I run 'python -m test', and got the following output:
New submission from Oren Milman:
In Parser\parser.c in classify, the 'str' parameter is assigned into the local
variable 's'. However, 'str' is not used anywhere else in the function, which
makes 's' redundant.
My proposal is to simply remove '
New submission from Oren Milman:
the proposed changes:
1. it seems there is some mix-up with the terms 'importer' and 'finder' (and
rarely also 'loader') in the import system and in related code (I guess most of
it is just relics from the time before PEP 302)
Changes by Oren Milman :
Added file: http://bugs.python.org/file42667/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue26896>
___
___
Python-bug
Changes by Oren Milman :
Added file: http://bugs.python.org/file42668/patchedCPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue26896>
___
___
Pytho
Oren Milman added the comment:
thanks for the review!
I replied to both of your comments, though I am not sure what is expected of me
in the rest of the process.
Whatever it is, I would be happy to help as much as I can.
--
___
Python tracker
New submission from Oren Milman:
the proposed changes:
I believe there are some mistakes in the following docstrings:
1. in Lib/importlib/_bootstrap.py:
- _module_repr - a typo
- _exec - I believe 'Execute the module specified by the spec' is more
accurate than
Changes by Oren Milman :
Added file: http://bugs.python.org/file42771/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue26972>
___
___
Python-bug
Changes by Oren Milman :
Added file: http://bugs.python.org/file42772/patchedCPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue26972>
___
___
Pytho
New submission from Oren Milman:
the proposed changes
I believe the following checks are redundant:
1. in Objects/longobject.c in long_add:
In case both a and b are negative, their absolute values are added
using x_add, with the result stored in z
Changes by Oren Milman :
Added file: http://bugs.python.org/file42921/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue27073>
___
___
Python-bug
Changes by Oren Milman :
Added file: http://bugs.python.org/file42922/patchedCPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue27073>
___
___
Pytho
Oren Milman added the comment:
Thanks for the reviews!
I added an assert in long_add (in long_sub it might be that the result is 0).
The updated diff file is attached.
--
Added file: http://bugs.python.org/file42926/issue27073.diff
___
Python
New submission from Oren Milman:
the proposed changes
In Objects/longobject.c in long_add and long_sub, the variables 'result' and
'r' (respectively), are used only once, and don't seem to make the code any
clearer.
It seems the 'result
Changes by Oren Milman :
Added file: http://bugs.python.org/file42974/patchedCPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue27111>
___
___
Pytho
Changes by Oren Milman :
Added file: http://bugs.python.org/file42975/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue27111>
___
___
Python-bug
Changes by Oren Milman :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27441>
___
___
Python-bugs-list mailing list
Unsub
Changes by Oren Milman :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27111>
___
___
Python-bugs-list mailing list
Unsub
Changes by Oren Milman :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27222>
___
___
Python-bugs-list mailing list
Unsub
New submission from Oren Milman:
current state
In Modules\_ctypes\_ctypes.c, there are six functions with assertions that
might fail:
1. CDataType_from_buffer
2. CDataType_from_buffer_copy
3. PyCPointerType_set_type
4. PyCPointerType_from_param
5
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44637/issue28129_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Changes by Oren Milman :
Added file: http://bugs.python.org/file44638/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue28129>
___
___
Python-bug
Changes by Oren Milman :
Added file: http://bugs.python.org/file44639/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28129>
___
___
Changes by Oren Milman :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27298>
___
___
Python-bugs-list mailing list
Unsub
New submission from Oren Milman:
current state
In few places in the codebase, PyArg_ParseTuple is called in order to parse a
normal tuple (instead of the usual case of parsing the arguments tuple of a
function).
In some of these places, failure of PyArg_ParseTuple is
Changes by Oren Milman :
Added file: http://bugs.python.org/file44797/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28261>
___
___
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44796/issue28261_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Changes by Oren Milman :
Added file: http://bugs.python.org/file44798/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue28261>
___
___
Python-bug
New submission from Oren Milman:
current state
In Objects/longobject.c, the function maybe_small_long first checks whether v
(the received PyLongObject pointer) is not NULL.
However, currently in every call to maybe_small_long, it is already guaranteed
that v is not
Changes by Oren Milman :
Added file: http://bugs.python.org/file44816/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28272>
___
___
Changes by Oren Milman :
Removed file: http://bugs.python.org/file44816/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28272>
___
___
Changes by Oren Milman :
Removed file: http://bugs.python.org/file44815/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue28272>
___
___
Python-bug
Changes by Oren Milman :
Added file: http://bugs.python.org/file44817/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28272>
___
___
Changes by Oren Milman :
Added file: http://bugs.python.org/file44818/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue28272>
___
___
Python-bug
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44819/issue28272_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Oren Milman added the comment:
I looked at the assembly, and saw maybe_small_long is not inlined, but I agree
that other compilers (or future compilers) might introduce some optimization
that would elide the check.
Also, as expected (thanks to branch prediction, I guess), a little
Oren Milman added the comment:
my build (release):
Python 3.7.0a0 (default:da2c96cf2ce6, Sep 26 2016, 13:08:47) [MSC v.1900 32 bit
(Intel)] on win32
ISTM we can close this issue.
--
___
Python tracker
<http://bugs.python.org/issue28
New submission from Oren Milman:
current state
On my Windows 10, on a 32-bit Python, The following runs fine:
import array
array.array('L').append(2 ** 32 - 1)
However, in the following, an OverflowError('Python int too large to convert to
C l
Changes by Oren Milman :
Added file: http://bugs.python.org/file44861/CPythonTestOutput.txt
___
Python tracker
<http://bugs.python.org/issue28298>
___
___
Python-bug
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44862/issue28298_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Changes by Oren Milman :
--
versions: +Python 3.7
___
Python tracker
<http://bugs.python.org/issue28298>
___
___
Python-bugs-list mailing list
Unsubscribe:
Oren Milman added the comment:
You are right about the terminology of course. My bad.
Anyway, the bug is not related to __index__ (or nb_index), because the three
aforementioned functions are using (in case '!PyLong_Check(v)') PyArg_Parse
with the formats 'l' or 'L
Oren Milman added the comment:
Ah, I should have read more about __int__ and __index__ before writing my last
reply.
So IIUC, this is a somewhat painful issue, which could be resolved by:
* #20092
* replacing _PyLong_FromNbInt with PyNumber_Index in:
- Objects/longobject.c (as
New submission from Oren Milman:
current state
Due to the implementation of socket_htons (in Modules/socketmodule.c), in case
the received integer does not fit in 16-bit unsigned integer, but does fit in a
positive C int, it is silently truncated to 16-bit unsigned
Changes by Oren Milman :
Added file: http://bugs.python.org/file44912/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28332>
___
___
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44913/issue28332_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Oren Milman added the comment:
Thanks for the review :)
I changed some stuff, according to your comments (and replied to one comment in
Rietveld).
Version2 diff and test output are attached.
--
Added file: http://bugs.python.org/file44922/issue28332_ver2.diff
Changes by Oren Milman :
Added file: http://bugs.python.org/file44923/patchedCPythonTestOutput_ver2.txt
___
Python tracker
<http://bugs.python.org/issue28332>
___
___
New submission from Oren Milman:
current state
An assertion in Objects/rangeobject.c might fail:
>>> type(iter(range(0)))
>>> type(iter(range(0)))(1, 1, 0)
Assertion failed: step != 0, file ..\Objects\rangeobject.c, line 895
This is
Changes by Oren Milman :
Added file: http://bugs.python.org/file44985/patchedCPythonTestOutput_ver1.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Changes by Oren Milman :
--
keywords: +patch
Added file: http://bugs.python.org/file44986/issue28376_ver1.diff
___
Python tracker
<http://bugs.python.org/issue28
Oren Milman added the comment:
The diff files for 3.5 and 3.6 are attached (I only added
@test.support.cpython_only, as you suggested).
The diff file for 3.7 is also attached. It contains:
- removing rangeiter_new
- tests to verify one cannot create instances of range_iterator or
Changes by Oren Milman :
Added file: http://bugs.python.org/file44996/issue28376_CPython36_ver2.diff
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Pytho
Changes by Oren Milman :
Added file: http://bugs.python.org/file44997/issue28376_CPython37_ver2.diff
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Pytho
Changes by Oren Milman :
Added file: http://bugs.python.org/file44998/patchedCPython35TestOutput_ver2.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Changes by Oren Milman :
Added file: http://bugs.python.org/file44999/patchedCPython36TestOutput_ver2.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Changes by Oren Milman :
Added file: http://bugs.python.org/file45000/patchedCPython37TestOutput_ver2.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Oren Milman added the comment:
(Just to save time for anyone interested)
The last demonstration of the bug Serhiy mentioned is caused by the following
(this was right only until Serhiy's patch earlier today):
- before importing collections.abc, str_iterator is not initialized, which
Changes by Oren Milman :
Added file: http://bugs.python.org/file45020/patchedCPython36TestOutput_ver3.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Changes by Oren Milman :
Added file: http://bugs.python.org/file45019/issue28376_CPython37_ver3.diff
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Pytho
Oren Milman added the comment:
The diff files for 3.6 and 3.7 are attached (named '*ver3.diff').
Changes:
- in 3.6, added:
* raising a DeprecationWarning in rangeiter_new
* a test to verify the DeprecationWarning is raised
- in 3.7:
* changed the tes
Changes by Oren Milman :
Added file: http://bugs.python.org/file45021/patchedCPython37TestOutput_ver3.txt
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Oren Milman added the comment:
Alright, just added 'with test.support.check_warnings(('',
DeprecationWarning)):'.
*ver4.diff is attached.
I ran the tests again (this time using 'python_d.exe -We -m test -j3'), and
they were successful :)
That was totally my ba
Oren Milman added the comment:
Thanks for the reviews and patience :)
--
___
Python tracker
<http://bugs.python.org/issue28376>
___
___
Python-bugs-list mailin
Changes by Oren Milman :
--
nosy: +Oren Milman
___
Python tracker
<http://bugs.python.org/issue12974>
___
___
Python-bugs-list mailing list
Unsubscribe:
Oren Milman added the comment:
Sorry for taking so long to come up with a patch..
proposed changes
1. in Python/getargs.c in seterror, the following patches:
- add a parameter 'p_format_code' - a pointer to the format code
whose convers
Changes by Oren Milman :
Added file: http://bugs.python.org/file45108/testPatches.py
___
Python tracker
<http://bugs.python.org/issue15988>
___
___
Python-bugs-list mailin
New submission from Oren Ben-Kiki:
In 3.6.0, invocation of isinstance calls
typing._ProtocolMeta._get_protocol_attrs.
This creates a set of all attributes in all base classes, loops on these
attributes to check they exist, and discards the set. It is very slow.
My program uses isinstance to
301 - 383 of 383 matches
Mail list logo