Re: i am having troubles downloading 3.5.1 to my computer

2016-01-14 Thread Joel Goldstick
ou are using an older version of Windows, you can't use python 3.5 -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: virtualenv: help me decide

2016-01-15 Thread Joel Goldstick
est/install.html#shell-startup-file Its great. Takes 10 minutes to set up and another 10 minutes to figure it all out > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re:

2016-01-20 Thread Joel Goldstick
ich version of python > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Unit test

2016-01-26 Thread Joel Goldstick
nfo/python-list > -- > https://mail.python.org/mailman/listinfo/python-list > Test driven development with python and django. The complete text is online here: http://chimera.labs.oreilly.com/books/123400754/pr02.html#_python_3_and_programming -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: not run in my laptop

2016-01-27 Thread Joel Goldstick
On Wed, Jan 27, 2016 at 9:35 AM, Grant Edwards wrote: > On 2016-01-27, anubha agrawal wrote: > > > How I Install python for 64 bit > > Standard info required: OS, version, version of python. What have you tried? what went wrong? Be specific. -- Joel Goldstick http:/

Re: show instant data on webpage

2016-01-27 Thread Joel Goldstick
ular choice, but some like smaller frameworks like flask, and others. > >> Best. >> >> > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re:

2016-01-28 Thread Joel Goldstick
hat have you tried so far? -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: how to completely uninstall python 2.7 on Windows

2016-01-28 Thread Joel Goldstick
5 with K-9 Mail. Please excuse my brevity. > -- > https://mail.python.org/mailman/listinfo/python-list > You can have both installed at the same time -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: class attribute

2016-01-28 Thread Joel Goldstick
the metaclass gets to do whatever it > likes. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list > There is an excellent django book: http://prodjango.com/ There is a section that explains how models are created. Its a great and clear read. -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: show instant data on webpage

2016-01-29 Thread Joel Goldstick
hether you want to display them on the web or send them around as attachments to your coworkers, or build some local application to display them is your choice -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyhon Icon

2016-01-29 Thread Joel Goldstick
Namibia, MEATCO > Tel : +264 (0)61 321 6459 > Fax : +264 (0)61 321 6401 > Mobile : +264 (0)81 744 7474 > E-mail: wnakat...@meatco.com.na > Web: www.meatco.com.na > [MeatCo Email Logo] > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldst

Re: Python 3.5.1

2016-01-29 Thread Joel Goldstick
mand, hit enter:\r\n') ser.write(temp) while 1: > bytes = ser.readline() print ('You sent: ' + bytes) > -- > https://mail.python.org/mailman/listinfo/python-list > Welcome. Please repost using plain text so that your indentation is correct. Your code is unrea

Re: carry **arguments through different scopes/functions

2016-01-31 Thread Joel Goldstick
gt; Before you start randomly making variables global, make sure you have written code that does what you want it to. Globals to fix bad coding will quickly bring a big mess. Of course its more subtle than this, but mostly globals are a very bad idea. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: show instant data on webpage

2016-01-31 Thread Joel Goldstick
d them into web pages if you are so inclined to build a website. It seems that isn't what you want to do. You could also upload images to some free image site. Photobucket supports .png images. pygal can create .png images -- Joel Goldstick http://joelgoldstick.com/stats/birthdays --

Re: Data storing

2016-02-02 Thread Joel Goldstick
t really, to decide which would be best for you, we would need to know a > lot more about your application and its requirements. > > > -- > Steven > > -- > https://mail.python.org/mailman/listinfo/python-list > Steven, in your case, how about the star trek tran

Re: Problem with 'requests' module

2016-02-03 Thread Joel Goldstick
.python.org/mailman/listinfo/python-list > Here is a link to the installation documents: http://docs.python-requests.org/en/latest/user/install/#install -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in installing python

2016-02-04 Thread Joel Goldstick
that the third party library 'requests' is easier to use -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Reply to whom?

2016-02-04 Thread Joel Goldstick
—Howard Aiken | > Ben Finney > > -- > https://mail.python.org/mailman/listinfo/python-list > I use gmail and hit reply all and then (usually, unless i forget) delete all recipients except the group -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: snmpset

2016-02-05 Thread Joel Goldstick
had success with pysnmp (http://pysnmp.sourceforge.net/). It > is far from a shining example of a Pythonic API and I don't envy you > if you should need to subclass something to change its behavior, but > it is effective. > > -- > Zach > -- > https://mail.python.

Re: snmpset

2016-02-05 Thread Joel Goldstick
On Fri, Feb 5, 2016 at 12:12 PM, Joel Goldstick wrote: > > > On Fri, Feb 5, 2016 at 11:10 AM, Zachary Ware < > zachary.ware+pyl...@gmail.com> wrote: > >> On Fri, Feb 5, 2016 at 9:16 AM, Matt wrote: >> > How do I do the equivalent of this in Python? >&

Re: sharepoint python

2016-02-05 Thread Joel Goldstick
g/mailman/listinfo/python-list > Does this help? https://pypi.python.org/pypi/sharepoint/0.3.2 -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: sharepoint python

2016-02-05 Thread Joel Goldstick
On Fri, Feb 5, 2016 at 12:31 PM, Joel Goldstick wrote: > > > On Fri, Feb 5, 2016 at 9:35 AM, wrote: > >> Hi Folks, >> >> Is there a python package available to check-in files from Unix to >> sharepoint? >> I hope current sharepoint package is used to

Re: realtime output and csv files

2016-02-05 Thread Joel Goldstick
:24, 20.4 This uses the original python formatting method. There is a newer one as well > >> Or if there is a better way to do that. >> >> > If you got your newlines and headers (if the other program requires it) > right, this should be all you need. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: realtime output and csv files

2016-02-05 Thread Joel Goldstick
On Fri, Feb 5, 2016 at 4:51 PM, Bernardo Sulzbach wrote: > On 02/05/2016 07:43 PM, Joel Goldstick wrote: > >> print("%d, %2d:%2d, %.1f" % (1,10,24,20.4)) >>>>> >>>> 1, 10:24, 20.4 >> > > Let us be more careful there. Although CSV

Re: python

2016-02-06 Thread Joel Goldstick
from Windows Mail > -- > https://mail.python.org/mailman/listinfo/python-list Open up the command window type python You are now in the interactive python shell If you want to run a program you have saved in a file type: python my_file.py -- Joel Goldstick http://joelgoldstick.com/stats/b

Re: newbie. how can i solve this looping problem?

2016-02-09 Thread Joel Goldstick
n-list > I can't answer your question, but to make it easier for someone who can, put your code in your question, edit out all the code that has nothing to do with your question, show what you get, and what you want. If you get a traceback, copy and paste it in the qeustion Good luck

Re: Python Twitter Error

2016-02-10 Thread Joel Goldstick
attachments. Please copy and past the error in your question -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Twitter Error

2016-02-10 Thread Joel Goldstick
ttributeError: module 'twitter' has no attribute 'Twitter' > > ImportError: no module named '_file_cache' > > Trimis de pe iPhone-ul meu > > Pe 10 feb. 2016, la 17:50, Joel Goldstick a > scris: > > > if you are using python 3.x you need

Re:

2016-02-12 Thread Joel Goldstick
/mail.python.org/mailman/listinfo/python-list > I don't do windows, so I can't give you an answer. To the group, this has come up so consistantly lately. Maybe a windows python user could explain why this is so confusing to newbies on windows? -- Joel Goldstick http://joelgo

Re: Syntax error (The Python Book) Linux User and Developer Bookazine

2016-02-15 Thread Joel Goldstick
and Chris, yes missed the parentheses by taking the error as > being in line 31, DOH but a lesson learned. I have checked and checked the > code I entered against the provided code and had to make some more changes > to at least go through the first while loop but have given up on the rest > of it. Given your comments do you think its worth persevering with this > book or is there a better 'entry' into Python programming? > -- > https://mail.python.org/mailman/listinfo/python-list > Learn Python the Hard Way is pretty good some people say. Its online. Also Diving into Python is online written by the now offline Mark Pilgrim. -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: downloading a CSV

2016-02-19 Thread Joel Goldstick
ary. Its third party, but easier to understand and use than urllib -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Network Simulator

2016-02-23 Thread Joel Goldstick
On Tue, Feb 23, 2016 at 9:54 PM, nikhil amraotkar < nikhil.amraotk...@gmail.com> wrote: > Hi...I need help to design a network simulator consisting for 5 routers in > python...Any help would be appretiated... > Thanks.. > -- > https://mail.python.org/mailman/listinfo/pyth

Re: The Real-Time Use of Python in Data Science World!

2016-02-26 Thread Joel Goldstick
Start learning Python for Data Science from basics to advance levels > here... > https://goo.gl/070wXw > -- > https://mail.python.org/mailman/listinfo/python-list > Second post by this person. Both advertising classes for a fee. Is this proper posting? I tend to think it is spam

Re: list index out of range Error , need to fix it or ignore it

2016-02-27 Thread Joel Goldstick
functions = [check_file] > > for func in functions: > > try: > > func() > > except Exception as e: > not a good idea to have catchall exception > > return False > > if __name__ == '__main__': > > main() > > > -- > copy and paste your traceback > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: How to optimize operations

2016-02-27 Thread Joel Goldstick
h from this one. I really want to visit the website ;) I wonder where it is? I wonder if i am applicable -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Help

2016-02-29 Thread Joel Goldstick
g/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
it is even more crazy that you can not check if list/array is empty, > that is just madness. > -- > https://mail.python.org/mailman/listinfo/python-list > >>> l = [1,2,3,4] >>> if 1 in l: ... print 1 ... 1 >>> if 6 in l: ... print 1 ... >>> >>

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
rray[index] !== null) { > > or this one > > if (array[index] != null) { > > > > I mean how do they come up with such convoluted syntax, do they pull it > out of ass? Well one can always say it is needed because undefined not > equal to null. > >

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
gt;> >> > Please see > https://docs.python.org/3/library/stdtypes.html#truth-value-testing > > -- > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. > > Mark Lawrence > > -- > https://mail.python.org/mailman/listinfo/python-list > >>> l = [] >>> l [] >>> if l: ... print 'not empty' ... >>> -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: common mistakes in this simple program

2016-02-29 Thread Joel Goldstick
. You will appreciate it later on. > > What option do I have now in so ensure that I loop over the For loop. Try > except is ruled out ? > Its not ruled out. It is pointless. Look at the documents. Here is a start: https://wiki.python.org/moin/HandlingExceptions >

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-02-29 Thread Joel Goldstick
second-guess the diagnosis they >>> received. >>> >> >> I think for the most part, the mental health industry is most >> interested in pushing drugs and forcing people into some status quo. >> >> > I am disgusted by your comments. I'll keep my

Re: list reversal error

2016-03-03 Thread Joel Goldstick
data[4]. > >>> s = "123" >>> s2 = s[::-1] >>> s2 '321' >>> Use reverse slice > > -- > John Gordon A is for Amy, who fell down the stairs > gor...@panix.com B is for Basil, assaulted by bears >

Re: breaking out of outer loops

2016-03-07 Thread Joel Goldstick
k and continue. I don't know perl, but if what you want to do is quit continuing in a loop and go to the next iteration, then continue will do that. http://www.tutorialspoint.com/python/python_loop_control.htm -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthda

Re: turtle ??

2016-03-09 Thread Joel Goldstick
): File "", line 1, in AttributeError: '_Screen' object has no attribute 'mainloop' >>> Python opened a window and drew the lines. I don't know turtle, so maybe this can't be run interactively with wn.mainloop() > -- > Steven > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: issue with CVS module

2016-03-11 Thread Joel Goldstick
row[0]) > > Is there some directive I can give CVS reader to tell it to stop screwing > with my text? > > Thanks > -- > https://mail.python.org/mailman/listinfo/python-list > Enter the python shell. Import csv then type help(csv) It is highly configurable -- Joel Goldstick h

Re: Error

2016-03-13 Thread Joel Goldstick
On Sat, Mar 12, 2016 at 3:32 AM, Abeer Sohail wrote: > I get this error every time I open Python. > -- > https://mail.python.org/mailman/listinfo/python-list > and what error is that? no attachments in this list. just copy and paste the error please -- Joel Go

Re: OTish Wells Fargo sucks

2016-03-14 Thread Joel Goldstick
the bank would issue you a unique number >> for the payee and you should be able to change the address without >> having to delete and remake the account. The only reason I can think >> of is lazy programming. Do all banks make you delete your account to >> change the payee addre

Re: Use of Lists, Tupples, or Sets in IF statement.

2016-03-14 Thread Joel Goldstick
> > x-list = ["apple", "banana", "peach"] > > If x == x-list: > print('Comparison is True') > else: > print('Comparison is False') > > -- > https://mail.python.org/mailman/listinfo/python-list > if x in x-list --

Re: retrieve key of only element in a dictionary (Python 3)

2016-03-18 Thread Joel Goldstick
ast): >>File "", line 1, in >> ValueError: need more than 1 value to unpack >> >>> print(d.items()) >> dict_items([('squib', '007')]) >> >>> print(d.items()[0]) >> Traceback (most recent call last): >>File "", line 1, in >> TypeError: 'dict_items' object does not support indexing >> >>> >> >> what am I missing? I don't want to iterate over the dictionary. >> I know that there's only one element and I need to retrieve the key >> >> thanks >> > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: TSP in python ; this is code to solve tsp whenever called, where given coordinates as in name of pos and then start coordinate as in start, help me how it works ?

2016-03-18 Thread Joel Goldstick
; > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Bash-like pipes in Python

2016-03-18 Thread Joel Goldstick
ce(mul, map(int, filter(str.isdigit, "abcd12345xyz"))) > 120 > > as this requires the operations to be written in the opposite order to the > order that they are applied. > > > This is interesting, but the part I'm missing is the use of the Pipe

Re: Replace weird error message?

2016-03-19 Thread Joel Goldstick
ope and faith coexist with great scientific | > `\ pretension and also a deep desire for respectability.” —John | > _o__) Kenneth Galbraith, 1970-06-07 | > Ben Finney > > -- > https://mail.python.org/mailman/listinfo/python-list > I stand corrected. It was awfully misleading. So much so that I thought some other code must have been missing. -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Replace weird error message?

2016-03-19 Thread Joel Goldstick
t; Do you think some better error message should be used? > > For example a hint that "0" does work for the given argument. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-19 Thread Joel Goldstick
On Sat, Mar 19, 2016 at 5:40 PM, wrote: > What was the final answer for the create class bankaccount question? > -- > https://mail.python.org/mailman/listinfo/python-list > Was it 14? -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birth

Re: Beautifulsoap

2016-03-19 Thread Joel Goldstick
rking. Which verision of python and BS > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Error

2016-03-20 Thread Joel Goldstick
ach anything, let alone image files. What version of python, what operating system. Where did you get python. What instructions did you follow > Joel Goldstick >> http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> >> http://cc-baseballstats.info/ >>

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Joel Goldstick
a big exception handler around the > enter script with a traceback. > > This is on Red Hat Enterprise Linux Server release 6.7 (Santiago). > -- > https://mail.python.org/mailman/listinfo/python-list > Googling I found this: http://stackoverflow.com/questions/2628901/interpreting-kernel-message

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Joel Goldstick
On Sun, Mar 20, 2016 at 4:55 PM, Larry Martell wrote: > On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick > wrote: > > On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell > > wrote: > > > >> I have a script that I run a lot - at least 10 time every day. Usually &g

Re: Output format

2016-03-20 Thread Joel Goldstick
ults you get, what you want -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Joel Goldstick
let him get away with it. > > > -- > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. > > Mark Lawrence > > -- > https://mail.python.org/mailman/listinfo/python-list > at least ferous cranis is gone! -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: PLEASE HELP -- TOTALLY NEW TO PYTHON

2016-03-26 Thread Joel Goldstick
Please help > > > Regards, > Juan > -- > https://mail.python.org/mailman/listinfo/python-list > As a painless quick try I would change this line: for ind in range(len(subgraphs)-1, -1, -1): to this: for ind in range(len(list(subgraphs))-1, -1, -1): If that works, when you h

Re: setup

2016-03-26 Thread Joel Goldstick
/python-list > I'm guessing you are on windows and you could google the error code, but also search the list because this question has been asked and answered I believe -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats

Re: Help with python script for NMR

2016-03-27 Thread Joel Goldstick
ill get help, but people don't generally write programs for others here -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Meta Data

2016-03-28 Thread Joel Goldstick
s on setting up a similar system. > > ie. Declare classes and fields, query the meta data. Fields restricted to > certain types. > > N. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/ <http://joelg

Re: I am out of trial and error again Lists

2014-10-22 Thread Joel Goldstick
e for that > > For now, I am trying to end up with a list that has each character in > "a" as a single item. > > I get: > None > None > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Weird connection problem

2014-10-25 Thread Joel Goldstick
ult if I use a web browser like Safari. > > But, if I use python httplib I also get Errno 104. > > What gives ? > > Oh, by the way it’s a HTTPS url. > > — Roland Is this for any url or a specific one? > -- > https://mail.python.org/mailman/listinfo/python-list -- J

Re: XML Patch

2014-10-26 Thread Joel Goldstick
> > Best wishes, > > Nicholas > -- > https://mail.python.org/mailman/listinfo/python-list Could you use git? -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Anyone know the solution

2014-10-27 Thread Joel Goldstick
abel > Danielle > Mariah > Melanie > Sierra > Erin > Molly > Amelia > Isabelle > Madelyn > Melissa > Jacqueline > Marissa > Shelby > Angela > Leslie > Katie > Jade > Catherine > Diana > Aubrey > Mya > Amy > Briana > Sophie > Gabriela > Breanna > Gianna > Kennedy > Gracie > Peyton > Adriana > Christina > Courtney > Daniela > Kathryn > Lydia > Valeria > Layla > Alexandria > Natalia > Angel > Laura > Charlotte > Margaret > Cheyenne > Mikayla > Miranda > Naomi > Kelsey > Payton > Ana > Alicia > Jillian > Daisy > Mckenzie > Ashlyn > Caitlin > Sabrina > Summer > Ruby > Rylee > Valerie > Skylar > Lindsey > Kelly > Genesis > Zoey > Eva > Sadie > Alexia > Cassidy > Kylee > Kendall > Jordyn > Kate > Jayla > Karen > Tiffany > Cassandra > Juliana > Reagan > Caitlyn > Giselle > Serenity > Alondra > Lucy > Kiara > Bianca > Crystal > Erica > Angelica > Hope > Chelsea > Alana > Liliana > Brittany > Camila > Makenzie > Veronica > Lilly > Abby > Jazmin > Adrianna > Karina > Delaney > Ellie > Jasmin > -- > https://mail.python.org/mailman/listinfo/python-list The answer to you question is Yes. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Saving a file "in the background" -- How?

2014-10-30 Thread Joel Goldstick
method to perform this task using Python 2.7.8 on a Win32 > platform? > -- > https://mail.python.org/mailman/listinfo/python-list I've not tried this, but stackoverflow has a solution that looks like it could work for you: http://stackoverflow.com/questions/16214736/write

Re: Classes

2014-10-31 Thread Joel Goldstick
more because every typo you make will lead you to a new discovery -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Joel Goldstick
instorming app! > > -- > https://mail.python.org/mailman/listinfo/python-list If you like math puzzles you can do the euler project stuff -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Joel Goldstick
On Sun, Nov 2, 2014 at 4:03 PM, Seymore4Head wrote: > On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence > wrote: > >>On 02/11/2014 19:10, Seymore4Head wrote: >>> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick >>> wrote: >>> >>>> On Sun,

Re: detect mouse pointer type

2014-11-05 Thread Joel Goldstick
m > solution is highly appreciated) > Those events happen in the browser. I suspect you could do this with javascript. Can't do it on the backend. > Many thanks. > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.c

Re: wxPython Boxsizers

2014-11-06 Thread Joel Goldstick
on. What is boxsizer? Show some code of what you have tried. > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: generating 2D bit array variants with specific algorythm

2014-11-07 Thread Joel Goldstick
> > > Must be possible with nested loops and a counter per line. But I don't get it. > > Can someone help? is this valid: 1011 What I mean is do you throw away the carry or does each row have only one zero? > > Thanks > Robert > -- > https://mail.python.org

Re: How do i reduce this to a single function - the code is largely similar, just a direction of search toggle.

2014-11-07 Thread Joel Goldstick
on-list add a direction parameter to the call, and test direction to change the while test, and row increment/decrement -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: What is rstrip() in python?

2014-11-09 Thread Joel Goldstick
d. > > > The manuals have a rather complete index. If 'rstrip' is missing from the > index, let us know so we can fix it. > > -- > Terry Jan Reedy > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: A syntax question

2014-11-10 Thread Joel Goldstick
>> count+=0 ### Error message if this line is active, otherwise ok. >> print(count) >>return >> >> test() > > > -- > https://mail.python.org/mailman/listinfo/python-list Your problem is that count is not local. You are reading count f

Re: A syntax question

2014-11-10 Thread Joel Goldstick
On Mon, Nov 10, 2014 at 9:54 AM, Chris Angelico wrote: > On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick > wrote: >> Your problem is that count is not local. You are reading count from >> an outer scope. When you try to increment count in your function, it >> can&#x

Re: Trouble with python

2014-11-11 Thread Joel Goldstick
. I don't know what python(x,y) means, but python 3.4 or 2.7 is useful information. If you feel that the code used to work, but doesn't now, then how about the data file? Has the data you are studying changed? > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Joel Goldstick
he may be paying you to implement his bad idea. Maybe you can outline a better approach that he can buy into -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Joel Goldstick
ntends out >> to their clients sooner, and then I could go back and port the PHP to >> python. I don't see what is so wrong with that. > > You obviously have thought this through. It just raises red flags for me. > Sounds like an excellent game plan to me.

Re: Advice

2014-11-12 Thread Joel Goldstick
using Sophos Anti-Virus – Ver > 10.2 > > > > [image: cid:image001.jpg@01CF79CB.9F3A3DF0] > > > You may get more specific advice in a RPi mailing list, but you can start your program with a cron job (google that), and check the time in your code so as to exit at the required time > > -- > https://mail.python.org/mailman/listinfo/python-list > > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: html page mail link to webmail program

2014-11-12 Thread Joel Goldstick
address from the link that was passed to it, and, >>> if not too much more, move the cursor to the subject field. >>> >>> Surely this can be done in Python. >> >> any chance you could fix your broken news reader? > > Apologies, all posts seem broken today. I am not sure of the cause yet > > > > -- > Boren's Laws: > (1) When in charge, ponder. > (2) When in trouble, delegate. > (3) When in doubt, mumble. > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How about some syntactic sugar for " __name__ == '__main__' "?

2014-11-12 Thread Joel Goldstick
l of the unfriendly > dunderish details. And if that's a good idea, I would invite a discussion of > how, exactly, it should be implemented. I'm nowhere near proposing a PEP, > but that may come later. > > Thanks for your thoughts. > -- > https://mail.python.org

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 308: character maps to

2014-11-14 Thread Joel Goldstick
f.errors,decoding_table)[0] > UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 308: > character maps to You should understand encodings. There is lots of literature on the web about unicode and python. In your case, the fact that you are reading a

Re: fileno() not supported in Python 3.1

2014-11-14 Thread Joel Goldstick
x27;ve read that much has improved in the 3.x series since 3.1 > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How modules work in Python

2014-11-16 Thread Joel Goldstick
> My question is, where did PIL go here? Can a module have another module > inside it? > > Thanks. > > -- > https://mail.python.org/mailman/listinfo/python-list > You can learn what PIL has to offer by going into the python interactive shell, and import PIL . Then type h

Re: Using map()

2014-11-16 Thread Joel Goldstick
mail.python.org/mailman/listinfo/python-list I think people now favor list comprehensions. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python docs disappointing

2014-11-20 Thread Joel Goldstick
however obscurely he covers himself. > -- > https://mail.python.org/mailman/listinfo/python-list I learned a new word: hermeneutic Or just WOW!. Programming is hard, and people have just started to do it. Fifty years isn't that long. It has only been 20 years or so that the web has

Re: I have no class

2014-11-22 Thread Joel Goldstick
drange(3) >> >> a = RPS() >> b = RPS() >> print a.throw >> print b.throw > > Now I am trying to add a dictionary, but it is broke too. > > How do I fix: > class RPS: > key={0:"rock", 1:"paper",2:"scissors"}; > def __init__(self): > self.throw=random.randrange(3) > self.key=key[self.throw] > -- > https://mail.python.org/mailman/listinfo/python-list can you please show traceback and output? -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: i have to create this patch in python but wasnt having any luck i was wondering if anyone had a solution?

2014-12-02 Thread Joel Goldstick
t; rectangleHorizontal.setFill("white") > rectangleHorizontal.setOutline("white") > rectangleHorizontal.draw(win) > > #Outlined Red circles > fillCircle = Circle(Point(20,20)+100/amountOfCircles) > fillCircle.draw(win) > fillCircle.setOutline("red") > > it is supposed to create this design>>> http://i.stack.imgur.com/2dfGi.jpg > -- > https://mail.python.org/mailman/listinfo/python-list What results did you get? If you get a traceback, copy it completely and paste it in your response. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2014-12-02 Thread Joel Goldstick
tools for his own shortcomings. > > ... line... > >>> Funny thing is these goto statements would be very handy for bot >>> programming, so it's a painfull feature to miss. >> >> Haven't heard that argued in many years. And I don't see how. > > ... and sinker. > > > Marko > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2014-12-03 Thread Joel Goldstick
that. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list I especially liked the 'phython' reference in his post from 2013! -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Logger not logging

2015-01-01 Thread Joel Goldstick
ogging.INFO) > >>>> logger.info("hello") > >>>> logger.warn("hello") > > hello > >>>> > > By default, loggers only log warnings and errors. Add this: > > logger.setLevel(logging.INFO) > > HTH, > Dan > Looks like op did that? > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Joel Goldstick
calculate radius in pixels and orientation in radians > radius = length / 2 > orient = math.radians(orientation) > > # calculate xy coords in image space of line end points > x1 = int(400 + (radius * math.cos(orient))) > y1 = int(400 - (radius * math.sin(orient))) > x2 = int(400 + (-radius * math.cos(orient))) > y2 = int(400 - (-radius * math.sin(orient))) > > # create an image > img = Image.new('RGB', (800,800), 'rgb(255, 255, 255)') > # create a draw interface > draw = ImageDraw.Draw(img) > > # draw the line on the image > draw.line([(x1, y1), (x2, y2)], fill='rgb(0, 0, 0)', width=4) > > # determine file name, save image file > fn = 'imgs/image_{:03d}_{:03d}.jpg'.format(length,orientation) > img.save(fn) > > > # using lists of values > for length in [a]: > for orientation in [b]: > makeimg(length, orientation) > above should be: for length in a: for orientation in b: -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: ftfy: fixes text for you

2015-01-10 Thread Joel Goldstick
ocs.org/en/latest/. > > -- > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. > > Mark Lawrence > > -- > https://mail.python.org/mailman/listinfo/python-list > very interesting -- Joel Goldstick http://joelgo

Re: Syntax error

2015-01-10 Thread Joel Goldstick
line 2, but no > en > coding declared; see http://python.org/dev/peps/pep-0263/ for details > > Why is that? How can this error be solved? > > Thanks. > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: extracting numbers with decimal places from a string

2015-01-11 Thread Joel Goldstick
bers. > -- > https://mail.python.org/mailman/listinfo/python-list split the string on ',' to get a list of strings. loop thru list using float(s), add float values -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: extracting numbers with decimal places from a string

2015-01-11 Thread Joel Goldstick
On Sun, Jan 11, 2015 at 3:26 PM, Store Makhzan wrote: > On Sunday, January 11, 2015 at 2:06:54 PM UTC-6, Joel Goldstick wrote: >> On Sun, Jan 11, 2015 at 2:31 PM, Store Makhzan wrote: >> > I have this script which can calculate the total of numbers given in a >> &

<    1   2   3   4   5   6   7   8   >