Skip to content

Conversation

shin-
Copy link
Contributor

@shin- shin- commented Dec 18, 2015

Also ensure we are able to handle 64-bit integers in py2

Fixes #813

@shin- shin- self-assigned this Dec 18, 2015
@shin- shin- added this to the 1.7.0 milestone Dec 18, 2015
@aanand
Copy link
Contributor

aanand commented Dec 21, 2015

Is supporting decimal values important? The Docker CLI doesn't seem to do it:

$ docker run -d -m=1.5G busybox true
docker: invalid size: '1.5G'.
See 'docker run --help'.

I'd argue it's more important to keep in line with the CLI than to add conveniences. This being a library, consumers can do their own maths pretty easily if they need to.

@shin-
Copy link
Contributor Author

shin- commented Dec 21, 2015

It's not imperative, but I don't see any downside to having the option be available!

@shin- shin- force-pushed the 813-parse-float-bytes branch from 93211dd to 218a95f Compare January 18, 2016 21:52
Signed-off-by: Joffrey F <joffrey@docker.com>
@shin- shin- force-pushed the 813-parse-float-bytes branch from 218a95f to cd66f6c Compare January 18, 2016 21:54
@shin- shin- changed the title Handle decimal values in parse_bytes Handle 64-bit integer values in parse_bytes Jan 18, 2016
shin- added a commit that referenced this pull request Jan 18, 2016
Handle 64-bit integer values in parse_bytes
@shin- shin- merged commit eb1f24a into master Jan 18, 2016
@dnephin dnephin deleted the 813-parse-float-bytes branch January 18, 2016 22:48
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.

3 participants