On 24/06/16 14:07, Alex Hall wrote:
> but I never knew for-else was available.
for-else is useful although I don't like else for it, I would have
preferred something like for-also as being more meaningful.
> Are there other constructs that I may have missed
Probably. :-)
Are you aware of try-e
Alex Hall wrote:
> One related question. This more of a style choice, I know, but I'd like
> anyone's thoughts all the same. Currently, in my ADLogger.logExceptions
> function, I log the exception (obviously). But I also take the opportunity
> to generate and send an email, warning that the job ra
Hey all,
I was looking at how to make my different jobs retry themselves, and found
the for-else construct. I know loops, comprehensions, ifs, and the like,
but I never knew for-else was available. Are there other constructs that I
may have missed--shortcuts or seemingly odd pairings of control sta
Thanks for the responses. It's great to know that nothing funny will happen
even though each job is pulling from utils.py and a few other files. Since
you don't need a fresh copy of every package for every script, I hoped my
own packages would act the same way. I just wasn't sure if excepthook was
>ImportError: No module named matplotlib
Seems as the matplotlib is not install. Did you check the output at
installation? Check matplotlib web since you need certain packages before
installing the matplotlib itself.
http://matplotlib.org/users/installing.html
Check Required Dependencies.
This
Hi,
On 23 June 2016 at 19:00, Bharath Swaminathan wrote:
> Can I run my python code in multiple processors? I have a dual core...
Like an idiot I forgot a link for the "pp" module, my apologies. Here it is:
http://www.parallelpython.com/
If you have/use pip, you can simply enter (from an oper
Hi Bharath,
On 23 June 2016 at 19:00, Bharath Swaminathan wrote:
>
> Can I run my python code in multiple processors? I have a dual core...
Notwithstanding Alan's answer, I'm going to directly answer your
question: Yes, it can.
However The degree and level of success you're going to have
On 24/06/16 08:51, Hershel Millman wrote:
> Python didn't come installed on my Mac, my dad had to install it.
Nope, it definitely would have been on there because MacOS uses it.
So you definitely have two versions of python installed and it looks
like one of them (probably the default) is v2.5 an
On 24/06/16 09:02, Hershel Millman wrote:
> mean by "package manager", so if you could enlighten me, that would be
> immensely appreciated.
I meant to add that on Fedora the package manager seems to be
called PackageKit... There are also command line tools
(yum, DNF and rpm) but I'm guessing you'
On 24/06/16 09:02, Hershel Millman wrote:
> I tried to import Tkinter and I got this message:
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named Tkinter
>
>
> And since I am running Linux, you may be under the false impression that I
> know what I am d
I tried to import Tkinter and I got this message:
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named Tkinter
And since I am running Linux, you may be under the false impression that I
know what I am doing when it comes to using Linux. I have no idea what you
m
Python didn't come installed on my Mac, my dad had to install it. I typed
import Tkinter into the terminal and received no error message, and when I
ran it in pycharm, I also received no error message. I found a little
program online and ran it to test the functionality of Tkinter, and it
worked.
When I try to use turtle in pycharm, it doesn't work, but when I try to use
it in the terminal, it does work. Is it possible there is something wrong
with my pycharm that is not letting it run properly?
Thank you,
Hershel
-- Forwarded message --
From: *Joaquin Alzola*
Date: Thur
On 24/06/16 01:21, Hershel Millman wrote:
> This is from my terminal on Fedora 24:
>
> [hmillman@localhost ~]$ python
> Python 2.7.10 (default, Sep 24 2015, 17:50:09)
> [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
im
On 24/06/16 03:02, Hershel Millman wrote:
> It tells me:
> Trace back (most recent call last):
> File "", line 1, in
> NameError: name 'turtle' is not defined
As I recall, the default install of Python on a Mac
does not include Tkinter. Turtle uses Tkinter so I
suspect turtle is not installed
This is from my terminal on Fedora 24:
[hmillman@localhost ~]$ python
Python 2.7.10 (default, Sep 24 2015, 17:50:09)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
Traceback (most recent call last):
File "
It tells me:
Trace back (most recent call last):
File "", line 1, in
NameError: name 'turtle' is not defined
Thanks!
-- Forwarded message --
From: *Steven D'Aprano*
Date: Thursday, June 23, 2016
Subject: [Tutor] Fwd: : Turtle
To: tutor@python.org
On Thu, Jun 23, 2016 at 02
I tested with 2.6 and it works.
>/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
>"/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py"
>Traceback (most recent call last):
> File "/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py",
> line 2, i
Millman-Family-Admins-iMac-2:~ Hershel$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
>>> turtle.__file__
'/System/Library/Frameworks/Python.framework/V
19 matches
Mail list logo