Mercurial > pylearn
annotate .hgignore @ 420:040cb796f4e0
Removed feature of passing the file as a pathname from filetensor.{read, write}
Rationale:
1. The common pattern of multiple successive reads to load a list of arrays
doesn't work for the string argument.
2. It isn't clear without checking the docs whether the write() will open a file
in append mode, which could lead to bugs.
3. It's a fairly useless feature anyway, because the truly lazy programmer can
call write(open(filename, 'w'), mat) to reproduce the old behaviour if he
wants it, and without the open-mode ambiguity.
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Tue, 15 Jul 2008 12:57:21 -0400 |
parents | a1eb3dbc035d |
children | 6eb0900fb553 |
rev | line source |
---|---|
47
7086cfcd8ed6
added file with pattern of file that should be ignored by mercurial
Frederic Bastien <bastienf@iro.umontreal.ca>
parents:
diff
changeset
|
1 syntax: glob |
7086cfcd8ed6
added file with pattern of file that should be ignored by mercurial
Frederic Bastien <bastienf@iro.umontreal.ca>
parents:
diff
changeset
|
2 *~ |
53
a1eb3dbc035d
ignore compiled version of python script
Frederic Bastien <bastienf@iro.umontreal.ca>
parents:
47
diff
changeset
|
3 *.pyc |