[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland
New submission from Dino Viehland : Many Python deployments involve large code based that are used in scenarios where processes are fork-and-exec'd. When running in these environments code objects can end up occupying a lot of memory. Because the code objects are on random pages

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-12 Thread Dino Viehland
Changes by Dino Viehland <di...@microsoft.com>: -- pull_requests: +2194 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30604> ___

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-06-08 Thread Dino Viehland
Changes by Dino Viehland <di...@microsoft.com>: -- pull_requests: +2082 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29943> ___

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-08 Thread Dino Viehland
Changes by Dino Viehland <di...@microsoft.com>: -- pull_requests: +2080 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30604> ___

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-08 Thread Dino Viehland
New submission from Dino Viehland: The co_extra_freefuncs are stored in PyThreadState. When calling _PyEval_RequestCodeExtraIndex you are given a thread specific index. The code object can then lose it's last reference on a different thread, and the wrong free function can be called

[issue27127] Never have GET_ITER not followed by FOR_ITER

2016-05-26 Thread Dino Viehland
Dino Viehland added the comment: I like how this makes the loop opcodes more regular - it should make things like Pyjion (http://www.github.com/Microsoft/Pyjion) which translate bytecode into native code. We already have some code (currently commented out) checking that GET_ITER is followed

[issue26093] __qualname__ different when calling generator object w/ functions.partial

2016-01-12 Thread Dino Viehland
New submission from Dino Viehland: import functools def f(): def g(): yield 1 return g functools.partial(f())().__qualname__ != f()().__qualname__ The qualified name gets passed in via the interpreter loop with _PyEval_EvalCodeWithName calling PyGen_NewWithQualName

[issue15568] yield from missed StopIteration raised from iterator instead of getting value

2012-08-06 Thread Dino Viehland
New submission from Dino Viehland: When implementing an iterable object by hand, and raising StopIteration with a value, the value is not provided as the result of the yield from expression. This differs from the behavior in the Formal Semantics section. Here's an example of how it differs

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: Antoine: If you're looking at my test.py then my expectation is that this doesn't crash because a RuntimeError should be raised when the maximum recursion limit is hit, and then the trace handler should be uninstalled because it leaks

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: It's catching the exception when it invokes x, but the recursion enforcement should happen at a method prolog, including at the invocation of g. Therefore if we're at or beyond the recursion limit when invoking the trace handler the limits

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: Maybe there just needs to be a max that it will bump it up? FYI this isn't actually causing any problems for me, I just ran into it while doing IronPython development and was surprised to be able to crash the interpreter w/ pure Python

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: One thought might be to do a recursion check (and maybe for multiple frames) when entering a try rather than incrementing the recursion limit to allow the handlers to run. That would cause the exception to be more likely taken before you

[issue14543] Upgrade OpenSSL on Windows to 0.9.8u

2012-04-10 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: OpenSSL has had many fixes since the 0.9.8l version, and in particular there is one issue which prevents it from connecting with SSL with a client certificate: the end result is the SSL connection hangs or times out. Updating the OpenSSL

[issue14543] Upgrade OpenSSL on Windows to 0.9.8u

2012-04-10 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: A 1.0 version would be fine w/ me (I tested it with one of those and it worked as well) - I was just thinking a bug fix release might want to stick w/ a bug fix release of OpenSSL too

[issue6717] Some problem with recursion handling

2011-06-14 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: I ran into a similar issue and believe I have a simpler repro. I think the issue here might be that when you take a stack overflow inside of a sys.settrace handler that you can then later violate the stack depth. The attached test.py has

[issue9814] subprocess isn't friendly to other Python implementations with different GCs

2010-09-09 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: subprocess isn't very friendly to implementations with different GCs then CPython and in general relies on behavior that's not going to be very stable. I noticed the following issues but was able to work around all of them. First Popen

[issue9737] Del on memoryview crashes CPython

2010-09-01 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: x = bytearray(b'abc') y = memoryview(x) del y[0:1] This crashes CPython 3.1.1 and 2.7. -- components: Interpreter Core messages: 115333 nosy: dino.viehland priority: normal severity: normal status: open title: Del on memoryview

[issue8825] int(0,0) throws exception

2010-05-27 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: I've opened a bug in the IronPython bug tracker: http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=27209 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: Brett Cannon was going to try and look at it and commit it. If you think it looks good you can commit it :) I do not yet have commit privledges simply because I need to gen my SSH key and send that off to Brett. I'm also hoping to get

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: This adds new test cases for bugs reported by Thomas Heller against IronPython for ctypes and winreg: ctypes: the variant bool type isn't supported winreg: errno is not correctly set when QueryValue fails -- assignee: theller

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland di...@microsoft.com: -- type: - behavior versions: +Python 3.2 Added file: http://bugs.python.org/file16132/patch30.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: The problem with assertRaises is I need to actually check the errno on the exception and assertRaises doesn't let me do that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: I'll switch to the context manager form in the 3.x branch - it looks like that's not available in the 2.x branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland di...@microsoft.com: Added file: http://bugs.python.org/file16133/patch30.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: Ezio: I'm going to stick w/ assertEqual here as Michael points out these are different. In particular I want to make sure that you can assign any true value to the ctypes field but when you read it back you get True or False regardless

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland di...@microsoft.com: Added file: http://bugs.python.org/file16134/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Changes by Dino Viehland di...@microsoft.com: Added file: http://bugs.python.org/file16135/patch30.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Dino Viehland
Dino Viehland di...@microsoft.com added the comment: Ahh, so it is in 2.7, apparently I was in a 2.6 enlistment. I've updated the 2.x patch to use the context manager as well. I've also switched to using assertTrue(x is True) and assertTrue(x is False) so that it's not checking precisely

[issue7130] json uses sre_* modules which may not work on alternate implemenations

2009-10-14 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: Currently the json module is using the sre_* modules to construct it's regular expressions instead of just using the re module directly. Because of this it's taking a dependency on what would appear to be CPython specific implementation

[issue7071] distutils and IronPython compatibility

2009-10-07 Thread Dino Viehland
Changes by Dino Viehland di...@microsoft.com: -- nosy: +DinoV ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7071 ___ ___ Python-bugs-list mailing

[issue6707] dir() on __new__'d module w/o dict crashes 2.6.2

2009-08-14 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: from types import ModuleType as M m = M.__new__(M) dir(m) In 2.5 this raises an exception about not having __dict__, 2.6.2 crashes out right. -- components: Interpreter Core messages: 91580 nosy: DinoV severity: normal status

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Dino Viehland
New submission from Dino Viehland [EMAIL PROTECTED]: 10e667.__format__('+') returns '+1.0#INF' vs: 10e667.__format__('') which returns 'inf' The docs say 'inf' is right. -- messages: 76703 nosy: DinoV severity: normal status: open title: 10e667.__format__('+') should return 'inf

[issue4482] 10e667.__format__('+') should return 'inf'

2008-12-01 Thread Dino Viehland
Changes by Dino Viehland [EMAIL PROTECTED]: -- components: +Interpreter Core type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4482

[issue4348] bytearray methods returning self

2008-11-18 Thread Dino Viehland
New submission from Dino Viehland [EMAIL PROTECTED]: In 2.6 but not in 3.0 RC2: x = bytearray(b'abc') y = x.replace(b'abc', b'bar', 0) id(x) == id(y) In 2.6 and in 3.0 RC2: t = bytearray() for i in range(256): t.append(i) x = bytearray(b'') y = x.translate(t) id(x) == id(y

<    1   2