Moving to an OOP model from an classically imperitive one
Steven D'Aprano
steve at pearwood.info
Thu Apr 24 05:08:22 EDT 2014
On Thu, 24 Apr 2014 00:21:18 -0700, tim.thelion wrote:
>> [snip]
>>
>> Could you make the program name unique just by combining it with the
>>
>> repository name in a single string?
>
> In my case I cannot. But there is a larger reason why I wouldn't do
> this: It would mean adding a special character that could not be
> included in the repository name,
Do you support \n or \r or \0 in repo names? If not, then there you go,
three special characters to choose from.
But I suspect that a tuple of (repo_name, program_name) will be better.
--
Steven
More information about the Python-list
mailing list