<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Case Sensitive! in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639429#M21308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is going on with Arc 10 and the case sensitive stuff???&lt;BR /&gt;&lt;BR /&gt;This works:&lt;BR /&gt;arcpy.Clip_management()&lt;BR /&gt;&lt;BR /&gt;This doesn't!!!:&lt;BR /&gt;arcpy.clip_management()&lt;BR /&gt;&lt;BR /&gt;Are you telling me I'm going to have to update literally hundreds of thousands of lines of code in hundreds of scripts in order to move from arc 9.x to&amp;nbsp; Arc 10?&lt;BR /&gt;&lt;BR /&gt;Please tell me this isn't so?&lt;BR /&gt;Anyone figured out a way around this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep it is so. When I took a python class last year, they let everyone know that this would change in 10, so I just started the habit of typing it out correctly since then.*shrugs*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 14:10:46 GMT</pubDate>
    <dc:creator>ArcGISUser</dc:creator>
    <dc:date>2010-11-18T14:10:46Z</dc:date>
    <item>
      <title>Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639426#M21305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is going on with Arc 10 and the case sensitive stuff???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Clip_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't!!!:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.clip_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you telling me I'm going to have to update literally hundreds of thousands of lines of code in hundreds of scripts in order to move from arc 9.x to&amp;nbsp; Arc 10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please tell me this isn't so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone figured out a way around this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 13:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639426#M21305</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2010-11-18T13:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639427#M21306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes Python is case-sensitive...many consider it one of its strengths since it ensures that there is no confusion in the namespace, hence, point is not Point is not POINT.&amp;nbsp; It assists in writing clear code once you get used to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to do search and replace to update, this also happened during the translation from Avenue to Python code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 13:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639427#M21306</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-11-18T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639428#M21307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes Python is case-sensitive...many consider it one of its strengths since it ensures that there is no confusion in the namespace, hence, point is not Point is not POINT.&amp;nbsp; It assists in writing clear code once you get used to it.&lt;BR /&gt;You will have to do search and replace to update, this also happened during the translation from Avenue to Python code.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My point is that it never mattered before Arc 10 (in writing code against ESRI tools) so why change it now?&amp;nbsp; If it would have mattered back in 2005 when I started writing this stuff, maybe I would have got into the habit then.&amp;nbsp; Now it's a disaster!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 13:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639428#M21307</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2010-11-18T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639429#M21308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is going on with Arc 10 and the case sensitive stuff???&lt;BR /&gt;&lt;BR /&gt;This works:&lt;BR /&gt;arcpy.Clip_management()&lt;BR /&gt;&lt;BR /&gt;This doesn't!!!:&lt;BR /&gt;arcpy.clip_management()&lt;BR /&gt;&lt;BR /&gt;Are you telling me I'm going to have to update literally hundreds of thousands of lines of code in hundreds of scripts in order to move from arc 9.x to&amp;nbsp; Arc 10?&lt;BR /&gt;&lt;BR /&gt;Please tell me this isn't so?&lt;BR /&gt;Anyone figured out a way around this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep it is so. When I took a python class last year, they let everyone know that this would change in 10, so I just started the habit of typing it out correctly since then.*shrugs*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 14:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639429#M21308</guid>
      <dc:creator>ArcGISUser</dc:creator>
      <dc:date>2010-11-18T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639430#M21309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, Python has always been case sensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;BUT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The GP stuff has &lt;/SPAN&gt;&lt;STRONG&gt;NEVER&lt;/STRONG&gt;&lt;SPAN&gt; been case sensitive (at least prior to v10). Which is why so many of us build up GP code that won't work in v10 without tons of rewrites...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;shapeFieldName = gp.DeScRiBe(myFC).SHAPEfieldNAME #works great in v93&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am starting to really understand why all the ArcObjects people get so mad with every new major ArcGIS release...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R.D. - I feel your pain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why ESRI makes all these "sweeping" changes (as in sweeps my existing code into the garbage can)!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a wish for an enlightened future of syntax stability...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 15:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639430#M21309</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-11-18T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639431#M21310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Not sure why ESRI makes all these "sweeping" changes (as in sweeps my existing code into the garbage can)!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The case-sensitivity of arcpy is something of a trade-off.&amp;nbsp; By providing early binding with arcpy (giving you drop-downs, code completion, etc), it locks us into case-sensitivity.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The important thing to note is that this change does not affect any Python scripts written using a geoprocessor object.&amp;nbsp; Any scripts written on past releases of ArcGIS, don't &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;need&lt;/SPAN&gt;&lt;SPAN&gt; to be updated--they should just work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639431#M21310</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2010-11-18T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639432#M21311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By providing early binding with arcpy (giving you drop-downs, code completion, etc), it locks us into case-sensitivity&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get it, thanks for the explanation. I made a little .py module of my own a while back, and so I see your point. A small price to pay for code completion perhaps...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm probably not as bad off as most (that want to completely update their gp code to use arcpy only) since I always copied the tool syntax out of the Help syntax example. Most of my problem code is in the methods and properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.shapefieldname #v93 (camel case? no way! - I don't even GaF! I'll do it my way - Wo hoo!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.ShapeFieldName #v10 (uh oh, now case sensitive - I must obey ESRI synax - case by case!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Toolwise though, I have a lot of coworkers that have code like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.union(this + ";" + that, theOther)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They are not so fortunate! Rewrite city for them!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: I know you've heard it a million times, but it sure would be cool to have an arcpy OMD that showed the 'correct' method/property case spellings in v10 (like the v9.0 - 9.3 ones). I use my GP OMD all the time as a cheat sheet (too bad I didn't always follow the case-spellings!). No one would care if there were &amp;gt; 1 pages (just as long as we can print/read them on 11 x 17). I guess code completion is sort of like a cheat sheet, but it is &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;SO NICE&lt;/SPAN&gt;&lt;SPAN&gt;to have everything you need on an 'old-fashioned' printed page sometimes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639432#M21311</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-11-18T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639433#M21312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The case-sensitivity of arcpy is something of a trade-off.&amp;nbsp; By providing&amp;nbsp; early binding with arcpy (giving you drop-downs, code completion, etc),&amp;nbsp; it locks us into case-sensitivity.&amp;nbsp; &lt;BR /&gt;-Dave&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least I understand why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;The important thing to note is that this change does not affect any&amp;nbsp; Python scripts written using a geoprocessor object.&amp;nbsp; Any scripts written&amp;nbsp; on past releases of ArcGIS, don't &lt;SPAN style="font-style:italic;"&gt;need&lt;/SPAN&gt; to be updated--they should just work. -Dave&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This didn't even occur to me for some reason.&amp;nbsp; I was thinking Arc 10 = must use arcpy.&amp;nbsp; At least that fact buys me some time for the transition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;R.D. - I feel your pain.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Chris,&amp;nbsp; I need all the comforting I can get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can think to do this is to search for "gp.", look up the correct syntax, then type over or add to the current text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe when I get some free time:), I'll create a python script containing a giant dictionary will all the tools, methods &amp;amp; properties containing the correct syntax.&amp;nbsp; Then use that dictionary in a search/replace script to fix all my other scripts!&amp;nbsp; I'll let you know when I get that written;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 18:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639433#M21312</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2010-11-18T18:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639434#M21313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can get around this by using the text format functions of Python such as&lt;BR /&gt; &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;x = "A strAnGle case string"&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;print x.lower() # This forces it to use lowercase for the variable.&lt;BR /&gt; &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;#hope that helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is not the case of values, but of the names of methods and properties in ArcPy itself. The only solution to that is to rewrite your code (search and replace in your text editor can help with that though).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 20:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639434#M21313</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2010-11-18T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639435#M21314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ryan - You are on the right track for sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the "correct" case tool names I think from gp.listtools() - or arcpy.listtools() and use that to build a crosswalk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Switching the tool names wouldn't be too horrible, something like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Build a tool name dictionary - toolNameDict[toolName.split("_")[0].lower()] = toolName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - {"clip":"Clip_Analysis"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Look for lines with "gp."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Isolate the part after the "gp." but before the "_' and/or "("&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Convert to lower()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Now scan through the dictionary and hopefully find a match&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The methods and properties would be harder, although most of them tend to be pretty specific keywords like ".getvalue" or ".oidfieldname". Some are not so obscure, like ".name" or ".type". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It'd be pretty hard to get something 100% accurate, but even 50% would be better than 0% (as long as it didn't completely bugger your code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, it would be a pretty good challenge... stuff like this puts the P in GISP for sure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 02:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639435#M21314</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-11-19T02:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639436#M21315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris &amp;amp; Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my post above, I was kind of kidding, but I had the same thought.&amp;nbsp; It may not get it all done but it would certainly speed things up.&amp;nbsp; Hadn't thought of listtools(), that should work for the tool names (which would probably be half my battle).&amp;nbsp; Don't know if there's any way to get method &amp;amp; properties?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you guys have any more ideas, let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639436#M21315</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2010-11-19T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639437#M21316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

def recase():
&amp;nbsp;&amp;nbsp;&amp;nbsp; tools = arcpy.listtools()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for tool_name in tools:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.globals()[tool_name.lower()] = arcpy.globals()[tool_name]

# add the case syntax
recase()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should allow you to use lowercase syntax for arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you guys really need though is a code refactoring tool. To update your code to the new syntax. Most Python IDE's (IDLE, pywin32, notepad, notepad++ ARE NOT IDE's i suggest Pycharm (&lt;/SPAN&gt;&lt;A href="http://www.jetbrains.com/pycharm/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.jetbrains.com/pycharm/&lt;/A&gt;&lt;SPAN&gt;)) can do stuff like this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Took me around 2 minutes for pycharm to refactor all of my scripts to the new arcpy syntax.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639437#M21316</guid>
      <dc:creator>FrankPerks</dc:creator>
      <dc:date>2021-12-12T03:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639438#M21317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frank,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pycharm sounds interesting.&amp;nbsp; The only thing I know about refractoring tools is what I read in the last 5 minutes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you very briefly explain what it takes to set up Pycharm to "fix" your code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm curious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 14:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639438#M21317</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2010-11-19T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639439#M21318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;PyCharm looks cool ($100 though - actually $200 for me (govt.)) - but where's the interactive/immediate window?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I run this code in PyCharm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import random
randomList = []
for i in range (1,11):
&amp;nbsp;&amp;nbsp;&amp;nbsp; randomList.append(random.random())&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I view the contents of randomList?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639439#M21318</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-12T03:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639440#M21319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Frank,&lt;BR /&gt;Pycharm sounds interesting.&amp;nbsp; The only thing I know about refractoring tools is what I read in the last 5 minutes.&lt;BR /&gt;Could you very briefly explain what it takes to set up Pycharm to "fix" your code?&lt;BR /&gt;I'm curious.&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Huh, i don't know why but ether the forums swallowed most of my post or i screwed up somehow sigh. The easiest way to change your code from arcgisscripting --&amp;gt; arcpy (however i don't know why you need to). Make a project add your scripts. Open up arcgisscripting&amp;nbsp; module from within pycharm (it will generate method stubs) for you from the dll. Copy everything, make a new module called arcgisscripting.py within your project. Just to be safe unload the real arcgisscripting library (remove it via the settings panel).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can now then and go and refactor your copy, if you change the module name from arcgisscripting to arcpy (also unload the real arcpy) your scripts will update them selves. Then do the same for methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;PyCharm looks cool ($100 though - actually $200 for me (govt.)) - but where's the interactive/immediate window?&lt;BR /&gt;&lt;BR /&gt;I run this code in PyCharm:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import random
randomList = []
for i in range (1,11):
&amp;nbsp;&amp;nbsp;&amp;nbsp; randomList.append(random.random())&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;How can I view the contents of randomList?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure what you mean exactly by interactive/immediate..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to view the value of something while the program runs ether:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set a break point at the point you want to inspect. Hover over the variable, or go to the debug panel and look at the variables listed in your current stackframe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or add a watch (it is on the debug panel) and type the current name of the variable you want to monitor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nice.&amp;nbsp; I use Wingware, but this seems quite slick as well.&amp;nbsp; Thanks for the link.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wingware IDE is amazing, however their licensing costs and limitations are horrific. Pycharms debugging is nowhere near are good as their debugging. However the price differences are night and day. Maybe someone should make a topic about IDE's.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639440#M21319</guid>
      <dc:creator>FrankPerks</dc:creator>
      <dc:date>2021-12-12T03:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Case Sensitive!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639441#M21320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Limitation, can you be more specific? What are some problems that you have encountered?&lt;BR /&gt; &lt;BR /&gt;The Free Wing 101 still works good.&amp;nbsp; &lt;BR /&gt;&lt;A href="http://www.wingware.com/downloads/wingide-101/3.2.11-1/binaries"&gt;http://www.wingware.com/downloads/wingide-101/3.2.11-1/binaries&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;I have no association with Wing, other than using the product.&lt;BR /&gt; &lt;BR /&gt;"Wing IDE 101 is free scaled down Python IDE designed for use in teaching introductory programming classes. It &lt;A href="http://www.wingware.com/wingide/features/101"&gt;omits many features&lt;/A&gt; found in Wing IDE Professional and makes simplifications appropriate for beginners.The &lt;A href="http://www.wingware.com/doc/install/prerequisites-for-installation"&gt;OS X version&lt;/A&gt; requires an X11 Server. "&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Their licensing is based around OS Installs. So i cannot take their IDE and install it on my laptop since it has already been installed on my desktop. So wait. So that ~200$ CAD purchase turns into ~400$ CAD if i want to run it on my desktop and on my laptop. Also if you reinstall or change your hardware configuration you need to plead to technical support to get your key reinitialized. Compared to pycharm i have it happily installed on my desktop, and my laptop, and when i reinstall my os i don't need to contact technical support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WingIDE 101 is a joke. It omits basic functionality that can be found in free IDE's like pyscripter, and Aptana. Once you take away the best features of WingIDE (code completetion, unit testing, debug probing, etc). All your left with is an ugly text editor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 13:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/case-sensitive/m-p/639441#M21320</guid>
      <dc:creator>FrankPerks</dc:creator>
      <dc:date>2010-11-23T13:42:43Z</dc:date>
    </item>
  </channel>
</rss>

