Lack of whitespace between contain operator ("in") and other expression tokens doesn't result in SyntaxError: bug or feature?

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu May 3 18:24:05 EDT 2012


> >     Sure.. it's just somewhat inconsistent with other expectations in
> > other languages, and seems somewhat unpythonic.
> 
> 	Never done FORTRAN, have you... Classic FORTRAN even allows
> white-space INSIDE keywords.

Java tends to ignore a lot of spaces as well...though not as much
as classic FORTRAN it would seem.

class test{
	public static void main( String []args ){
		System.out. 
		println( "test"	);
		for (String each : args){
			System.out. println( each );
		}
		System.out. println( args [0] );
	}

 }

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  



More information about the Python-list mailing list