Closed jdeniau closed 4 years ago
@badaz commented on 2015-06-04 06:23
Comme pour la PR de Dim, je ne connais pas trop le projet mais le code à l'air propre, j'approuve
@badaz approved :heavy_check_mark: the pull request on 2015-06-04 06:23
@jdeniau commented on 2015-06-04 07:07
Location: line 295 of
datection/tokenize.py
il ne faut pas mieux faire 'datection.grammar.{}'.format(self.lang)
?
@jdeniau commented on 2015-06-04 07:09
Location: line 318 of
datection/tokenize.py
Pfouiou pas compris la double list comprehension any(not any()) ! :D
@jdeniau commented on 2015-06-04 07:12
Idem, j'approuve, mais je n'ai rien compris. J'ai juste compris que dans certains cas on ne passait pas à certains endroits avec le probe_kind, mais tout le tokeniser je suis perdu !
Bitbucket user O_P_mapado approved :heavy_check_mark: the pull request on 2015-06-05 14:26
@dallegoet approved :heavy_check_mark: the pull request on 2015-06-08 12:48
Bitbucket user dream commented on 2015-06-09 12:40
Location:
datection/tokenize.py
il ne faut pas mieux faire
'datection.grammar.{}'.format(self.lang)
?
Pourquoi ? Ca me semble pas plus clair a lire si ?
Bitbucket user dream commented on 2015-06-09 12:56
Location:
datection/tokenize.py
Pfouiou pas compris la double list comprehension any(not any()) ! :D
Voici la version mutable avec des 'break'.
contain_datetime_and_date = False
for ds in date_spans:
ds_contained_in_a_span_datetime = False
for dts in datetime_spans:
if dts[0] <= ds[0] and dts[1] >= ds[1]:
ds_contained_in_a_span_datetime = True
break
if not ds_contained_in_a_span_datetime:
contain_datetime_and_date = True
break
Du coup je trouve la version codé plus lisible.