Timeline for Reading and writing data for Caesar cipher
Current License: CC BY-SA 3.0
        4 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 15, 2016 at 16:10 | comment | added | arekolek | 
        
            
    It would be clearer to write line.rsplit(maxsplit=2). Also, I would pass op to caesar_cipher(msg.lower(), int(n), op) and there would have if op=='d': n = -n. You don't need the assignment before write, you could pass the result directly. I also posted a different implementation of caesar_cipher that may be more Pythonic.
        
     | 
|
| Nov 25, 2013 at 23:50 | comment | added | 200_success | 
        
            
    I would move the open() operations outside process_file(), so that the caller has the flexibility to call process_file(sys.stdin, sys.stdout).
        
     | 
|
| Nov 25, 2013 at 22:53 | history | edited | Hugh Bothwell | CC BY-SA 3.0 | 
        
            
             
                
                    added 45 characters in body 
                
             
        
     | 
| Nov 25, 2013 at 22:45 | history | answered | Hugh Bothwell | CC BY-SA 3.0 |