Re: [Tutor] Multiprocessing with many input input parameters

2019-07-13 Thread Mike Barnett
Right, I meant tuple, not list. a = ('A string') b = ('A List Member',) print(a[0]) print(b[0]) The output for this is: A A List Member @mike -Original Message- From: Cameron Simpson Sent: Friday, July 12, 2019 7:59 PM To: Mike Barnett Cc: Shall, Sydne

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-11 Thread Mike Barnett
If you're passing parameters as a list, then you need a "," at the end of the items. Otherwise if you have something like a string as the only item, the list will be the string. list_with_one_item = ['item one',] @mike -Original Message- From: Shall, Sydne

Re: [Tutor] Interactive editing of variables.

2019-06-01 Thread Mike Barnett
e's the large debug window that allows you to do more including running the built-in REPL. There is also a version being built into the PySimpleGUI library itself so you do not have to do any imports, etc. All PySimpleGUI will have this watch/debug capability in it. @mike -Original

Re: [Tutor] Interactive editing of variables.

2019-06-01 Thread Mike Barnett
impleGUI / tkinter: https://repl.it/@PySimpleGUI/Reddit-Change-variables-GUI My estimate wasn't too far off 18 lines of code in total. Is this the kind of modification of variables you where talking about? @mike -Original Message- From: Sean Murphy Sent: Saturday, June 1, 2019

Re: [Tutor] What does 'Bind Return Key' do?

2019-04-29 Thread Mike Barnett
om and left to right. -- When questions like this arise on PySimpleGUI, I recommend pulling up the docs and pressing Control-F to do a search. @mike -Original Message- From: Matthew Polack Sent: Sunday, April 28, 2019 4:49 AM To: tutor@python.org S

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-02-21 Thread Mike Barnett
even needing Python installed on their computer. It’s Remi<https://github.com/dddomodossola/remi>, by the way, that is the magic behind PySimpleGUIWeb. @mike<mailto:mike_barn...@hotmail.com> From: Matthew Polack Sent: Wednesday, February 20, 2019 10:35 PM To: David ; Mike Bar

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-02-04 Thread Mike Barnett
Be cautious when using IDLE with tkinter based programs (PySimpleGUI falls into this category). IDLE is written using tkinter. You can sometimes end up with tkinter complaining about the mainloop running in multiple locations or freeing resources in the wrong thread. @mike<mailto:mike_b

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-01-22 Thread Mike Barnett
arm in approaching the problem from a different direction. It could be wildly successful. Or... not... The worst that can happen is you screw up a classroom full of future programmers, creating a warped vision that GUIs can be fun and easy. @mike -Original Message- From: Mat

Re: [Tutor] decomposing a problem

2018-12-28 Thread Mike Mossey
read the results in their expression and their understanding. I think it’s important both to have something you are aiming for (a sense of what level of brevity you’d like to achieve) and a feedback mechanism that helps you to know if you are succeeding. Ta

Re: [Tutor] graphics library for teaching Python

2018-12-21 Thread Mike Barnett
for the background of a canvas, but of the entire window. For that you’ll need to use PySimpleGUIQt. Anyway, it’s worth a look to see if it fits some of your needs. @mike<mailto:mike_barn...@hotmail.com> From: Michael Mossey Sent: Friday, December 21, 2018 1:40 PM To: Mike Barnett Cc:

Re: [Tutor] graphics library for teaching Python

2018-12-21 Thread Mike Barnett
47380967-b6012180-d6cc-11e8-946d-a646921fb8d0.gif These are all tkinter based examples. While PySimpleGUI does have a Qt port, it's not as complete when it comes to these graphics primitives and integration with Matplotlib. -mike ___ Tutor

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-06 Thread Mike Barnett
=PLl8dD0doyrvHMoJGTdMtgLuHymaqJVjzt -mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Any 'graphical' ways of learning Python

2018-12-06 Thread Mike Barnett
use windows instead. If you want to learn more about the overall architecture, this recent post will help: https://www.reddit.com/r/Python/comments/a1mj0p/pysimplegui_under_the_hood/ @mike<mailto:mike_barn...@hotmail.com> ___ Tutor maillist -

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-16 Thread Mike C
I can only compare to the R language I've used. If there is an issue, say a function freezes at startup, one user brings it up to the list, when the respective maintainer sees the bug, it is usually addressed on the next release. In terms of funding. Isn't Python heavily used in industry, so, fi

[Tutor] Visual Studio issue when pip installing mysql-python

2017-11-08 Thread Mike Nickey
Hi all, I understand that this might be out of the scope of this list but I am hopeful that someone has some insight on it so I can move forward with this project. This is a hail mary attempt to get this resolved. The issue that I am seeing is that I have a script that works well locally. I am tr

Re: [Tutor] request.post in If condition

2017-10-31 Thread Mike Miller
What do you mean when you say it is not hitting? Is there a specific error, or are you saying it simply isn't posting to your site? Mike On Mon, Oct 30, 2017, 8:21 AM sourav voip wrote: > Hi All, > > I'm trying to hit request.post with condition using if-else as below... >

Re: [Tutor] Help with python 2.7

2017-10-30 Thread Mike Miller
said that for someone with even average skill and ability, the MS course is actually great and easy to follow on. Good luck, and welcome. Mike On Mon, Oct 30, 2017, 7:24 PM Alchemy wrote: > Hello, > > I am in the midst of a career change from renovations to computers. > I’m use

Re: [Tutor] Installing Python3.6.1 on Ubuntu 16.04.2

2017-07-03 Thread Mike Lisanke
> >Tutor maillist - Tutor@python.org > >To unsubscribe or change subscription options: > >https://mail.python.org/mailman/listinfo/tutor > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > ___ > Tutor maillist - Tutor@python.org > To un

Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-04 Thread Mike C
Hi Ben, Yes, I read your suggestion. I should have added the following in my earlier message. Jupyter runs in a web browser like Chrome, and you feed it in line by line, so if I want to run a project with a hundred lines, it may take a few. Anyways, Jupyter is the consensus, and I am trying it

Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-03 Thread Mike C
Hi Ben, I have not used Vim or Emacs for a very long time. I am spoiled by the friendly interface of RStudio. There is a high demand for Python in the industry, but there has not been a good IDE. I find that strange. _ From: Ben Finney mailto:ben+pyt...@benfinney.i

[Tutor] Cluster analysis script error

2016-10-11 Thread Mike Armson
s to be working, as there were originally errors here, but I fixed them. Thanks very much for your help! Mike -- *Mike Armson, PhD Candidate* University of Toronto, Department of Psychology Levine Lab, Rotman Research Institute, Baycrest *p:* (416) 785-2500 x.2826 *e: marm...@research.baycrest

[Tutor] unittest not working

2015-11-19 Thread Mike
I'm trying to unit test a self-built regular expression processor for an assignment. I'm trying to set up unit tests for the package, but it's not executing them. This is my first time trying to use the unittest module, so I'm sure I'm missing something, I'm just not sure what. I even put a test c

Re: [Tutor] Help - International School in Spain

2015-11-17 Thread Mike Straw
Caroline, The parentheses change the interpretation for the print statement. If you put it without the parentheses, it will work fine. print "Mashed ",veg," on the ceiling." Also, another note: the spaces at end of the first string and the start of the third string aren't necessary. When you use

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher
On 15-08-19 05:27 AM, Alex Kleider wrote: On 2015-08-18 19:32, Mike C. Fletcher wrote: To install without going out to the internet, you can use these arguments: pip install --no-index --find-links=/path/to/download/directory For this to work, /path/to/download/directory would, I

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher
Pi every time we do a rebuild of our virtualenvs (which we do for every testing build). HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com ___

[Tutor] SQLAlchemy

2015-01-26 Thread Mike Nickey
Hey folks, I'm working my way through Thinkful with python and I'm trying to get a setup working. Part of this setup is using SQLAlchemy. While I understand this is a python tutor list, would it be OK to ask questions like 'how do I change my SQLAlchemy URL to include a user name' here? -- ~MEN

[Tutor] New at Python

2014-10-05 Thread Mike Spaulding
Given that n refers to a positive int use a while loop to compute the sum of the cubes of the first n counting numbers, and associate this value with total . Use no variables other than n , k , and total . Hi, I am r

[Tutor] Off topic - Ruby similar list?

2014-07-09 Thread Mike Nickey
Just curious if there's a similar list like this one for Ruby-ists. Anyone know of one or two? TIA -- ~MEN ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Returns an iterator of tuples

2013-11-27 Thread Mike Sila
I know what return, iteration and tuples are.  Can anyone please tell me what an iterator of tuples is? Thanks On Wednesday, November 27, 2013 11:00 AM, "tutor-requ...@python.org" wrote: Welcome to the Tutor@python.org mailing list! This list is for folks who want to ask (and/or answer) qu

[Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread mike johnson
can you please help me figure out why this isnt working thanks # convert.py # this program is used to convert Celsius temps to Fahrenheit # By: James Michael Johnson Def main (): Celsius = float (input ("What is the Celsius temperature? ")) Fahrenheit = 9.0 / 5.0 * Celsius + 32 Print ("The tempera

Re: [Tutor] Tutor Digest, Vol 112, Issue 29

2013-06-09 Thread Mike Nickey
on punctuation (Alan Gauld) > > > -- > > Message: 1 > Date: Sun, 09 Jun 2013 06:48:13 +0100 > From: Alan Gauld > To: tutor@python.org > Subject: Re: [Tutor] Splitting on punctuation > Message-ID:

[Tutor] Splitting on punctuation

2013-06-08 Thread Mike Nickey
Hey guys, I'm working on a web-project simply to bruh up on skills and build new ones. One of the tasks is to split on punctuation passed yet I'm having a bit more trouble then I expected. Give the input of "which isn't that surprising I guess.",",'.") where the first part passed is the string an

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 08:12 PM, Steven D'Aprano wrote: On 29/04/13 10:54, mike wrote: Can you elaborate on what you mean regarding the musicDir variable? I have a loadDir which specifies where the symlinks reside but the actual root of the media directory is /opt/data/music and it's org

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 08:59 PM, Dave Angel wrote: On 04/28/2013 08:54 PM, mike wrote: On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = i

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 07:37 PM, Dave Angel wrote: On 04/28/2013 08:17 PM, mike wrote: def sync_new(): durFind = raw_input("Enter the duration of time in days you want to link") durFind = int(durFind) fileExcl = "*torrent*" linkNew = ['find',

Re: [Tutor] symlinking dirs with spaces

2013-04-28 Thread mike
On 04/28/2013 12:43 PM, eryksun wrote: On Sat, Apr 27, 2013 at 9:51 PM, Dave Angel wrote: And another little-known fact -- NTFS supports hard links, or at least it did in 1995, on NT 3.5 As I recall, there wasn't support at the cmd prompt, but you could create them with system calls. NTFS h

[Tutor] symlinking dirs with spaces

2013-04-26 Thread mike
Hi all, I wrote a cli script for syncing my music to a USB mass storage device like a phone etc. all it does is it creates a symlink in a dir to whatever folder i pass as an argument via ./addsync DIR . My problem is i'm having trouble dealing with directories with spaces. when using os.symli

[Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Mike Nickey
Hey all, I'm used to python 2.7 but I'm seeing and hearing a lot about 3.0 and wanted to ask a few questions. I'm seeing on StackOverflow that 2.7 is the standard for those that have libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7 is dead or dying? Is this just a well mana

[Tutor] help

2013-01-08 Thread Mike G
may be how you're running the program. I would use a py file and run it using cmd - holler if you need help, you may if the path to Python isn't good to go. Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] help

2012-12-30 Thread Mike G
may be how you're running the program. I would use a py file and run it using cmd - holler if you need help, you may if the path to Python isn't good to go. Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Clearing Python text

2012-12-14 Thread Mike G
then hit enter - file run or screen cleared, as well saves time retyping. Sorry if I missed it but this works for me because I too prefer to print to a cleared screen, don't know why, just do. Mike :) ___ Tutor maillist - Tutor@python.org To uns

Re: [Tutor] Better way to insert items into a list

2012-12-08 Thread Mike
Thank you. Works well. Mike On Sat, Dec 8, 2012 at 4:18 PM, bob gailer wrote: > tuple(sum([list(x) for x in zip(a,[c]*len(a))],[])) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mail

[Tutor] Better way to insert items into a list

2012-12-08 Thread Mike
ize I achieved my goal, but I was wondering what other alternates could be done to achieve the same results. Thanks in advance for your assistance. Mike. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] string formatting

2012-10-24 Thread Mike
I'm in the process of learning python and migrating away from bash scripting. I'm in the process of converting my bash scripts that essentially ssh to another host via shared keys, execute commands remotely, and exit. To do this I started using paramiko but eventually decided to do it w/ subpro

[Tutor] name conventions

2012-10-22 Thread Mike McTernan
Hi there, I am doing some online tutorials and have found two approaches to naming things: this_is_a_name and thisIsAName. Which one is the best practice for Python? I am a totally newbie to programming and want to make sure I start with the most common approach. Thanks, mike

Re: [Tutor] Sigh first real python task

2012-09-12 Thread Mike S
Sorry, hit send a bit too fast there: here is the output: session setup failed: NT_STATUS_LOGON_FAILURE /bin/sh: put: command not found On Wed, Sep 12, 2012 at 8:14 PM, Steven D'Aprano wrote: > On 13/09/12 13:06, Mike S wrote: > > Now, I'm having to change the remote hos

[Tutor] Sigh first real python task

2012-09-12 Thread Mike S
print >>sys.stderr, "Child was terminated by signal", -ret else: os.unlink(path+fileName) except OSError, e: print >>sys.stderr, "Execution failed:", e Any help would be appreciated. -- Mike of Many Stories, Ideas, and Ra

[Tutor] Creating a dictionary on user filter

2012-07-19 Thread Mike Nickey
Hi All, I have a few lists that I'm trying to put into a dictionary based on which list the user wants to use as a filter. If the user selects 1 the the dictionary would be created using the first list as the keys and the secondary items as the values. If the user selects 2, the dictionary would b

Re: [Tutor] Tutor Digest, Vol 100, Issue 58

2012-06-25 Thread Mike Nickey
>> The problem with this code is that it only gets the first word beginning >> with x and the others remaisn on the original list, sorted at the end. I've >> tested on terminal many parts of the code and it whas fine, but when I run >> it complete, it does not work. >> >> Following is the solution

Re: [Tutor] Sorting tuples

2012-06-20 Thread Mike Nickey
While i'm still not sure what lamda is or represents, I've found a solution. Thank you all for your assistance, past, present and future. :) This seems to work: def sort_last(tuples): return sorted(tuples, key=myDef) def myDef(s): return s[-1] On Wed, Jun 20, 2012 at 4:0

[Tutor] Sorting tuples

2012-06-20 Thread Mike Nickey
Hey all, I'm working through the google classes to increase my python understanding and I'm stuck on sorting tuples. What is being asked is to sort tuples based on the second element of the tuple in ascending order. Given a list of non-empty tuples, return a list sorted in increasing order by the

[Tutor] getpass

2012-06-15 Thread Mike Nickey
Hey all, I'm working on a bit of code here and I'm having an issue with getpass. In the documentation, it says it hides the text entered "Prompt the user for a password without echoing." -- http://www.python.org/doc//current/library/getpass.html However when I run it in Eclipse, the password is

Re: [Tutor] Finding palindromes in a list

2012-06-08 Thread Mike Nickey
print "\nPrinting palindromes" print palindromes[:] print "\nDone!!!" On Fri, Jun 8, 2012 at 6:38 PM, Dave Angel wrote: > On 06/08/2012 09:01 PM, Marc Tompkins wrote: >> On Fri, Jun 8, 2012 at 5:10 PM, Mike Nickey wrote: >> >>> def compareElements(wor

[Tutor] Finding palindromes in a list

2012-06-08 Thread Mike Nickey
I'm trying to write a bit of code that will run through a text file and find the item or word string that is the same forward as it is when it is revered...a palindrome. I'm having a bit of issue looping through the wordList[] that I have created. If you have any comments or suggestions I'd really

[Tutor] generators

2012-04-03 Thread mike jackson
I am trying understand python and have done fairly well, So for it has been easy to learn and is concise.  However I seem to not quite understand the use of a generator over a function(I am familiar with functions [other languages and math]).  To me (excepting obvious syntax differences) a gener

Re: [Tutor] GameTracker help

2012-02-25 Thread Mike Nickey
it's not redundant code? On Sat, Feb 25, 2012 at 02:07, Mike Nickey wrote: > Hey all, > > I'm trying to wok on a game tracker for my friends. What I have here > partly works but there are areas that I want to change and some areas > that are just not working for me.

[Tutor] GameTracker help

2012-02-25 Thread Mike Nickey
Hey all, I'm trying to wok on a game tracker for my friends. What I have here partly works but there are areas that I want to change and some areas that are just not working for me. The areas that I am having difficulty with are the def pointsNeeded and oppPointsNeeded. What is strange to me is t

[Tutor] Are there other ways of solving this exercise?

2012-01-12 Thread Mike G
...Exercise 16, extra credit 3...Code from the book...like the author mentioned The book and author, do they have a name...? Is this an exercise in refactoring? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

[Tutor] Extremely simple question

2012-01-11 Thread Mike G
Hi Chris I'm new to programming and Python myself so I would listen to the previous guys first, and I'll repeat a bit of what has already been mentioned... Make sure you define 'x'. Is name really an 'int', or is it possibly a 'str'? Fix any indentation issues. Is there anything you can do with

[Tutor] Issue with Python 2.7.2 - beginner needing help

2012-01-10 Thread Mike G
Hi Tonyelle Your code doesn't work as expected due to your 2nd edition book uses Python 3x, see page xi, 'Changes in this edition'. This would work for your version of Python... room = 503 print 'I am staying in room number', room If you're new, Python 2.7.2 is (IMO) a better choice, many more

[Tutor] Moving from snippits to large projects?

2012-01-09 Thread Mike G
How does one go from small to medium, to large, as a coder? You might look into contributing to an existing project. There is a new project, MediaLocker, a Python / wxPython app recently underway, started from a blog post. I believe they are looking for input, including contributing - have a lo

[Tutor] Creating Android Apps w/ Python

2011-11-02 Thread Mike Nickey
I'm currently taking a class on Android Development. The instructor says that the code needed has to be done through Java. Isn't there any way to create these same apps with Python? I read on the Android Dev site that MonkeyRunner can assist but does anyone else have any experience on how well this

[Tutor] Finding if a passed variable is within to set parameters

2011-10-10 Thread Mike Nickey
t;= 8) and (UserSkillLvl >=1)): print "thank you" temp = 1 break elif (UserSkillLvl >8) or (UserSkillLvl < 1): while temp == 0: UserSkillLvl = raw_input("Please re-enter your skill level: ")

[Tutor] declaring a blank interger

2011-10-05 Thread Mike Nickey
: UserName = raw_input("Enter your name: ") return UserName def getUserNumber(x): x = input("Enter a number:") #This will be the users unique ID number return x getUserName() getUserNumber(x) print UserName, x Be

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
to a variable > > Or you can append to a list directly. > > l = [] > > for d in yourdict: >     l.append(d['city']) > > > Sent from my Verizon Wireless BlackBerry > > -Original Message- > From: Mike Nickey > Sender: tutor-bounces+eire1130=gmail.

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
append and populate a list but I don't know how to pull an item by key value from the dictionary returns. I hope this helps clear some confusion and thanks in advance. On Mon, Aug 1, 2011 at 15:14, ian douglas wrote: > On 08/01/2011 03:05 PM, Mike Nickey wrote: >> >> Hi all, >

[Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
Hi all, I'm trying to access and use specific items within a dictionary that is returned but am having issues in doing so. [{'city': 'Sunnyvale', 'region_name': 'CA', 'area_code': 408, 'metro_code': 'Santa Clara, CA', 'country_name': 'United States'}] How can I populate a list of many different r

[Tutor] Running python on windows

2011-04-11 Thread Mike Silverson
Hi, I need to know if there is any way to run a python file without Python installed on the target computer. I am trying to send a program to a friend using windows and he does not have python installed, and does not want to take the time to install it. Is there any way to send him the file (or a

Re: [Tutor] multiple if and or statement

2011-03-14 Thread Mike Franon
each item in the list one at a time like a loop I was thinking, so the first time it would test for 'test1', and the second time it would test for 'flag', did not realize it would test the entire list all at once. On Mon, Mar 14, 2011 at 4:00 PM, Marc Tompkins wrote: >

[Tutor] multiple if and or statement

2011-03-14 Thread Mike Franon
HI, I had a question, when running this small snippet of test code: a = ['test1', 'flag', 'monday'] for i in a: if i == 'test1' or 'test2': print 'true' It always prints true $ ./testing.py true true true I know I am missing something, but in reality it should only print true

[Tutor] Fwd: for loop results into list

2010-09-05 Thread Mike Beatty
Should have sent this to the list too -- Forwarded message -- From: Micheal Beatty Date: Sun, Sep 5, 2010 at 2:38 PM Subject: Re: [Tutor] for loop results into list To: Andre Engels  On 09/05/2010 02:16 PM, Andre Engels wrote: > > On Sun, Sep 5, 2010 at 8:51 PM, Micheal Beatty

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-04-21 Thread Mike Baker
Yashwin, Thanks! Your nohup redirection worked great! - Mike On Wed, Apr 21, 2010 at 2:45 PM, Yashwin Kanchan wrote: > Hi Mike > > have you tried running the tshark process in the background... > > *CMD_LIST=[PLINK,sess_name,'/usr/bin/sudo /usr/sbin/tshark &'

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-04-21 Thread Mike Baker
#x27;, '-T', 'text', '-V','>', 'out.txt']; print "The command list you are sending to the subprocess is: \n", "\t", CMD_LIST PIPE = subprocess.PIPE p = subprocess.Popen(CMD_LIST, stdout=PIPE, stderr=PIPE) stdout, stderr = p.communicate () print 'stdout = ', stdout

Re: [Tutor] Python Examples of processing MS Outlook

2010-04-20 Thread Hansen, Mike
k at Python COM. Another problem with Outlook is that it has some security that prevents other programs from controlling it in response to various virus attacks. I think there's a way around it. Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Remote access from Windows PC to a Linux box

2010-03-30 Thread Mike Baker
ss.PIPE, stdout=subprocess.PIPE, ) #Either of the next two commands cause window to hang #proc.stdin.write("dir") #(stdout_value, stderr_value) = proc.communicate(input="dir")[0] return proc Thanks, Mike __

[Tutor] How do I find information about a Python object.

2010-03-30 Thread Mike Baker
tried subprocess.__doc__ and subprocess.Popen.__doc__. Random Googling shows that there are things like process identification numbers available - such as proc.pid. How do I find the other options? Thanks, Mike ___ Tutor maillist - Tutor@python.o

Re: [Tutor] Recommendations on Workshops, Courses, Live Online Training

2010-03-12 Thread Hansen, Mike
correct > venue to put that > sort of information. Guidance please. :) > > -Tino > > > If you have a pile of $ that you don't know what to do with, or if your company has deep pockets, then Big Nerd Ranch sounds like fun. http://www.bignerdranch.com/classes/python Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Bowing out

2010-03-03 Thread Hansen, Mike
hanks to everyone who contributes questions and answers. I learned a > lot from my participation here. > > So long and keep coding! > Kent We know what's really going on. You are moving to Ruby Tutor. =) Good luck with your "something new", and thanks for the many yea

Re: [Tutor] What Editori?

2010-02-24 Thread Mike
I use and love Pyscripter for Windows. I guess I am used to the Delphi IDE. Mike On Tue, Feb 23, 2010 at 11:24 AM, Giorgio wrote: > Hi All, > what text-editor do you use for python? > I've always used kate/nano on Linux and Notepad++/PSPad on Win. Today i've > installe

Re: [Tutor] What Editori?

2010-02-24 Thread Hansen, Mike
hat people need. For those that don't want the steep learning curve of VIM or Emacs, I'd recommend KOMODO. Mike No, I don't work for ActiveState. =) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription option

Re: [Tutor] The Order of Imports and install order ofmodulesandother matters (XP vs W7, ...)

2010-02-17 Thread Hansen, Mike
> -Original Message- > [mailto:tutor-bounces+mike.hansen=atmel@python.org] On > Behalf Of Alan Gauld > Sent: Tuesday, February 16, 2010 5:58 PM > > "Hansen, Mike" wrote > > > I'm aware of Pep8. It's a good starting point. Anything

Re: [Tutor] The Order of Imports and install order of modules andother matters (XP vs W7, ...)

2010-02-16 Thread Hansen, Mike
From: sri...@gmail.com [mailto:sri...@gmail.com] On Behalf Of Wayne Werner Sent: Tuesday, February 16, 2010 1:07 PM To: Hansen, Mike Cc: Tutor Python Subject: Re: [Tutor] The Order of Imports and install order of modules

Re: [Tutor] The Order of Imports and install order of modules andother matters (XP vs W7, ...)

2010-02-16 Thread Hansen, Mike
mports > application-specific imports > > Within each group I tend to group "import x" imports before "from x > import y" imports and alphabetize by module name. I'm not strict about > that though. > This make me wonder. Is there a document or web

Re: [Tutor] Tutor list as pair progamming plush toy

2010-02-12 Thread Hansen, Mike
e > without the tutors even knowing it. > > Does anybody else experience the same? > > Cheers, :) > Mac. > This kind of sounds like the rubber duck method of debugging. http://lists.ethernal.org/oldarchives/cantlug-0211/msg00174.html Mike

[Tutor] Variable declaration

2010-02-05 Thread Hansen, Mike
in Python by using Pyflakes to check my code and catch those silly mis-spelling of a variable. Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python List Help

2009-10-19 Thread Mike Sweany
hon works as I was plugging along on this script with just a couple of hours into python for this scraping project, but what you have shown me here will help and I will come back to the list after I have a better understanding of what I am doing. Thanks, Mike -Original Message- From: Dav

[Tutor] Python List Help

2009-10-19 Thread Mike Sweany
Hi all, I am a PHP developer that just started learning Python for a specific application and the transition has been pretty easily assisted by google, but I just don’t see the issue with this one? I’ve got a list that created and populate in a loop that shows the correct info when I print

Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
> > > > I really like using F5 to run my code, so you can put in your .vimrc so you > don't have to type it, or just type it every time: > > map :!python % > > and every time you hit it will run your current script. > > Thanks for that. It's even better than typing :!python % because it doesn't s

Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
Try out Vim. It may take you a week to get used to it. Best thing I ever did was finally get started on Vim. Once I got used to it I was very happy. Google around for Vim tutorials. There is a #VIM channel on freenode I believe. There is also a VIM mailing list that is very helpful. You won't need

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread Mike Hoy
> > On Tue, Jun 9, 2009 at 6:34 AM, The Green Tea Leaf < > thegreenteal...@gmail.com> wrote: > >> I got an email from him that he had a gzip.pyc file in that folder. >> Once he deleted that everything works OK. > > > Heh... I think I've made that mistake before; > > "My import statement doesn't wor

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread Mike Hoy
On Tue, Jun 9, 2009 at 3:00 AM, Mike Hoy wrote: > Here's the screenshot: > > http://img40.imageshack.us/img40/7124/printtwice.png > > In case the image goes down here's the code: > import gzip > import datetime > date = datetime.date.today() > name = date.st

[Tutor] Can't figure out why this is printing twice

2009-06-08 Thread Mike Hoy
I have the following code: import gzip import datetime date = datetime.date.today() name = date.strftime('%m-%d-%Y')+'.gz' date.strftime('%m-%d-%Y')+'.gz' print "The name of the file will be", name the output is: The name of the file will be The name of the file will be 06-08-2009.gz I can't fi

[Tutor] Jython question

2008-12-05 Thread Mike Hoy
ughts? -- Mike Hoy ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Open Source database software

2008-11-24 Thread Mike Meisner
ser data input, queries, reports, etc. 4. Smart enough to easily read and convert an Access (.mdb) database file. 5. And, everything either in Python or with APIs that Python can easily use. Has anyone used products that would meet my needs?

Re: [Tutor] Scrolling through output in shell

2008-11-19 Thread Mike Hoy
os.system("cat textfile | less") did the trick, thanks everyone. On Wed, Nov 19, 2008 at 2:34 PM, Lie Ryan <[EMAIL PROTECTED]> wrote: > On Mon, 17 Nov 2008 09:20:55 -0500, Shawn Milochik wrote: > >> On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy <[EMAIL PROTECTED]&

Re: [Tutor] Scrolling through output in shell

2008-11-17 Thread Mike Hoy
Ok thanks Alan for looking into it. I'll give it a try. On Mon, Nov 17, 2008 at 12:27 PM, ALAN GAULD <[EMAIL PROTECTED]> wrote: > Forwarding to the group. > Please use Reply All when responding. > > > - Original Message > From: Mike Hoy <[EMAIL PROT

[Tutor] Scrolling through output in shell

2008-11-16 Thread Mike Hoy
gram? I noticed that on the man pages that you can do that although I'm sure it's not written in python. Do I need to find a new language to write this in? Maybe use a different language for the output and still use python? Any help appreciated. -- Mike H

[Tutor] Scaling a Tkinter canvas widget

2008-10-26 Thread Mike Meisner
I would like to plot various datasets on a Tkinter canvas widget. The problem is that each of my datasets have different x,y extremes. For instance, one dataset may have xmin = 0, xmax = 300, ymin = 0, ymax = 300; whereas the next dataset may have xmin = -200, xmax = 1200, ymin = 2000, ymax =

[Tutor] Immediately committing changes to shelve files

2008-10-26 Thread Mike Meisner
I'm running a number of test cases and saving their results in a shelve file. A full run of the test cases takes about 36 hours. During that time, if something interrupts the run (e.g., a power outage, which has happened), I find that none of the completed test cases have been committed to the

Re: [Tutor] Providing Solutions for all the Common Questions

2008-10-21 Thread Hansen, Mike
acceptance of my opinion! I am > interesting! > http://techblog.ironfroggy.com/ > Follow me if you're into that sort of thing: > http://www.twitter.com/ironfroggy A long time ago in a Python galaxy far far away, a tutor FAQ was written. It has been bounced around. I found i

  1   2   3   4   >