Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro / pre processor word / python option to ignore the lines.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the programForce the compiler to ignore some lines in the program

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro / pre processor word / python option to ignore the lines.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro / pre processor word / python option to ignore the lines.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

added 12 characters in body
Source Link
almanegra
  • 663
  • 9
  • 21

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro or also a/ pre processor word / python option to supressignore the errorlines.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro or also a python option to supress the error.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro / pre processor word / python option to ignore the lines.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

added 130 characters in body
Source Link
almanegra
  • 663
  • 9
  • 21

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro or also a python option to supress the error.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro or also a python option to supress the error.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

It's just a curiosity about python. Is there a way to write anything in python files without getting any error and without using comments? It could be a macro or also a python option to supress the error.
For instance:

#!/usr/bin/python
# coding: utf-8

I am writing anything I want here!


def func1(number):
   print(number)

func1(3)

and the result wouldn't trigger any error, printing the number 3.

A similar C++ question: Force the compiler to ignore some lines in the program

added 14 characters in body
Source Link
almanegra
  • 663
  • 9
  • 21
Loading
Source Link
almanegra
  • 663
  • 9
  • 21
Loading