It annoys me that the LZW encoding examples I've seen have a much larger alphabet than what is actually used. I think I'm having a problem with my gif encoding because the alphabet is small but the table of codes generated is larger.
Man, writing the parser for SAS must have been a nightmare since there are no reserved keywords and * can mean several things, one of which is comment.
@El'endiaStarman Interesting, I didn't know that either. Come to think of it, I don't think I've seen any language that had syntax warnings in addition to errors.
Well, no, I take that back. Julia warns for deprecated syntax.
Functions can read variables in encompassing scopes, but cannot set them unless said variables are explicitly defined as global in both the function scope and encompassing scopes.
The Compiler Language With No Pronounceable Acronym, abbreviated INTERCAL, is an esoteric programming language that was created as a parody by Don Woods and James M. Lyon, two Princeton University students, in 1972. It satirizes aspects of the various programming languages at the time, as well as the proliferation of proposed language constructs and notations in the 1960s.
There are two currently maintained versions of INTERCAL: C-INTERCAL, maintained by Eric S. Raymond, and CLC-INTERCAL, maintained by Claudio Calvelli.
== HistoryEdit ==
According to the original manual by the authors,
The full...
"The Compiler Language With No Pronounceable Acronym, abbreviated INTERCAL"
Australians love public holidays, and drinking. Yesterday, the 26th January, was Australia day, which is a public holiday. I was glad to not be at work yesterday, and eager to know the next time I get a public holiday! Unfortunately, I had a bit too much to drink, and I'm not able to work it out ...
@TimmyD if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if too often, the program could be rejected as excessively polite. Although this feature existed in the original INTERCAL compiler, it was undocumented
The __import__ function can be a bit hard to understand.
If you change
i = __import__('matplotlib.text')
to
i = __import__('matplotlib.text', fromlist=[''])
then i will refer to matplotlib.text.
In Python 2.7 and Python 3.1 or later, you can use importlib:
import importlib
i = importli...
@CᴏɴᴏʀO'Bʀɪᴇɴ eval is worth avoiding when possible, especially when you're dealing with user input. That said, there are a few appropriate use-cases, and that may be one of them. That said, looks like there's a better way, a la the answer I linked.
__init__.py
from os.path import dirname, basename, isfile
import glob
modules = glob.glob(dirname(__file__)+"/*.py")
__all__ = [ basename(f)[:-3] for f in modules if isfile(f)]
@Doorknob When and why did you abandon it? I have to use it for a class. Somehow I passed a Java proficiency exam never having used Java before, so I got to skip the intro to Java course.
Introduction
In chemistry there is a type of extension, .xyz extension,(https://en.wikipedia.org/wiki/XYZ_file_format), that prints in each line
a chemical element, and the coordinates in the plane of the element. This is very useful for chemists to understand chemical compounds and to visualize...