Skip to content

Fixing some snippets in rename.py #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raul1991
Copy link

Changes made :

  1. The arguments could easily be fetched by unpacking the argv variable and assigning them directly to the corresponding variables. It seems more clearer that way.
  2. I am so happy to see such good and enthusiastic comments in code. It seems more cool to usually indent the comments of a continuous block according to the longest line and then aligning others accordingly.
    But it becomes tedious task in large files, so ill be writing a script for that too :D

Changes made :

1. The arguments could easily be fetched by unpacking the argv variable and assigning them directly to the corresponding variables. It seems more clearer that way. 

2. I am so happy to see such good and enthusiastic comments in code. It seems more cool to usually indent the comments of a continuous block according to the longest line and then aligning others accordingly.
But it becomes tedious task in large files, so ill be writing a script for that too :D
@raul1991 raul1991 changed the title Update batch_file_rename.py Fixing some snippets in rename.py Dec 27, 2015
sarmahsubhan added a commit to sarmahsubhan/Python that referenced this pull request Jun 17, 2017
Someone suggested me not to use while too much, so tried to create an alternative. 
I am a newbie and this is my first contribution!
A line in the previous code (The equivalent to which in the current code is line geekcomputers#26 said [10], which should have been [12], please fix it. Thanks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant