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, Sydney ; tutor@python.org

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, Sydney Sent: Wedne

Re: [Tutor] Interactive editing of variables.

2019-06-01 Thread Mike Barnett
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 Message- From: mhysnm1...@gmail.com Se

Re: [Tutor] Interactive editing of variables.

2019-06-01 Thread Mike Barnett
://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 8:21 AM To: Mike Barnett Cc:

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

2019-04-29 Thread Mike Barnett
t 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 Subject: [T

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
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: Matthew Polack Sent: Tuesday, January 22, 2019 1:58 AM To: tutor@python

Re: [Tutor] decomposing a problem

2018-12-28 Thread Mike Mossey
can 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. Take or

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
6d-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 maillist - Tutor@python.org To un

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
he 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 - Tutor@python.org To unsubscribe or change subscriptio

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,

[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

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 <voipdev.sou...@gmail.com> wrote: > Hi All, > > I'm trying to hit request.post with condition using i

Re: [Tutor] Help with python 2.7

2017-10-30 Thread Mike Miller
and 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 <i...@alchemytransformation.net> wrote: > Hello, > > I am in the midst of a career change f

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 - Tut

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

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

[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

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 packages For this to work, /path/to/download/directory

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

2015-08-19 Thread Mike C. Fletcher
for every testing build). HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[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 http://pearson.turingscraft.com/codelab/jsp/tutor.jsp?glIndex=1lang=PYTHON 3 variables other than n , k , and total . Hi, I am

[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 tutor-requ...@python.org wrote: Welcome to the Tutor@python.org mailing list! This list is for folks who want to

[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

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

2013-06-09 Thread Mike Nickey
:13 +0100 From: Alan Gauld alan.ga...@btinternet.com To: tutor@python.org Subject: Re: [Tutor] Splitting on punctuation Message-ID: kp14uo$773$2...@ger.gmane.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 09/06/13 00:44, Mike Nickey wrote: One of the tasks is to split

[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 and

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 da...@davea.name 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

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: SNIP def sync_new(): durFind = raw_input(Enter the duration of time in days you want to link) durFind = int(durFind) fileExcl = *torrent* linkNew = ['find', '%s' % musicDir, '-maxdepth 2

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 organized via

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: SNIP def sync_new(): durFind = raw_input(Enter the duration of time in days you want to link) durFind = int(durFind

[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

[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

[Tutor] help

2013-01-08 Thread Mike G
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
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] Tutor Digest, Vol 106, Issue 31

2012-12-14 Thread Waters, Mike [ITSCA Non-JJ]
Hi Python tutor I have a question I believe I have posted before: when you have filled the page with text (commands,list etc) how do you clear the page to allow a clean page to continue on writing script? Thanks appreciate your help. Mike -Original Message- From: Tutor [mailto:tutor

[Tutor] New Re: Clearing Python text

2012-12-14 Thread Waters, Mike [ITSCA Non-JJ]
. Thanks Mike Michael Waters Business Unit Information Technology Global Data Center Data Center Services Team GDC 24/7 HotLine # 800-267-3471 McNeil Consumer Heathcare A division of Johnson Johnson [cid:image001.png@01CDD9E5.66F96150] Desk # 519-826-6226 ex 5860 Home# 519-767-2629 Cell 226-500

[Tutor] Thanks

2012-12-14 Thread Waters, Mike [ITSCA Non-JJ]
I just want to thank all who gave some input into my questions. And the points on convention ,hey I just learned about plain text! Thanks Mike Michael Waters Business Unit Information Technology Global Data Center Data Center Services Team GDC 24/7 HotLine # 800-267-3471 McNeil Consumer

Re: [Tutor] Clearing Python text

2012-12-14 Thread Mike G
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 unsubscribe or change subscription

[Tutor] Better way to insert items into a list

2012-12-08 Thread Mike
. 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

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 bgai...@gmail.com 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

[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/

[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

[Tutor] Sigh first real python task

2012-09-12 Thread Mike S
+fileName) except OSError, e: print sys.stderr, Execution failed:, e Any help would be appreciated. -- Mike of Many Stories, Ideas, and Ramblings Game Chef 2009, 2010 NaNoWriMo 2008, 2009 http://mikeofmanystories.blogspot.com/ - writings http://mikeofmany.wordpress.com/ - personal

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 st...@pearwood.infowrote: On 13/09/12 13:06, Mike S wrote: Now, I'm having to change the remote host

[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

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 of the

[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

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:05 PM, Mike

[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

[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

Re: [Tutor] Finding palindromes in a list

2012-06-08 Thread Mike Nickey
, 2012 at 6:38 PM, Dave Angel d...@davea.name wrote: On 06/08/2012 09:01 PM, Marc Tompkins wrote: On Fri, Jun 8, 2012 at 5:10 PM, Mike Nickey mnic...@gmail.com wrote: def compareElements(wordList):    for item in wordList():        if item == item.reversed():            print item

[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

[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

Re: [Tutor] GameTracker help

2012-02-25 Thread Mike Nickey
not redundant code? On Sat, Feb 25, 2012 at 02:07, Mike Nickey mnic...@gmail.com 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. The areas that I am

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

2012-01-12 Thread Mike G
quote ...Exercise 16, extra credit 3...Code from the book...like the author mentioned /quote 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

[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

[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
quote How does one go from small to medium, to large, as a coder? /quote 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

[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

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

2011-10-10 Thread Mike Nickey
)): print thank you temp = 1 break elif (UserSkillLvl 8) or (UserSkillLvl 1): while temp == 0: UserSkillLvl = raw_input(Please re-enter your skill level: ) return UserSkillLvl Best, Mike Nickey mnic...@gmail.com

[Tutor] declaring a blank interger

2011-10-05 Thread Mike Nickey
= 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 Best, Mike Nickey mnic...@gmail.com ___ Tutor

[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

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
: On 08/01/2011 03:05 PM, Mike Nickey wrote: 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

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
= [] for d in yourdict:     l.append(d['city']) Sent from my Verizon Wireless BlackBerry -Original Message- From: Mike Nickey mnic...@gmail.com Sender: tutor-bounces+eire1130=gmail@python.org Date: Mon, 1 Aug 2011 15:26:32 To: ian douglasian.doug...@iandouglas.com Cc: tutor

[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

[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

Re: [Tutor] multiple if and or statement

2011-03-14 Thread Mike Franon
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 marc.tompk...@gmail.com wrote: On Mon, Mar 14, 2011 at 12:41 PM, Mike Franon

[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 mike...@gmail.com Date: Sun, Sep 5, 2010 at 2:38 PM Subject: Re: [Tutor] for loop results into list To: Andre Engels andreeng...@gmail.com  On 09/05/2010 02:16 PM, Andre Engels wrote: On Sun

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

2010-04-21 Thread Mike Baker
runs (atl_cmd=0 or alt_cmd=1), the stdout and stderr printouts at the end of the script are empty. Any suggestions would be appreciated. Thanks, Mike *** On Wed, Mar 31, 2010 at 7:42 AM, Tim

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 yashwinkanc...@gmail.comwrote: 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] Python Examples of processing MS Outlook

2010-04-20 Thread Hansen, Mike
around it. Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

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

2010-03-30 Thread Mike Baker
. 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.org To unsubscribe or change subscription options: http

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

2010-03-30 Thread Mike Baker
#proc.stdin.write(dir) #(stdout_value, stderr_value) = proc.communicate(input=dir)[0] return proc Thanks, Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

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

2010-03-12 Thread Hansen, Mike
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] What Editori?

2010-02-24 Thread Hansen, Mike
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 options: http://mail.python.org

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 anothernetfel...@gmail.com 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 installed

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 mike.han...@atmel.com wrote I'm aware of Pep8. It's a good starting point. Anything more in-depth than Pep8 and the Zen

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

2010-02-16 Thread Hansen, Mike
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 site that has Python Best Practices? Something along the lines of the Perl Best Practices book, but probably shorter. =) Mike

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] Tutor list as pair progamming plush toy

2010-02-12 Thread Hansen, Mike
of sounds like the rubber duck method of debugging. http://lists.ethernal.org/oldarchives/cantlug-0211/msg00174.html Mike ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Variable declaration

2010-02-05 Thread Hansen, Mike
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

[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

Re: [Tutor] Python List Help

2009-10-19 Thread Mike Sweany
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: Dave Angel [mailto:da

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] 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 F5 :!python %Enter and every time you hit F5 it will run your current script. Thanks for that. It's even better than typing :!python % because it doesn't

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 hoy...@gmail.com 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.strftime('%m-%d-%Y')+'.gz' print

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 work right! When I

[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

[Tutor] Open Source database software

2008-11-24 Thread Mike Meisner
, 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? Thanks. Mike

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] wrote: I'm writing a small program

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 PROTECTED] To: Alan Gauld [EMAIL PROTECTED] I'm

[Tutor] Scrolling through output in shell

2008-11-16 Thread Mike Hoy
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 Hoy http://www.mikehoy.net

[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

[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 =

  1   2   3   4   >