Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags

3 Posted Topics

Member Avatar for boni_go

Hi, I try to copy tree by shutil.copytree(). While the function run, I get some Exception "File name too long". The path+fike name are realy long, and the exception as I understand is from the OS not Python. Do you have any solution? * I can not change the directory …

Member Avatar for edenrol
0
1K
Member Avatar for boni_go

Hello, I have some problem with os exception. In the traceback info I get only the errno without the description. for examplem when I write: [code=python] import os; os.listdir("no-exists-dir-name"); [/code] I get the exception: [code=python] Traceback (most recent call last): File "<interactive input>", line 1, in <module> WindowsError: [Error 3] …

Member Avatar for SteveWhite
0
461
Member Avatar for MrShoot

Hi you can check the first letter: [code = python] for el in my_list: conv_list.append(el[0] + el[1:].lower()) [/code] el[1:] = the string without the first char for example: el = "CAnADA" el[0] = "C" el[1:] = "AnADA" el[1:].lower() = "anada" el[0] + el[1:].lower() = "Canada" - as you want

Member Avatar for Ene Uran
0
165

The End.