__pycache__, one more good reason to stck with Python 2?

Sherm Pendley sherm.pendley at gmail.com
Wed Jan 19 12:47:41 EST 2011


H₂0.py <okopnik at gmail.com> writes:

> On Jan 18, 4:04 am, Peter Otten <__pete... at web.de> wrote:
>>
>> What's the advantage of 'find ... | xargs ...' over 'find ... -exec ...'?
>
> Portability. Running the '-exec' version will work fine in a directory
> with a relatively small number of files, but will fail on a large one.

How? -exec passes each file name to a separate invocation of the given
command - it doesn't build one large command line with multiple args.

sherm--

-- 
Sherm Pendley
                                   <http://camelbones.sourceforge.net>
Cocoa Developer



More information about the Python-list mailing list