On 21/03/2013 16:17, Alan Gauld wrote:
On 21/03/13 13:43, Shall, Sydney wrote:
I have an elementary question provoked by another post today.
1. Is it the case that ALL imported data from a file is a string?
Assuming you mean data read from a file rather than modules imported
using 'import' t
On 21/03/13 13:43, Shall, Sydney wrote:
I have an elementary question provoked by another post today.
1. Is it the case that ALL imported data from a file is a string?
Assuming you mean data read from a file rather than modules imported
using 'import' then the answer is 'it depends'.
Most f
On 03/21/2013 10:03 AM, Dave Angel wrote:
A typo below; sorry.
On 03/21/2013 09:43 AM, Shall, Sydney wrote:
I have an elementary question provoked by another post today.
1. Is it the case that ALL imported data from a file is a string?
No, the imported data is a module. For example
>> 3. Are there defined procedures for doing the required processing?
>
> If you meant conversion functions, int() and float() are examples of
> those. You of course (most of the times) have to make use of string
> manipulation functions (strip(), rstrip(), etc) to extract the exact
> data item yo
On 03/21/2013 09:43 AM, Shall, Sydney wrote:
I have an elementary question provoked by another post today.
1. Is it the case that ALL imported data from a file is a string?
No, the imported data is a module. For example
import sys
print type(sys)
At this point, sys is a object of
On 21/03/2013 13:54, Amit Saha wrote:
On Thu, Mar 21, 2013 at 11:43 PM, Shall, Sydney wrote:
I have an elementary question provoked by another post today.
1. Is it the case that ALL imported data from a file is a string?
2. Does this therefor imply that said data has to be processed appropriat
On Thu, Mar 21, 2013 at 11:43 PM, Shall, Sydney wrote:
> I have an elementary question provoked by another post today.
>
> 1. Is it the case that ALL imported data from a file is a string?
> 2. Does this therefor imply that said data has to be processed appropriately
> to generate the data in the