On Monday, February 19, 2018 at 1:07:02 PM UTC, Anders Wegge Keller wrote:
> På Mon, 19 Feb 2018 04:39:31 + (UTC)
> Steven D'Aprano skrev:
> > On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote:
> >
> > > På Mon, 19 Feb 2018 08:47:14 +1100
> > > Tim Delaney skrev:
> > >> On 18 Feb
On Sunday, February 18, 2018 at 8:23:03 PM UTC, Mark Lawrence wrote:
> On 18/02/18 18:03, Grant Edwards wrote:
> > On 2018-02-18, Dennis Lee Bieber wrote:
> >> On Sun, 18 Feb 2018 17:26:54 + (UTC), Grant Edwards
> >> declaimed the following:
> >>
> >>>
> >>> It was Yomura who picked up the arc
On Tuesday, February 20, 2018 at 5:08:49 AM UTC, Marc Cohen wrote:
> USING PYTHON 2:
>
> Write a program to play this game. This may seem tricky, so break it down
> into parts. Like many programs, we have to use nested loops (one loop inside
> another). In the outermost loop, we want to keep pla
USING PYTHON 2:
Write a program to play this game. This may seem tricky, so break it down into
parts. Like many programs, we have to use nested loops (one loop inside
another). In the outermost loop, we want to keep playing until we are out of
stones.
Inside that, we want to keep alternating p
On Saturday, February 17, 2018 at 12:58:49 AM UTC-6, Paul Rubin wrote:
[...]
> Beyond that, the Python community (with some exceptions) seems to have a
> widespread hatred of threads. It instead prefers to handle concurrent
> i/o with in-thread async schemes that the rest of the world left behind
On Friday, February 16, 2018 at 10:25:32 PM UTC-6, Chris Angelico wrote:
[...]
> This is often touted as a necessity for industrial-grade
> software. It isn't. There are many things that a type
> system, no matter how sophisticated, cannot catch; for some
> reason, though, we don't hear people sayi
Thanks Chris,
I think I figured it out that when build python on Linux, we need to
enable-shared.
Thanks again,
On Mon, Feb 19, 2018 at 5:04 PM, Chris Angelico wrote:
> On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list
> wrote:
> > Hi,
> >
> > I am calling python from a c a
On 2/19/18 10:35 AM, Chris Angelico wrote:
On Tue, Feb 20, 2018 at 12:34 AM, Steven D'Aprano
wrote:
On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote:
As an integer, 3.141590 is 107853 $
Looks to me like C is perfectly happy to interpret a float as an int.
Yes, but that's not an
On Tue, Feb 20, 2018 at 12:05 PM, Wildman via Python-list
wrote:
> On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote:
>
>> The given homepage URL is
>> http://alastairs-place.net/projects/netifaces/ - is that the right
>> one?
>>
>> ChrisA
>
> Yes, that is the right one. Now I'm feeling a
On Tue, 20 Feb 2018 10:55:28 +1100, Chris Angelico wrote:
> The given homepage URL is
> http://alastairs-place.net/projects/netifaces/ - is that the right
> one?
>
> ChrisA
Yes, that is the right one. Now I'm feeling a little stupid.
I should have remembered that many python library package
nam
On Tue, Feb 20, 2018 at 10:09 AM, Wildman via Python-list
wrote:
> Yes, you are correct. Third-party pip packages are always
> a no-no.
>
> Speaking of which, there is a library called Netifaces that
> will easily do exactly what I want with a few lines of code.
> But, it is not to be found in an
On Tue, 20 Feb 2018 05:31:27 +1100, Chris Angelico wrote:
> On Tue, Feb 20, 2018 at 3:49 AM, Wildman via Python-list
> wrote:
>> On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote:
>>
>>> On 18/02/18 16:18, Wildman via Python-list wrote:
> But that's only going to show one (uplink) addres
On Tue, 20 Feb 2018 05:39:15 +1100, Chris Angelico wrote:
> On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list
> wrote:
>> On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote:
>>
>>> * Opaque IOCTLs
>>
>> Would you mind to elaborate a little about your
>> concerns?
>
> Look at your or
Il giorno lunedì 19 febbraio 2018 23:02:43 UTC+1, Chris Angelico ha scritto:
> On Tue, Feb 20, 2018 at 8:45 AM, Beppe wrote:
> >
> > Biovarase has been updated to version 2,
> >
> > The project has been migrated from python 2.7 to python 3.5
> >
> > Biovarase is an application to manage clinical q
On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list
wrote:
> Hi,
>
> I am calling python from a c application.
> It compiles and works fine on the windows. How do I compile and link
> it on the linux for Python 3.6.4 ?
>
> Under python dir, it only have a static librar
On Tue, Feb 20, 2018 at 8:45 AM, Beppe wrote:
>
> Biovarase has been updated to version 2,
>
> The project has been migrated from python 2.7 to python 3.5
>
> Biovarase is an application to manage clinical quality control data.
>
> The purpose of Quality Control Assurance in a clinical laboratory
Hi,
I am calling python from a c application.
It compiles and works fine on the windows. How do I compile and link
it on the linux for Python 3.6.4 ?
Under python dir, it only have a static library,
/opt/Python-3.6.4*/lib*/*libpython3.6m.a*
* If I link to it, I g
Biovarase has been updated to version 2,
The project has been migrated from python 2.7 to python 3.5
Biovarase is an application to manage clinical quality control data.
The purpose of Quality Control Assurance in a clinical laboratory is to allow
the control of the performances of an analyti
Thanks a lot and I will take a look Cython,
On Mon, Feb 19, 2018 at 3:23 PM, Stefan Behnel wrote:
> Jason Qian via Python-list schrieb am 04.02.2018 um 17:52:
> >This is the case of calling python from c and the python function
> will
> > return a string.
>
> Hi Jason,
>
> I noticed that you
Jason Qian via Python-list schrieb am 04.02.2018 um 17:52:
>This is the case of calling python from c and the python function will
> return a string.
Hi Jason,
I noticed that you ran into a couple of problems using the C-API, so I
suggest looking into Cython instead. It basically translates
bhattacharya.kush...@gmail.com schrieb am 17.01.2018 um 12:03:
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
http://cython.org/
Stefan
--
https://mail.python.org/mailman/listinfo/python-list
On 2/19/18 1:01 PM, Paul Moore wrote:
On 19 February 2018 at 17:11, Ned Batchelder wrote:
On 2/19/18 10:39 AM, Paul Moore wrote:
I'm curious - How would you explain Python's "variables" to someone
who knows how C variables work, in a way that ensures they don't carry
across any unfortunate mis
On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list
wrote:
> On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote:
>
>> * Opaque IOCTLs
>
> Would you mind to elaborate a little about your
> concerns?
Look at your original code: it's impossible to figure out what it's
doing or whether it'
On Tue, Feb 20, 2018 at 3:49 AM, Wildman via Python-list
wrote:
> On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote:
>
>> On 18/02/18 16:18, Wildman via Python-list wrote:
But that's only going to show one (uplink) address. If I needed to get
ALL addresses for ALL network adapters,
On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote:
> * Opaque IOCTLs
Would you mind to elaborate a little about your
concerns?
--
GNU/Linux user #557453
"There are only 10 types of people in the world...
those who understand Binary... and those who don't."
-Spike
--
https://mail.pyth
On Saturday, February 17, 2018 at 8:50:48 AM UTC-6, Steven D'Aprano wrote:
>
> For me, the tool I use is a set of re-usable tools:
>
> - a text editor;
> - a system command prompt in a terminal/console window;
> - a Python REPL for running code snippets and looking up help(obj).
>
> Other people
On 19 February 2018 at 17:11, Ned Batchelder wrote:
> On 2/19/18 10:39 AM, Paul Moore wrote:
>>
>> I'm curious - How would you explain Python's "variables" to someone
>> who knows how C variables work, in a way that ensures they don't carry
>> across any unfortunate misconceptions based on how C w
On 2/19/18 10:39 AM, Paul Moore wrote:
On 19 February 2018 at 15:18, Ned Batchelder wrote:
On 2/19/18 9:54 AM, Steven D'Aprano wrote:
On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote:
[1] The most basic question, which people making such claims often can't
answer, is "Do you mean that va
On Mon, 19 Feb 2018 12:32:49 +, Rhodri James wrote:
> On 18/02/18 16:18, Wildman via Python-list wrote:
>>> But that's only going to show one (uplink) address. If I needed to get
>>> ALL addresses for ALL network adapters, I'd either look for a library,
>>> and if one wasn't easily found, I'd
Paul Moore :
> I'm curious - How would you explain Python's "variables" to someone
> who knows how C variables work, in a way that ensures they don't carry
> across any unfortunate misconceptions based on how C works?
Just say that
1. Every Python variable is of the type "Object *".
2. Every
On Mon, Feb 19, 2018 at 11:35 PM, bartc wrote:
> Sometimes, the reason for creating a special numerical type is precisely so
> you can't do arithmetic on them, if it's not meaningful for the type.
>
> So the special type of the values 65..90 might not allow the type be
> multiplied or divided, or
On 19 February 2018 at 15:18, Ned Batchelder wrote:
> On 2/19/18 9:54 AM, Steven D'Aprano wrote:
>>
>> On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote:
>>
>>> [1] The most basic question, which people making such claims often can't
>>> answer, is "Do you mean that values are strongly typed, o
On Tue, Feb 20, 2018 at 12:34 AM, Steven D'Aprano
wrote:
> On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote:
>
>> As an integer, 3.141590 is 107853 $
>>
>> Looks to me like C is perfectly happy to interpret a float as an int.
>
> Yes, but that's not an *automatic* coercion. To count as
På Mon, 19 Feb 2018 15:15:19 + (UTC)
Steven D'Aprano skrev:
> On Mon, 19 Feb 2018 14:06:36 +0100, Anders Wegge Keller wrote:
>
> > Array is not even close to providing a strongly typed container.
>
> That's a mighty powerful claim that goes against the documentation for
> the array module
Ned Batchelder :
> I guess I'll have to continue to grit my teeth as people say, "Python
> doesn't have variables." Why can't we say, "Python's variables work
> differently than other languages"?
Because they don't?
Marko
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 19, 2018 at 11:32 PM, Rhodri James wrote:
> On 18/02/18 16:18, Wildman via Python-list wrote:
>>>
>>> But that's only going to show one (uplink) address. If I needed to get
>>> ALL addresses for ALL network adapters, I'd either look for a library,
>>> and if one wasn't easily found, I'
On 2/19/18 9:54 AM, Steven D'Aprano wrote:
On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote:
[1] The most basic question, which people making such claims often can't
answer, is "Do you mean that values are strongly typed, or that names
are? Or did you mean that variables are, because if so
On Mon, 19 Feb 2018 14:06:36 +0100, Anders Wegge Keller wrote:
> Array is not even close to providing a strongly typed container.
That's a mighty powerful claim that goes against the documentation for
the array module. Can you back your claims up?
Here's an array and a list:
import array
arr =
On Mon, 19 Feb 2018 13:28:26 +, Paul Moore wrote:
> [1] The most basic question, which people making such claims often can't
> answer, is "Do you mean that values are strongly typed, or that names
> are? Or did you mean that variables are, because if so Python doesn't
> even have variables in
On Mon, 19 Feb 2018 12:35:19 +, bartc wrote:
> Type systems get rapidly very complicated when you have to deal with
> arbitrary sets of values and with arbitrary rules of interaction.
> Someone has to devise a programming language to allow all that without
> tying itself up in knots. Someone e
On Mon, 19 Feb 2018 12:19:14 +0100, Alain Ketterlin wrote:
> Steven D'Aprano writes:
>
>> On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote:
>>
>>> Tim Delaney writes:
>>>
>>> [...]
As others have said, typing is about how the underlying memory is
treated.
>>>
>>> No. It is
Sorry, it was a glitch on the template when moved to another folder (just
fixed).
On Mon, Feb 19, 2018 at 10:08 AM, ElChino wrote:
> Fabio Zadrozny wrote:
>
> See: http://www.pydev.org/vscode/ for more information!
>>
>
> That page includes so many dead links that it looks
> like a joke.
> --
>
On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote:
> As an integer, 3.141590 is 107853 $
>
> Looks to me like C is perfectly happy to interpret a float as an int.
Yes, but that's not an *automatic* coercion. To count as weakly typed,
the compiler has to do it automatically, without a
On 19 February 2018 at 13:06, Anders Wegge Keller wrote:
> Python isn't particular strong typed. In fact, apart from asking an object
> what type it is, types are not that important. It's the interface that
> matters. I wonder why this is a sore point for Python developers?
Because there's a lon
On 18/02/18 16:18, Wildman via Python-list wrote:
But that's only going to show one (uplink) address. If I needed to get
ALL addresses for ALL network adapters, I'd either look for a library,
and if one wasn't easily found, I'd shell out to the "ip" command and
parse its output.:)
I considered
Fabio Zadrozny wrote:
See: http://www.pydev.org/vscode/ for more information!
That page includes so many dead links that it looks
like a joke.
--
https://mail.python.org/mailman/listinfo/python-list
På Mon, 19 Feb 2018 04:39:31 + (UTC)
Steven D'Aprano skrev:
> On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote:
>
> > På Mon, 19 Feb 2018 08:47:14 +1100
> > Tim Delaney skrev:
> >> On 18 February 2018 at 22:55, Anders Wegge Keller
> >> wrote:
> >
> >
> [...]
> >
>
Hi All,
I'm happy to announce that PyDev (http://www.pydev.org) can now be used for
Python development on Visual Studio Code!
The first release already provides features such as code analysis, code
completion, go to definition, symbols for the workspace and editor, code
formatting, find reference
On 19/02/2018 02:59, Chris Angelico wrote:
On Mon, Feb 19, 2018 at 1:14 PM, bartc wrote:
How would even a type for the odd numbers from 1 to 10 inclusive work?
(That, a type consisting of one of the values in {1,3,5,7,9}.) Would they be
ordered or unordered? Can I do arithmetic with them: wil
Alain Ketterlin :
> Your claim essentially is: since we cannot prove everything, let's not
> even try to prove anything. Go on if you think this is the right way to
> think about typing.
This discussion is far too metaphysical.
Static type declarations give you something at a cost. They give you:
Adriaan Renting| Email: rent...@astron.nl
Software Engineer Radio Observatory
ASTRON | Phone: +31 521 595 100 (797 direct)
P.O. Box 2 | GSM: +31 6 24 25 17 28
NL-7990 AA Dwingeloo | FAX: +31 521 595 101
The Netherlands| Web: http://www.astron.nl/
On Mon, Feb 19, 2018 at 10:39 PM, Adriaan Renting wrote:
> I remember running 2 Mendocino 300 MHz Celerons on a Pentium II Xeon
> motherboard to get a
> multi-cpu machine for running multiple virtual machines for testing
> purposes around 1998.
> This was not as Intel intended, but a quite cheap c
Steven D'Aprano writes:
> On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote:
>
>> Tim Delaney writes:
>>
>> [...]
>>> As others have said, typing is about how the underlying memory is
>>> treated.
>>
>> No. It is much more than that. Typing is about everything you can say
>> about a gi
On Mon, Feb 19, 2018 at 9:24 PM, Steven D'Aprano
wrote:
> On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote:
>
>> Tim Delaney writes:
>>
>> [...]
>>> As others have said, typing is about how the underlying memory is
>>> treated.
>>
>> No. It is much more than that. Typing is about everyth
Chris Angelico writes:
> On Mon, Feb 19, 2018 at 9:04 PM, Alain Ketterlin
> wrote:
>> Look at the C11 standard, section 6.3.2.3 ("Pointers"), 6.5.§6-7
>> ("effective types"), and 6.5.3.2 ("Address and indirection operators").
>> It is tiring to constantly correct misunderstandings about pointer
On Mon, 19 Feb 2018 09:40:09 +0100, Alain Ketterlin wrote:
> Tim Delaney writes:
>
> [...]
>> As others have said, typing is about how the underlying memory is
>> treated.
>
> No. It is much more than that. Typing is about everything you can say
> about a given statement.
"Everything"? Truly *
On Mon, Feb 19, 2018 at 9:04 PM, Alain Ketterlin
wrote:
> Chris Angelico writes:
>
>> On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin
>> wrote:
>
>>> No. C has much stronger rules, not on casting, but on accessing the
>>> pointees, which basically invalidates your argument. Refer to the C
>>> s
On 2018-02-18 14:39, A.Brozi wrote:
> Hello
>
> In new "scipy" (1.0.0) I've found procedure "solve_ivp", which makes it
> possible to use "events" in order to terminate the ode solution when
> some condition is satisfied.
> The precise moment of termination (the value of independent variable) is
>
On 2018-02-19 09:57, Sum J wrote:
> Hi,
>
> I am using below python code (Python 2.7) to reset the proxy of my Ubuntu
> (Cent OS 6) system, but I am unable to reset the proxy:
I'm sure you know this, but CentOS and Ubuntu are two different things.
>
> Code :
> import os
> print "Unsett
On Mon, Feb 19, 2018 at 8:36 PM, Antoon Pardon wrote:
> On 17-02-18 21:11, Chris Angelico wrote:
>> On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote:
>>> On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote:
You'd be surprised how rarely that kind of performance even matters.
The auth
Chris Angelico writes:
> On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin
> wrote:
>> No. C has much stronger rules, not on casting, but on accessing the
>> pointees, which basically invalidates your argument. Refer to the C
>> standard for details.
>
> Really? What rules?
Look at the C11 stan
On 2/19/2018 4:14 AM, Chris Angelico wrote:
On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin
wrote:
Tim Delaney writes:
C is statically and weakly typed. Variables know their types at compile
time (static typing). It is a feature of the language that you can cast any
pointer to any chunk of m
On 17-02-18 21:11, Chris Angelico wrote:
> On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote:
>> On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote:
>>> You'd be surprised how rarely that kind of performance even matters.
>>> The author of that article cites C# as a superior language, but in th
On Mon, Feb 19, 2018 at 7:40 PM, Alain Ketterlin
wrote:
> Tim Delaney writes:
>> C is statically and weakly typed. Variables know their types at compile
>> time (static typing). It is a feature of the language that you can cast any
>> pointer to any chunk of memory to be a pointer to any other ty
Hi,
I am using below python code (Python 2.7) to reset the proxy of my Ubuntu
(Cent OS 6) system, but I am unable to reset the proxy:
Code :
import os
print "Unsetting http..."
os.system("unset http_proxy")
os.system("echo $http_proxy")
print "http is reset"
O
Tim Delaney writes:
[...]
> As others have said, typing is about how the underlying memory is treated.
No. It is much more than that. Typing is about everything you can say
about a given statement. Some type systems are focusing on type labels
only (like most statically typed programming languag
66 matches
Mail list logo