This is the mail archive of the gdb-patches@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]

Re: [patch] [python] Fix Python 3 build and testsuite issues


>> sorted_list = list(_sort_list())

Phil> I avoided this because I did not want to convert an iterable to a list
Phil> (the new dict.keys/values/items returns a lightweight iterator instead
Phil> of a list.)  My thoughts were that creating an imap or map like object
Phil> would be cheaper than creating a list from a lightweight iterator.

Perhaps it's a wash.
But the old code was also simpler to understand.

Phil> You mentioned
Phil> it applies elsewhere in the patchset? The only similar path is for the
Phil> filename, but that always creates a newly allocated string from
Phil> python_string_to_host_string.  There is no other
Phil> newly-allocated/referenced pointer split in the code path in this
Phil> patch?

Yeah, I misread the filename handling hunk.
Sorry about that.

Tom


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