Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix part of #30901, more consistent printing of Day #31962

Closed
wants to merge 1 commit into from

Conversation

JeffBezanson
Copy link
Member

@JeffBezanson JeffBezanson commented May 7, 2019

This prints as e.g. Day(1) for all show and repr calls. 1 day is used for print or mimetype text/plain.

For this issue in the 1.2 timeframe, I think we should either do this or nothing. The only way to get a more significant improvement is to add another IOContext flag so we can be smarter about when to print in julia syntax.

Fixes part of #30901.

@JeffBezanson JeffBezanson added needs decision A decision on this change is needed dates Dates, times, and the Dates stdlib module display and printing Aesthetics and correctness of printed representations of objects. labels May 7, 2019
@JeffBezanson JeffBezanson added this to the 1.2 milestone May 7, 2019
@nalimilan
Copy link
Member

I'm not sure it's really a good solution, since it changes even more the printing of Day compared with 1.1, and we already know we want to change it again it 1.3. Why not just revert the changes to what we did in 1.2 and apply a proper fix in 1.3?

@JeffBezanson
Copy link
Member Author

So revert both #30200 and #30817 ?

@JeffBezanson
Copy link
Member Author

Triage is in favor of reverting those on the release branch. Master can stay as-is so we can try to develop this further.

@ararslan ararslan deleted the jb/fix30901 branch May 9, 2019 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dates Dates, times, and the Dates stdlib module display and printing Aesthetics and correctness of printed representations of objects. needs decision A decision on this change is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants