extract script from executable made by pyinstaller?

2016-01-07 Thread Ulli Horlacher
Is it possible to extract (and view) the Python script from the Windows executable which was made by pyinstller? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum IZUS/TIK E-Mail: horlac...@tik.uni-stuttgart.de Universitaet Stuttgart Tel:++49-711-685

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
Ok, double-checked again, and if force it to run under 2.7, then it complains about lack of pyQT4 - that's one of the issues was asking about relating to GUI frameworks - pyQT hasn't always worked too well under 2.7 in terms of accessibility API's in past, but, will 'see' if can get hold of tha

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread Bernardo Sulzbach
On Fri, Jan 8, 2016 at 1:54 AM, jacob Kruger wrote: > > Also, downloaded both the main master, and the RSS reader master images, > but, both python 2.7 and python 3.4 tell me that they have no urllib2, and > under 3.4, pip install can't find it either..? > > TIA > Python 3 does not have urllib2.

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
I would definitely like to try out something like this - I am primarily a web developer, and, partly since am 100% blind, any form of GUI design is at times an issue for me, whereas I have been working with HTML markup layouts for almost 20 years now, but, which versions of python should this w

SUM only of positive numbers from array

2016-01-07 Thread Davorin Bajic
Hi All, I should help... I want to calculate the sum of a positive number, for each row: x = ((mat_1 / s_1T)-(s_2 / total)) y = (np.sum(x > 0, axis=1)).reshape(-1, 1).tolist() However, this part of the code only calculation count, I need sum. Any ideas how to solve this problem? thanks in ad

Re: A newbie's doubt

2016-01-07 Thread Paulo da Silva
Às 03:20 de 07-01-2016, Henrique Correa escreveu: > Is Python's Tutorial (by Guido) a good and complete reference for the > language? Good yes. Complete no. I mean, after reading it, should I have a good basis on Python? Yes if you know how to program on another language. > HTH Paulo -- https

Re: Fast pythonic way to process a huge integer list

2016-01-07 Thread KP
On Wednesday, 6 January 2016 18:37:22 UTC-8, high5s...@gmail.com wrote: > I have a list of 163.840 integers. What is a fast & pythonic way to process > this list in 1,280 chunks of 128 integers? Thanks all for your valuable input - much appreciated! -- https://mail.python.org/mailman/listinfo/p

Re: A newbie's doubt

2016-01-07 Thread Aaron Christensen
That's an awesome response! On Jan 7, 2016 6:35 AM, "Chris Angelico" wrote: > On Thu, Jan 7, 2016 at 2:20 PM, Henrique Correa wrote: > > Is Python's Tutorial (by Guido) a good and complete reference for the > > language? I mean, after reading it, should I have a good basis on Python? > > > > I'v

PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread Saeed Moqadam
create multi platform desktop application by using Python, HTML, CSS and Javascript. source code is https://github.com/smoqadam/PyFladesk you can find RSS Reader app that made by PyFladesk in the following url : https://github.com/smoqadam/PyFladesk-rss-reader I'll waiting for your feedback.

Re: Question about a class member

2016-01-07 Thread Robert
On Thursday, January 7, 2016 at 5:06:07 PM UTC-5, Steven D'Aprano wrote: > On Fri, 8 Jan 2016 04:23 am, Robert wrote: > > > Hi, > > > > I am using a download package. When I read its code, see below please, I > > don't know what 'sample' is: > > > > > > -- > > model = hmm.GaussianHMM(n_

Re: Question about a class member

2016-01-07 Thread Steven D'Aprano
On Fri, 8 Jan 2016 04:23 am, Robert wrote: > Hi, > > I am using a download package. When I read its code, see below please, I > don't know what 'sample' is: > > > -- > model = hmm.GaussianHMM(n_components=4, covariance_type="full") When I try running that code, I get an error: py> m

Re: Question about a class member

2016-01-07 Thread John Gordon
In Robert writes: > I am using a download package. When I read its code, see below please, I > don't know what 'sample' is: > -- > model = hmm.GaussianHMM(n_components=4, covariance_type="full") > model.startprob_ = startprob > model.transmat_ = transmat > model.means_ = means > mode

Re: Question about a class member

2016-01-07 Thread Robert
On Thursday, January 7, 2016 at 12:24:53 PM UTC-5, Robert wrote: > Hi, > > I am using a download package. When I read its code, see below please, I > don't know what 'sample' is: > > > -- > model = hmm.GaussianHMM(n_components=4, covariance_type="full") > > model.startprob_ = startprob

Re: What meaning is 'from . import'

2016-01-07 Thread Chris Angelico
On Fri, Jan 8, 2016 at 3:50 AM, Robert wrote: > Hi, > > I see the following code. After searching around, I still don't know the > meaning of '.'. Could you tell me that ? Thanks, > > > > > > from . import _hmmc > from .utils import normalize That's called a package-relative import. https://www.

What meaning is 'from . import'

2016-01-07 Thread Robert
Hi, I see the following code. After searching around, I still don't know the meaning of '.'. Could you tell me that ? Thanks, from . import _hmmc from .utils import normalize -- https://mail.python.org/mailman/listinfo/python-list

Re: imshow keeps crashhing

2016-01-07 Thread Random832
On Wed, Jan 6, 2016, at 18:37, William Ray Wing wrote: > Is this a typo or did you really mean /private/vars? That is, did your > create a “vars” directory under /private at some point in the past > (pre-Yosemite)? The usual directory there would be /var > > In any case, the whole /private direc

Re: imshow keeps crashhing

2016-01-07 Thread darren . mcaffee
I think I figured out the real problem, you can see my post here: http://stackoverflow.com/questions/34645512/scipy-imshow-conflict-with-el-capitan-sip-and-var-folders/34646093#34646093 Thanks again for helping to guide me in the right direction. -- https://mail.python.org/mailman/listinfo/pytho

Re: How to union nested Sets / A single set from nested sets?

2016-01-07 Thread Oscar Benjamin
On 7 January 2016 at 08:37, Steven D'Aprano wrote: > On Thu, 7 Jan 2016 01:45 am, Oscar Benjamin wrote: > >> On 4 January 2016 at 02:40, mviljamaa wrote: >>> I'm forming sets by set.adding to sets and this leads to sets such as: >>> >>> Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(

Re: A newbie's doubt

2016-01-07 Thread Chris Angelico
On Thu, Jan 7, 2016 at 2:20 PM, Henrique Correa wrote: > Is Python's Tutorial (by Guido) a good and complete reference for the > language? I mean, after reading it, should I have a good basis on Python? > > I've came from js and php, and already know the very basics of py. > > Thank you! If by "g

A newbie's doubt

2016-01-07 Thread Henrique Correa
Is Python's Tutorial (by Guido) a good and complete reference for the language? I mean, after reading it, should I have a good basis on Python? I've came from js and php, and already know the very basics of py. Thank you! -- https://mail.python.org/mailman/listinfo/python-list

Re: True/False value testing

2016-01-07 Thread Marko Rauhamaa
Chris Angelico : > However, none of these will compare *equal* to the Boolean values True > and False, save for the integers 1 and 0. In fact, True is a special > form of the integer 1, and False is a special form of the integer 0; Stirring the pot: >>> (2 < 3) is True True but is that gu

Re: True/False value testing

2016-01-07 Thread Peter Otten
ast wrote: > Hello > > For integer, 0 is considered False and any other value True > A=0 A==False > True A==True > False A=1 A==False > False A==True > True > > It works fine But not the way you think: >>> 0 == False True >>> 1 == True True >>> 2 == True False >>

True/False value testing

2016-01-07 Thread ast
Hello For integer, 0 is considered False and any other value True A=0 A==False True A==True False A=1 A==False False A==True True It works fine For string, "" is considered False and any other value True, but it doesn't work A = "" A==False False A==True False A = 'Z' A==False F

Re: subprocess check_output

2016-01-07 Thread Chris Angelico
On Thu, Jan 7, 2016 at 9:14 PM, Marko Rauhamaa wrote: > Marko Rauhamaa : > >> Chris Angelico : >> >>> you ask the correct question of "why isn't my CSS file being read?" >> >> TL;DR > > Sorry, getting confused with homonyms: > > >>> CSS gurus suggest, along similar lines, changing the background c

Re: Fast pythonic way to process a huge integer list

2016-01-07 Thread Peter Otten
high5stor...@gmail.com wrote: > I have a list of 163.840 integers. What is a fast & pythonic way to > process this list in 1,280 chunks of 128 integers? What kind of processing do you have in mind? If it is about numbercrunching use a numpy.array. This can also easily change its shape: >>> imp

Re: subprocess check_output

2016-01-07 Thread Marko Rauhamaa
Marko Rauhamaa : > Chris Angelico : > >> you ask the correct question of "why isn't my CSS file being read?" > > TL;DR Sorry, getting confused with homonyms: >> CSS gurus suggest, along similar lines, changing the background color >> of something to red. Marko -- https://mail.python.org/mailm

Re: subprocess check_output

2016-01-07 Thread Chris Angelico
On Thu, Jan 7, 2016 at 8:33 PM, me wrote: > On 2016-01-05, Chris Angelico wrote: >> Oh, and then you keep editing and save again? Nah, I've *never* done >> that... Never! > > I'm quite surprised, buddy. You should definitely try. I know, right! It's so exciting to suddenly discover that you have