[issue18553] os.isatty() is not Unix only

2015-04-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: needs patch - resolved

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-22 Thread anatoly techtonik

anatoly techtonik added the comment:


  I having a snippet to fix that, should I open a new issue for patch?

 Please open a new issue.


Reference is welcome.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-19 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Georg: Thanks for spotting. I feel bad for the mistake. I shall correct it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2b7f11ba871c by Senthil Kumaran in branch '3.3':
Correcting the mistake in 14ba90816930
http://hg.python.org/cpython/rev/2b7f11ba871c

New changeset e839e524a7d5 by Senthil Kumaran in branch 'default':
Correcting the mistake in 678e3c0d2d99
http://hg.python.org/cpython/rev/e839e524a7d5

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-19 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Fixed now. Ascertained myself by doing hg diff -r tip^ -U 10 on local commits 
before pushing. :-)

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-19 Thread Dmi Baranov

Dmi Baranov added the comment:

I found a little difference in isatty implementaions:

Windows
Determines whether a file descriptor is associated with a character device [1]

Unix
Test whether a file descriptor refers to a terminal [2]

So, we having a same behavior for pipes, but different for I/O redirection with 
pseudo-character devices:

$ ./python -c import os;print(os.isatty(0))  /dev/null
False

e:\PCbuildpython_d.exe -c import os;print(os.isatty(0))  NUL
True

Other pseudo devices works simular:
e:\PCbuildpython_d.exe -c import os;print(os.isatty(0))  CON
True

I having a snippet to fix that, should I open a new issue for patch?


[1] http://msdn.microsoft.com/en-us/library/f4s0ddew.aspx
[2] http://man7.org/linux/man-pages/man3/isatty.3.html

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-19 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Hello Dmi,

 I having a snippet to fix that, should I open a new issue for patch?

Please open a new issue.

Thanks!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-17 Thread Georg Brandl

Georg Brandl added the comment:

Senthil: your 3.3-default merge removed the Availability from fpathconf().

--
nosy: +georg.brandl
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-13 Thread STINNER Victor

STINNER Victor added the comment:

Why only changing Python 2 documentation?

http://docs.python.org/dev/library/os.html#os.isatty
still mention Availability: Unix.

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-13 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I had removed them in all. Something must have gone wrong if still present or I 
did a mistake.


changeset:   85594:678e3c0d2d99
parent:  85591:c116b658aede
parent:  85593:14ba90816930
user:Senthil Kumaran sent...@uthcode.com
date:Sat Sep 07 11:30:04 2013 -0700
files:   Doc/library/os.rst
description:
merge from 3.3

Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.


changeset:   85593:14ba90816930
branch:  3.3
parent:  85589:dd669daad7de
user:Senthil Kumaran sent...@uthcode.com
date:Sat Sep 07 11:28:58 2013 -0700
files:   Doc/library/os.rst
description:
Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.


changeset:   85592:d5c5ac33b9a1
branch:  2.7
parent:  85588:523cfc78847c
user:Senthil Kumaran sent...@uthcode.com

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d5c5ac33b9a1 by Senthil Kumaran in branch '2.7':
os.isatty is not Unix only. Correct the wrong documentation.
http://hg.python.org/cpython/rev/d5c5ac33b9a1

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-07 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I have corrected the documentation. Thanks for raising this issue, anatoly 
techtonik.

--
nosy: +orsenthil
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-02 Thread Dmi Baranov

Dmi Baranov added the comment:

isatty is a part of of POSIX sub-system at Windows  5.x (AKA 2000) [1] (file 
handling equivalents [2]). I think, we need to remove availability note here.

[1] http://msdn.microsoft.com/en-us/library/f4s0ddew.aspx
[2] http://msdn.microsoft.com/en-us/library/kdfaxaay.aspx

--
nosy: +dmi.baranov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-02 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Agree

--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-01 Thread anatoly techtonik

anatoly techtonik added the comment:

None that I know of.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-09-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Are there tests for this?

Not sure what you mean: there are several tests using isatty() in test suite.

Regardless, there is no #ifdef around the isatty() definition in posixmodule.c, 
so I can only assume it exists on all platforms.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-08-17 Thread Ezio Melotti

Ezio Melotti added the comment:

Are there tests for this?

--
components: +Tests
keywords: +easy
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - needs patch
type:  - behavior
versions:  -Python 3.1, Python 3.2, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-07-25 Thread anatoly techtonik

New submission from anatoly techtonik:

It seems like os.isatty(0) works on Windows too. Documentation says Unix only:

  http://docs.python.org/2/library/os.html#os.isatty
  http://docs.python.org/3.4/library/os.html#os.isatty


C:\py -c import os; print os.isatty(0)
True

C:\echo x | py -c import os; print os.isatty(0)
False

C:\py -c import os; print os.isatty(0) | more
True

--
components: Library (Lib)
messages: 193694
nosy: techtonik
priority: normal
severity: normal
status: open
title: os.isatty() is not Unix only
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18553] os.isatty() is not Unix only

2013-07-25 Thread anatoly techtonik

Changes by anatoly techtonik techto...@gmail.com:


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com