In article <20150516.t4mmg0in013...@fido.openend.se>,
Laura Creighton wrote:
> By the way http://www.tcl.tk/man/tcl8.4/TkCmd/keysyms.htm
> is a list of all the key symbols it is possible for you to get.
> There is no guarantee that any platform actually has any of them,
> just, if it is not t
On Sat, May 23, 2015 at 2:10 PM, Ian Kelly wrote:
>> Sigh. I blame this as much on the browser. There's no inherent reason
>> why a connection to a site secured with a self-signed certificate is
>> insecure. In fact it's definitely not.
>
> Sure it is. Without some prior reason to trust the cert
On Sat, May 23, 2015 at 2:20 PM, Ben Finney wrote:
> Where I disagree is that this is somehow less secure than a completely
> *unencrypted* HTTP connection. No, the opposite is true.
No, it isn't less secure. However, people have been trained for years
to look for the padlock (including looking f
On Sat, May 23, 2015 at 2:49 PM, Ian Kelly wrote:
>> The same can be said of CA-signed certificates. The only way to know if
>> the site is who they say they are is to know what the cert's fingerprint
>> ought to be and see if it still is. I used to use a firefox plugin for
>> this purpose, but c
On Sat, May 23, 2015 at 2:29 PM, Ian Kelly wrote:
> There *should* be scary warnings for plain
> HTTP connections (although there is a counter-argument that many sites
> don't need any encryption and HTTPS would just be wasteful in those
> cases).
I don't think there should be "scary warnings", f
On Fri, May 22, 2015 at 10:30 PM, Michael Torrie wrote:
> On 05/22/2015 10:10 PM, Ian Kelly wrote:
>> Sure it is. Without some prior reason to trust the certificate, the
>> certificate is meaningless. How is the browser to distinguish between
>> a legitimate self-signed cert and a self-signed cert
On Fri, May 22, 2015 at 10:20 PM, Ben Finney wrote:
> Ian Kelly writes:
>
>> On Fri, May 22, 2015 at 9:31 PM, Michael Torrie wrote:
>> > On 05/22/2015 07:54 PM, Terry Reedy wrote:
>> >> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
>> >>
>> >>> Lo these many years ago, I argued that Python is a whol
On 05/22/2015 10:10 PM, Ian Kelly wrote:
> On Fri, May 22, 2015 at 9:31 PM, Michael Torrie wrote:
>> On 05/22/2015 07:54 PM, Terry Reedy wrote:
>>> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
>>>
Lo these many years ago, I argued that Python is a whole lot more than
a programming language:
Ian Kelly writes:
> On Fri, May 22, 2015 at 9:31 PM, Michael Torrie wrote:
> > On 05/22/2015 07:54 PM, Terry Reedy wrote:
> >> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
> >>
> >>> Lo these many years ago, I argued that Python is a whole lot more than
> >>> a programming language:
> >>>
> >>>
«»
On 22/05/2015 21:40, Tim Daneliuk wrote:
>https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/
Quoting that article
«And no, you couldn't get a C based OS to do what TPF does even if you
did have a couple hundred million dollars to redo it, »
Why couldn't a C based OS do what TP
On Fri, May 22, 2015 at 9:31 PM, Michael Torrie wrote:
> On 05/22/2015 07:54 PM, Terry Reedy wrote:
>> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
>>
>>> Lo these many years ago, I argued that Python is a whole lot more than
>>> a programming language:
>>>
>>> https://www.tundraware.com/Technica
Skip Montanaro schrieb am 22.05.2015 um 19:15:
> 2015-05-22 12:05 GMT-05:00 Lele Gaifax:
>> Maybe http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html?
>
> Thanks for the reference, Lele. I was thinking in terms of cffi, but
> this might work as well. (Shouldn't cffi interfaces be the thin
Jason Friedman writes:
> Found an answer:
> https://wiki.python.org/moin/PythonDecoratorLibrary#Function_Timeout
That is pretty limited since signal handlers always run in the main
thread, and that wrapper takes over the sigalarm handler which some
other part of the program might also want to use
On 05/22/2015 07:54 PM, Terry Reedy wrote:
> On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
>
>> Lo these many years ago, I argued that Python is a whole lot more than
>> a programming language:
>>
>> https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/
>
> Perhaps something at tundrawa
On 05/22/2015 05:00 PM, Paul Rubin wrote:
> Steven D'Aprano writes:
>> the impression I get after a couple of hours is that Javascript tries
>> really hard to do everything it can for you except what you actually want.
>
> Javascript is like C++ in that it's a lot of layers of legacy cruft, but
>
> But, I'd like to expand this to take some generic code, not just a
> shell command, and terminate it if it does not return quickly.
>
> @time_limiter
> def generic_function(arg1, arg2, time_limit=10):
> do_some_stuff()
> do_some_other_stuff()
> return val1, val2
>
> If generic_functio
I have the following code to run a shell command and kill it if it
does not return within a certain amount of time:
def run_with_time_limit(command, limit):
"""Run the given command via a shell.
Kill the command, and raise an exception, if the
execution time exceeds seconds.
Else
On 5/22/2015 5:40 PM, Tim Daneliuk wrote:
Lo these many years ago, I argued that Python is a whole lot more than
a programming language:
https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/
Perhaps something at tundraware needs updating.
'''
This Connection is Untrusted
You ha
On 2015-05-23 01:27, Benjamin Risher wrote:
First, the snippet provided is a contrived example of a much larger program.
http://pastebin.com/xRqBE5BY
(written in python3 with access to 3.4 if necessary)
The goal: To connect to a listening socket and send commands to the cmd.Cmd()
loop runnin
On Sat, 23 May 2015 05:14 am, Laura Creighton wrote:
> The first time you discover that in javascript typeof(null) is 'object'
> and
> not 'null' you will scream. I wonder how many home versions of typeof
> to replace the system one exist out in the wild?
What weirds me out is that that Javascri
First, the snippet provided is a contrived example of a much larger program.
http://pastebin.com/xRqBE5BY
(written in python3 with access to 3.4 if necessary)
The goal: To connect to a listening socket and send commands to the cmd.Cmd()
loop running, then show the output to both stdout and the
First, the snippet provided is a contrived example of a much larger program.
http://pastebin.com/xRqBE5BY
(written in python3 with access to 3.4 if necessary)
The goal: To connect to a listening socket and send commands to the cmd.Cmd()
loop running, then show the output to both stdout and t
Steven D'Aprano writes:
> the impression I get after a couple of hours is that Javascript tries
> really hard to do everything it can for you except what you actually want.
Javascript is like C++ in that it's a lot of layers of legacy cruft, but
if you ignore the ugly parts, the good parts that a
You are most welcome, it was such a small thing.
By the way http://www.tcl.tk/man/tcl8.4/TkCmd/keysyms.htm
is a list of all the key symbols it is possible for you to get.
There is no guarantee that any platform actually has any of them,
just, if it is not there don't bother trying to look for it.
On 05/22/2015 11:31 AM, Tony the Tiger wrote:
> On Sat, 23 May 2015 00:58:17 +1000, Steven D'Aprano wrote:
>
>> I get after a couple of hours is that Javascript tries really hard to do
>> everything it can for you except what you actually want.
>
> You just described a certain operating system, w
On 05/22/2015 10:29 AM, Chris Angelico wrote:
> On Sat, May 23, 2015 at 12:58 AM, Steven D'Aprano wrote:
>> I think Python is a prettier
>> language visually than either Lua or Ruby, but they're in the ball-park.
>> Both languages have their warts and quirks, but if Python were declared
>> illegal
On Fri, May 22, 2015 at 2:55 PM, Tim Chase
wrote:
> I've wondered this on multiple occasions, as I've wanted to just make
> an attribute bag and have to do something like
>
> class AttrBag(object): pass
> ab = AttrBag()
> ab.x = 42
> ab.y = "some other value"
>
> because just doing
>
> a
On 05/22/2015 01:34 PM, Marko Rauhamaa wrote:
Ian Kelly :
An "object" in Javascript is basically just a collection of
properties. For example:
js> typeof([1, 2, 3])
"object"
js> typeof({a: 1, b: 2, c: 3})
"object"
Here's what happens when you try to access a property on null:
js> null.foo
ty
On 2015-05-22 23:34, Marko Rauhamaa wrote:
> >>> object().x = 3
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'object' object has no attribute 'x'
>
> Why are object instances immutable in Python?
I've wondered this on multiple occasions, as I've wanted to just mak
On 05/22/2015 03:50 PM, Laura Creighton wrote:
In a message of Fri, 22 May 2015 12:29:20 -0400, "Eric S. Johansson" writes:
2 needs. first is determining if NaturallySpeaking injects keycodes or
ascii char into the windows input queue. second is building a test
widget to capture and display
Ian Kelly :
> An "object" in Javascript is basically just a collection of
> properties. For example:
>
> js> typeof([1, 2, 3])
> "object"
> js> typeof({a: 1, b: 2, c: 3})
> "object"
>
> Here's what happens when you try to access a property on null:
>
> js> null.foo
> typein:18:0 TypeError: null ha
In a message of Fri, 22 May 2015 21:52:27 +0200, Christian Gollwitzer writes:
>Am 22.05.15 um 15:03 schrieb Laura Creighton:
>> I don't know anything about Camelot. Tkinter produces widgets that are
>> in no way as pretty graphically as is expected nowadays -- or indeed for
>> at least 15 years.
-
On Fri, May 22, 2015 9:50 PM CEST Laura Creighton wrote:
>In a message of Fri, 22 May 2015 12:29:20 -0400, "Eric S. Johansson" writes:
>>2 needs. first is determining if NaturallySpeaking injects keycodes or
>>ascii char into the windows input queue. second is bui
On Fri, May 22, 2015 at 1:34 PM, MRAB wrote:
> On 2015-05-22 20:14, Laura Creighton wrote:
>>
>> The first time you discover that in javascript typeof(null) is 'object'
>> and
>> not 'null' you will scream. I wonder how many home versions of typeof
>> to replace the system one exist out in the wi
Am 22.05.15 um 15:03 schrieb Laura Creighton:
I don't know anything about Camelot. Tkinter produces widgets that are
in no way as pretty graphically as is expected nowadays -- or indeed for
at least 15 years. If this matters to you -- or if you are building for
customers if it matters to them,
In a message of Fri, 22 May 2015 12:29:20 -0400, "Eric S. Johansson" writes:
>2 needs. first is determining if NaturallySpeaking injects keycodes or
>ascii char into the windows input queue. second is building a test
>widget to capture and display text.
>
>I think I can solve both of these by b
On Wed, 20 May 2015 01:57:51 +, Denis McMahon wrote:
> Based on the sample you sent, the output csv file is 1657 lines in
> length, and the first and last lines are:
[snip]
Well he didn't tell me if I was generating the right output, or what was
wrong with it if it was wrong, so I guess he
On 2015-05-22 20:14, Laura Creighton wrote:
The first time you discover that in javascript typeof(null) is 'object' and
not 'null' you will scream. I wonder how many home versions of typeof
to replace the system one exist out in the wild?
I don't think that typeof(null) should be 'null'.
If t
The first time you discover that in javascript typeof(null) is 'object' and
not 'null' you will scream. I wonder how many home versions of typeof
to replace the system one exist out in the wild?
Laura
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico writes:
> On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote:
>> Laura Creighton writes:
>>
>>> In my corner of the world, everybody uses SQL.
>>> [...]
>>> The people who have tried SQLAlchemy really didn't like it, and of course
>>> the people who haven't tried it do what their
On 5/22/2015 12:29 PM, Eric S. Johansson wrote:
2 needs. first is determining if NaturallySpeaking injects keycodes or
ascii char into the windows input queue. second is building a test
widget to capture and display text.
I think I can solve both of these by building a simple text widget
(tkin
On 22/05/2015 18:47, Grant Edwards wrote:
And of course, the truly_great_ thing about Javascript is...
It's not PHP!
ROTFL ;-)
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, May 23, 2015 at 3:47 AM, Grant Edwards wrote:
> * When used in a browser, the rather odd meanings of 'this' in
>certain situations.
Yes. Closures can retain state exactly the way you'd expect them to,
yet what Python would call a bound method (another way of retaining
state, specific
In a message of Fri, 22 May 2015 19:24:30 +0200, Lele Gaifax writes:
>Laura Creighton writes:
>
>> In my corner of the world, everybody uses SQL.
>> [...]
>> The people who have tried SQLAlchemy really didn't like it, and of course
>> the people who haven't tried it do what their friends do, as us
On 2015-05-22, Steven D'Aprano wrote:
> But Javascript...
>
> Javascript also lacks a standard assert mechanism, but that wasn't
> too hard to fix. It also has two different equality operators, each
> of which are so complicated and confusing that apparently there are
> two-year Masters degrees
On Friday, May 22, 2015 at 1:13:39 PM UTC-4, Ian wrote:
> On Fri, May 22, 2015 at 10:59 AM, gy wrote:
> > [python 2.7]
> > I need to use a configparser that is case-sensitive for option names, but
> > does not do magical interpolation of percent sign.
> > I.e.:
> >
> > [Mapping0]
> > backupHost =
On 2015-05-22 17:29, Eric S. Johansson wrote:
2 needs. first is determining if NaturallySpeaking injects keycodes or
ascii char into the windows input queue. second is building a test
widget to capture and display text.
ASCII? :-)
I think I can solve both of these by building a simple text
On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote:
> Laura Creighton writes:
>
>> In my corner of the world, everybody uses SQL.
>> [...]
>> The people who have tried SQLAlchemy really didn't like it, and of course
>> the people who haven't tried it do what their friends do, as usual.
>
> If the
Laura Creighton writes:
> In my corner of the world, everybody uses SQL.
> [...]
> The people who have tried SQLAlchemy really didn't like it, and of course
> the people who haven't tried it do what their friends do, as usual.
If these sentences are related, you must live in a very strange corne
2015-05-22 12:05 GMT-05:00 Lele Gaifax :
> Maybe http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html?
Thanks for the reference, Lele. I was thinking in terms of cffi, but
this might work as well. (Shouldn't cffi interfaces be the thinnest?)
Skip
--
https://mail.python.org/mailman/listin
On Fri, May 22, 2015 at 10:59 AM, wrote:
> [python 2.7]
> I need to use a configparser that is case-sensitive for option names, but
> does not do magical interpolation of percent sign.
> I.e.:
>
> [Mapping0]
> backupHost = eng%26
> dbNode = v_br_node0001
>
> should be read (and later written) as
Skip Montanaro writes:
> I also figure there must be some established best practices for exposing C++
> classes to Python.
Maybe http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html?
bye, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas
[python 2.7]
I need to use a configparser that is case-sensitive for option names, but does
not do magical interpolation of percent sign.
I.e.:
[Mapping0]
backupHost = eng%26
dbNode = v_br_node0001
should be read (and later written) as is, including capitalization and the
percent sign.
I f
On 22/05/2015 17:31, Tony the Tiger wrote:
On Sat, 23 May 2015 00:58:17 +1000, Steven D'Aprano wrote:
I get after a couple of hours is that Javascript tries really hard to do
everything it can for you except what you actually want.
You just described a certain operating system, which shall re
2 needs. first is determining if NaturallySpeaking injects keycodes or
ascii char into the windows input queue. second is building a test
widget to capture and display text.
I think I can solve both of these by building a simple text widget
(tkinter? qt? ??) to capture keycodes. problem, is
On Sat, May 23, 2015 at 12:58 AM, Steven D'Aprano wrote:
> I think Python is a prettier
> language visually than either Lua or Ruby, but they're in the ball-park.
> Both languages have their warts and quirks, but if Python were declared
> illegal overnight[1] I'd probably have no trouble adapting
It's good to have at least a passing familiarity in more than one
programming language, so for I've re-written a small Python script (56
lines, including blanks and comments) into Lua (67 lines), Ruby (73 lines)
and Javascript (102 lines).
Re-writing the code in Lua and Ruby was actually quite sim
El 22/05/15 10:24, Mark Lawrence escribió:
On 22/05/2015 08:59, Cecil Westerhof wrote:
I want to learn a lot of things. For example writing database and
graphical applications. For database I decided on SQLAlchemy and GUI
on Tkinter. In principal I want to write Python 3 applications.
I came ac
On 22/05/2015 08:59, Cecil Westerhof wrote:
I want to learn a lot of things. For example writing database and
graphical applications. For database I decided on SQLAlchemy and GUI
on Tkinter. In principal I want to write Python 3 applications.
I came across Camelot. As I understand it, this is so
In a message of Fri, 22 May 2015 15:11:03 +0200, Cecil Westerhof writes:
>I know SQL. Until now I almost always did everything with SQL. The
>problem is that you are expected not to use it. With Python you are
>supposed to work with SQLAlchemy and with Java Hibernate.
I think you have got the wron
In a message of Fri, 22 May 2015 11:31:12 +0530, Sreenath Nair writes:
>I'm trying to build a script into a binary using cx_freeze. Problem is that
>once the binary is built then it starts throwing ImportErrorInvoking the
>source via shell works fine. Can someone clarify why this behavior whe
On 22/05/2015 14:11, Cecil Westerhof wrote:
> Op Friday 22 May 2015 14:38 CEST schreef Dan Sommers:
>
>> On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote:
>>
>>> Would Camelot be a good tool to get me started, or can I better
>>> bite the bullet and just start with Tkinter and SQLAlchemy?
Op Friday 22 May 2015 14:38 CEST schreef Dan Sommers:
> On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote:
>
>> Would Camelot be a good tool to get me started, or can I better
>> bite the bullet and just start with Tkinter and SQLAlchemy?
>
> Bite the bullet and learn SQL.
I know SQL. Unt
I don't know anything about Camelot. Tkinter produces widgets that are
in no way as pretty graphically as is expected nowadays -- or indeed for
at least 15 years. If this matters to you -- or if you are building for
customers if it matters to them, then Tkinter is not a good choice.
Widget libra
Dan Sommers writes:
> On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote:
>
> > Would Camelot be a good tool to get me started, or can I better bite
> > the bullet and just start with Tkinter and SQLAlchemy?
>
> Bite the bullet and learn SQL.
Good advice in the long term. However, one can
I'm trying to build a script into a binary using cx_freeze. Problem is that
once the binary is built then it starts throwing ImportErrorInvoking the
source via shell works fine. Can someone clarify why this behavior when
freezing the source?
Thank you.
Sent from my Windows Phone--
https:/
On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote:
> Would Camelot be a good tool to get me started, or can I better bite
> the bullet and just start with Tkinter and SQLAlchemy?
Bite the bullet and learn SQL.
SQLAlchemy -> Database :: Python -> Assembly Language.
HTH,
Dan
--
https://m
I want to learn a lot of things. For example writing database and
graphical applications. For database I decided on SQLAlchemy and GUI
on Tkinter. In principal I want to write Python 3 applications.
I came across Camelot. As I understand it, this is something to write
graphical database applicatio
68 matches
Mail list logo