Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52524

RE: Verifying Variable value

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'completeness': 0.07; 'debugging': 0.07; 'ex:': 0.09; 'kumar': 0.09; 'received:155': 0.09; 'python': 0.11; 'def': 0.12; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'ides': 0.16; 'printing.': 0.16; 'received:155.180': 0.16; 'received:159': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:159.53.110.174': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:sj2.jpmchase.com': 0.16; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'url:pydev': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'example': 0.22; 'print': 0.22; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'mode': 0.30; 'statement': 0.30; 'code': 0.31; 'option)': 0.31; 'received:169.254': 0.32; 'option': 0.32; 'table': 0.34; 'there': 0.35; 'accuracy': 0.36; 'url:org': 0.36; 'received:169': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'most': 0.60; 'information,': 0.61; 'purchase': 0.65; 'subject': 0.69; 'legal': 0.71; 'manner.': 0.74; 'sale': 0.75; 'column.': 0.84; 'received:169.254.8': 0.84; 'to:addr:yahoo.co.in': 0.91; 'imagine': 0.93
X-DKIM OpenDKIM Filter v2.1.3 sj2.jpmchase.com r7EGalwd013311
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1376498208; bh=2yoKr9QwOJCDNHfyeFHoemsCA3n96comTUu9Q3NiuPc=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:content-transfer-encoding:MIME-Version; b=hbpQ92O48+9VZjdPKon9xsYpT26qp0Aj2MdRRriM9oySufnlcDRF59d1kMtwsdmI5 +fQ1PpfKM3+b/6Y5S3u3PZr74tzkU6stCtHp5/3j5Zrg0iupxf0EyIETEOWevD5hpN /kzesZjMnrVJdji55+r9OVuKiVWTGHbSm/RtwNy8=
X-AuditID a959a25c-b7f0b8e0000025d3-02-520bb21e35d1
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid>
To chandan kumar <chandan_psr@yahoo.co.in>, Python <python-list@python.org>
Subject RE: Verifying Variable value
Thread-Topic Verifying Variable value
Thread-Index AQHOmNcUkS5kSEq43kyxm71Oq9dloJmU5TCg
Date Wed, 14 Aug 2013 16:36:40 +0000
References <1376475131.60391.YahooMailNeo@web190502.mail.sg3.yahoo.com>
In-Reply-To <1376475131.60391.YahooMailNeo@web190502.mail.sg3.yahoo.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.67.79.47]
Content-Type text/plain; charset="iso-8859-1"
content-transfer-encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
X-Brightmail-Tracker H4sIAAAAAAAAA+NgFvrNKsWRmVeSWpSXmKPExsUye4uJnq78Ju4gg0uTRSx2nXvCZnGk9Rqr A5PHi/lv2DzOnnzMGMAU1cBok5iXl1+SWJKqkJJanGyr5JJZnJyTmJmbWqSgq+BVkJtflJ6Y p5ecn6ukkJliq2SipFCQk5icmpuaV2KrlFhQkJqXomTHpYABbIDKMvMUUvOS81My89JtlTyD /XUtLEwtdQ2V7EIyMosVUnMTM3MUEjayZzRv2clc8Im94uD1X0wNjMvYuhg5OSQETCTuXbzI BGGLSVy4tx4ozsUhJHCEUWL7vUWMEM4hRom91++wQDgbGSWeLPnHDtLCJmAocfzsEzBbRMBH Ysm2J4wgtrCAqsTOPW1MEHE1iZ33TrJA2EYSS3+2gdksQDX3Vk0H6+UVCJG48nUl2ElCAh4S X+b/YgaxOQU8JTZuOwc2hxHovO+n1oDZzALiEreezIc6W0BiyZ7zzBC2qMTLx/9YIWx5iRdT XrJB1OtJ3Jg6BcrWlli28DUzxF5BiZMznwDdwwG0V01i33pbEFNCgE9ie1v1BEaJWUiWzUIy aBaSQbOQDFrAyLKKUbI4Nz3NUK+4rEivtFgvqyA3OSOxOFUvL7VkEyMwzayMXBSzg/Fpn+0h RgEORiUe3og27iAh1sSy4spcYEBzMCuJ8ErqnAsU4k1JrKxKLcqPLyrNSS0+xFgFDLOJzFKi yfnAFJhXEm9obGZhYGpqaGBhaGRCFWElcd5NuUDHCKQDk2p2ampBahHMciYOTqkGxkmLDpy/ v9Re/0NPceR5uyVBnwPX73y4UTN71ynZezlf/3AEOB/Vn3pzhcbUqxcvHJ3y2uvQuuUP/t1V cP7NI5h4Zm7ygl9Hbj2JDAtZp7d3Ef/neOZWxy9lz1InFPWsZHngEfkpx+byvg/fr5otXp5k 83nVms6Tj/bHs79y1TgUU/M7r263v26YEktxRqKhFnNRcSIAdSEzSY4DAAA=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.579.1376498218.1251.python-list@python.org> (permalink)
Lines 44
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1376498218 news.xs4all.nl 15976 [2001:888:2000:d::a6]:49508
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52524

Show key headers only | View raw


chandan kumar wrote:

> Hi ,
> 
> Is there a way to validate variable values while debugging any python code.Run below example  in
> debugging mode and i would like to know the value of c (I know print is an option) with any other
> option other than printing.
> In C# or some other tools we can verify each statement and values. Is there way to check each
> statement in python code like in c#.
> 
> Ex:
> def method()
>   a = 20
>   b =30
>   c =  a + b
> 
> 
> Best Regards,
> Chanadn

In addition to pdb, I would imagine most Python IDEs would support debugging in this manner.

pydev: http://pydev.org/manual_adv_debugger.html
Wing: http://wingware.com/wingide/debugger
Pycharm: http://www.jetbrains.com/pycharm/webhelp/running-and-debugging.html

This actually has a nice table of some IDEs for Python. See which ones
have a 'Y' under the PD column.
http://stackoverflow.com/questions/81584/what-ide-to-use-for-python


~Ramit



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.  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Verifying Variable value "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> - 2013-08-14 16:36 +0000

csiph-web