[Tutor] How to compare dates which has (,)

2016-03-06 Thread Fosiul Alam
Hi , my bellow codes work ok to compare date and time for perticular format example Feb 7 07:33:19 , but I am not understanding how do i capture and compare dates in bellow formate (,) : also, i having trouble to implement this in python : grep -E -A5 -B3 So basically what i am want is : SCAN

Re: [Tutor] Surprised that print("a" "b") gives "ab"

2016-03-06 Thread eryk sun
On Sun, Mar 6, 2016 at 9:52 AM, Steven D'Aprano wrote: > On Sun, Mar 06, 2016 at 01:03:01AM -0600, boB Stepp wrote: > >> get your semantics point, but are there two string objects created in >> both approaches or does the first in fact create only a single object? >> If the first truly only creat

Re: [Tutor] Surprised that print("a" "b") gives "ab"

2016-03-06 Thread Steven D'Aprano
On Sun, Mar 06, 2016 at 01:03:01AM -0600, boB Stepp wrote: > Under the hood, are the two approaches above done in the same way? Probably not, but the true answer will surely depend on which implementation and version of Python we are talking about. When you run Python code, there are a number o

Re: [Tutor] Surprised that print("a" "b") gives "ab"

2016-03-06 Thread Steven D'Aprano
On Sun, Mar 06, 2016 at 05:37:44PM +1100, Ben Finney wrote: > boB Stepp writes: > > > […] why was this feature implemented? > > You've been asking that a lot lately :-) This forum is unlikely to be > able to give authoritative answers to “why was the language designed the > way it is?”. Well, s