This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/13339] type.array(X) creates array of X+1 items
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 27 Oct 2011 12:51:40 +0000
- Subject: [Bug python/13339] type.array(X) creates array of X+1 items
- Auto-submitted: auto-generated
- References: <bug-13339-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13339
--- Comment #4 from Phil Muldoon <pmuldoon at redhat dot com> 2011-10-27 12:51:40 UTC ---
I've really no problem with a single argument being "length", in fact it makes
sense. But this would break an established and documented API. If a
maintainer waives that, that is fine, I will change it. There is an argument
to be made that this was a bug, and we fixed it (and this would be ok under our
API promise), but we already documented the fact that the lower-bound would be
assumed to be zero in the case of single-argument specifications. We could add
a "length=" keyword which the user could pass in-place of arguments - that
would account for the specification being a length, not a range.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.