[issue38435] Start the deprecation cycle for subprocess preexec_fn

2020-12-24 Thread Mark Diekhans
Mark Diekhans added the comment: calling setpgid() is a common post-fork task that would need to be an explicit parameter to Popen when preexec_fn goes away -- nosy: +diekhans ___ Python tracker <https://bugs.python.org/issue38

[issue27321] Email parser creates a message object that can't be flattened

2020-10-05 Thread Mark Diekhans
Mark Diekhans added the comment: any chance of getting this merged? A work-around is not obvious -- nosy: +diekhans ___ Python tracker <https://bugs.python.org/issue27

[issue34792] Tutorial doesn''t discuss / and * function arguments

2018-09-24 Thread Mark Diekhans
New submission from Mark Diekhans : https://docs.python.org/3/tutorial/controlflow.html doest not discuss / and * arguments (end of positional, keyword required) -- assignee: docs@python components: Documentation messages: 326277 nosy: diekhans, docs@python priority: normal severity

[issue31989] setattr on a property gives a very unhelpful exception

2017-11-08 Thread Mark Diekhans
Mark Diekhans <ma...@kermodei.com> added the comment: The trackback is not helpful if the attribute name is in a variable. It also doesn't explain why the error occurred. While I would not rate this as a high priority, I don't see an argument for having uninformative error messages. R

[issue31989] setattr on a property gives a very unhelpful exception

2017-11-08 Thread Mark Diekhans
New submission from Mark Diekhans <ma...@kermodei.com>: done a setattr on a property gives a very unhelpful error message AttributeError: can't set attribute it neither indicates the name of the attribute that failed or the cause. an error such as "can't set propert

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-06 Thread Mark Diekhans
Changes by Mark Diekhans <ma...@kermodei.com>: -- nosy: +alexandre.vassalotti ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-06 Thread Mark Diekhans
New submission from Mark Diekhans: python3 pickle does not serialize the __cause__ field, as shown by the attached demo program. -- components: Library (Lib) files: cause_pickle.py messages: 287163 nosy: diekhans priority: normal severity: normal status: open title: pickle does

[issue12600] Support parameterized TestCases in unittest

2012-01-17 Thread Mark Diekhans
Mark Diekhans ma...@kermodei.com added the comment: Allowing loadTestsFromTestCase() to take either a testCaseClass or a (testCaseClass, param) tuple, where the param is then past to the __init__ function might do the trick. One param is sufficient, since it can be a container for any number

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Mark Diekhans
Mark Diekhans ma...@kermodei.com added the comment: R. David Murray rdmur...@bitdance.com added the comment: Meaning you want to run the same test suite with a variety of different DB connections? That seems like a reasonable use case. This is for external parameterization of a test

[issue12600] Support parameterized TestCases in unittest

2012-01-15 Thread Mark Diekhans
Mark Diekhans ma...@kermodei.com added the comment: The lack of the ability to pass a parameter to a test case is a very frustrating restriction with unittest. The frequent need if for a database connection for testing database related classes. Yes, there are lots of other ways to work around