This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1


Rolf,

On Mon, Nov 18, 2002 at 01:23:13PM -0500, Rolf Campbell wrote:
> I tried going back to python-2.2.1-1, and everything started working
> again. 

Really?  I just tried the following:


    $ ./python
    Python 2.2.1 (#1, Jun 25 2002, 10:55:46) 
           ^^^^^
           *****
    [GCC 2.95.3-5 (cygwin special)] on cygwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import TERMIOS
    /home/jt/src/python-2.2.1-1/Lib/TERMIOS.py:7: DeprecationWarning: the TERMIOS module is deprecated; please use termios
      DeprecationWarning)
    >>> 
    >>> TERMIOS.TIOCMBIS
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
    AttributeError: 'module' object has no attribute 'TIOCMBIS'

So, python-2.2.1-1 does not seem to work either.  I also tried 2.2-1 and
2.1.1-1 -- they don't seem to define TERMIOS.TIOCMBIS either.

Upon reading Modules/termios.c, we see the following:

    #ifdef TIOCMBIC
        {"TIOCMBIC", TIOCMBIC},
    #endif
    #ifdef TIOCMBIS
        {"TIOCMBIS", TIOCMBIS},
    #endif

Hence, TIOCMBI[CS] will only be defined if a header files (e.g.,
sys/termios.h) defines the corresponding constants.

> I don't know if this is really a problem with the cygwin version of
> python or not.  The "TIOCMBI[SC]" attributes of the termios module
> seem to have disappeared.  I really don't know what these are, or what
> they are used for, but if anyone knows what I can change them to, to
> make it work, I'd be appreciative.

I'm sorry but if this is important to you, then you will have to debug
this corner case further yourself.  AFAICT, there have not been any
changes to Cygwin Python is this area for sometime (i.e., for over 1
year).

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]