Chris Angelico wrote:
How do you declare that a parameter must be an instance of some class?
Classes are themselves created at run time. Or would your typing
system require that all types be created in some declarable way?
Types that you want statically checked have to be described
in a declara
On 21/05/2017 06:41, Chris Angelico wrote:
On Sun, May 21, 2017 at 3:30 PM, Gregory Ewing
wrote:
Chris Angelico wrote:
But since Python _does_ work with dynamic evaluation
(which consequently demands that these kinds of things be expressions
evaluated at compile time), it must by definition b
On Sun, May 21, 2017 at 7:15 PM, Gregory Ewing
wrote:
> Chris Angelico wrote:
>>
>> How do you declare that a parameter must be an instance of some class?
>> Classes are themselves created at run time. Or would your typing
>> system require that all types be created in some declarable way?
>
>
> T
On Sun, May 21, 2017 at 7:29 PM, bartc wrote:
>
> They might be /created/ at runtime, but it's a pretty good bet that the name
> A in this declaration:
>
> class A...
>
> is the name of a class. The question in Python, as always, is whether an A
> used as the name of a type in a type, is still t
Am 18.05.17 um 10:10 schrieb Christian Gollwitzer:
The whole discussion reminds me of the "bumblebees can't fly" thing.
tcc is a very small compiler (some 100kb) which supports most of C99.
For what it's worth, I compiled Python 3.6.1 on Linux/x86 using tcc. It
was a simple matter of cloning
On 20/05/2017 19:37, Chris Angelico wrote:
rosuav@sikorsky:~/linux$ find -name \*.c -or -name \*.h | wc -l
44546
These repositories, by the way, correspond to git URLs
https://github.com/python/cpython,
git://pike-git.lysator.liu.se/pike.git,
git://source.winehq.org/git/wine, and
https://github
On 21/05/2017 10:32, Christian Gollwitzer wrote:
Am 18.05.17 um 10:10 schrieb Christian Gollwitzer:
The whole discussion reminds me of the "bumblebees can't fly" thing.
tcc is a very small compiler (some 100kb) which supports most of C99.
For what it's worth, I compiled Python 3.6.1 on Linux/x
Am 21.05.17 um 12:38 schrieb bartc:
On 21/05/2017 10:32, Christian Gollwitzer wrote:
Am 18.05.17 um 10:10 schrieb Christian Gollwitzer:
The whole discussion reminds me of the "bumblebees can't fly" thing.
tcc is a very small compiler (some 100kb) which supports most of C99.
For what it's wort
On Sun, May 21, 2017 at 8:23 PM, bartc wrote:
> On 20/05/2017 19:37, Chris Angelico wrote:
>
>> rosuav@sikorsky:~/linux$ find -name \*.c -or -name \*.h | wc -l
>> 44546
>>
>> These repositories, by the way, correspond to git URLs
>> https://github.com/python/cpython,
>> git://pike-git.lysator.liu.
Am 21.05.17 um 12:23 schrieb bartc:
On 20/05/2017 19:37, Chris Angelico wrote:
rosuav@sikorsky:~/linux$ find -name \*.c -or -name \*.h | wc -l
44546
These repositories, by the way, correspond to git URLs
https://github.com/python/cpython,
git://pike-git.lysator.liu.se/pike.git,
git://source.wi
Chris Angelico writes:
> On Sun, May 21, 2017 at 8:23 PM, bartc wrote:
>> On 20/05/2017 19:37, Chris Angelico wrote:
>>
>>> rosuav@sikorsky:~/linux$ find -name \*.c -or -name \*.h | wc -l
>>> 44546
>>>
>>> These repositories, by the way, correspond to git URLs
>>> https://github.com/python/cpython
On Sun, May 21, 2017 at 9:43 PM, Jussi Piitulainen
wrote:
> It happened to me recently when cloning a git repository from GitHub,
> using GitHub Desktop, to a Mac OS file system. Some filenames differed
> only in case, like "INFO" and "info" in the same directory. Mac OS
> considered them the same
Chris Angelico writes:
> On Sun, May 21, 2017 at 9:43 PM, Jussi Piitulainen wrote:
>> It happened to me recently when cloning a git repository from GitHub,
>> using GitHub Desktop, to a Mac OS file system. Some filenames differed
>> only in case, like "INFO" and "info" in the same directory. Mac O
On Sun, May 21, 2017 at 11:33 PM, Jussi Piitulainen
wrote:
> I was surprised that it didn't notice and report that things went wrong
> while it was creating the clone that it was unable to handle afterwards.
> It apparently created an inconsistent index and thought everything was
> fine at that po
On 21/05/2017 12:06, Chris Angelico wrote:
On Sun, May 21, 2017 at 8:23 PM, bartc wrote:
(If you imagine a future where the number of targets has increased a
hundred-fold (or we colonise the galaxy and there are a million possible
targets), then it might become clearer that the approach used
On Mon, May 22, 2017 at 12:58 AM, bartc wrote:
> On 21/05/2017 12:06, Chris Angelico wrote:
>>
>> On Sun, May 21, 2017 at 8:23 PM, bartc wrote:
>
>
>>> (If you imagine a future where the number of targets has increased a
>>> hundred-fold (or we colonise the galaxy and there are a million possible
On Sun, May 21, 2017 at 2:38 AM, Chris Angelico wrote:
> On Sun, May 21, 2017 at 7:29 PM, bartc wrote:
> >
> > They might be /created/ at runtime, but it's a pretty good bet that the
> name
> > A in this declaration:
> >
> > class A...
> >
> > is the name of a class. The question in Python, as
Could something like this support forward declarations without the hackish
use of strings?
On Sun, 21 May 2017 at 12:01 justin walters
wrote:
> On Sun, May 21, 2017 at 2:38 AM, Chris Angelico wrote:
>
> > On Sun, May 21, 2017 at 7:29 PM, bartc wrote:
> > >
> > > They might be /created/ at runt
On 21/05/2017 17:51, breamore...@gmail.com wrote:
On Saturday, May 20, 2017 at 10:56:17 PM UTC+1, bartc wrote:
I am still also sticking with the belief that you know about as much
about programming as the RUE knows about unicode. What major projects
have you worked on? Actually what have you
Hi,
I have used some time to look around the internet, but seems not to get me
further, therefore i think i would ask in here :)
I would like to add an overlay picture in google maps, ny add it to KML file,
that part i think i know how to do.
What i have issues with is to calculate the 4 corne
On 21/05/2017 16:21, Chris Angelico wrote:
On Mon, May 22, 2017 at 12:58 AM, bartc wrote:
On 21/05/2017 12:06, Chris Angelico wrote:
Explain why ALL these drivers, including the one I've just created, need to
be part of the common source code for the OS.
I don't know. YOU are the one who s
On Mon, May 22, 2017 at 5:32 AM, bartc wrote:
> On 21/05/2017 16:21, Chris Angelico wrote:
>>
>> On Mon, May 22, 2017 at 12:58 AM, bartc wrote:
>>>
>>> On 21/05/2017 12:06, Chris Angelico wrote:
>
>
>>> Explain why ALL these drivers, including the one I've just created, need
>>> to
>>> be part of
Hi, I am wondering how to update/install python 3.4.2 to 3.4.6 on Win X64
(Win 10), the PSF only provides tarballs for the 3.4.6 installation.
cheers
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, May 22, 2017 at 7:14 AM, Daiyue Weng wrote:
> Hi, I am wondering how to update/install python 3.4.2 to 3.4.6 on Win X64
> (Win 10), the PSF only provides tarballs for the 3.4.6 installation.
Do you actually need 3.4.6, or can you upgrade to 3.5 or 3.6? Full
installers are available for th
okay, I see, I will uninstall 3.4 and install 3.6.
thanks
On 21 May 2017 at 22:18, Chris Angelico wrote:
> On Mon, May 22, 2017 at 7:14 AM, Daiyue Weng wrote:
> > Hi, I am wondering how to update/install python 3.4.2 to 3.4.6 on Win X64
> > (Win 10), the PSF only provides tarballs for the 3.4.
On 2017-05-21 22:23, Daiyue Weng wrote:
okay, I see, I will uninstall 3.4 and install 3.6.
You don't have to uninstall 3.4 until you really don't need it, when
you've fulling moved to the new version and you need the disk space;
just don't install 3.6 into the same folder (they default to inst
bartc wrote:
In fact the declaration of A might be in a different module from its use
in a type hint, which means that, in the CPython byte-code compiler
anyway, it is not visible at compile-time, when type hints could best be
put to good effect.
The static type checker would have to understa
Chris Angelico wrote:
With mypy, if your classes
are too dynamic, you might have to create a stub file that's more
static (but non-functional) just for the type checking. Can you do
that if your type checker is part of the language?
I think you may have misunderstood. I'm not suggesting that
th
Jussi Piitulainen wrote:
I was surprised that Git (or GitHub Desktop) simply failed so badly.
Not sure what it could have done instead.
It's not really git's fault, it's a consequence of differing
filename conventions on different platforms. The only way to
avoid such problems is to refrain fro
First, you have to have a Tk instance before you do anything else. Take a look
at this example, and then expand upon it to create the calculator
http://python-textbok.readthedocs.io/en/1.0/Introduction_to_GUI_Programming.html
--
https://mail.python.org/mailman/listinfo/python-list
bartc wrote:
I don't consider the CPython bundle that portable because it really
demands that it be built under Linux. There is (now) a grudging
concession for Windows, but that solution wasn't satisfactory when I
tried it.
We already know that building Python from source on Windows
is not ea
On 21/05/2017 21:46, Chris Angelico wrote:
On Mon, May 22, 2017 at 5:32 AM, bartc wrote:
Why are you so afraid of
multiple source files?
[When other people build your app from sources]
Because then they are likely to need automation to deal with it. And
that introduces an extra dependency
On 22/05/2017 01:07, Gregory Ewing wrote:
is not easy, but nobody should *need* to do that unless they're
--
https://mail.python.org/mailman/listinfo/python-list
I think what Bart is saying is that the Python developers should
provide an amalgamated source file that's pre-configured for
Windows, so that someone who wants to compile on Windows doesn't
have to deal with all the complexities of the general build
system.
While that might be possible, I don't
On 22/05/2017 01:17, Gregory Ewing wrote:
I think what Bart is saying is that the Python developers should
provide an amalgamated source file that's pre-configured for
Windows, so that someone who wants to compile on Windows doesn't
have to deal with all the complexities of the general build
syst
The creator of Scala, Martin Odersky, has proposed introducing Python-like
significant indentation to Scala and getting rid of braces:
I was playing for a while now with ways to make Scala's syntax
indentation-based. I always admired the neatness of Python syntax
and also found that F#
Gregory Ewing writes:
> Jussi Piitulainen wrote:
>> I was surprised that Git (or GitHub Desktop) simply failed so badly.
>> Not sure what it could have done instead.
>
> It's not really git's fault, it's a consequence of differing
> filename conventions on different platforms. The only way to
I u
bartc wrote:
The 'one-file' idea is one approach to simplifying the building of
open-source applications. Probably, it's more suited to those who just
want to try out, or use, a bit of software.
But on Windows, that use case is normally covered by installing
a *binary*, not compiling from sour
On Mon, May 22, 2017 at 4:17 PM, Gregory Ewing
wrote:
>> (The GMP library, for example, has no official binary releases. You have
>> to build from source,
>
>
> So using it on Windows isn't supported very well. This is
> in contrast to Python, for which a pretty comprehensive set
> of Windows bina
woo...@gmail.com wrote:
> First, you have to have a Tk instance before you do anything else. Take a
> look at this example, and then expand upon it to create the calculator
> http://python-textbok.readthedocs.io/en/1.0/Introduction_to_GUI_Programming.html
While I agree that creating a Tk instan
40 matches
Mail list logo