homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients Arfrever, ezio.melotti, georg.brandl, kushal.das, larry, serhiy.storchaka, terry.reedy, v+python, vajrasky
Date 2013年12月19日.08:45:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387442729.57.0.727696274213.issue16074@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013年12月19日 08:45:29vajraskysetrecipients: + vajrasky, georg.brandl, terry.reedy, larry, ezio.melotti, Arfrever, v+python, serhiy.storchaka, kushal.das
2013年12月19日 08:45:29vajraskysetmessageid: <1387442729.57.0.727696274213.issue16074@psf.upfronthosting.co.za>
2013年12月19日 08:45:29vajraskylinkissue16074 messages
2013年12月19日 08:45:28vajraskycreate

AltStyle によって変換されたページ (->オリジナル) /