Limitation, can you be more specific? What are some problems that you have encountered?The Free Wing 101 still works good. http://www.wingware.com/downloads/wingide-101/3.2.11-1/binariesI have no association with Wing, other than using the product."Wing IDE 101 is free scaled down Python IDE designed for use in teaching introductory programming classes. It omits many features found in Wing IDE Professional and makes simplifications appropriate for beginners.The OS X version requires an X11 Server. "
Frank,Pycharm sounds interesting. The only thing I know about refractoring tools is what I read in the last 5 minutes.Could you very briefly explain what it takes to set up Pycharm to "fix" your code?I'm curious.Thanks.
PyCharm looks cool ($100 though - actually $200 for me (govt.)) - but where's the interactive/immediate window?I run this code in PyCharm:import random randomList = [] for i in range (1,11): randomList.append(random.random())How can I view the contents of randomList?
import random randomList = [] for i in range (1,11): randomList.append(random.random())
Nice. I use Wingware, but this seems quite slick as well. Thanks for the link.
import arcpy def recase(): tools = arcpy.listtools() for tool_name in tools: arcpy.globals()[tool_name.lower()] = arcpy.globals()[tool_name] # add the case syntax recase()
You can get around this by using the text format functions of Python such as>>>x = "A strAnGle case string">>>print x.lower() # This forces it to use lowercase for the variable.>>>#hope that helps.
The case-sensitivity of arcpy is something of a trade-off. By providing early binding with arcpy (giving you drop-downs, code completion, etc), it locks us into case-sensitivity. -Dave
The important thing to note is that this change does not affect any Python scripts written using a geoprocessor object. Any scripts written on past releases of ArcGIS, don't need to be updated--they should just work. -Dave
R.D. - I feel your pain.
By providing early binding with arcpy (giving you drop-downs, code completion, etc), it locks us into case-sensitivity
Not sure why ESRI makes all these "sweeping" changes (as in sweeps my existing code into the garbage can)!
What is going on with Arc 10 and the case sensitive stuff???This works:arcpy.Clip_management()This doesn't!!!:arcpy.clip_management()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 Arc 10?Please tell me this isn't so?Anyone figured out a way around this?
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. It assists in writing clear code once you get used to it.You will have to do search and replace to update, this also happened during the translation from Avenue to Python code.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.