Instance method for converting int to str - str() and __str__()

2015-10-02 Thread neubyr
I was wondering if there is any resource that explains why certain methods like str() and type() were implemented the way they are, rather than .to_string() or .type() instance/object methods. I find instance/object methods more intuitive for this cases, but I am wondering why it wasn't implemente

Re: IDLE = 'Integrated Development and Learning Environment'

2015-10-02 Thread Chris Angelico
On Sat, Oct 3, 2015 at 1:57 PM, Terry Reedy wrote: > Today, we agreed on the idle-dev list (Guido included) that 'IDLE' should be > interpreted as 'Integrated Development and Learning Environment' rather than > as 'Integrated DeveLopment Environment' (note the 'L' in 'DeveLopment'). > The new long

IDLE = 'Integrated Development and Learning Environment'

2015-10-02 Thread Terry Reedy
Today, we agreed on the idle-dev list (Guido included) that 'IDLE' should be interpreted as 'Integrated Development and Learning Environment' rather than as 'Integrated DeveLopment Environment' (note the 'L' in 'DeveLopment'). The new long form better reflects the current practice and goal of

Re: Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-02 Thread Grant Edwards
On 2015-10-02, Rob Gaddi wrote: > Also, who do I try to report this one to? I'd try here: https://github.com/pyserial/pyserial/issues -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread paul.hermeneutic
On Oct 2, 2015 12:31 PM, "Kenneth L" wrote: > I'm not sure about the plugin route. I'm not looking to build a plug, lol. Just a finger to point me where to go/start. Writing a plug-in for an existing open source project would be a good starting point to see how others have approached graphics ap

Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-02 Thread Rob Gaddi
So, this is odd. I'm running Ubuntu 14.04, and my system did a kernel upgrade from the repository from 3.13.0-63-generic to 3.13.0-65-generic. And pyserial (2.7, installed through pip) stopped working. Specifically, when I make read() calls on a Serial object, I get the error serial.serialuti

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Terry Reedy
On 10/2/2015 12:41 PM, Kenneth L wrote: I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like to build a Illustrator/Photoshop like program. Why, there are

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Mark Lawrence
On 02/10/2015 19:25, Kenneth L wrote: Well 15 years ago when I was 15 I wanted to model cars in 3D. It took me 100 hours and 5-10 years but I can modeling a realistic vehicle and other objects in 3d. It was time consuming and challenging but it was worth it. And honestly I've used my 3d modeli

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Mark Lawrence
On 02/10/2015 18:39, Grant Edwards wrote: On 2015-10-02, Kenneth L wrote: I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like to build a Illustrator

Re: DistutilsPlatformError

2015-10-02 Thread Mark Lawrence
On 02/10/2015 20:35, garyr wrote: I'm trying to build an extension for Python 3. I'm using the example code in the book "Python Essential Reference", 4ed. I have it working for Python 2. But when I try to build it for Python 3 I get the following error: distutils.errors.DistutilsPlatformError: M

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Ian Kelly
On Fri, Oct 2, 2015 at 12:27 PM, Kenneth L wrote: > I tried to use gimp but as a photoshop user it was horrible. I was trying to > like it. That is a great idea tearing down gimp. that is how I learn html and > css. Breakin down websites. What about Inkscape? It's a lot friendlier than GIMP, an

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Bartc
On 02/10/2015 21:23, Kenneth L wrote: And I didn't get that by going basic. Keep your advice Bartc. OK, I will. Although I'm now curious as to what advice you /do/ want. -- Bartc -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.5.0 (32-bit) Setup error

2015-10-02 Thread Denis McMahon
On Fri, 02 Oct 2015 12:32:14 +1000, Hadassah Harland wrote: > The python for windows setup program is constantly opening on my > computer, > every couple seconds. Nothing I can do will make it stop. Please, make > it stop. Based on the comprehensive and thorough information that you have given,

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
No don't tell me what to do. I joined the military 3 years ago. You wouldn't believe the stuff I wasn't able to do before but now I am. You can keep your advice to yourself. I wasn't asking for something simple. I was asking for a starting point. The 3d was to show you I've learned hard stuff an

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Bartc
On 02/10/2015 17:41, Kenneth L wrote: I actually build an iOS using Flash. What does that mean? That you built an Apple-like operating system using Flash? I'd like to build a Illustrator/Photoshop like program. You've probably got the message by now that that is not trivial. Maybe this

DistutilsPlatformError

2015-10-02 Thread garyr
I'm trying to build an extension for Python 3. I'm using the example code in the book "Python Essential Reference", 4ed. I have it working for Python 2. But when I try to build it for Python 3 I get the following error: distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 10.0 is requi

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Random832
And right after I posted this I found all the stuff mentioning someone had hijacked the name and added spyware... sorry... On Fri, Oct 2, 2015, at 14:57, Random832 wrote: > On Fri, Oct 2, 2015, at 14:27, Kenneth L wrote: > > I tried to use gimp but as a photoshop user it was horrible. > > This is

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Random832
On Fri, Oct 2, 2015, at 14:27, Kenneth L wrote: > I tried to use gimp but as a photoshop user it was horrible. This is off-topic, but have you tried Gimpshop? -- https://mail.python.org/mailman/listinfo/python-list

RE: I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Albert-Jan Roskam
(Sorry for top-posting, mobile hotmail sie sucks). This is cool, although it's not a Sphinx directive. You use insert the resulting graph in the .rst of course: http://furius.ca/snakefood/ Date: Fri, 2 Oct 2015 11:14:59 -0300 Subject: I'm using Sphinx, but is there a UML auto generator From: gil

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
I tried to use gimp but as a photoshop user it was horrible. I was trying to like it. That is a great idea tearing down gimp. that is how I learn html and css. Breakin down websites. -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
Well 15 years ago when I was 15 I wanted to model cars in 3D. It took me 100 hours and 5-10 years but I can modeling a realistic vehicle and other objects in 3d. It was time consuming and challenging but it was worth it. And honestly I've used my 3d modeling skills to build displays and products

Re: Question about regular expression

2015-10-02 Thread Denis McMahon
On Wed, 30 Sep 2015 23:30:47 +, Denis McMahon wrote: > On Wed, 30 Sep 2015 11:34:04 -0700, massi_srb wrote: > >> firstly the description of my problem. I have a string in the following >> form: . > > The way I solved this was to: > > 1) replace all the punctuation in the string with spa

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Grant Edwards
On 2015-10-02, Kenneth L wrote: > I'm a graphic designer. I'm new to Python. I know html, css, alittle > actioscript and little javascript. I actually build an iOS using > Flash. I understand programming concepts I believe. > I'd like to build a Illustrator/Photoshop like program. Holy Cow. I'

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Laura Creighton
In a message of Fri, 02 Oct 2015 09:41:16 -0700, Kenneth L writes: >I'd like to build a Illustrator/Photoshop like program. Why, there are some features that I'd like to personally have. Example, randomizing the rotation, line height and sizing of text. You have to do this manually. It would be

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Chris Angelico
On Sat, Oct 3, 2015 at 2:41 AM, Kenneth L wrote: > I'm a graphic designer. I'm new to Python. I know html, css, alittle > actioscript and little javascript. I actually build an iOS using Flash. I > understand programming concepts I believe. > > I'd like to build a Illustrator/Photoshop like prog

Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like to build a Illustrator/Photoshop like program. Why, there are some features that I'd like to persona

Re: I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Littlefield, Tyler
> You can use Graphvix and Plant UML from inside Sphinx. > http://build-me-the-docs-please.readthedocs.org/en/latest/Using_Sphinx/UsingGraphicsAndDiagramsInSphinx.html > > Laura > Keep this in mind: However you write your docs, they should be accessible for everyone to use. That is to say, scree

Re: Pandas Left Merge with xlsx with CSV producing null value columns in output

2015-10-02 Thread kbtyo
On Thursday, October 1, 2015 at 7:47:18 PM UTC-4, Mark Lawrence wrote: > On 01/10/2015 16:03, kbtyo wrote: > > I would appreciate any feedback on the following question that I have > > raised here: > > > > http://stackoverflow.com/questions/32889129/pandas-left-merge-with-xlsx-with-csv-producing-n

Re: I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Laura Creighton
In a message of Fri, 02 Oct 2015 11:14:59 -0300, Gilcan Machado writes: >Hi, > >I'm using Sphinx as a doc tool. > >Amazing. > >But I need a way to describe, for example, that, inside a Person class, >there's a method called changePassword which depends of the execution of >the method checkPermissio

I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Gilcan Machado
Hi, I'm using Sphinx as a doc tool. Amazing. But I need a way to describe, for example, that, inside a Person class, there's a method called changePassword which depends of the execution of the method checkPermissions, and checkPermissions depends on the execution of two other methods. I'm usin

Re: PySide window does not resize to fit screen

2015-10-02 Thread Chris Warrick
On 2 October 2015 at 15:10, Hedieh Ebrahimi wrote: > Thanks Laura, > > In my user interface I have many group boxes that are located inside the main > widget. All the group boxes and their child widgets have fixed sizes. > > How can I use the width and height I get from availableGeometry or > Sc

Re: PySide window does not resize to fit screen

2015-10-02 Thread Hedieh Ebrahimi
Thanks Laura, In my user interface I have many group boxes that are located inside the main widget. All the group boxes and their child widgets have fixed sizes. How can I use the width and height I get from availableGeometry or ScreenGeometry to multiply screenGeometry = QApplication.insta

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-02 Thread Chris Warrick
On 2 October 2015 at 01:59, Terry Reedy wrote: > On 10/1/2015 12:26 PM, Chris Warrick wrote: >> >> The Nikola developers decided to deprecate Python 2.7 support. >> Starting with v7.7.2, Nikola will display a warning if Python 2.7 is >> used (but it will still be fully supported). In early 2016, N

Re: Python 3.5.0 (32-bit) Setup error

2015-10-02 Thread Laura Creighton
In a message of Fri, 02 Oct 2015 20:59:58 +1000, Hadassah Harland writes: >[image: Inline image 1] >For further clarification, this pop-up keeps appearing every time i use >pycharm, it will restart every couple of seconds. If I choose repair, it >will start a repair and while the repair is going it

Re: Create a .lua fle from Python

2015-10-02 Thread Stefan Behnel
jmp schrieb am 02.10.2015 um 11:03: > Safety is like speed optimization, you care about it only when it can be a > problem. And the vast majority (there's a recent trolling thread about the > equivalent percentage of vast majority if you want to have fun) of python > code may run on trusted network

Re: Only getting the first 6 lines

2015-10-02 Thread Cecil Westerhof
On Friday 2 Oct 2015 09:37 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >> I want to get the first 6 lines of ps output. For this I use: >> >> from subprocess import check_output >> >> ps_command = ('ps', '-eo', >> 'u

Re: Only getting the first 6 lines

2015-10-02 Thread Cecil Westerhof
On Friday 2 Oct 2015 00:50 CEST, Cameron Simpson wrote: > On 01Oct2015 23:58, Cecil Westerhof wrote: >> I want to get the first 6 lines of ps output. For this I use: >> >> from subprocess import check_output >> >> ps_comman

Re: compiling matplotlib in virtual env

2015-10-02 Thread bayang
I ran into the same issue. Check here http://stackoverflow.com/questions/27024731/matplotlib-compilation-error-typeerror-unorderable-types-str-int It worked for me on python 3 with virtualenv in ubuntu . Libfreetype was missing. Le 2 oct. 2015 10:43, "Laura Creighton" a écrit : > Lots of egg pro

Re: Create a .lua fle from Python

2015-10-02 Thread jmp
On 10/01/2015 09:12 PM, Steven D'Aprano wrote: On Wed, 30 Sep 2015 07:21 pm, jmp wrote: Is Ariel's xml file user-supplied? If so, how does your suggestion prevent the resulting lua script from executing arbitrary code? It does not. Like it doesn't fulfill the millions of possible requirements

Re: compiling matplotlib in virtual env

2015-10-02 Thread Laura Creighton
Lots of egg problems can be fixed if you pip install this package first. https://pypi.python.org/pypi/ez_setup However, you are trying to install matplotlib. Your distro should have it already as a package (python-matplotlib perhaps? python3-matplotlib perhaps?) and you may want to get it from t

Re: Only getting the first 6 lines

2015-10-02 Thread Peter Otten
Cecil Westerhof wrote: > I want to get the first 6 lines of ps output. For this I use: > > from subprocess import check_output > > ps_command = ('ps', '-eo', 'user,pid,pcpu,pmem,stat,start,time,cmd', > '--sort') message = '\

Re: Check if a given value is out of certain range

2015-10-02 Thread Ian Kelly
On Thu, Oct 1, 2015 at 3:45 PM, John Gordon wrote: > In <87r3le1ht3@elektro.pacujo.net> Marko Rauhamaa > writes: > >> > I wasn't commenting directly to the "ask not..." quote; I was >> > referring upthread to the choice between >> > >> > not 0 <= x <= 10 >> > >> > and >> > >> > x < 0

Python 3.5.0 (32-bit) Setup error

2015-10-02 Thread Hadassah Harland
The python for windows setup program is constantly opening on my computer, every couple seconds. Nothing I can do will make it stop. Please, make it stop. Regards, Hadassah -- https://mail.python.org/mailman/listinfo/python-list