Vajrasky Kok added the comment:
Is there any possibility this ticket could be committed in Python 3.4? If yes,
it would be good because we would have a good foundation for creating better
error message in Python 3.5.
Anyway, I check Python's competitors' behaviour.
Ruby displays both files.
irb(main):001:0> File.symlink('a.txt', 'b')
Errno::EEXIST: File exists @ sys_fail2 - (a.txt, b)
from (irb):1:in `symlink'
from (irb):1
from /home/ethan/Documents/code/ruby/localruby/bin/irb:11:in `<main>'
Perl omits the files.
DB<8> print symlink("a.txt", "b");
0
DB<9> print $!;
File exists
PHP omits the files.
php -r "symlink('b', 'a');"
PHP Warning: symlink(): File exists in Command line code on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. symlink() Command line code:1
Warning: symlink(): File exists in Command line code on line 1
Call Stack:
0.0001 225688 1. {main}() Command line code:0
0.0001 226392 2. symlink() Command line code:1
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16074>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com