[issue21574] Port image types detections from PIL to the imghdr module

2014-07-25 Thread Claudiu Popa
Claudiu Popa added the comment: No, I didn't start any work on this and right now, with EuroPython, I don't have that much time to start, so feel free to take it and write a patch. -- ___ Python tracker <http://bugs.python.o

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a version of the patch which raises ValueError when the path can't be expanded. Hopefully, the used approach is good enough. -- Added file: http://bugs.python.org/file36102/issue19776_4.patch ___ Pyth

[issue22077] Improve the error message for various sequences

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: For a couple of sequences (bytes, list, tuple, bytearray), the error when using an invalid sequence index is misleading, because it says that only integers are allowed, while slices are allowed too. >>> a = [] >>> a['python'] Trac

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good. -- ___ Python tracker <http://bugs.python.org/issue19776> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: Given the following example, Python 3.5 doesn't emit any resource warning: import io, gc f = open("a") bufio = io.BufferedReader(f) gc.collect() Here's a small patch that enables this. -- components: IO files: buffered_io_re

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: That's not the same, try with my example. open("a") will be a TextIOWrapper. -- ___ Python tracker <http://bugs.pyt

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: I mean this one: $ python_d -Wall -c "f=open('a', 'r'); import io; io.BufferedReader(f)" -- ___ Python tracker <

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: You're right, thanks for the new information. You can close the issue then. -- ___ Python tracker <http://bugs.python.org/is

[issue22080] Add windows_helper module helper

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. This patch adds a new test helper module, initially added in issue21518, for controlling various aspects on Windows platform, like acquiring / releasing privileges etc. At the same time, it contains a modification in test.support.skip_unless_symlink, so

[issue21518] Expose RegUnloadKey in winreg

2014-07-26 Thread Claudiu Popa
Changes by Claudiu Popa : -- dependencies: +Add windows_helper module helper ___ Python tracker <http://bugs.python.org/issue21518> ___ ___ Python-bugs-list mailin

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Claudiu Popa
Claudiu Popa added the comment: I agree. The patch was merely a temporary solution to the real problem. -- ___ Python tracker <http://bugs.python.org/issue19

[issue22080] Add windows_helper module helper

2014-08-06 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file36288/issue22080.patch ___ Python tracker <http://bugs.python.org/issue22080> ___ ___ Python-bugs-list m

[issue22080] Add windows_helper module helper

2014-08-06 Thread Claudiu Popa
Claudiu Popa added the comment: The new patch fixes the issues found by Zachary. Thanks for the review! -- ___ Python tracker <http://bugs.python.org/issue22

[issue18615] sndhdr.whathdr could return a namedtuple

2014-08-06 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks. -- Added file: http://bugs.python.org/file36290/issue18615_2.patch ___ Python tracker <http://bugs.python.org/issue18

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-11 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. When os.rename fails inside distutils.file_util.move_file, the exception is unpacked using ``(num, msg) = e``. While this was valid in Python 2, in Python 3 it should be ``e.args``. The attached patched fixes this. -- components: Distutils files

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-11 Thread Claudiu Popa
Claudiu Popa added the comment: Mm, it seems there's another instance of unpacking later on, when os.unlink fails. Here's the updated patch. -- Added file: http://bugs.python.org/file36346/issue22182.patch ___ Python tracker <http://bu

[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-08-19 Thread Claudiu Popa
Claudiu Popa added the comment: Backward compatibility reasons, I guess. compileall -l completely deactivates the recursion, so using -l for controlling the number of levels seems to overwrite its original meaning. -- ___ Python tracker <h

[issue19997] imghdr.what doesn't accept bytes paths

2014-08-21 Thread Claudiu Popa
Claudiu Popa added the comment: Right, I've read the thread you posted and I agree. My use cases aren't strong enough and it's enough for me to call os.fsdecode. -- resolution: -> wont fix stage: patch review -> resolved stat

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2014-08-22 Thread Claudiu Popa
Claudiu Popa added the comment: Any type of feedback regarding this approach will be appreciated. -- ___ Python tracker <http://bugs.python.org/issue21

[issue13938] 2to3 fails to convert types.StringTypes appropriately

2014-08-22 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> commit review type: -> enhancement ___ Python tracker <http://bugs.python.org/issue13938> ___ ___ Python-bugs-list

[issue16599] unittest: Access test result from tearDown

2014-08-22 Thread Claudiu Popa
Changes by Claudiu Popa : -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2014-08-22 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review type: -> behavior versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-22 Thread Claudiu Popa
Claudiu Popa added the comment: That makes sense. Quoting from the data model: "When inheriting from a class without __slots__, the __dict__ attribute of that class will always be accessible, so a __slots__ definition in the subclass is meaningless". In the current case, for the lit

[issue21986] Pickleability of code objects is inconsistent

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue21986> ___ ___ Python-bugs-list mailing list Un

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue20752> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1764286] inspect.getsource does not work with decorated functions

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue1764286> ___ ___ Python-bugs-list mai

[issue9731] Add ABCMeta.has_methods and tests that use it

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue9731> ___ ___ Python-bugs-list mailing list Un

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue22182> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21740] doctest doesn't allow duck-typing callables

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue21740> ___ ___ Python-bugs-list mailing list Un

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-25 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a short patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file36467/issue22098.patch ___ Python tracker <http://bugs.python.org

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2014-08-26 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue22281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21527] concurrent.futures.ThreadPoolExecutor does not use a default value

2014-08-28 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file36494/issue21527.patch ___ Python tracker <http://bugs.python.org/issue21527> ___ ___ Python-bugs-list m

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-28 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue22098> ___ ___ Python-bugs-list mai

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: A similar issue was fixed a couple of days ago in file_util.py, with f01413758114. It would be nice to have similar tests. -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue22

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: I'm referring to the "TypeError: 'OSError' object is not iterable" failure. -- ___ Python tracker <http:

[issue18615] sndhdr.whathdr could return a namedtuple

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: Serhiy, is there anything left to do for this patch? -- ___ Python tracker <http://bugs.python.org/issue18615> ___ ___ Python-bug

[issue21527] concurrent.futures.ThreadPoolExecutor does not use a default value

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: Thank you, Guido. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue21527> ___ ___ Python-

[issue10312] intcatcher() can deadlock

2014-09-02 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: -Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue10312> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19546] configparser leaks implementation detail

2014-09-04 Thread Claudiu Popa
Claudiu Popa added the comment: No problem, thank you for committing it. -- ___ Python tracker <http://bugs.python.org/issue19546> ___ ___ Python-bugs-list mailin

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-09 Thread Claudiu Popa
Claudiu Popa added the comment: If the patch doesn't need anything else, can it be committed? -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org

[issue16104] Compileall script: add option to use multiple cores

2014-09-09 Thread Claudiu Popa
Claudiu Popa added the comment: If there is nothing left to do for this patch, can it be committed? -- Added file: http://bugs.python.org/file36590/16104.patch ___ Python tracker <http://bugs.python.org/issue16

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-09-10 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: -Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue20752> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-10 Thread Claudiu Popa
Claudiu Popa added the comment: Actually, no, it seems that I didn't receive any mail regarding them. I'll update the patch accordingly. -- ___ Python tracker <http://bugs.python.o

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-10 Thread Claudiu Popa
Claudiu Popa added the comment: Here's the new version which fixes the comments from the review. -- Added file: http://bugs.python.org/file36592/issue17442_2.patch ___ Python tracker <http://bugs.python.org/is

[issue16104] Compileall script: add option to use multiple cores

2014-09-12 Thread Claudiu Popa
Claudiu Popa added the comment: Thank you for committing it. :-) -- ___ Python tracker <http://bugs.python.org/issue16104> ___ ___ Python-bugs-list mailin

[issue22080] Add windows_helper module helper

2014-09-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue22080> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21518] Expose RegUnloadKey in winreg

2014-09-25 Thread Claudiu Popa
Claudiu Popa added the comment: Is there something I can do to move this forward? -- ___ Python tracker <http://bugs.python.org/issue21518> ___ ___ Python-bug

[issue22141] rlcompleter.Completer matches too much

2014-09-25 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good. Could you add a test that reproduces the intended behaviour? -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue22

[issue22143] rlcompleter.Completer has duplicate matches

2014-09-26 Thread Claudiu Popa
Claudiu Popa added the comment: The patch looks good. Could you add a test? -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue22143> ___ ___

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-09-26 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: patch review -> test needed ___ Python tracker <http://bugs.python.org/issue16512> ___ ___ Python-bugs-list mailing list Un

[issue16837] Number ABC can be instantiated

2014-09-27 Thread Claudiu Popa
Changes by Claudiu Popa : -- components: +Library (Lib) versions: +Python 3.5 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue16837> ___ ___ Python-bug

[issue16837] Number ABC can be instantiated

2014-09-27 Thread Claudiu Popa
Claudiu Popa added the comment: I'd say that this should be fixed, it breaks the expectancy imposed by the documentation, so +1 from me. -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/is

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread Claudiu Popa
Claudiu Popa added the comment: Indeed, it's a preexisting bug. I'll try to come up with a patch shortly. -- ___ Python tracker <http://bugs.python.o

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2014-09-30 Thread Claudiu Popa
New submission from Claudiu Popa: It seems that sys.excepthook doesn't receive the traceback when an error occurs during a code.InteractiveInterpreter run. The problem is here: https://hg.python.org/cpython/file/5ade1061fa3d/Lib/code.py#l168. last_tb was previously set to None right b

[issue20516] Concurrent.futures base concurrency improvement (with patch)

2014-10-04 Thread Claudiu Popa
Claudiu Popa added the comment: I'm not sure that Glenn receives this, he is not in the nosy list. 2014-07-18 16:45:36 glangford set nosy: - glangford -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/is

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-04 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue11694> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18615] sndhdr.whathdr could return a namedtuple

2014-10-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue18615> ___ ___ Python-bugs-list mai

[issue21986] Pickleability of code objects is inconsistent

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Terry, can I do something to move this issue forward? -- ___ Python tracker <http://bugs.python.org/issue21986> ___ ___ Python-bug

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2014-10-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue22522> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a refreshed patch: - raising_conversion_error is now raise_conversion_error - the decorator uses functools.wraps - the ConversionError is instantiated with the first argument of the caught expression - the reraising of ConversionError has the exce

[issue21986] Idle: disable pickleability of user code objects

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Thank you for your feedback, Terry. 1. IDLE is behaving differently than the builtin interpreter. It should be higher priority, because it leads beginners into believing that code objects are picklable. 2. No, wrapping code objects in a CodePickler with

[issue22606] Inconsistency between Python 2 and PyPy regarding future imports

2014-10-10 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, The following code gives similar errors for both PyPy and Python 2 when called, but totally different AST objects. Given the following code, PyPy says that `print(4)` is an _ast.Print, while Python 2 believes that it is an _ast.Expr (which wraps a Call

[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

2014-10-14 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a refreshed patch, which applies cleanly on tip. Also, I added a test for the code that generates an infinite loop. -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file

[issue22141] rlcompleter.Completer matches too much

2014-10-30 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good to me. You might want to sign the contributor agreement: https://www.python.org/psf/contrib/contrib-form/. This is required for non-trivial contributions. You'll get a * next to your name after signing it. -- stage: patch review ->

[issue22143] rlcompleter.Completer has duplicate matches

2014-10-30 Thread Claudiu Popa
Claudiu Popa added the comment: I don't know why there's no review link for your patch. Anyway.. +self.assertTrue(c.complete("A.foo", 0) in ['A.foo(', 'A.foobar(']) +self.assertTrue(c.complete("A.foo", 1) in ['A.foo

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2014-12-08 Thread Claudiu Popa
Claudiu Popa added the comment: Alright, I'll update my patch later this week. -- ___ Python tracker <http://bugs.python.org/issue15582> ___ ___ Python-bugs-l

[issue23256] test_ctypes crashes on Windows on debug builds

2015-01-17 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, Doing the following on Windows leads to a nasty crash "python_d -m test test_ctypes": [1/1] test_ctypes Fatal Python error: Segmentation fault Current thread 0x16fc (most recent call first): File "E:\Projects\repos\cpython\lib\u

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Yury, regarding your last message, is it actually possible to have a subclass which doesn't have a __doc__ attribute in its __dict__, except using slots? __doc__ seems to be set to None every time if it's not specified, so I don't know how cou

[issue6700] inspect.getsource() returns incorrect source lines

2015-01-17 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa, yselivanov versions: +Python 3.5 -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue6

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Here's the updated version of this patch. -- type: behavior -> enhancement versions: -Python 3.4 Added file: http://bugs.python.org/file37738/issue21817_1.patch ___ Python tracker <http://bugs.python.org

[issue22080] Add windows_helper module helper

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a cleaned up version of the patch. -- Added file: http://bugs.python.org/file37741/issue22080_1.patch ___ Python tracker <http://bugs.python.org/is

[issue21518] Expose RegUnloadKey in winreg

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: The new patch drops the weird error dance from test_unload_key, it seems to work without it, I don't remember how it failed without it. -- Added file: http://bugs.python.org/file37742/issue21518_2.patch ___ P

[issue21817] `concurrent.futures.ProcessPoolExecutor` swallows tracebacks

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks, Antoine! Here's the new version, with your comments addressed. -- Added file: http://bugs.python.org/file37744/issue21817_2.patch ___ Python tracker <http://bugs.python.org/is

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2015-01-17 Thread Claudiu Popa
Claudiu Popa added the comment: Ping. :-) -- ___ Python tracker <http://bugs.python.org/issue22522> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-01-21 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a patch which uses ast.literal_eval instead. This doesn't get code executed, since literal_eval will fail loudly for anything other than a literal. There are some issues to consider: - let the current ast.literal_eval call bubble out wit

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-01-21 Thread Claudiu Popa
Changes by Claudiu Popa : -- priority: normal -> high stage: -> patch review versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue22885> ___ __

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-01-21 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks for the tip, Guido. The new patch uses exception chaining. If this needs backporting, most probably the first patch can be used. -- Added file: http://bugs.python.org/file37813/issue22885_1.patch ___ Python

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-01-22 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a patch which does this. One problem could be that staticmethod(some_callable) or classmethod(some_callable) aren't callable per se, but given the fact that users expects Foo.staticmethod or Foo.klassmethod to be callable when patching

[issue21518] Expose RegUnloadKey in winreg

2015-01-22 Thread Claudiu Popa
Claudiu Popa added the comment: Ups, the last patch included an extra file. -- Added file: http://bugs.python.org/file37819/issue21518_3.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21518] Expose RegUnloadKey in winreg

2015-01-22 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file37820/issue21518_4.patch ___ Python tracker <http://bugs.python.org/issue21518> ___ ___ Python-bugs-list m

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-01-22 Thread Claudiu Popa
Claudiu Popa added the comment: Ups, sorry about that, I'll update the patch. -- ___ Python tracker <http://bugs.python.org/issue23078> ___ ___ Python-bugs-l

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-01-22 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file37823/issue23078.patch ___ Python tracker <http://bugs.python.org/issue23078> ___ ___ Python-bugs-list m

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-01-23 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks, Victor. I thought the same thing, but the file is deleted here already, here: https://hg.python.org/cpython/file/981ba93bcbde/Lib/test/test_dbm_dumb.py#l228 -- ___ Python tracker <http://bugs.python.

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-01-24 Thread Claudiu Popa
Claudiu Popa added the comment: Thanks, Serhiy. Only the security issue is fixed in this patch, since eval is replaced by ast.literal_eval and nothing else. Indeed, if the data is something else than what dbm expects after ast.literal_eval, then it would fail, but it would have failed

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, In Python 3.5, the lineno for dict and set display ASTs is the line number of the first value, not the line number of the display character, as it was until 3.5. Here's an example: from ast import parse module = parse('''

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue4

[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: -Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue13397> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2015-03-07 Thread Claudiu Popa
Claudiu Popa added the comment: This was fixed by a different patch in https://hg.python.org/cpython/rev/5f3dd0a2b1ab -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bug

[issue21518] Expose RegUnloadKey in winreg

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : Added file: http://bugs.python.org/file38382/issue21518_5.patch ___ Python tracker <http://bugs.python.org/issue21518> ___ ___ Python-bugs-list m

[issue9191] winreg.c:Reg2Py() may leak memory (in unusual circumstances)

2015-03-07 Thread Claudiu Popa
Claudiu Popa added the comment: This was fixed a couple of months ago: https://hg.python.org/cpython/rev/07968254be96. Also, malloc was changed to PyMem_New a couple of weeks ago: https://hg.python.org/cpython/rev/036a2aceae93 -- nosy: +Claudiu.Popa resolution: -> fixed stage: ne

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue7877> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa type: -> behavior versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue11705] sys.excepthook doesn't work in imported modules

2015-03-08 Thread Claudiu Popa
Changes by Claudiu Popa : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue11705> ___ ___

[issue10805] traceback.print_exception throws AttributeError when exception is None

2015-03-08 Thread Claudiu Popa
Claudiu Popa added the comment: This was recently fixed in 3.5 by 73afda5a4e4c. -- nosy: +Claudiu.Popa resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue21271> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21478] mock calls don't propagate to parent (autospec)

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue21478> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue21385> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue22189> ___ ___ Python-bugs-list mailin

[issue22964] dbm.open(..., "x")

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker <http://bugs.python.org/issue22964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-03-09 Thread Claudiu Popa
Claudiu Popa added the comment: I find the new error messages clear and straight to the point. It would be nice if this would get into 3.5. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

<    1   2   3   >