Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] os.stat should accept bytes as argument

----------------------------------------------

ISSUES

1. [New issue] os.stat should accept bytes as argument
http://ironpython.codeplex.com/workitem/34910
User paweljasinski has proposed the issue:

"cpython 2.7 and 3.3 accept bytes as argument of os.stat, ip doesn't
IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.18052 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat(b'/')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: expected str, got bytes

Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat(b'/')
posix.stat_result(st_mode=16877, st_ino=2, st_dev=2049L, st_nlink=24, st_uid=0, 
st_gid=0, st_size=4096, st_atime=1355492921, st_mtime=1388838281, 
st_ctime=1388838281)

Python 3.3.1 (default, Sep 25 2013, 19:29:01) 
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat(b'/')
posix.stat_result(st_mode=16877, st_ino=2, st_dev=2049, st_nlink=24, st_uid=0, 
st_gid=0, st_size=4096, st_atime=1355492921, st_mtime=1388838281, 
st_ctime=1388838281)
"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on 
CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue 
Tracker. You can unsubscribe or change your issue notification settings on 
CodePlex.com.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to