[Tutor] A slight bug in IDLE
Dave Angel
davea at davea.name
Sun Jul 14 01:56:56 CEST 2013
On 07/13/2013 07:45 PM, Dave Angel wrote:
> On 07/13/2013 07:29 PM, Jim Mooney wrote:
>> Dave Angel <davea at davea.name>
>>
>> <SNIP>
>> Where I got confused is I'm importing a module with a manual input, then
>> renaming the input function to a generator function in my program , so I
>> can bypass manual input and feed the module tons of data. That works
>> fine,
>> but I didn't follow how the imported module code could see that it should
>> go to my generator function instead of the manual input function,
>> unless I
>> was changing the imported module in some way. But it's now clear I'm not.
>>
> I really couldn't follow that paragraph. What's a manual input? What
> do you mean renaming the input function (you mean the input statement?)
> to a generator function? Perhaps this would better be a new thread you
> should start.
Oops. I meant input()/raw_input() function, not statement. The one in
builtins. But these as opposed to any old function that happens to do
input.
--
DaveA
More information about the Tutor
mailing list