Python | os.supports_bytes_environ object Last Updated : 07 Jun, 2019 Improve Improve Like Article Like Save Share Report OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.supports_bytes_environ in Python checks whether native OS type of the environment is bytes or not. For example, Windows do not has bytes as their native OS type of the environment. So its value will be False on Windows. Syntax: os.supports_bytes_environ Parameter: It is a non-callable object. Hence, no parameter is required. Return Type: This object returns a bool value True of False on the basis of whether native OS type of the environment is bytes or not. Code: Use of os.supports_bytes_environ to check whether native OS type of the environment is bytes or not. # Python program to explain os.supports_bytes_environ object # importing os module import os # check whether the native # OS type of the environment # is bytes or not. isBytes = os.supports_bytes_environ # Print result print(isBytes) Output: True Like Article Suggest improvement Previous Python | os.supports_bytes_environ object Next Python | os.supports_dir_fd object Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads Object Oriented Programming in Python | Set 2 (Data Hiding and Object Printing) Object Detection vs Object Recognition vs Image Segmentation Python - Read blob object in python using wand library OOP in Python | Set 3 (Inheritance, examples of object, issubclass and super) Find the Solidity and Equivalent Diameter of an Image Object Using OpenCV Python Python Object Comparison : "is" vs "==" Python object() method Python | Convert dictionary object into string Python | Matplotlib Sub plotting using object oriented API Python | Ways to convert string to json object Like I ihritik Follow Article Tags : python-os-module Python Practice Tags : python