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
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
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
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
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:/
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
hat have you tried so far?
--
Joel Goldstick
http://joelgoldstick.com/stats/birthdays
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
--
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
.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
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
—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
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.
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?
>&
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
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
: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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
...
>>>
>>
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.
> >
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
. 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
>
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
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
>
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
):
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
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
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
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
>
> 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
--
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
;
> --
> 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
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
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
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
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
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
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/
>>
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
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
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
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
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
/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
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
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
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
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
>
> 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
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
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
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
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
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,
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
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
>
>
> 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
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
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
>> 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
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
. 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
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
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.
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
>> &
301 - 400 of 741 matches
Mail list logo