Fileinput as a generator Python script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: index_txt
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Python
  • Price:Other Free / Open So
  • Company: Brett Cannon (View more)

Fileinput as a generator script description:




Publisher review:
Fileinput as a generator script provides a class called LineIterator that iterates over every line in a list of files. This script provides a class called LineIterator that iterates over every line in a list of files, performing the basic functionality as fileinput module in the standard library (which mimics Perl's operator). Basically acts as a simple and methodical way to iterate over every line in a list of files. If no files are specified at instance creation, then sys.argv[1:] is used. If that is empty, then sys.stdin is used.sys.stdin can be specified in the list of files by listing '-' as a file.

Lacking functionality, compared to the fileinput module, is in-place editing and subsequently backup. The module functions that are included in fileinput are left out here for space concerns. readline() has also been left out since the generator can just have its .next() method called. the gene;
Fileinput as a generator is a Python script for File Management scripts design by Brett Cannon. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Fileinput as a generator script provides a class called LineIterator that iterates over every line in a list of files.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5