[issue12216] future imports change the reporting of syntaxerrors

2011-05-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: compile('def foo(', '', 'exec') Traceback (most recent call last): File stdin, line 1, in module File , line 1 def foo( ^ SyntaxError: unexpected EOF while parsing vs compile('from __future__ import

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: the problem manifests when calling with negative counts when the c versions are used, a empty list is returned, however if the pure python version is called islice errors out -- components: Library (Lib) messages

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-29 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: however some basic consistency between the cpython and pure python versions within the stdlib would be nice since it basically implicitly breaks unaware code on non cpython

[issue13381] compile fails to compile a ast module object giving a incomprehensible error

2011-11-10 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: $ python3.2 -c 'import ast;compile(ast.parse(open(testing/test_keymap.py).read()), test, exec)' Traceback (most recent call last): File string, line 1, in module TypeError: AST string must be of type str note that just

[issue13381] compile fails to compile a ast module object giving a incomprehensible error

2011-11-10 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13381

[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-21 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: not sure if this is to be considered a bug, but python3.2 tries to flush sys.stdout on shutdown, even if its closed $ python3.2 -c 'import sys;sys.stdout.close()' Exception ValueError: 'I/O operation on closed file

[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-23 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: i think checking for closed is the correct solution -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13444

[issue17039] socket.SocketIO hides socket timeouts as blocking errors

2013-01-26 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: the change to conform with pep 3114 makes socketSocketIO hide Timeouts, since they are also denoted with EAGAIN (which is one of the blocking errors a nonblocking socket will raise) that causes read/readinto return None, when one would expect a Timeout

[issue17039] socket.SocketIO hides socket timeouts as blocking errors

2013-01-26 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: noticed an error in my testing, sorry for the noise -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17039

[issue17446] doctest test finder doesnt find line numbers of properties

2013-03-17 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: examples that are found on a property dont detect the line number class example(object): @property def me(self): 1/0 pass -- messages: 184384 nosy: Ronny.Pfannschmidt priority: normal severity: normal status: open title

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: this patch simplifies and cleans up the resolve_name function -- assignee: eric.araujo components: Distutils2 files: resolve_name.patch keywords: patch messages: 161974 nosy: Ronny.Pfannschmidt, alexis, eric.araujo

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-31 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: my change is a unrelated cleanup but the ideas in the patch look good the attribute error addition seems relevant i'll adapt my patch to raise the original import error for toplevel import failure and accumuplate the attrbute

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: due to the lack of a marker that denotes where the module ends and the attribute starts, unrelated import errors can break the tryerror chain at unexpected places and the code can pass on to the recursive getattr chain

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: to correctly implement it we need the : separator back with the separator the import specification is no longer ambigious, and we can use one exact import, and an error will always be an error

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: an example of creating a wrong error would be something like the following: there is a package foo.bar, which does a wrong import in __init__.py we want to resolve the name foo.bar.something we'd get the error that foo has

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-31 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: updated the patch with more detailed errors -- Added file: http://bugs.python.org/file25771/resolve_name.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-31 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: i missused hg export, here is a corrected patch -- Added file: http://bugs.python.org/file25773/resolve_name.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-09 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: thats broken for assigning overlaping regions, the memcpy docs explicitly state that memmove should be used in overlap cases -- messages: 165127 nosy: Ronny.Pfannschmidt priority: normal severity: normal status: open

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: im unlikely to find the time to try and fix pickle/cpickle myself in the next few months -- nosy: +Ronny.Pfannschmidt ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14161] python2 file __repr__ does not escape filename

2012-02-29 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: behaviour: name = 'woo\raa' open(name, 'w') aa', mode 'w' at 0x295a8a0 expected: name = 'woo\raa' open(name, 'w') open file 'woo\raa', mode 'w' at 0x295a8a0 note: don't ask why i tried this chunk of code in the first

[issue14161] python2 file __repr__ does not escape filename

2012-10-02 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: wtf? you made it possible to return NULL in some case -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14161

[issue14161] python2 file __repr__ does not escape filename

2012-10-02 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: sorry for the buzz, i got myself up to date on the c api now why is there still the unicode case? the PyObject_Repr variant should work fine in both cases -- ___ Python tracker rep...@bugs.python.org http

[issue16363] super cannot invoke descriptors

2012-10-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: this means its much harder to have a mixin to change the behaviour of a property instead of super(Mixin, self).prop = foo the code is super(Mixin, type(self)).prop.__set__(self, foo) which is way harder to understand the attached file demonstrates

[issue14965] super() and property inheritance behavior

2012-10-30 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- nosy: +Ronny.Pfannschmidt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14965

[issue19658] inspect.getsource weird case

2013-11-19 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: got: l = {} import inspect exec(compile('def fun(): pass', '', 'exec'), l, l) inspect.getsource(l['fun']) Traceback (most recent call last): File input, line 1, in module File /home/private/.local/lib/python3.3/inspect.py, line 726, in getsource

[issue19658] inspect.getsource weird case

2013-11-19 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19658

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: when using virtual tables, dumpiter generates a broken db script virtual table entries must be created as master table entries the sqlite tools dump does that correctly however pythons iterdump seems to do that rather different and wrong sqlite3 test.db

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- components: +Extension Modules type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20463

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: could we please get the option to opt-out of that behaviour, as a extra connection option maybe with the normal python sqlite bindings its impossible to have database migrations work safely which IMHO makes this a potential data-loss issue -- nosy

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: the sqlite binding deciding how to handle transactions -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: http://hg.python.org/releasing/3.4/file/447c758cdc26/Modules/_sqlite/cursor.c#l789 also i dont see the isolation level being taking into account in other parts of the code -- ___ Python tracker rep

[issue34731] pathlib path.match misshandles multiple `**`

2018-09-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: indeed it is, thanks for the reference i searched only for match and missed the glob -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue29249] Pathlib glob ** bug

2018-09-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: issue34731 was a duplicate of this pytest was affected, as we port more bits to pathlib we hit this as well bruno kindly implemented a local workaround in https://github.com/pytest-dev/pytest/pull/3980/files#diff-63fc5ed688925b327a5af20405bf4b09R19

[issue34731] pathlib path.match misshandles multiple `**`

2018-09-18 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : when porting parts of pytest to pathlib we noted that `path.match` does not quite match normal fnmatch for usages of `**` i believe this is related to always splitting the patter completely and not handling `**` in that case Bruno wrote https

[issue44893] importlib.metadata Entrypoint has a broken _asdict

2021-08-11 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : due to ``` def __iter__(self): """ Supply iter so one may construct dicts of EntryPoints easily. """ return iter((self.name, self)) ``` the default namedtuple asdict method is broken i

[issue14965] super() and property inheritance behavior

2021-12-09 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: im on the noisy list because i faced this first in 2012 a key problem where i ran into this was mixins, - depending on whether a mixin was added or not one would get errors or not from my pov a super object should look like the "next class