| Perl // Python General discussions about Perl and Python. |
|
#1
| ||||
| ||||
| Question:
Ive been searching around and can't to seem to find what the point of a "list" would be. For example: Code: li = ['a', 'b', 'c']
li.extend(['d', 'e', 'f'])
print li [:6]
li.append ("new")
print li
Now i think i understand this but i don't understand what the point of doing this. What could it be used for? (Not just my example)
__________________ "Intern0t, fight crime with crime, preventing internet security risks since 2009!" |
|
#2
| ||||
| ||||
| Re: Question: Logging? Logs should be appended below each other, not overwritten. I'm not sure what your point is though.
__________________ ![]() |
|
#4
| ||||
| ||||
| Re: Question:
Not always just logging.. but yes DSKY is right it is used to append data so you are not overwriting a file and losing old data.
__________________ Drathnar Director of Information Systems Security -- TSC Corp. Owner Black Panther Consulting -- ISS Consulting |
|
#6
| ||||
| ||||
| Re: Question:
well lets say you are running a script on a database backbone like sql or oracle or something of the like... you would use a script such as that (not exactly but similar) in order to append records to the database vice overwriting the table each time the script is ran.. or in dealing with a file you could use it the same way lets say you have a mainframe that stores data.. you would then export the data and use that script to append the data to the file rather than overwriting the file.. so you have the data for historical purposes.. or you write a program that needs to keep track of things that were done in the past it would need to append rather than overwrite So it is like logging but not logging in its default terminology rather historical data retention. probably didn't help much lol but basically what i was trying to say is associating the word logging and solely logging with the process is not entirely correct as it is used for other things as well.. any time you would have the need to add rather than replace this would be a viable solution.
__________________ Drathnar Director of Information Systems Security -- TSC Corp. Owner Black Panther Consulting -- ISS Consulting |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Xss hacking question. | VipVince | General Hacking Discussions | 2 | 22nd March 2010 13:06 |
| Mac Battery Question | Tsukasa | The Offtopic Section | 3 | 18th November 2009 23:32 |
| C++ Keylogger Question | nemesis | C // C++ | 17 | 5th November 2009 10:53 |
| Question About XOR usage | ccoder | General Security Discussions | 5 | 1st November 2009 17:37 |
| Question | macd3v | Java // Ruby | 2 | 22nd December 2008 13:07 |