Hi Chris,
On Apr 19, 2009, at 5:45 PM, Chris Castillo wrote:
I am trying to open a text file and read multiple lines containing the
following:
745777686,Alam,Gaus,CIS,15,30,25,15,5,31,15,48,70,97
888209279,Anderson,Judy,Math Ed,14,30,30,13,11,30,16,18,58,72
This is CSV format data (comma sep
so how would I check to see if the student number entered by the user
matches one of the student numbers in the file and then display that
students info?
On 4/19/09, R. Alan Monroe wrote:
>
>> gradesfile = open("grades.dat", "r
>> for lines in gradesfile:
>> [snip]
>> That's what I have so far bu
> gradesfile = open("grades.dat", "r
> for lines in gradesfile:
> [snip]
> That's what I have so far but I have a feeling I shouldn't use a for
> loop.
Actually a for loop seems like the right tool for this job, assuming
you really _do_ want to process every line in the file.
Alan
_
On Sun, Apr 19, 2009 at 3:18 PM, Scott SA wrote:
> I guess I should really find the actual code and read what
> it is doing... as Kent very gently prodded me with.
It's in the Lib directory of your Python installation.
> I did go through a few
> PEPs too, and I don't recall seeing anything about
I am trying to open a text file and read multiple lines containing the
following:
745777686,Alam,Gaus,CIS,15,30,25,15,5,31,15,48,70,97
888209279,Anderson,Judy,Math Ed,14,30,30,13,11,30,16,18,58,72
I want to ask the user for the student number, check to see if that
number is even valid and display
Hi Stephan & Kent,
On Apr 19, 2009, at 6:12 AM, Stefan Behnel wrote:
just commenting on this part:
... which basically says append WARNING messages to the rotating file
handler in DatetimeLevelMessage format to a log-file named
test_warn.log
splitting the log-file when it exceeds 125829120
On Apr 19, 2009, at 4:52 AM, vishwajeet singh wrote:
This is not to flame any war; I just wanted to know the key features
to consider among the two web frame works.
What advantage and disadvantages you have when you decide using any
one of them.
I can't speak with any authority on Webpy (
Hi,
just commenting on this part:
Scott SA wrote:
> [handler_warn_logfile]
> class=handlers.RotatingFileHandler
> level=WARNING
> formatter=DatetimeLevelMessage
> args=('test_warn.log', 'a', 125829120, 5)
> filename=test_warn.log
> mode=a
>
> ... which basically says
Hi All,
This is not to flame any war; I just wanted to know the key features to
consider among the two web frame works.
What advantage and disadvantages you have when you decide using any one of
them.
Thanks for your help
--
Cheers,
Vishwajeet
http://www.singhvishwajeet.com
___
On Sat, Apr 18, 2009 at 5:07 PM, Scott SA wrote:
> I want to re-direct the logs from python's logging library and while using a
> config file rather than instantiating all of the logging within my actual
> code.
>
> So, lets say I have a file log.conf that contains the various directives for
> th
10 matches
Mail list logo