On Thu, Aug 25, 2016 at 4:11 PM, Frank Millman wrote:
> "Chris Angelico" wrote in message
> news:CAPTjJmq2bcQPmQ9itVvZrBZJPcbYe5z6vDpKGYQj=8h+qkv...@mail.gmail.com...
>
> On Thu, Aug 25, 2016 at 3:33 PM, Frank Millman wrote:
>>
>> @Peter/Chris
>> > I don't understand - please explain.
>> >
>> >
"Chris Angelico" wrote in message
news:CAPTjJmq2bcQPmQ9itVvZrBZJPcbYe5z6vDpKGYQj=8h+qkv...@mail.gmail.com...
On Thu, Aug 25, 2016 at 3:33 PM, Frank Millman wrote:
@Peter/Chris
> I don't understand - please explain.
>
> If I store the business rule in Python code, how do I prevent untrusted
>
Chris Angelico :
> The real question is: How malicious can your users be?
Oh, yes, the simple way to manage the situation is for the server to
call seteuid() before executing the code after authenticating the user.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
"Frank Millman" :
> If I store the business rule in Python code, how do I prevent
> untrusted users putting malicious code in there? I presume I would
> have to execute the code by calling eval(), which we all know is
> dangerous. Is there another way of executing it that I am unaware of?
This is
On Thu, Aug 25, 2016 at 3:33 PM, Frank Millman wrote:
> @Peter/Chris
> I don't understand - please explain.
>
> If I store the business rule in Python code, how do I prevent untrusted
> users putting malicious code in there? I presume I would have to execute the
> code by calling eval(), which we
"Frank Millman" wrote in message news:npkcnf$kq7$1...@blaine.gmane.org...
Hi all
I have mentioned in the past that I use XML for storing certain structures
'off-line', and I got a number of comments urging me to use JSON or YAML
instead.
Can anyone offer an alternative which is closer to
On Thu, Aug 25, 2016 at 2:50 AM, Peter Otten <__pete...@web.de> wrote:
>> if _param.auto_party_id is not None:
>> if on_insert:
>> value = auto_gen(_param.auto_party_id)
>> elif not_exists:
>> value = ''
>
> I think we have a winner here ;)
Agreed.
http://thedailywtf.com/a
>> One might guess a.extend(a) would turn into an infinite loop. It turns out
>> here Python first gets all the items of `a' and then append them to `a', so
>> the infinite loop is avoided.
>>> a = [1,2]
>>> for x in a: a.append(x)
>...
>^CTraceback (most recent call last):
> File "", line 1, i
On Thu, Aug 25, 2016 at 7:00 AM, eryk sun wrote:
> I discovered why "Logs/con.txt" isn't working right in Windows 7,
> while "Logs/nul.txt" does get redirected correctly to r"\\.\nul".
> Prior to Windows 8 the console doesn't use an NT device, so the base
> API has a function named BaseIsThisACons
murdocksgra...@gmail.com schreef op 2016-08-24 06:08:
Also Borland C and C++ used Degrees and NOT Radians.. go look at the libraries
You have a reference for that? Borland C++ Builder Help from C++ Builder
5 disagrees with you:
"sin, sinl
Header File
math.h
Category
Math Routines
Syntax
#
On Mon, Aug 22, 2016 at 5:24 PM, Chris Angelico wrote:
> On Tue, Aug 23, 2016 at 3:13 AM, eryk sun wrote:
>> On Mon, Aug 22, 2016 at 4:18 PM, Chris Angelico wrote:
>>>
The CON device should work if the process is attached to a console
(i.e. a conhost.exe instance).
>>>
>>> No, I used P
Frank Millman wrote:
> Hi all
>
> I have mentioned in the past that I use XML for storing certain structures
> 'off-line', and I got a number of comments urging me to use JSON or YAML
> instead.
>
> In fact XML has been working very well for me, but I am looking into
> alternatives simply becau
murdocksgra...@gmail.com wrote:
> On Saturday, May 4, 2002 at 3:37:07 AM UTC-4, Jim Richardson wrote:
>>
>> I am trying to get the math module to deal with degrees rather than
>> radians. (that it deals with radians for the angular functions like
>> sin() isn't mentioned in the docs, which was so
lax.cla...@gmail.com wrote:
> Hi,
>
> I've been reading various forums and python documentation on subprocess,
> multithreading, PIPEs, etc. But I cannot seem to mash together several of my
> requirements into working code.
>
> I am trying to:
>
> 1) Use Python 3+ (specifically 3.4 if it matter
Frank Millman wrote:
> I have mentioned in the past that I use XML for storing certain structures
> 'off-line', and I got a number of comments urging me to use JSON or YAML
> instead.
>
> In fact XML has been working very well for me, but I am looking into
> alternatives simply because of the iss
On Wed, 24 Aug 2016 16:58:54 +0200, Frank Millman wrote:
> Hi all
>
> I have mentioned in the past that I use XML for storing certain
> structures 'off-line', and I got a number of comments urging me to use
> JSON or YAML instead.
>
> In fact XML has been working very well for me, but I am looki
"Frank Millman" :
> I have mentioned in the past that I use XML for storing certain
> structures 'off-line', and I got a number of comments urging me to use
> JSON or YAML instead.
JSON is very good.
> In fact XML has been working very well for me, but I am looking into
> alternatives simply beca
Hi all
I have mentioned in the past that I use XML for storing certain structures
'off-line', and I got a number of comments urging me to use JSON or YAML
instead.
In fact XML has been working very well for me, but I am looking into
alternatives simply because of the issue of using '>' and '
On Wed, Aug 24, 2016, at 07:17, Chris Angelico wrote:
> Objects/listobject.c:795
>
> /* Special cases:
>1) lists and tuples which can use PySequence_Fast ops
>2) extending self to self requires making a copy first
> */
And, of course, it is a special case - a.extend(iter(a
On Wed, Aug 24, 2016 at 9:03 PM, Joaquin Alzola
wrote:
>>> One might guess a.extend(a) would turn into an infinite loop. It turns out
>>> here Python first gets all the items of `a' and then append them to `a', so
>>> the infinite loop is avoided.
a = [1,2]
for x in a: a.append(x)
>>.
Please accept my apologies for sending the message to the full list 😬
2016-08-24 13:11 GMT+02:00 Daniel Riaño :
> Thanks, James!
>
> 2016-08-13 12:46 GMT+02:00 :
>
>> I created a Python 3 tkinter graphical statistical distributions fitting
>> application that will fit a 1D data set to all of the
Thanks, James!
2016-08-13 12:46 GMT+02:00 :
> I created a Python 3 tkinter graphical statistical distributions fitting
> application that will fit a 1D data set to all of the continuous
> statistical distributions in scipy.stats, with graphical display of the
> distributions plotted against norma
Shiyao Ma :
> Given a = [1, 2]
>
> a.extend(a) makes a = [1,2, 1,2]
>
> One might guess a.extend(a) would turn into an infinite loop. It turns
> out here Python first gets all the items of `a' and then append them
> to `a', so the infinite loop is avoided.
Functionally, Python's lists are not lin
On Wed, Aug 24, 2016 at 8:54 PM, Shiyao Ma wrote:
> Given a = [1, 2]
>
> a.extend(a) makes a = [1,2, 1,2]
>
> One might guess a.extend(a) would turn into an infinite loop. It turns out
> here Python first gets all the items of `a' and then append them to `a', so
> the infinite loop is avoided.
Hi,
Given a = [1, 2]
a.extend(a) makes a = [1,2, 1,2]
One might guess a.extend(a) would turn into an infinite loop. It turns out
here Python first gets all the items of `a' and then append them to `a', so the
infinite loop is avoided.
My question is, is there any doc on the behavior of thing
I'd like to send an array containing arrays of 2-element float arrays to a
foreign function, as the following struct:
class _FFIArray(Structure):
_fields_ = [("data", c_void_p),
("len", c_size_t)]
@classmethod
def from_param(cls, seq):
""" Allow implicit conv
For what it's worth, mathematicians naturally work with angles in radians.
The mathematics of the trignonmetric functions works naturally when the
angle is expressed in radians.
For the older among us, logarithms also have a "natural" base, and that is
the number e. Back in those days, however, e
On Wednesday 24 August 2016 17:04, Bob Martin wrote:
> in 764257 20160823 081439 Steven D'Aprano
> wrote:
>>There are many tutorials and examples of "screen scraping" or "web scraping"
>>on the internet -- try reading them. It's not something I personally have any
>>experience with, but I expect
in 764257 20160823 081439 Steven D'Aprano
wrote:
>On Tuesday 23 August 2016 10:28, adam.j.k...@gmail.com wrote:
>
>> Hi,
>>
>> I am hoping someone is able to help me.
>>
>> Is there a way to pull as much raw data from a website as possible. The
>> webpage that I am looking for is as follows:
>>
>
29 matches
Mail list logo