How does Jython compile python modules that can be used by the JVM?
Hi, I need a relatively technical answer to the above question - I've looked through the Jython docs / FAQs and Googled it but to no avail... if anyone can let me know I'd be most grateful, Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list
SQLObject
I'm new to using SQLObject, and having some problems with getting it to recognise my current MySQL database. I've set up my connection fine, but it won't recognise the names of the columns (presumably because they're not written using the default naming convention?). For example, one of my columns is an acronym, so is 3 uppercase letters. I've tried the following: class Table1(sqlobject.SQLObject): _connection = conn _fromDatabase = True class sqlmeta: table = 'Table1' idName = 'Table1ID' BOB = StringCol() print Table1.get(1) this gives the result Unknown column 'bo_b' in 'field list' So, specifically a few questions: I've seen the attribute in class sqlmeta of 'columns' - will this find my column names automatically, or do I still need to input them manually? If the latter..: I assume I set the names of each column in the instance of sqlmeta (like I have done with the table name) - how do I do this?! Do I do this before or after I've told SQLObject that the BOB column is a String column? Is there a published list of the default naming convention that SQLObject follows? I couldn't find it on the website. Thanks in advance for any help anyone is able to give. Chris -- http://mail.python.org/mailman/listinfo/python-list
Multiple versions of python
Hi, I have installed 2 versions of python on my Windows XP computer - I originally had 3.0.1, but then found that the MySQL module only supported 2.*, so I've now installed that. I have found that if I change the Windows Environment Variable path, then I can change the version of python called when I type 'python' into a command line. However, I'd like to be able to choose which version I use. I know that if I change C:\Python26\python.exe to C:\Python26\python2.exe and C:\Python30\python.exe to C: \Python26\python3.exe, then typing 'python2' or 'python3' will invoke the correct interpreter. However, is it safe just to rename the executable files? Is there a more elegant way to achieve the same task? Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list
Python 3.6 installation doesn't add launcher to PATH
The installation guidelines for Python 3.6 say: "Per-user installations of Python do not add the launcher to PATH unless the option was selected on installation." (https://docs.python.org/3/using/windows.html#from-the-command-line). However, I've installed Python 3.6 with the 'include PATH' checkbox ticked for my user only, and although C:\Windows\py.exe exists, it has not been added to my PATH. I also tried installing for all users, and this also doesn't add it to the PATH. Is this a bug, or have I done something wrong?! -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3.6 installation doesn't add launcher to PATH
On Friday, 24 February 2017 18:09:01 UTC, Irmen de Jong wrote: > On 24-2-2017 13:38, ChrisW wrote: > > The installation guidelines for Python 3.6 say: > > > > "Per-user installations of Python do not add the launcher to PATH unless > > the option was selected on installation." > > (https://docs.python.org/3/using/windows.html#from-the-command-line). > > > > However, I've installed Python 3.6 with the 'include PATH' checkbox ticked > > for my user only, and although C:\Windows\py.exe exists, it has not been > > added to my PATH. > > > > I also tried installing for all users, and this also doesn't add it to the > > PATH. > > > > Is this a bug, or have I done something wrong?! > > > > Hm, I don't remember having this issue when installing this myself. > > Are you sure you're checking it from a newly opened cmd.exe *after* the > install > finished? Already opened windows won't see the change until restarted. > > Irmen Yeh - it definitely still happens with a new cmd window... -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3.6 installation doesn't add launcher to PATH
On Saturday, 25 February 2017 07:21:30 UTC, eryk sun wrote: > On Fri, Feb 24, 2017 at 12:38 PM, ChrisW wrote: > > However, I've installed Python 3.6 with the 'include PATH' checkbox ticked > > for my user only, and although C:\Windows\py.exe exists, it has not been > > added to my PATH. > > > > I also tried installing for all users, and this also doesn't add it to the > > PATH. > > > > Is this a bug, or have I done something wrong?! > > What the installer adds to PATH is the Python36[-32] directory that > has python.exe and the Scripts directory that has pip.exe. The > recommended way to run Python is via the "python" command not "py". > The py launcher is mainly for shell executing script files with > shebang processing. That said people do use py -X[-Y[-32]] as a > convenient way to run multiple versions of Python without modifying > PATH. > > As to adding SystemRoot to PATH, it should be there already. This > doesn't matter if the program lets CreateProcess search because it > always searches system directories before PATH. But it matters in a > common case; cmd.exe does its own search and only searches PATH (and > also the current directory if the system is configured insecurely). Hmm, that seems to contradict what the docs say: `py` is recommended for Windows users who want to run various versions (not just for executing scripts). SystemRoot is not in my PATH variable. -- https://mail.python.org/mailman/listinfo/python-list
