Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92494
| X-FeedAbuse | http://nntpfeed.proxad.net/abuse.pl feeded by 195.154.70.45 |
|---|---|
| Path | csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:Error': 0.07; "'''": 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thursday,': 0.13; 'def': 0.14; 'thu,': 0.15; 'copy-pasted': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'working.': 0.18; 'language': 0.19; '>>>': 0.20; 'portion': 0.20; 'trying': 0.22; 'fine,': 0.22; 'lawrence': 0.22; 'am,': 0.23; 'appears': 0.23; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'fine': 0.29; 'print': 0.31; 'language.': 0.32; 'this?': 0.34; 'to:addr:python- list': 0.35; 'problem.': 0.35; 'reply.': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'skip:i 20': 0.37; 'received:org': 0.38; 'thank': 0.39; 'to:addr:python.org': 0.39; 'mark': 0.40; 'your': 0.60; 'email addr:gmail.com': 0.64; 'our': 0.64; 'charset:windows-1252': 0.65; 'dear': 0.67; 'sir,': 0.79; '"fine"': 0.84; 'obama': 0.84; 'pythonistas,': 0.84; 'utc+5:30,': 0.84; 'results,': 0.91; 'reply,': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: Error in or |
| Date | Thu, 11 Jun 2015 18:54:55 +0100 |
| References | <3bf5dd52-c698-4392-be2b-5c0aeefc3cd3@googlegroups.com> <mailman.402.1434037847.13271.python-list@python.org> <6a171772-23a5-471d-a4e5-73f195c9055c@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-92-24-216-53.ppp.as43234.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| In-Reply-To | <6a171772-23a5-471d-a4e5-73f195c9055c@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.404.1434045317.13271.python-list@python.org> (permalink) |
| Lines | 54 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1434045317 news.xs4all.nl 2968 [2001:888:2000:d::a6]:58161 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:92494 |
Show key headers only | View raw
On 11/06/2015 17:39, subhabrata.banerji@gmail.com wrote:
> On Thursday, June 11, 2015 at 9:20:59 PM UTC+5:30, Ian wrote:
>> On Thu, Jun 11, 2015 at 9:40 AM,
>>> if write this it is working fine, but if I write
>>>
>>> if ("AND" in inp1) or ("OR" in inp1) or ("NOT" in inp1) or (">" in inp1) or ("&" in inp1) or ("MAYBE" in inp1) or ("(" in inp1) or ("*" in inp1) or (''' " ''' in inp1):
>>>
>>> the portion of (''' " ''' in inp1) is not working.
>>
>> Not working how? I copy-pasted the line and it appears to work fine.
>
> Dear Sir,
> Thank you for your kind reply. Nice to know your reply, but I am trying to send you my experiment, please see my results,
>
>>>> def input1(n):
> inp1=raw_input("PRINT YOUR QUERY:")
> if ("AND" in inp1) or ("OR" in inp1) or ("NOT" in inp1) or (">" in inp1) or ("&" in inp1) or ("MAYBE" in inp1) or ("(" in inp1) or ("*" in inp1) or (''' " ''' in inp1):
> print "FINE"
>
>
>>>> input1(1)
> PRINT YOUR QUERY:"Java"
>>>> input1(1)
> PRINT YOUR QUERY:"Obama in London"
>>>> input1(1)
> PRINT YOUR QUERY:Obama AND Bush
> FINE
>>>> input1(1)
> PRINT YOUR QUERY:Obama OR Bush
> FINE
>>>>
>
> you may get better my problem.
>
> Regards,
> Subhabrata Banerjee.
>
In [6]: input1(1)
PRINT YOUR QUERY:Bush ANDES Obama
FINE
In [8]: input1(1)
PRINT YOUR QUERY:Bush ORDER Obama
FINE
Do you actually want this?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error in or subhabrata.banerji@gmail.com - 2015-06-11 08:40 -0700
Re: Error in or Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-11 09:49 -0600
Re: Error in or subhabrata.banerji@gmail.com - 2015-06-11 09:39 -0700
Re: Error in or Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-11 10:47 -0600
Re: Error in or subhabrata.banerji@gmail.com - 2015-06-11 10:21 -0700
Re: Error in or Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-11 18:54 +0100
Re: Error in or Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-06-12 09:41 +0000
Re: Error in or Marko Rauhamaa <marko@pacujo.net> - 2015-06-12 12:55 +0300
csiph-web