1

I was reading a word count example for Apache beam when I saw this Python code

p | beam.io.ReadFromText(
'gs://dataflow-samples/shakespeare/kinglear.txt')

In this p is a already defined variable

Ignoring the Apache beam part I am a bit confused from Python perspective. I have never seen this | in Python before. What is this language construct known as?

Aseem Bansal
  • 6,722
  • 13
  • 46
  • 84

0 Answers0