Ned Batchelder wrote:
> On Monday, November 21, 2016 at 12:48:25 PM UTC-5, Victor Porton wrote:
>> Which of two variants of code to construct an "issue comment" object
>> (about BitBucket issue comments) is better?
>>
>> 1.
>>
>> obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1), i
On Monday, November 21, 2016 at 12:48:25 PM UTC-5, Victor Porton wrote:
> Which of two variants of code to construct an "issue comment" object (about
> BitBucket issue comments) is better?
>
> 1.
>
> obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1), id2)
>
> or
>
> 2.
>
> list
Which of two variants of code to construct an "issue comment" object (about
BitBucket issue comments) is better?
1.
obj = IssueComment(Issue(IssueGroup(repository, 'issues'), id1), id2)
or
2.
list = [('issues', IssueGroup), (id1, Issue), (id2, IssueComment)]
obj = construct_subobject(reposito