Chris Angelico schrieb am 28.05.2015 um 20:51:
> On Fri, May 29, 2015 at 4:41 AM, Stefan Behnel wrote:
>> davidf...@gmail.com schrieb am 26.05.2015 um 04:24:
>>> Has anyone on this list attempted to sandbox Python programs in a
>>> serious fashion? I'd be interested to hear your approach.
>>
>> Not
In article <201505290347.t4t3lyjc006...@fido.openend.se>,
Laura Creighton wrote:
> webmas...@python.org just got some mail from some poor embarrased
> soul who ran this program and broke their Python install.
>
> They are running Mac OSX 10.7.5
>
> They are getting:
>
> Utility has encoun
On Fri, 29 May 2015 01:49 pm, Skybuck Flying wrote:
> wrote in message
> news:mailman.152.1432869623.5151.python-l...@python.org...
>
> On Thu, May 28, 2015, at 17:50, Skybuck Flying wrote:
>> Surpisingly enough I don't think there is a casual/common operator for
>> this
>> thruth table.
>>
>> AN
On Fri, 29 May 2015 12:00 pm, Steven D'Aprano wrote:
> I haven't studied this in close detail, but first impressions is that this
> is not well-written Python code. The obvious problems that come to mind:
Well, first impressions can be misleading... I wrote the above, thinking
that there were mor
Sabe usted acerca de estas páginas?
https://mail.python.org/mailman/listinfo/python-es
https://wiki.python.org/moin/SpanishLanguage
Laura
--
https://mail.python.org/mailman/listinfo/python-list
Chris. Este grupo es en Ingles. La verdad no se si existen grupos en español,
pero juraria que si.
Entiendo que quieres enseñarle python a tu hijo. Aca te envio algunos recursos.
Espero que te sirvan:
https://silvercorp.wordpress.com/2012/05/27/pasos-de-instalacion-de-python-en-windows/
http:/
You may be interested in PyEda
https://pypi.python.org/pypi/pyeda
It is for electronic design automation. But it will minimise
truth tables for you.
http://pyeda.readthedocs.org/en/latest/search.html?q=truth+tables&check_keywords=yes&area=default
Laura
--
https://mail.python.org/mailman/listin
wrote in message news:mailman.152.1432869623.5151.python-l...@python.org...
On Thu, May 28, 2015, at 17:50, Skybuck Flying wrote:
Surpisingly enough I don't think there is a casual/common operator for
this
thruth table.
AND does not apply.
OR does not apply.
XOR does not apply.
"
All sixteen
On Fri, May 29, 2015 at 1:20 PM, wrote:
> The possibility of spelling these with the comparison operators, as some
> have suggested, is a consequence of Python's implementation where True
> == 1 and False == 0. In other languages bool may not be relatable (or at
> least not orderable), or False m
webmas...@python.org just got some mail from some poor embarrased
soul who ran this program and broke their Python install.
They are running Mac OSX 10.7.5
They are getting:
Utility has encountered a fatal error, and will now terminate. A
Python runtime could not be located. You may n
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote:
> On 2015-05-29 01:03, IronManMark20 wrote:
> > Hello,
> >
> > I have been working on a function that gets a bitmap of the thumbnail
> > for a file. I have had problems getting a large image (256x256) and I
> > was wondering if someone coul
On Thu, May 28, 2015, at 17:50, Skybuck Flying wrote:
> Surpisingly enough I don't think there is a casual/common operator for
> this
> thruth table.
>
> AND does not apply.
> OR does not apply.
> XOR does not apply.
All sixteen possible logical operators have formal names. This one is
called "B
I am not so sure anymore about my conclusion, I will investigate this
further tomorrow.
It seems safe to conclude that at least the following operators have their
own thruth tables:
=
<>
<
=
<=
These are the comparision operators.
Assume True is greater than False allows them to be use
"Denis McMahon" wrote in message news:mk884e$gth$1...@dont-email.me...
On Thu, 28 May 2015 14:58:19 -0700, sohcahtoa82 wrote:
On Thursday, May 28, 2015 at 2:50:18 PM UTC-7, Skybuck Flying wrote:
Hello,
# Desired truth table for BotWaitForCooldown and CooldownDetected
# BotWaitForCooldo
Interestingly enough the shortest I have seen so far is ***:
def TestLogic( BotWaitForCooldown, CooldownDetected ):
# return BotWaitForCooldown or ((not BotWaitForCooldown) and
CooldownDetected) # this logic is flawed, please improve logic.
# return (not ((not BotWaitForCooldown) and CooldownD
On Friday, 29 May 2015 09:21:01 UTC+10, Sayth Renshaw wrote:
> Is there a way to specify to all attributes in xpath? Instead of directly Eg
> //element/@attr
>
> So that you could effectively loop and filter if an element had more than one
> Attribute?
>
> So items = tree.xpath(@all_attrs)
>
On Fri, 29 May 2015 01:01 am, Marko Rauhamaa wrote:
> Anssi Saari :
>
>> Do you have an example of state pattern using nested classes and
>> python? With a quick look I didn't happen to find one in any language.
>
> Here's an sampling from my mail server:
I haven't studied this in close detail
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote:
> On 2015-05-29 01:03, IronManMark20 wrote:
> > Hello,
> >
> > I have been working on a function that gets a bitmap of the thumbnail
> > for a file. I have had problems getting a large image (256x256) and I
> > was wondering if someone coul
On 05/28/2015 05:03 PM, Grant Edwards wrote:
> On 2015-05-28, Grant Edwards wrote:
>> On 2015-05-28, Michael Torrie wrote:
>>> On 05/28/2015 03:58 PM, sohcahto...@gmail.com wrote:
I think the logic you're really looking for is:
return BotWaitForCooldown or (not (BotWaitForCooldown
On 2015-05-29 01:03, IronManMark20 wrote:
Hello,
I have been working on a function that gets a bitmap of the thumbnail
for a file. I have had problems getting a large image (256x256) and I
was wondering if someone could help me on one object initialization
that is driving me nuts.
I have code h
On Thursday, May 28, 2015 at 3:17:10 PM UTC-7, Michael Torrie wrote:
> On 05/28/2015 03:58 PM, sohcahto...@gmail.com wrote:
> > I think the logic you're really looking for is:
> >
> > return BotWaitForCooldown or (not (BotWaitForCooldown or CooldownDetected))
>
> Yes this is the simplest form. F
Hello,
I have been working on a function that gets a bitmap of the thumbnail for a
file. I have had problems getting a large image (256x256) and I was wondering
if someone could help me on one object initialization that is driving me nuts.
I have code here: https://gist.github.com/IronManMark20
On Thu, 28 May 2015 14:58:19 -0700, sohcahtoa82 wrote:
> On Thursday, May 28, 2015 at 2:50:18 PM UTC-7, Skybuck Flying wrote:
>> Hello,
>> # Desired truth table for BotWaitForCooldown and CooldownDetected
>> # BotWaitForCooldown: CooldownDetected: Desired Result:
>> # FalseFalse
Skybuck Flying wrote:
Hello,
I was just coding and ran into a little logic problem which is as follows:
There are two booleans/variables which can be either false or true.
The desired thrutle table is:
A = input
B = input
C = output
A B C:
---
F F T
F T F
T F T
T T T
Surpisingly enough
Is there a way to specify to all attributes in xpath? Instead of directly Eg
//element/@attr
So that you could effectively loop and filter if an element had more than one
Attribute?
So items = tree.xpath(@all_attrs)
>From lxml import etree
Tree = etree.Xpath(//root)
For k, v in items:
C
Hola Yasna
Chris te escribe que puedes bajar la solución Python desde este link:
https://www.python.org/downloads/
También escribe que el foro es en inglés ya que la mayoría de las personas
que forman parte de la lista hablan inglés.
Saludos y éxitos
Translated:
Hi Yasna
Chris wrote that you
On 2015-05-28, Grant Edwards wrote:
> On 2015-05-28, Michael Torrie wrote:
>> On 05/28/2015 03:58 PM, sohcahto...@gmail.com wrote:
>>> I think the logic you're really looking for is:
>>>
>>> return BotWaitForCooldown or (not (BotWaitForCooldown or CooldownDetected))
>>
>> Yes this is the simples
On 28/05/2015 23:39, Lew Pitcher wrote:
On Thursday May 28 2015 17:50, in comp.lang.c, "Skybuck Flying"
wrote:
Hello,
I was just coding and ran into a little logic problem which is as follows:
There are two booleans/variables which can be either false or true.
The desired thrutle table is:
On 2015-05-28, Michael Torrie wrote:
> On 05/28/2015 03:58 PM, sohcahto...@gmail.com wrote:
>> I think the logic you're really looking for is:
>>
>> return BotWaitForCooldown or (not (BotWaitForCooldown or CooldownDetected))
>
> Yes this is the simplest form.
Not really.
In old school notation
2015-05-29 9:44 GMT+10:00 yasna araya :
> hola, escribo para solicitar el uso del programa Python para trabajarlo con
> mi hijo. desde ya muchas gracias
>
> Enviado desde Correo de Windows
Hello!
This is an English-language list, and most of the people here - myself
included - are not fluent in S
hola, escribo para solicitar el uso del programa Python para trabajarlo con mi
hijo. desde ya muchas gracias
Enviado desde Correo de Windows--
https://mail.python.org/mailman/listinfo/python-list
On Thursday May 28 2015 17:50, in comp.lang.c, "Skybuck Flying"
wrote:
> Hello,
>
> I was just coding and ran into a little logic problem which is as follows:
>
> There are two booleans/variables which can be either false or true.
>
> The desired thrutle table is:
>
> A = input
> B = input
>
On Fri, May 29, 2015 at 8:06 AM, Zachary Ware
wrote:
> On Thu, May 28, 2015 at 4:58 PM, Dan Stromberg wrote:
>> I believe I heard that the PEP 484 type checker is to go into CPython 3.5.
>>
>> Since type annotations have been there since 3.0, is it at all likely
>> that CPython versions < 3.5 wil
On 2015-05-28, Grant Edwards wrote:
> On 2015-05-28, Skybuck Flying wrote:
>
>> However I can already see I am not happy with this video solution.
>>
>> I have 3 true outputs, and only 1 false output.
>>
>> That would require a lot of logic.
>>
>> I guess I can turn it around and negate the whole
I have no idea about the protocol used by NI DataSockets, but you
might be able to reverse engineer the protocol by using the official
client with a sniffer.
Also, be aware that TCP/IP guarantees that you get the correct data in
the correct order, but it doesn't guarantee anything about the sizes
On 05/28/2015 03:58 PM, sohcahto...@gmail.com wrote:
> I think the logic you're really looking for is:
>
> return BotWaitForCooldown or (not (BotWaitForCooldown or CooldownDetected))
Yes this is the simplest form. For more complicated truth tables you
can create a K map and then apply a reductio
Ok, problem solved for now, it seems:
I used video tutorial method and inverted it for the false case ;)
But anyway... I would not only need a "thruth table to logic/boolean
operations converter" but also a "boolean operations optimizer" ;)
# loop has to run if:
# while DesiredResult==True:
#
On 2015-05-28, Skybuck Flying wrote:
> However I can already see I am not happy with this video solution.
>
> I have 3 true outputs, and only 1 false output.
>
> That would require a lot of logic.
>
> I guess I can turn it around and negate the whole thing... and focus on the
> false output.
Do
On 2015-05-28, Grant Edwards wrote:
> On 2015-05-28, Skybuck Flying wrote:
>
>> I tried logic below... but funny enough it failed, now I feel like a
>> noob lol and share this funny little fail logic with you.
>>
>> Can you improve/fix the logic ?
>
>> # while DesiredResult==True:
>> # Desired tr
Skybuck Flying writes:
> There are two booleans/variables which can be either false or true.
>
> The desired thrutle table is:
>
> A = input
> B = input
> C = output
>
> A B C:
> ---
> F F T
> F T F
> T F T
> T T T
That's A >= B, where True >= False:
>>> BB = False, True
>>> print(*((A,
However I can already see I am not happy with this video solution.
I have 3 true outputs, and only 1 false output.
That would require a lot of logic.
I guess I can turn it around and negate the whole thing... and focus on the
false output.
Bye,
Skybuck.
--
https://mail.python.org/mailman
This is a start lol:
https://www.youtube.com/watch?v=lKqTSBKmWA4
I wonder if it can be simplied... I'll give it a try.
Basically it comes down to creating a logic expression for each true result
in the desired output and or-ing with each other.
The variables leading to the true result in the
On Thu, May 28, 2015 at 4:58 PM, Dan Stromberg wrote:
> I believe I heard that the PEP 484 type checker is to go into CPython 3.5.
>
> Since type annotations have been there since 3.0, is it at all likely
> that CPython versions < 3.5 will also be supported by this checker?
All that's going into
On 2015-05-28, Skybuck Flying wrote:
> I tried logic below... but funny enough it failed, now I feel like a
> noob lol and share this funny little fail logic with you.
>
> Can you improve/fix the logic ?
> # while DesiredResult==True:
> # Desired truth table for BotWaitForCooldown and CooldownDe
On Thursday, May 28, 2015 at 2:50:18 PM UTC-7, Skybuck Flying wrote:
> Hello,
>
> I was just coding and ran into a little logic problem which is as follows:
>
> There are two booleans/variables which can be either false or true.
>
> The desired thrutle table is:
>
> A = input
> B = input
> C =
On 2015-05-28 23:50, Skybuck Flying wrote:
> A = input
> B = input
> C = output
>
> A B C:
> ---
> F F T
> F T F
> T F T
> T T T
>
> Surpisingly enough I don't think there is a casual/common operator
> for this thruth table.
>
> AND does not apply.
> OR does not apply.
> XOR does not apply.
I think I have run into this problem before... but solved it with some
seperate if statements.
However in this case/this time I would like to not solve it with if
statements, but simply and/or/not/xor, in other words, boolean operators.
So what would help is a "thruth table to logic" converto
I believe I heard that the PEP 484 type checker is to go into CPython 3.5.
Since type annotations have been there since 3.0, is it at all likely
that CPython versions < 3.5 will also be supported by this checker?
Thanks!
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I was just coding and ran into a little logic problem which is as follows:
There are two booleans/variables which can be either false or true.
The desired thrutle table is:
A = input
B = input
C = output
A B C:
---
F F T
F T F
T F T
T T T
Surpisingly enough I don't think there is
On Wed, 27 May 2015 15:23:31 -0700, Karthik Sharma wrote:
> The JSON structure is valid as shown by http://jsonlint.com/
Not when I paste it in it's not. The "data" attribute is an unterminated
string and is not followed by a comma.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.p
On Thu, 28 May 2015 13:32:39 +1000, Cameron Simpson wrote:
> On 28May2015 01:38, Jon Ribbens wrote:
>>On 2015-05-27, Karthik Sharma wrote:
>>> I tried modifying the program as follows as per your
>>> suggestion.Doesn't seem to work.
>>
>>That's because you didn't modify the program as per their
On Fri, May 29, 2015 at 4:41 AM, Stefan Behnel wrote:
> davidf...@gmail.com schrieb am 26.05.2015 um 04:24:
>> Has anyone on this list attempted to sandbox Python programs in a
>> serious fashion? I'd be interested to hear your approach.
>
> Not quite sandboxing Python, but I've seen people use my
davidf...@gmail.com schrieb am 26.05.2015 um 04:24:
> Has anyone on this list attempted to sandbox Python programs in a
> serious fashion? I'd be interested to hear your approach.
Not quite sandboxing Python, but I've seen people use my Lupa [1] library
for this. They're writing all their code in
On 28/05/15 11:34, Serge Christian Ibala wrote:
I want to know which version of Python is compatible (or can be
associated with which version of which "tools or package" for image
processing)
It would help if you told us what kind of image processing.
If you mean programmatic manipulation of i
On Fri, May 29, 2015 at 2:59 AM, Marko Rauhamaa wrote:
> When I have coded state machines for C or Java, I have noticed that
> nothing beats enums and switch statements performance-wise, and
> expressively, they're not that bad, either. Python doesn't have a switch
> statement, so the natural thin
Ian Kelly :
> On Thu, May 28, 2015 at 9:01 AM, Marko Rauhamaa wrote:
>> Anssi Saari :
>>
>>> Do you have an example of state pattern using nested classes and
>>> python? With a quick look I didn't happen to find one in any
>>> language.
>>
>> Here's an sampling from my mail server:
>
> I think I
Thanks for the responses folks. I will briefly summarize them:
> As you say, it is fundamentally not possible to make this work at
the Python level.
This is pretty effectively demonstrated by "Tav's admirable but failed attempt
to sandbox file IO":
* http://tav.espians.com/a-challenge-to-break-
On Thu, May 28, 2015 at 9:01 AM, Marko Rauhamaa wrote:
> Anssi Saari :
>
>> Do you have an example of state pattern using nested classes and
>> python? With a quick look I didn't happen to find one in any language.
>
> Here's an sampling from my mail server:
I think I would be more inclined to us
In a message of Thu, 28 May 2015 05:53:34 -0700, Alexis Dubois writes:
>Thank you Laura, it works.
>(Even if connecting the scrollbar of one list to other lists is not what I
>exactly want to do, but no matter, I change the line
>"w1.verticalScrollBar().valueChanged.connect(w2.verticalScrollBar()
Anssi Saari :
> Do you have an example of state pattern using nested classes and
> python? With a quick look I didn't happen to find one in any language.
Here's an sampling from my mail server:
class SMTPServerConnection(Se
이현상 wrote:
> Hi.Please note that do not speak english well.
> Do you know Python 2 vs Python3 MultiProcessing the difference
> ?Multiprocessing is better performance?
The main difference is that multiprocessing on Python 3.4 (and later) will
allow you to use APIs that are not "forksafe" on Linux
Serge Christian Ibala wrote:
> Or what is the recommendation of Python for image processing?
Basic setup everyone should have:
Python
NumPy
SciPy (e.g. scipy.ndimage)
Cython
C and C++ compiler
matplotlib
scikit-image
scikit-learn
pillow
Also consider:
mahotas
tifffile (by Christoph Gohlke)
Ope
Marko Rauhamaa writes:
> Ned Batchelder :
>
>> I would find it much clearer to not use a nested class at all, and
>> instead to pass the object into the constructor:
>
> Nested classes are excellent and expressing the state pattern http://en.wikipedia.org/wiki/State_pattern>.
Do you have an exa
Thank you Laura, it works.
(Even if connecting the scrollbar of one list to other lists is not what I
exactly want to do, but no matter, I change the line
"w1.verticalScrollBar().valueChanged.connect(w2.verticalScrollBar().setValue)"
a little bit to fit my need. )
--
https://mail.python.org/mai
Thanks Peter, but no, even if it could be possible to use a QTableWidget
instead of my 8 lists.
--
https://mail.python.org/mailman/listinfo/python-list
Alexis Dubois wrote:
> My QT GUI contains 8 QlistWidgets filled with a large amount of data.
> Each item of a list is related to items of other lists in the same row.
> So I want to scroll the 8 lists with only one vertical scrollbar (and
> vice-versa)
>
> But I don't know how to manage this.
> D
Looks like what you need to do is to
connect verticalScrollBar().valueChanged (in one widget) to
verticalScrollBar().setValue in all of the others.
So is this code on the right track? It uses lists, not labels, and
doesn't hide the scrollbars, but is this the behaviour you need (
and weren't get
On Thu, May 28, 2015 at 1:05 PM, Terry Reedy wrote:
> On 5/28/2015 6:34 AM, Serge Christian Ibala wrote:
>
>
> I want to use the following package
>>
>> “numpy, matplotib, mahotas, ipython OpenCV and SciPy"
>>
>
> opencv seems to be the only one not available for 3.x.
>
>
OpenCV 3 (which is in
On 28 May 2015 at 11:34, Serge Christian Ibala
wrote:
> Hello All,
>
> I want to know which version of Python is compatible (or can be associated
> with which version of which "tools or package" for image processing)
>
> I am working under Window and it is so complicated to find out which version
On 5/28/2015 6:34 AM, Serge Christian Ibala wrote:
I want to know which version of Python is compatible (or can be
associated with which version of which "tools or package" for image
processing)
pillow is a one standard for image processing but I see that mahotas
does different things. pillow
In a message of Thu, 28 May 2015 03:44:22 -0700, Alexis Dubois writes:
>Le jeudi 28 mai 2015 12:12:42 UTC+2, Laura Creighton a écrit :
>> You want to define a scrollable area and then add your labels to it.
>> The code here:
>> http://stackoverflow.com/questions/22255994/pyqt-adding-widgets-to-scr
Le jeudi 28 mai 2015 12:12:42 UTC+2, Laura Creighton a écrit :
> You want to define a scrollable area and then add your labels to it.
> The code here:
> http://stackoverflow.com/questions/22255994/pyqt-adding-widgets-to-scrollarea-during-the-runtime
>
> should show you what you need to do, though
Hello All,
I want to know which version of Python is compatible (or can be associated
with which version of which "tools or package" for image processing)
I am working under Window and it is so complicated to find out which
version of which tool goes with which other version?
I want to use
You want to define a scrollable area and then add your labels to it.
The code here:
http://stackoverflow.com/questions/22255994/pyqt-adding-widgets-to-scrollarea-during-the-runtime
should show you what you need to do, though for you the job is easier if you
do not need to add the labels after the
Hello everyone!
My QT GUI contains 8 QlistWidgets filled with a large amount of data.
Each item of a list is related to items of other lists in the same row.
So I want to scroll the 8 lists with only one vertical scrollbar (and
vice-versa)
But I don't know how to manage this.
Do you have an idea
Hi.Please note that do not speak english well.
Do you know Python 2 vs Python3 MultiProcessing the difference ?Multiprocessing
is better performance?
Search results do not make a big difference.
Why it will occur following the performance issues
?http://www.reddit.com/r/Python/comments/37khen/is
On 28 May 2015 at 03:16, Steven D'Aprano wrote:
> I'd like to return a custom file object, say my own subclass. I can easily
> subclass the file object:
>
>
> from io import TextIOWrapper
> class MyFile(TextIOWrapper):
> pass
>
>
> but how do I tell open() to use MyFile?
Does the below do wha
On Thu, May 28, 2015 at 5:04 PM, Steven D'Aprano
wrote:
>> This does appear to work. Whether or not it's a good idea is a
>> separate question.
>
>
> And this is EXACTLY the sort of use-case that having __class__ be writable
> is intended to solve. So this is exactly the solution I was after, than
On Thursday 28 May 2015 15:49, Chris Angelico wrote:
> ... but I don't think replacing all of open() is what Steven has in
> mind; it's a function that does a lot of work, most of which is what's
> wanted.
Correct. If I wanted to replace open(), I would have just shadowed it, or
monkey-patched i
79 matches
Mail list logo