lections of files, lines
> bytes. (i.e. arrays or tuples...)
> "___count" implies an integer.
> If the latter, I'd use "n_files", "n_lines" ... (possibly without the
> underscores if you find typing them a bother.)
> Comments?
I agree, plura
If I remember how that works right, there is a single empty list that is
created and used for all the calls that use the default argument, and then your
function modifies that empty list so it is no longer empty, and that modified
list is used on future calls. (Not good to use a mutable as a def
plement
__setitem__, __delitem__), and check if the argument is a slice to
handle slices.
--
Richard Damon
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
directory the script is in (it will be typically
run using the PATH, so not the same directory as the script)?
If not, is there an easy way to detect that I am running in IDLE so I
can fake the command line arguments when testing?
--
Richard Damon
___
Tutor
On 5/18/19 6:52 AM, Alan Gauld via Tutor wrote:
> On 18/05/2019 03:14, Richard Damon wrote:
>
>> The same directory, running the same program under Mac OS X, which also
>> is a case insensitive file system,
> That is your mistake. Darwin, the core of the MacOS X system
>
something like:
for file in glob.glob(pattern): processfile(file)
--
Richard Damon
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor