This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/13339] type.array(X) creates array of X+1 items


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]