Skip to content

ByteArray implementation enhancements#1177

Merged
mmatera merged 2 commits intomasterfrom
filenames-implement
Mar 9, 2021
Merged

ByteArray implementation enhancements#1177
mmatera merged 2 commits intomasterfrom
filenames-implement

Conversation

@mmatera
Copy link
Copy Markdown
Contributor

@mmatera mmatera commented Mar 8, 2021

This PR fix some issues of the current implementation of ByteArray, and covers new functionalities like conversions to Normal List objects.


def boxes_to_text(self, **options) -> str:
return '"' + base64.b64encode(self.value).decode('utf8') + '"'
return '"' + self.__str__() + '"'
Copy link
Copy Markdown
Member

@rocky rocky Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: think self.__str()__ is the same thing as str(self).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, self.__str__() and str(self) should be the same thing with a different number of keystrokes. I thought this way was more "explicit", but as you prefer...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just an observation. Do any way you wish.

@mmatera mmatera merged commit 7a693c7 into master Mar 9, 2021
@mmatera mmatera deleted the filenames-implement branch March 9, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants