Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jul 27, 2017

pending not merge

this pr includes some little improvements and bugs fixing

see commit messages for details

TitanSnow added 28 commits July 27, 2017 11:10
``__init__`` input_file/output_file overload to support
  file object
  file descriptor
  filename template

``__init__`` make tempfile avoid race

``__del__``, ``__exit__`` avoid double closing and pre-delete to avoid race

``__output_gen`` uses seek to avoid reopen
add module ``log`` to control logging
add ``cyaron.graders.mismatch``
 Mismatch
  HashMismatch
  TextMismatch

modify ``cyaron.graders.fulltext`` & ``cyaron.graders.noipstyle``
 to return Mismatch class instead of str error message
use log in ``cyaron.compare``, prints error to stderr

add arguments to ``__compare_two``
 raise_on_incorrect
  raise an error when incorrect
 dump_on_incorrect
  dump data on incorrect (default: True)

``stop_on_incorrect`` exit with code 1 instead of 0 to mark error state

use TypeError instead of Exception when arguments missing to fit the behavior of python's
python2 does not has ``math.gcd``
use ``fractools.gcd``
@ghost
Copy link
Author

ghost commented Jul 30, 2017

Currently no more changes needed. You could feel free to merge it

@lin-toto lin-toto merged commit 656af22 into luogu-dev:master Jul 31, 2017
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.

1 participant