[issue11003] os.system should be deprecated in favour of subprocess module
New submission from Jakob Bowyer : os.system is broken in several fundamental ways. We already have the subprocess module for accessing other processes, lets send os.system the same way as os.Popen. -- components: Library (Lib) messages: 126995 nosy: Jakob.Bowyer priority: normal severity: normal status: open title: os.system should be deprecated in favour of subprocess module type: feature request versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11003> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
New submission from Jakob Bowyer : Running: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] Code: import copy copy.copy(iter([1,2,3])) Exception: --- TypeError Traceback (most recent call last) T:\languages\Python27\Scripts\ in () > 1 copy.copy(iter([1,2,3])) T:\languages\Python27\lib\copy.pyc in copy(x) 94 raise Error("un(shallow)copyable object of type %s" % cl s) 95 ---> 96 return _reconstruct(x, rv, 0) 97 98 T:\languages\Python27\lib\copy.pyc in _reconstruct(x, info, deep, memo) 327 if deep: 328 args = deepcopy(args, memo) --> 329 y = callable(*args) 330 memo[id(x)] = y 331 T:\languages\Python27\lib\copy_reg.pyc in __newobj__(cls, *args) 91 92 def __newobj__(cls, *args): ---> 93 return cls.__new__(cls, *args) 94 95 def _slotnames(cls): TypeError: object.__new__(listiterator) is not safe, use listiterator.__new__() Either this is a bug or not a clear error message in the exception -- components: None messages: 156189 nosy: Jakob.Bowyer priority: normal severity: normal status: open title: Strange Exception from copying an iterable type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue14350> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
Jakob Bowyer added the comment: C:\Users\Jakob>python -c "import copy; copy.copy(iter([1,2,3]))" Traceback (most recent call last): File "", line 1, in File "T:\languages\Python27\lib\copy.py", line 96, in copy return _reconstruct(x, rv, 0) File "T:\languages\Python27\lib\copy.py", line 329, in _reconstruct y = callable(*args) File "T:\languages\Python27\lib\copy_reg.py", line 93, in __newobj__ return cls.__new__(cls, *args) TypeError: object.__new__(listiterator) is not safe, use listiterator.__new__() C:\Users\Jakob>python3 -c "import copy; copy.copy(iter([1,2,3]))" Traceback (most recent call last): File "", line 1, in File "T:\languages\Python32\lib\copy.py", line 97, in copy return _reconstruct(x, rv, 0) File "T:\languages\Python32\lib\copy.py", line 285, in _reconstruct y = callable(*args) File "T:\languages\Python32\lib\copyreg.py", line 88, in __newobj__ return cls.__new__(cls, *args) TypeError: object.__new__(list_iterator) is not safe, use list_iterator.__new__() Pure python traceback. Just for clarity. -- ___ Python tracker <http://bugs.python.org/issue14350> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterator
Jakob Bowyer added the comment: Before anyone else rushes of to do this, can I? I really want to break into python-dev and this might be my chance. -- ___ Python tracker <http://bugs.python.org/issue14350> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com