Re: [Tutor] Full screen mode

2014-10-21 Thread Steven D'Aprano
On Tue, Oct 21, 2014 at 05:14:57PM -0400, Nathan Spencer wrote: > Hi there, > > I'm running python on Scientific Linux. The problem is that I'm > permanently stuck in full screen mode. Exiting out of that mode (via F11) > doesn't do anything. Do you have any suggestions? I don't know what "ful

Re: [Tutor] Full screen mode

2014-10-21 Thread Alan Gauld
On 21/10/14 22:14, Nathan Spencer wrote: I'm running python on Scientific Linux. I don't know it but assume it starts in normal X Windows fashion and you can create a normal Terminal/Console window? eg an xterm? permanently stuck in full screen mode. Exiting out of that mode (via F11) doe

Re: [Tutor] Full screen mode

2014-10-21 Thread Danny Yoo
On Tue, Oct 21, 2014 at 2:14 PM, Nathan Spencer wrote: > Hi there, > > I'm running python on Scientific Linux. The problem is that I'm permanently > stuck in full screen mode. Exiting out of that mode (via F11) doesn't do > anything. Do you have any suggestions? Hmmm... unfortunately, I do no

Re: [Tutor] Question on a select statement with ODBC

2014-10-21 Thread Alan Gauld
On 21/10/14 19:57, Al Bull wrote: have multiple records per ord_dbasub. Is there a way I can structure the select statement to retrieve only the most current record (based on ord_date)? Yes, the cursor can be told to only retrieve N records, in your case 1. SELECT ord_dbasub, ord_pub,ord_dat

[Tutor] Full screen mode

2014-10-21 Thread Nathan Spencer
Hi there, I'm running python on Scientific Linux. The problem is that I'm permanently stuck in full screen mode. Exiting out of that mode (via F11) doesn't do anything. Do you have any suggestions? Thanks, Nathan -- Nathaniel J. Spencer, PhD Post-Doctoral Research Associate Psychoacoustics L

Re: [Tutor] what am I not understanding?

2014-10-21 Thread Clayton Kirkwood
!-Original Message- !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On !Behalf Of Dave Angel !Sent: Tuesday, October 21, 2014 6:51 AM !To: tutor@python.org !Subject: Re: [Tutor] what am I not understanding? ! !"Clayton Kirkwood" Wrote in message: !> Thanks all for the i

[Tutor] Question on a select statement with ODBC

2014-10-21 Thread Al Bull
Windows 7.0 Python 3.3.4 I am accessing a database table via ODBC. The table I am accessing can have multiple records per ord_dbasub. Is there a way I can structure the select statement to retrieve only the most current record (based on ord_date)? I used to program in PL/I and assembly in the

Re: [Tutor] what am I not understanding?

2014-10-21 Thread Dave Angel
"Clayton Kirkwood" Wrote in message: > Thanks all for the insight. I'm not sure I fully understand all of the code > snippets, but in time... > > This is finally what I came up with: > > raw_table = (''' > a: Asky: Dividend Yield > b: Bidd: Dividend per Share > b2: Ask (Realtime)

Re: [Tutor] what am I not understanding?

2014-10-21 Thread Alan Gauld
On 20/10/14 22:18, Clayton Kirkwood wrote: for each_line in key_name.splitlines(): if ':' in each_line: #this design had to for key, value in [each_line.split(':')]: #see the last line You shouldn't need the [] around split(), it generates a li

Re: [Tutor] Registering callbacks and .DLL

2014-10-21 Thread Wilson, Pete
This worked. Yeah! Thank you so much. Pete > -Original Message- > From: eryksun [mailto:eryk...@gmail.com] > Sent: Friday, October 17, 2014 8:53 PM > To: Wilson, Pete > Cc: tutor@python.org > Subject: Re: [Tutor] Registering callbacks and .DLL > > On Thu, Oct 16, 2014 at 6:35 PM, Wilson,

Re: [Tutor] what am I not understanding?

2014-10-21 Thread Clayton Kirkwood
Thanks all for the insight. I'm not sure I fully understand all of the code snippets, but in time... This is finally what I came up with: raw_table = (''' a: Ask y: Dividend Yield b: Bid d: Dividend per Share b2: Ask (Realtime) r1: Dividend Pay Date b3: Bid (Realtime) q: Ex-Dividend D

Re: [Tutor] Python sqlite3 issue

2014-10-21 Thread Alan Gauld
On 21/10/14 09:18, Peter Otten wrote: Another option is to only create the table if it does not already exist: create table if not exists topics ... The danger with that one is that if you are changing the structure of the table you can wind up keeping the old structure by accident and your

Re: [Tutor] Python sqlite3 issue

2014-10-21 Thread Peter Otten
Alan Gauld wrote: > Finally when creating tables you can use: > > DROP TABLE IF EXISTS TOPICS; > > Prior to creating it. That will ensure you don't get an existing > table error. Another option is to only create the table if it does not already exist: create table if not exists topics ... __