![]() |
|
|
#12 | ||
|
Aug 2012
New Hampshire
23·101 Posts |
Quote:
Quote:
Code:
for line in data:
if len(line) > 1:
print(line)
print("whitespace")
Code:
for line in data:
if len(line) > 1:
print(line)
print("whitespace")
Code:
for line in data:
if len(line) > 1:
print(line)
print("whitespace")
hmmm, maybe I should look at Ruby. |
||
|
|
|
|
|
#13 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
|
|
|
|
|
|
#14 |
|
Banned
"Luigi"
Aug 2002
Team Italia
2·3·11·73 Posts |
|
|
|
|
|
|
#15 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
642310 Posts |
Quote:
The indents are remarkably wide - I tend to write python with one-space indents. |
|
|
|
|
|
|
#16 | |
|
Aug 2012
New Hampshire
23×101 Posts |
Quote:
|
|
|
|
|
|
|
#17 |
|
Jan 2014
2×73 Posts |
Actually, I am in the middle of implementing something similar with a more traditional *ix approach using bash shell scripts, crontab, init.d,etc.
I intend to implement the web API specification as a library of shell functions. If I find time, I can upload to a repo in the coming days. |
|
|
|
|
|
#18 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
In my mind, native regular expressions are one of the things which makes Perl so powerful. When I have to do any text processing in C (a rarity these days) I often bring in the POSIX regular expression library.
Although I will agree that RegEx can be a bit of a steep learning curve, and can be of the "write once, read never" nature (as in, complex expressions can be difficult for a human to understand). But, having said that, the power they bring to the coder is, IMO, well worth the effort. |
|
|
|
|
|
#19 |
|
"Mike"
Aug 2002
2×23×179 Posts |
|
|
|
|
|
|
#20 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
Quote:
|
|
|
|
|
|
|
#21 |
|
Aug 2012
New Hampshire
11001010002 Posts |
It turns out there is no reason to continue this work as it already exists
http://mersenneforum.org/showpost.ph...8&postcount=57 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux install of CUDA toolkit for GT 430 card, maybe… | ewmayer | GPU Computing | 66 | 2015-01-10 08:46 |
| GPU72's fetching/reporting API | Aramis Wyler | GPU to 72 | 44 | 2013-04-10 13:41 |
| GPU72.com TF worm fetching tool now available | swl551 | GPU to 72 | 83 | 2013-03-25 09:04 |
| CUDA Toolkit for OpenSUSE 11.2--gcc 4.5 and up are not supported | patrik | GPU Computing | 9 | 2012-04-07 03:50 |
| NVIDIA CUDA C toolkit for G80 GPU available | dsouza123 | Programming | 2 | 2007-02-18 12:50 |