[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-29 Thread Robert Xiao
Robert Xiao added the comment: So we have some other problems then: (1) It should be documented in dbm, and ideally in shelve, that keys/values over a certain limit might not work. Presently there is no hint that such a limit exists, and until you mentioned it I was unaware that POSIX only

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Oh, and why look for __init__ - in part, because it predates namespace packages, but also because unlike regular imports unittest will do negative things like reading the entire filesystem otherwise. -- ___ Python

[issue32419] Add unittest support for pyc projects

2018-03-31 Thread Robert Collins
Robert Collins added the comment: Whats the use for *unittest* - a tool to help folk develop - to run a test which is only present in sourceless form? -- ___ Python tracker <https://bugs.python.org/issue32

[issue33388] Support PEP 566 metadata in dist.py

2018-04-29 Thread Robert Bricheno
New submission from Robert Bricheno : PEP 566 added the metadata fields 'Description-Content-Type' and 'Provides-Extra': https://www.python.org/dev/peps/pep-0566/ http://setuptools.readthedocs.io/en/latest/setuptools.html#metadata Currently dist.py in CPython distutils w

[issue33388] Support PEP 566 metadata in dist.py

2018-04-29 Thread Robert Bricheno
Change by Robert Bricheno : -- keywords: +patch pull_requests: +6339 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33388> ___ ___ Py

[issue31587] Enum doesn't allow name

2017-09-25 Thread Robert Gomułka
New submission from Robert Gomułka: Enum module handles "name" member incorrectly. 1. "name" can't be used as a member when decorated with unique: >>> import enum >>> @enum.unique ... class A(enum.IntEnum): ... a = 1 ... name = 2 ... Traceback

[issue31587] Enum doesn't allow name

2017-09-26 Thread Robert Gomułka
Robert Gomułka added the comment: As a workaround, one can: 1. Rename the fields to not use name/value names 2. Use Enum instead of IntEnum, which somehow doesn't have this bug. -- ___ Python tracker <https://bugs.python.org/is

[issue31587] Enum doesn't allow name

2017-09-26 Thread Robert Gomułka
Robert Gomułka added the comment: It turns out that enum34 backports module was the culprit (it was first on search path). When using enum native module, everything works as expected: > c:\Python\Python36-32\python.exe -I Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32

[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-10 Thread Robert Snoeberger
New submission from Robert Snoeberger : The signature for PyBuffer_FillContiguousStrides in the documentation shows that the type of parameter 'itemsize' is Py_ssize_t [1]. This is different from the signature in Include/abstract.h which shows that the type as int [2].

[issue32486] tail optimization for 'yield from'

2018-01-03 Thread Robert Smart
New submission from Robert Smart : When a generator procedure ends with "yield from" it would be nice if this was handled efficiently (just replace the generator with the new source). Because it is natural to push things back into a generator with def prependGen(hd,tl): yield hd

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2018-06-02 Thread Robert Collins
Robert Collins added the comment: So, I think we're in a local minima here. As I said earlier, neither the old nor new names really grab me, and I think everyone has aknowledged that the new name is -at best- confusing. We don't need *any more discussion* about that. The question

[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback

2018-07-29 Thread Robert Wright
Change by Robert Wright : -- pull_requests: +8064 ___ Python tracker <https://bugs.python.org/issue32321> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24412] setUpClass equivalent for addCleanup

2018-09-27 Thread Robert Collins
Robert Collins added the comment: Serhiy, thats not a design flaw, its a feature. in a class hierarchy, setup and teardown ordering is undefined: implementors can choose whatever order they want to execute in. e.g. class A(TestCase): def setUp(self): super().setUp() acquire1() class B

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-15 Thread Robert Wall
Robert Wall added the comment: I saw that article too but reading man tcp(4) [1], it says that this value is in seconds for macOS and testing appears to confirm this. Where the unit of time is different, however, is with the old and new Windows keepalive options discussed in #32394. The

[issue35005] argparse should accept json and yaml argument types

2018-10-16 Thread Robert Benson
Change by Robert Benson : -- versions: +Python 2.7 ___ Python tracker <https://bugs.python.org/issue35005> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35005] argparse should accept json and yaml argument types

2018-10-16 Thread Robert Benson
Change by Robert Benson : -- components: Library (Lib) nosy: derelbenkoenig priority: normal severity: normal status: open title: argparse should accept json and yaml argument types type: enhancement ___ Python tracker <https://bugs.python.

[issue35005] argparse should accept json and yaml argument types

2018-10-16 Thread Robert Benson
Change by Robert Benson : -- versions: -Python 2.7 ___ Python tracker <https://bugs.python.org/issue35005> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35005] argparse should accept json and yaml argument types

2018-10-16 Thread Robert Benson
New submission from Robert Benson : Using `argparse`, I wanted to create an argument that was a JSON dictionary. I found that using this in combination with the `fromfile_prefix_args` keyword argument, that the parser assumes that each argument provided in the file must be on a single line

[issue35005] argparse should accept json and yaml argument types

2018-10-17 Thread Robert Benson
Robert Benson added the comment: What I'm talking about is reading a single arg (of a dictionary or collection type) that can be split across multiple lines, rather than a single line containing multiple args My motivation was that reading args from a file should behave in a manner si

[issue33074] dbm corrupts index on macOS (_dbm module)

2018-10-29 Thread Robert Xiao
Robert Xiao added the comment: I just started a new project, thoughtlessly decided to use `shelve` to store data, and lost it all again thanks to this bug. To reiterate: Although `gdbm` might fix this issue, it's not installed by default. But the issue is with `dbm`: Python is allowi

[issue35123] Add style guide for sentinel usage

2018-10-31 Thread Robert Wright
New submission from Robert Wright : Sentinel values are used inconsistently in the Python code base. It would be helpful to have a style guide (about eg. casing, placement, and sentinel reuse) to prevent arguments about their use in future code. -- messages: 328984 nosy: madman bob

[issue35124] Add style guide for unit tests

2018-10-31 Thread Robert Wright
New submission from Robert Wright : There should be a style guide for tests, to prevent arguments about their use in future code. -- messages: 328986 nosy: madman bob priority: normal severity: normal status: open title: Add style guide for unit tests

[issue35123] Add style guide for sentinel usage

2018-10-31 Thread Robert Wright
Robert Wright added the comment: Just the classic problems caused by inconsistency in code - confusion when reading, and disagreements when writing. For reading: Where should I look in a file for the sentinels? Is this value a sentinel, or is it some other type of variable? For writing

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Robert Pollak
New submission from Robert Pollak : Currently, fields are converted to datetime as described in https://docs.python.org/3/library/sqlite3.html#sqlite3.PARSE_COLNAMES : 'select x as "x [datetime]" from table' In my use case I don't know the names and locations

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-02 Thread Robert Pollak
Robert Pollak added the comment: (In fact, I am currently taking the first non-missing entry of each text column and trying to dateutil.parser.parse it. If that works, I use pandas.to_datetime on the column.) -- ___ Python tracker <ht

[issue35150] Misc/README.valgrind out-of-date

2018-11-02 Thread Robert Henry
New submission from Robert Henry : File Misc/README.valgrind is out of date with respect to python3.8. There are important sections of this file that are 15 years old! Example: the README.valgrind refers to "Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c" but there

[issue35145] sqlite3: "select *" should autoconvert datetime fields

2018-11-03 Thread Robert Pollak
Robert Pollak added the comment: Thank you, Paul, for your hints on sniffing. I have now asked at SqliteStudio for confirmation that they also do content sniffing to detect datetime text fields: https://github.com/pawelsalawa/sqlitestudio/issues/3449 . So in this issue I am suggesting to

[issue35145] sqlite3: "select *" should optionally autoconvert TEXT datetime fields

2018-11-03 Thread Robert Pollak
Change by Robert Pollak : -- title: sqlite3: "select *" should autoconvert datetime fields -> sqlite3: "select *" should optionally autoconvert TEXT datetime fields ___ Python tracker <https://

[issue35145] sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields

2018-11-04 Thread Robert Pollak
Robert Pollak added the comment: Stéphane, your example does not match my use case with unknown table structure. Does everyone agree that such a sniffing is out of scope for sqlite3? That's not what I'd call "batteries included" :-( -- title: sqlite3: "se

[issue35145] sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields

2018-11-05 Thread Robert Pollak
Robert Pollak added the comment: I have created the attached sqlite database file (with SQLiteStudio) for testing. I contains a table `t` with a TEXT column `x` and a DATETIME (according to SQLiteStudio) column `y`. The table contains a single row with the value `2018-11-05 12:20:30` for

[issue35145] sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields

2018-11-05 Thread Robert Pollak
Robert Pollak added the comment: Paul, the sniffing would be only active for people who explicitly add a connect() argument like detect_types=DETECT_DATETIME, which can have the appropriate warning in the docs. You can also extend the sniffing to all values, not just the first non-missing

[issue35145] sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields

2018-11-06 Thread Robert Pollak
Robert Pollak added the comment: Here is now a reduced version of my real use case: 2017v2-reduced.db. The file was originally created with "Oracle DBConvert". This file contains a table without rows. I was wrong in my last comment: There's also no sniffing needed here, see

[issue35123] Add style guide for sentinel usage

2018-11-07 Thread Robert Wright
Robert Wright added the comment: Perhaps there's confusion over what I mean by "style guide". I'd happily take Steven's message *as* the style guide. Or, at the very least, the clarification that sentinels are to be thought of as constants. It's one of th

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2018-11-18 Thread Robert Pollak
Change by Robert Pollak : -- title: sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields -> sqlite3: optionally autoconvert table_info's DATETIME fields ___ Python tracker <https://bugs.

[issue18054] Add more exception related assertions to unittest

2013-06-08 Thread Robert Collins
Robert Collins added the comment: Hey, feel free to +nosy me on unittest things :). Julian pinged me on IRC about this - Jml and I would be delight to prepare a patchset for assertThat for unittest and as much of the core of Matchers as makes sense. The bare core can come in without any of

[issue18198] unittest discover should provide a way to define discovery at package level

2013-06-12 Thread Robert Collins
Robert Collins added the comment: This is a duplicate of 16662 -- nosy: +rbcollins ___ Python tracker <http://bugs.python.org/issue18198> ___ ___ Python-bug

[issue18198] unittest discover should provide a way to define discovery at package level

2013-06-12 Thread Robert Collins
Robert Collins added the comment: Well, spoke with vila on IRC. I content it's a duplicate because if load_tests in __init__ kicks in and supercedes discovery, I believe this bug would not be needed. -- ___ Python tracker <http://bugs.py

[issue18232] running a suite with no tests is not an error

2013-06-16 Thread Robert Collins
New submission from Robert Collins: In bug https://bugs.launchpad.net/subunit/+bug/586176 I recorded a user request - that if no tests are found, tools consuming subunit streams should be able to consider that an error. There is an analogous situation though, which is that if discover returns

[issue14776] Add SystemTap static markers

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz : -- nosy: +Robert.Buchholz ___ Python tracker <http://bugs.python.org/issue14776> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13405] Add DTrace probes

2013-06-21 Thread Robert Buchholz
Changes by Robert Buchholz : -- nosy: +Robert.Buchholz ___ Python tracker <http://bugs.python.org/issue13405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14776] Add SystemTap static markers

2013-06-21 Thread Robert Buchholz
Robert Buchholz added the comment: It's been a year and the 3.4 alpha is approaching. What's the status of upstream inclusion of this patch? -- ___ Python tracker <http://bugs.python.o

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Robert Collins
Changes by Robert Collins : -- nosy: +rbcollins ___ Python tracker <http://bugs.python.org/issue18526> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18526] Add resource management/guarding to unittest

2013-07-23 Thread Robert Collins
Robert Collins added the comment: I'll do a full review shortly, but at the conceptual level, I don't see any benefit in making a new SkipTest base class, other than instantly breaking other runners when an unknown exception is raised. SkipTest is part of the API. Making a new exce

[issue18544] subprocess.Popen support for redirection of arbitrary file descriptors

2013-07-24 Thread Robert O'Callahan
New submission from Robert O'Callahan: Popen() ought to support redirection to/from more file descriptors than 0, 1, and 2 when spawning processes. A clear use case is here: http://stackoverflow.com/questions/6050187/write-to-file-descriptor-3-of-a-python-subprocess-popen-object Inste

[issue14596] struct.unpack memory leak

2012-04-23 Thread Robert Elsner
Robert Elsner added the comment: Well then at least the docs need an update. I simply fail to see how a cache memory leak constitutes "just fine" (while the caching behavior of struct.unpack is not documented - if somebody wants caching, he ought to use struct.Struct.unpack which does

[issue14839] xml.sax.make_parser() returns "No parsers found"

2012-05-17 Thread Robert Koziol
New submission from Robert Koziol : Hi all, It seems a little weird for me but I can not find this bug created. So I create one. Invoking xml.sax.make_parser() returns an Exception - as in the following example: Python 2.7.3rc2 (default, Mar 21 2012, 06:59:11) [GCC 4.6.3] on linux2 Type

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Robert Lehmann
Robert Lehmann added the comment: Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as methods instead of functions. It seems Tim borrowed Guido's time machine and already implemented (a) in Python 3.x, see http://docs.python.org/py3k/library/functions.html#ma

[issue13405] Add DTrace probes

2012-08-29 Thread Robert Kern
Changes by Robert Kern : -- nosy: -robert.kern ___ Python tracker <http://bugs.python.org/issue13405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16058] ConfigParser no longer deepcopy compatible in 2.7

2012-09-26 Thread Robert Collins
New submission from Robert Collins: In 2.6 deepcopy(ConfigParser) worked, in 2.7 it doesn't due to the _optcre variable which is a compiled regex pattern. -- components: Library (Lib) messages: 171364 nosy: rbcollins priority: normal severity: normal status: open title: ConfigPars

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-03 Thread Robert Xiao
New submission from Robert Xiao: This issue affects Python 2.5 through 2.7, but not Python 3. open accepts basically anything for the second argument, so long as it either starts with r, w, or a, or contains U somewhere in the string. Therefore, the following are all legal in Python 2.7.3

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-03 Thread Robert Xiao
Changes by Robert Xiao : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue16125> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16202] sys.path[0] security issues

2012-10-11 Thread Robert Bradshaw
Robert Bradshaw added the comment: Alternatively, one could fix distutils.util.byte_compile() to execute the script in safe, empty temp directory. Running scripts in /tmp remains, as it has always been, a bad idea. Trying to determine if an import is "safe" can be arbitrarily c

[issue16202] sys.path[0] security issues

2012-10-12 Thread Robert Bradshaw
Robert Bradshaw added the comment: Here's a fix to distutils. I think at least a warning is in order for running scripts from insecure directories, and ideally some happy medium can be found. -- Added file: http://bugs.python.org/file27542/fix_distutils.

[issue16202] sys.path[0] security issues

2012-10-12 Thread Robert Bradshaw
Robert Bradshaw added the comment: Good point about cleanup, patch updated. -- Added file: http://bugs.python.org/file27543/fix_distutils.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins
New submission from Robert Collins: TextTestRunner calls str(TestCase) directly, which makes it hard for testscenarios to rename the test cases as it parameterises them (because __str__ is a descriptor). While testscenarios could use a decorator instead, thats undesirable as the test case

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins
Robert Collins added the comment: Or anther way this could be done would be to make TestCase.__str__ call self.id(), and then __str__ never needs to be adjusted - id() or shortDescription are the only things to tweak. -- ___ Python tracker <h

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Robert Collins
Robert Collins added the comment: They aren't descriptors? They certainly aren't normal methods: >>> class foo(object): ... def __str__(self): return "foo" ... >>> f = foo() >>> f.__str__ = lambda: "bar" >>> str(f) 

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-21 Thread Robert Collins
Robert Collins added the comment: testscenarios copies the tests, it doesn't call the constructor for the class; this makes things a lot simpler than trying to reconstruct whatever state the object may have from scratch again. As for str(test) and test.id() being different - well sure

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-21 Thread Robert Collins
Robert Collins added the comment: @Michael I'll put a patch together next week then. @R.david.murray no idea - but I've refreshed the page, we'll if it behaves better. My guess would be a buggy in-flight-collision detection in the issu

[issue1298835] Add a vendor-packages directory for system-supplied modules

2014-03-25 Thread Robert Kuska
Robert Kuska added the comment: There is ongoing discussion on pip's github tracker [1] about default location where to install user modules. IMO this is something that should be dealt with in Python Interpreter Core [2][3]. I would like to hear some opinion from python devs on this.

[issue1298835] Add a vendor-packages directory for system-supplied modules

2014-04-01 Thread Robert Kuska
Robert Kuska added the comment: Ok, I have started a thread at pypa-devs google group. https://groups.google.com/forum/#!topic/pypa-dev/r6qsAmJl9t0 -- ___ Python tracker <http://bugs.python.org/issue1298

[issue21418] Segv during call to super_init in application embedding Python interpreter.

2014-05-02 Thread Robert Snoeberger
New submission from Robert Snoeberger: While embedding the Python interpreter in an application, I have encountered a crash when the built-in function 'super' is invoked with no arguments. The crash occurs during a call to PyObject_Call. A file is attached, super_invoke.c, that repr

[issue21563] Segv during call to builtin_execfile in application embedding Python interpreter.

2014-05-23 Thread Robert Snoeberger
New submission from Robert Snoeberger: While embedding the Python 2.7 interpreter in an application, I have encountered a crash when the built-in function 'execfile' is invoked with one argument. A file is attached, execfile_invoke.c, that reproduces the crash. The reproduction s

[issue21563] Segv during call to builtin_execfile in application embedding Python interpreter.

2014-05-26 Thread Robert Snoeberger
Robert Snoeberger added the comment: I created a patch to add a check for NULL globals or locals. The file execfile.patch is attached. A system error is set with the message "globals and locals cannot be NULL" if either is NULL. An open question I have is how should I create test

[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-05-28 Thread Robert Jordens
New submission from Robert Jordens: According to the documentation the "exec a in b, c" is equivalent to "exec(a, b, c)". But in the testcase below the tuple form causes a SyntaxError while the statement form works fine. diff -r e770d8c4291c Lib/test/test_compi

[issue21630] List Dict bug?

2014-06-01 Thread Robert w
New submission from Robert w: outer for loop loops n > 1 times, when it should loop one time. Variations are possible tht the bug doesn't occur. -- components: Interpreter Core files: bug.py messages: 219513 nosy: Robert.w priority: normal severity: normal status: open title: L

[issue21630] List Dict bug?

2014-06-01 Thread Robert w
Changes by Robert w : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue21630> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21631] List/Dict Combination Bug

2014-06-01 Thread Robert w
New submission from Robert w: outer for loop loops more than one time, which should be impossible. -- components: Interpreter Core files: bug.py messages: 219514 nosy: Robert.w priority: normal severity: normal status: open title: List/Dict Combination Bug type: behavior versions

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Robert w added the comment: banner C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0>C:\Python33\python Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or &q

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Changes by Robert w : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue21631> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Robert w added the comment: i cutted it down = class EnumSectionContentType(object): DATABYTE = 2 DATADOUBLEWORD = 3 DATAWORD = 4 #LABEL = 0 def _getStringOfElements(elements): objectFileString = "" elements = [{'type': 2, 'data': {&#

[issue16600] rlcompleter

2012-12-03 Thread Robert McGibbon
New submission from Robert McGibbon: I'm not really sure how what the format for filing bugs with python is, so I'm sorry in advance if I've done something wrong. There is a very small py3k bug in the readline completer (rlcompleter.py). Specifically, if you look at

[issue16600] small py3k bug in rlcompleter

2012-12-03 Thread Robert McGibbon
Changes by Robert McGibbon : -- title: rlcompleter -> small py3k bug in rlcompleter ___ Python tracker <http://bugs.python.org/issue16600> ___ ___ Python-

[issue16600] small py3k issue in rlcompleter

2012-12-03 Thread Robert McGibbon
Changes by Robert McGibbon : -- title: small py3k bug in rlcompleter -> small py3k issue in rlcompleter ___ Python tracker <http://bugs.python.org/issu

[issue16600] small py3k issue in rlcompleter

2012-12-03 Thread Robert McGibbon
Changes by Robert McGibbon : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue16600> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16600] small py3k issue in rlcompleter

2012-12-03 Thread Robert McGibbon
Robert McGibbon added the comment: nevermind. -- ___ Python tracker <http://bugs.python.org/issue16600> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16662] load_tests not invoked in package/__init__.py

2012-12-11 Thread Robert Collins
New submission from Robert Collins: In loader.py: if fnmatch(path, pattern): # only check load_tests if the package directory itself matches the filter name = self._get_name_from_path(full_path) package = self

[issue12600] Add example of using load_tests to parameterise Test Cases

2012-12-11 Thread Robert Collins
Robert Collins added the comment: BTW I'm very happy with testscenarios (on pypi) for this, modulo one small issue which is the use of __str__ by the stdlib [which isn't easily overridable - there is a separate issue on that]. I'd be delighted to have testscenarios be in the s

[issue16662] load_tests not invoked in package/__init__.py

2012-12-11 Thread Robert Collins
Robert Collins added the comment: I have a package with tests in it. If the tests match test*.py, they are loaded, and load_tests within each one called. But load_tests on the package isn't called. If I change the pattern supplied by the user to match the package, then the tests w

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2012-12-17 Thread Robert Collins
New submission from Robert Collins: Openstack recently switched from nose to using discover. discover walks the filesystem using os.listdir(), and that is just a thin layer over readdir. On ext3/ext4 filesystems, readdir is in an arbitrary order dependent on file insertion into the directory

[issue16892] Windows bug picking up stdin from a pipe

2013-01-08 Thread Robert Oeffner
New submission from Robert Oeffner: Hi, This is a bug that seems to exist on python 2.7, python 3.3 on Windows versions XP, Vista, 7 and 8 and has been around for some years, presumably also in other python versions. It is only recently I have managed to better isolate it although not

[issue16970] argparse: bad nargs value raises misleading message

2013-01-17 Thread Robert Leenders
Robert Leenders added the comment: Attached is a patch which solves these problems and adds test cases of Chris Jerdonek. When nargs is negative the same ValueError is raised as when nargs is zero. Also when nargs is any other invalid value a ValueError("invalid value for nargs")

[issue16988] argparse: PARSER option for nargs not documented

2013-01-17 Thread Robert Leenders
New submission from Robert Leenders: There is a value for nargs: PARSER="A..." which is not documented at http://docs.python.org/3.4/library/argparse.html#nargs. The docstring for the action class in argparse.py also does not list PARSER as a valid value for nargs. In argparse.

[issue16970] argparse: bad nargs value raises misleading message

2013-01-17 Thread Robert Leenders
Robert Leenders added the comment: The new issue about PARSER can be found here: http://bugs.python.org/issue16988 -- ___ Python tracker <http://bugs.python.org/issue16

[issue16970] argparse: bad nargs value raises misleading message

2013-01-18 Thread Robert Leenders
Robert Leenders added the comment: Chris, you said (in the review) "Hmm, since this is for maintenance releases ... This change could cause "working" code to no longer work." I understood from our original message that you wanted it to change since it is inconsistent. I

[issue16970] argparse: bad nargs value raises misleading message

2013-01-18 Thread Robert Leenders
Changes by Robert Leenders : Removed file: http://bugs.python.org/file28766/argparse-v2.patch ___ Python tracker <http://bugs.python.org/issue16970> ___ ___ Python-bug

[issue16970] argparse: bad nargs value raises misleading message

2013-01-18 Thread Robert Leenders
Changes by Robert Leenders : Added file: http://bugs.python.org/file28767/argparse-v2.patch ___ Python tracker <http://bugs.python.org/issue16970> ___ ___ Python-bug

[issue17048] calendar should understand full- vs. half-width characters

2013-01-27 Thread Robert Xiao
New submission from Robert Xiao: Try this at your command-prompt (requires utf8 support in the terminal emulator): $ python3 -m calendar -L zh_CN -e utf8 The result is a mess like this: 2013 一月二月三月 一

[issue17049] calendar throws UnicodeEncodeError when locale is specified

2013-01-27 Thread Robert Xiao
New submission from Robert Xiao: Try this at a command-prompt: $ python -m calendar -L ja_JP --encoding utf8 The result is a crash: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_modu

[issue17048] calendar should understand full- vs. half-width characters

2013-01-27 Thread Robert Xiao
Robert Xiao added the comment: This is also a problem in Python 2.7 after the patch in issue17049 is applied. -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue17

[issue17051] Memory leak in os.path.isdir under Windows

2013-01-27 Thread Robert Xiao
New submission from Robert Xiao: [From http://stackoverflow.com/questions/12648737/huge-memory-leak-in-repeated-os-path-isdir-calls] os.path.isdir() leaks memory under Windows in Python 2.7. The core cause is this snippet: Modules/posixmodule.c:4226: if (!PyArg_ParseTuple(args, &qu

[issue17051] Memory leak in os.path.isdir under Windows

2013-01-27 Thread Robert Xiao
Robert Xiao added the comment: The PSF form really needs a PDF version. Anyway, 'tis duly submitted. -- ___ Python tracker <http://bugs.python.org/is

[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit

2013-10-23 Thread Robert Xiao
Robert Xiao added the comment: I've attached a fixed readline.so built from today's 2.7 branch, for the convenience of anyone who upgraded to 10.9 and now has crashing Python. Drop the file in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload, replacing th

[issue19444] mmap.mmap() allocates a file descriptor that isn't CLOEXEC

2013-10-29 Thread Robert Merrill
New submission from Robert Merrill: Same code but different problem as this issue: http://bugs.python.org/issue10897 The above-linked issue was closed as WONTFIX, but there is a secondary problem: the file descriptor that mmap.mmap() allocates is not set to close-on-exec. This means that any

[issue19444] mmap.mmap() allocates a file descriptor that isn't CLOEXEC

2013-10-29 Thread Robert Merrill
Robert Merrill added the comment: I should add a caveat: the fd that is created by mmap /will/ be set to close-on-exec if the fd you passed in was. But even if it's not, I see no reason why mmap should not be setting it anyway. At the very least, the documentation should bring the u

[issue19444] mmap.mmap() allocates a file descriptor that isn't CLOEXEC

2013-10-30 Thread Robert Merrill
Robert Merrill added the comment: I'm adding Library again because I think the current behavior is a bug and should be fixed in the 2.7 tree. Perhaps the documentation in older versions should be updated mmap.mmap should always set the FD_CLOEXEC flag on the descriptor that it gets fro

[issue19444] mmap.mmap() allocates a file descriptor that isn't CLOEXEC

2013-10-30 Thread Robert Merrill
Robert Merrill added the comment: Sorry, I correct my earlier statement: even if the fd you pass to mmap.mmap() is set to FD_CLOEXEC, the dup'd fd /will not be/ So this is a REALLY bad bug because users cannot workaround it except by just not using

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao
Changes by Robert Xiao : Removed file: http://bugs.python.org/file32320/readline.so ___ Python tracker <http://bugs.python.org/issue18458> ___ ___ Python-bugs-list mailin

[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao
Robert Xiao added the comment: Russell, that's not related to readline. Please file a new bug report. -- ___ Python tracker <http://bugs.python.org/is

[issue19746] No introspective way to detect ModuleImportFailure

2013-11-23 Thread Robert Collins
New submission from Robert Collins: https://bugs.launchpad.net/testtools/+bug/1245672 was filed on testtools recently. It would be easier to fix that if there was some way that something loading a test suite could check to see if there were import errors. The current code nicely works in the

<    1   2   3   4   5   6   7   8   9   10   >