Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

EOL in 10.1

$
0
0
Hey folks,

I was running into a eol error when calculating a field with string values that have carriage returns.

The statement I was using was:
Code:

!field_name!
My work around was as follows:

Code:

'''!field_name!'''[2:-1].replace('\n',' ').strip()
My question is simple, why is this an issue?

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images