Changes by Neil Girdhar mistersh...@gmail.com:
Added file: http://bugs.python.org/file37821/starunpack14.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
Changes by Neil Girdhar mistersh...@gmail.com:
Removed file: http://bugs.python.org/file37817/starunpack14.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
Chris,
On Thu, Jan 22, 2015 at 9:46 PM, Nicholas Cole
nicholas.c...@gmail.com wrote:
Hang on! The particular example may not make a lot of sense but there
are plenty of places in ordinary Python where functions can accept
different objects in arguments and return different things. The point
On Thu, Jan 22, 2015 at 10:12 PM, Mario Figueiredo mar...@gmail.com wrote:
I agree. TypeVar will help tremendously by removing the need for union in
cases of object inheritance. But only on cases of object inheritance.
Why only inheritance? One of the examples is of str and bytes, which
don't
Steve Dower added the comment:
That change modified pythoncore, so I'd expect to see most projects rebuild.
Especially under Release, where we don't have some of the build optimizations
enabled (because they hurt runtime performance).
--
___
Python
Neil Girdhar added the comment:
By the way, Joshua if you wanted to edit the text of the PEP, it might be nice
to point out that this replaces itertools.chain.from_iterable. I know you
mention one use of itertools.chain, but I think this nicely replaces all uses
of both:
itertools.chain(a,
Joshua Landau added the comment:
I've looked at BUILD_MAP(n). It seems to work and has speed improvements but:
- I was wrong about the 16-bit int thing. It turns out CPython is happily
treating them as 32 bit as long as they are prefixed by an EXTENDED_ARG bytecode
aruseni added the comment:
@Eric You’re right. I thought it should be «was» instead of «is», but it’s
actually OK.
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23294
New submission from Guohua Ouyang:
Following the issue 7776, there is a patch for 2.7 version.
Which changes the method of class HTTPConnection from _set_hostport to
_get_hostport[1], it seems introduce in some incompatibility issues.
On my system, the file
Martijn Pieters added the comment:
Indeed, the 2.7 backport was not correctly applied for _elementtree.c, leaving
files open because the close_source flag is set to False *again* when opening a
filename.
Should a new issue be opened or should this ticket be re-opened?
--
nosy:
Chris,
I'd rather see a real-world example that can't be solved with either
better design or some simple aliases. (And yes, the type hinting does
allow for aliases.)
Python is a duck-typing language, Chris. It is in its nature -- and we have
been taught -- to ignore types and care only about
On Wednesday 21 January 2015 23:46:09 Emil Oppeln-Bronikowski did opine
And Gene did reply:
On Thu, Jan 22, 2015 at 10:55:27AM +1100, Chris Angelico wrote:
Where's REXX today?
Still (somehow) alive in neo-Amiga platforms like AmigaOS4.x, MorphOS
and AROS. I know that's as good as dead but
Mario Figueiredo wrote:
In article 54c0a571$0$13002$c3e8da3$54964...@news.astraweb.com,
steve+comp.lang.pyt...@pearwood.info says...
The point isn't that there are no other alternative interpretations
possible, or that annotations are the only syntax imaginable, but that
they're not hard
STINNER Victor added the comment:
test_asyncio hangs on AMD64 Windows7 SP1 3.x buildbot:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5562
The most significant change of this build is the changeset d3804307cce4:
IocpProactor.close() must not cancel pending
STINNER Victor added the comment:
A different hang on AMD64 Windows7 SP1 3.4/ buildbot:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.4/builds/805/steps/test/logs/stdio
This build is also related to the changeset
d3804307cce44f7f02e38166daf6d8227aa45021:
This is my first post to the list, I apologies firstly if I made any mistake.
I was trying to get a package in golang behind the http or https
proxy, and it reports an error AttributeError: httpsconnection
instance has no attribute '_set_hostport', details in the bottom.
After some trace work, I
Changes by STINNER Victor victor.stin...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23295
___
___
Neil Girdhar added the comment:
BUILD_MAP(n)
--
Added file: http://bugs.python.org/file37817/starunpack14.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
On Thursday, January 22, 2015 at 12:48:46 AM UTC-6, Paul Rubin wrote:
Sir Richard Johnson writes:
You could write some IDE features to suppress visibility
of the hints. Or maybe it could be done with a decorator-
like construct:
@-spec(Iterable[Real], Real) - Real
Yes, YES, *YES*
I've made a snniferr for a ICMP socket that works with IPv4. This is the
code:
import sys
import socket
import struct
import select
import time
import signal
import re
HOST = raw_input(Enter the interface to listen: )
s = socket.socket(socket.AF_INET, socket.SOCK_RAW,
Roundup Robot added the comment:
New changeset d3a27a27e008 by Victor Stinner in branch '3.4':
Issue #23009: Skip test_selectors.test_empty_select() on Windows
https://hg.python.org/cpython/rev/d3a27a27e008
--
___
Python tracker
STINNER Victor added the comment:
I don't understand why do you consider that this issue is a bug. Can you show
an example where detect_encoding() raises an exception?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
In article 54c0a571$0$13002$c3e8da3$54964...@news.astraweb.com,
steve+comp.lang.pyt...@pearwood.info says...
The point isn't that there are no other alternative interpretations
possible, or that annotations are the only syntax imaginable, but that
they're not hard to guess what they mean,
Roundup Robot added the comment:
New changeset 4f928c70f135 by Victor Stinner in branch '3.4':
Issue #23009: Add missing import sys in test_selectors
https://hg.python.org/cpython/rev/4f928c70f135
--
___
Python tracker rep...@bugs.python.org
Hi all
I have xmlrpc server written in Java, and it has a method like
Fun( vector, vector), the vector is array of user-defined object, which is
a class extends HashMap.
And I call it like:
server = xmlrpclib.ServerProxy(http://myserver;)
server.Fun( [ {0.5:0.1}], [ ] )
It always fails
On 22/01/2015 08:24, Rick Johnson wrote:
Yes, YES, *YES* That would be my first choice, or
docstrings as a secondary. But to introduce new syntax
into the method signatures is SUICIDE! What the hell is
this man thinking?
I take it you mean these men Guido van Rossum guido at python.org,
On Thursday, January 22, 2015 at 1:23:40 AM UTC-6, Steven D'Aprano wrote:
The point isn't that there are no other alternative
interpretations possible, or that annotations are the only
syntax imaginable, but that they're not hard to guess what
they mean, and if you can't guess, they're not
On Thu, Jan 22, 2015 at 7:10 PM, Mario Figueiredo mar...@gmail.com wrote:
Possibly one common use case will be Unions. And that factory syntax is
really awful and long when you look at a function definition with as
little as 3 arguments. The one below has only 2 arguments.
def
Rick Johnson rantingrickjohn...@gmail.com:
Python is the only thing that is pure in the programming world. The
only language that offers the cleanest and most intuit-able syntax,
AND YOURE JUST GOING TO THROW IT ALL AWAY SO YOU CAN BE A LAPDOG OF
SATAN?
I think the SATAN is in the optional
On Thu, Jan 22, 2015 at 7:00 PM, ermanolillo ermanoli...@hotmail.com wrote:
s = socket.socket(socket.AF_INET6, socket.SOCK_RAW, socket.IPPROTO_ICMPV6)
However I recive the next error:
File server.py, line 16, in module
s.bind((HOST, 0))
File /usr/lib/python2.7/socket.py, line 224, in meth
On Thu, Jan 22, 2015 at 9:05 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Rick Johnson rantingrickjohn...@gmail.com:
Python is the only thing that is pure in the programming world. The
only language that offers the cleanest and most intuit-able syntax,
AND YOURE JUST GOING TO THROW IT ALL AWAY
New submission from Liang Zhang:
This was copied from Chapter 5 Data Structure in Python language tutorial.
The link I was looking for:
https://docs.python.org/2.7/tutorial/datastructures.html
Some thing might be incorrect and need you to update them in
(5.1.4. List Comprehensions)
It
On 22/01/2015 03:38, Guohua Ouyang wrote:
This is my first post to the list, I apologies firstly if I made any mistake.
I was trying to get a package in golang behind the http or https
proxy, and it reports an error AttributeError: httpsconnection
instance has no attribute '_set_hostport',
On 22/01/2015 04:30, Steven D'Aprano wrote:
Occasionally you find people spreading Fear, Uncertainty, Doubt about
Python. Python is now over 20 years old and one of the most popular
languages in the world no matter how you measure popularity:
http://import-that.dreamwidth.org/1388.html
so you
On Thu, Jan 22, 2015 at 8:10 AM, Mario Figueiredo mar...@gmail.com wrote:
In article 54c0a571$0$13002$c3e8da3$54964...@news.astraweb.com,
steve+comp.lang.pyt...@pearwood.info says...
The point isn't that there are no other alternative interpretations
possible, or that annotations are the only
Claudiu Popa added the comment:
Ups, the last patch included an extra file.
--
Added file: http://bugs.python.org/file37819/issue21518_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21518
Changes by Claudiu Popa pcmantic...@gmail.com:
Added file: http://bugs.python.org/file37820/issue21518_4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21518
___
Claudiu Popa added the comment:
Here's a patch which does this. One problem could be that
staticmethod(some_callable) or classmethod(some_callable) aren't callable per
se, but given the fact that users expects Foo.staticmethod or Foo.klassmethod
to be callable when patching them, it's
Rick,
Python is the only thing that is pure in the programming world. The
only language that offers the cleanest and most intuit-able syntax,
AND YOURE JUST GOING TO THROW IT ALL AWAY SO YOU CAN BE A LAPDOG OF
SATAN?
Nonsense. You are just used to it. I can read C with the same feeling of
Chris,
Hold on a moment, how often do you really do this kind of thing with
might be one of them or a sequence?
Is it really that important that I give a more real-life example, or can't
you just get the problem from a ad-hoc example?
I could replace the variable names with spam, ham and
On Thursday, 22 January 2015, Chris Angelico ros...@gmail.com
javascript:_e(%7B%7D,'cvml','ros...@gmail.com'); wrote:
On Thu, Jan 22, 2015 at 7:10 PM, Mario Figueiredo mar...@gmail.com
wrote:
Possibly one common use case will be Unions. And that factory syntax is
really awful and long when
On Thu, Jan 22, 2015 at 9:46 PM, Nicholas Cole nicholas.c...@gmail.com wrote:
Hang on! The particular example may not make a lot of sense but there are
plenty of places in ordinary Python where functions can accept different
objects in arguments and return different things. The point here is
On Thu, Jan 22, 2015 at 9:37 PM, Mario Figueiredo mar...@gmail.com wrote:
Chris,
Hold on a moment, how often do you really do this kind of thing with
might be one of them or a sequence?
Is it really that important that I give a more real-life example, or can't
you just get the problem from
On 22/01/2015 18:14, Skip Montanaro wrote:
On Thu, Jan 22, 2015 at 12:03 PM, Sturla Molden sturla.mol...@gmail.com
mailto:sturla.mol...@gmail.com wrote:
Python will no longer be dynamic, it will just be a slow static
language.
Yes, Python could still be used as a dynamic language,
On Fri, Jan 23, 2015 at 5:03 AM, Sturla Molden sturla.mol...@gmail.com wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Remember too that type-hinting will *absolutely* remain *completely*
optional for Python. Developers can choose to use it or not,
No! Developers have to
Alessio added the comment:
Not working patch, if I use this method on append I've all messages with 1970
year
--
nosy: +Pilessio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11024
___
Berker Peksag added the comment:
Should a new issue be opened or should this ticket be re-opened?
It's a 3 years old backport, I'd say open a new issue.
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
Demian Brecht added the comment:
@Senthil: If you're fixing this today, can you also correct the typo here:
https://hg.python.org/cpython/rev/568041fd8090/#l1.27 (s/HTML/HTTP)? Just
caught my eye going through the review that Mark linked.
--
nosy: +demian.brecht
On Thu, Jan 22, 2015, at 13:28, Mark Lawrence wrote:
Evidence in completely the opposite direction if I'm reading this
correctly https://www.python.org/dev/peps/pep-0484/#usage-patterns
The main use case of type hinting is static analysis using an external
tool without executing the
Senthil Kumaran added the comment:
Demian, sure, will do.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23300
___
___
Python-bugs-list mailing
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: -giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
R. David Murray added the comment:
This is a duplicate of issue 20923, which was rejected. To argue against the
rejection you probably need to provide evidence that this is something that is
actually supported by other common ini parsers. And that evidence should be
posted to issue 20923.
R. David Murray added the comment:
vec has not been changed. The example is correct. Give it a try :)
--
nosy: +r.david.murray
resolution: - not a bug
stage: - resolved
status: open - closed
type: resource usage - behavior
___
Python tracker
ermanolillo ermanoli...@hotmail.com writes:
HOST is send by the keyboard. It´s the IPv6 address of my interface eth0.
For example, FE80::0202:B3FF:FE1E:8329.
This is a link-local address, you can't use it just like that (you may
have several interfaces with the same link-local addr). Use
On Fri, Jan 23, 2015 at 2:24 AM, ermanolillo ermanoli...@hotmail.com wrote:
HOST is send by the keyboard. It´s the IPv6 address of my interface eth0.
For example, FE80::0202:B3FF:FE1E:8329.
I can't duplicate the problem. Are you certain that this is indeed an
appropriate address?
ChrisA
--
New submission from Sebastian Bank:
ConfigParser parses section lines containing square brackets like '[spam [eggs]
spam]' up to the first instead of the last occurrence of ']' preventing
roundtrips:
s = StringIO()
c1 = ConfigParser()
c1.add_section('spam [eggs]')
c1.write(s)
s.seek(0)
On Thu, Jan 22, 2015 at 07:26:31AM -0500, Gene Heskett wrote:
Still (somehow) alive in neo-Amiga platforms like AmigaOS4.x, MorphOS
and AROS. I know that's as good as dead but there are still people
writing AREXX glue code.
He asked about REXX, not AREXX. There is no comparison between the
Rick Johnson rantingrickjohn...@gmail.com:
On Thursday, January 22, 2015 at 1:23:11 PM UTC-6, Marko Rauhamaa wrote:
Because he's one of the more prevalent boot licking rabbid
fanboys of GvR.
You are out of line, but then, you never pretended otherwise.
Marko
--
On Thu, Jan 22, 2015 at 7:16 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Meanwhile, there's the strange decision to implement type hints for
local variables # comment lines. I have an hard time wrapping my head
around this one. Really, comments!?
Yes, really. There is
On Thu, Jan 22, 2015 at 3:08 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Thu, Jan 22, 2015 at 2:56 PM, Emile van Sebille em...@fenx.com wrote:
I've been lightly scanning and following the PEP 484 discussion, and one
point I don't think I've seen mentioned is how you might hint a function
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21862
___
On Thu, Jan 22, 2015 at 2:12 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
def adder(a,b): return a+b
This is one of the pythonic idioms that help with polymorphic functions. Is
there a proposal for providing hinting for these?
You can use TypeVar for that.
T = TypeVar('T')
def adder(a: T,
New submission from STINNER Victor:
test_license_exists_at_url() of test_site fails on x86 XP-4 3.4 buildbot. I
don't understand why the test pass on x86 XP-4 3.x, is it the same server?
http://buildbot.python.org/all/builders/x86%20XP-4%203.4/builds/747/steps/test/logs/stdio
STINNER Victor added the comment:
The URL is http://www.python.org/psf/license/
wget tells me that the URL is directed to https://www.python.org/psf/license/
which is redirected to https://docs.python.org/license.html which is redirected
to https://docs.python.org/2/license.html.
According
New submission from CliffM:
calendar.py ( lines 17,18 ) is not used :
# Exception raised for bad input (with string parameter for details)
error = ValueError
This could either be deleted OR used as the superclass in the next two class
declarations as the comment suggests.
--
Joshua Landau added the comment:
Why would that simplify things?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
Python-bugs-list
Neil Girdhar added the comment:
Sorry, I don't know enough about how you were planning on using the stack
pointer difference to produce good errors. I thought that if you waited for
the CALL_FUNCTION to be happening before reporting errors about duplicate
parameters it might simplify that
Changes by SilentGhost ghost@gmail.com:
--
keywords: +easy
versions: +Python 3.5 -Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23304
___
On Thu, Jan 22, 2015 at 2:56 PM, Emile van Sebille em...@fenx.com wrote:
I've been lightly scanning and following the PEP 484 discussion, and one
point I don't think I've seen mentioned is how you might hint a function
that accepts different types, eg:
def adder(a,b): return a+b
This is one
Joshua Landau added the comment:
I phrased that badly. Whilst I can see minor simplifications to
BUILD_MAP_UNPACK, the only way to add more information to CALL_FUNCTION_XXX
would be through EXTENDED_ARG. This seems like it would outweigh any benefits,
and the tiny duplication of error
STINNER Victor added the comment:
Currently test_largefile is failing on the Windows buildbots
Oh yes, I just noticed the following bug on AMD64 Windows8 3.x:
http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/307/steps/test/logs/stdio
[352/391/1] test_largefile
Assertion
Berker Peksag added the comment:
Here's a doc patch.
--
nosy: +berker.peksag
Added file: http://bugs.python.org/file37824/issue5309-doc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5309
On 1/21/2015 8:30 PM, Steven D'Aprano wrote:
snip
Here's an example from PEP 484:
def greeting(name: str) - str:
return 'Hello ' + name
I've been lightly scanning and following the PEP 484 discussion, and one
point I don't think I've seen mentioned is how you might hint a function
Neil Girdhar added the comment:
In that case, another option would be to use that to send the number of maps
to CALL_FUNCTION and let it do the BUILD_MAP_UNPACK stuff itself. Would that
simplify your ideas regarding error handling?
--
___
Python
Roundup Robot added the comment:
New changeset 1e3a1af0705f by Victor Stinner in branch '3.4':
Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()
https://hg.python.org/cpython/rev/1e3a1af0705f
--
nosy: +python-dev
___
Python tracker
STINNER Victor added the comment:
Issue fixed: IocpProactor.connect_pipe() doesn't use blocking operations
anymore, it's now implemented as polling with non blocking operations.
--
resolution: - fixed
status: open - closed
___
Python tracker
In article 6eb91c4b-92ff-44a8-b5a9-6ef04c71f...@googlegroups.com,
rantingrickjohn...@gmail.com says...
So if the purpose is static analysis, what is the
justification for injecting new syntax into function sigs?
1. Annotations where created exactly for this purpose. So there's some
Am 05.01.15 um 14:20 schrieb Rick Johnson:
*GASP*! Of course all this could be avoided if those short-
sighted TK folks would have allowed the programmer to define
the pattern!
ಠ_ಠ
Well, it turns out you actually can. We don't have Guido's time machine,
but still there is a configuration
On 2015-01-22, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
You can't use raise as a parameter name, since that's a keyword. Using
floats for money is Just Wrong and anyone who does so should have their
licence to program taken away. And I really don't understand what this
Brett Cannon added the comment:
That leading underscore in the method name means it is not a public API and
thus changes are allowed without any backwards-compatibility guarantees.
Mercurial will need to update their code to handle this if they want to
continue to use the method.
--
Chris Angelico wrote:
Hold on a moment, how often do you really do this kind of thing with
might be one of them or a sequence?
isinstance(obj, one_class_or_tuple_of_classes)
issubclass(cls, one_class_or_tuple_of_classes)
mystr.startswith(prefix_or_tuple_of_prefixes)
On Fri, Jan 23, 2015 at 1:16 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Mario Figueiredo wrote:
def handle_employees(emp: Union[Employee, Sequence[Employee]], raise:
Union[float, Sequence[float]]) - Union[Employee, Sequence[Employee],
None]:
Using
floats for money is
Changes by R. David Murray rdmur...@bitdance.com:
--
versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23298
___
On Fri, Jan 23, 2015 at 1:57 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Chris Angelico wrote:
Hold on a moment, how often do you really do this kind of thing with
might be one of them or a sequence?
isinstance(obj, one_class_or_tuple_of_classes)
issubclass(cls,
HOST is send by the keyboard. It´s the IPv6 address of my interface eth0.
For example, FE80::0202:B3FF:FE1E:8329.
Thanks
--
View this message in context:
http://python.6.x6.nabble.com/Socket-ICMP-V6-error-tp5083962p5083982.html
Sent from the Python - python-list mailing list archive at
R. David Murray added the comment:
Well, it doesn't make much sense in the English language sense. If I got that
error message I'd have no idea what was wrong.
It sounds like what you want to do is dynamically make some arguments be
required, depending on whether or not other arguments are
Ian Kelly ian.g.ke...@gmail.com writes:
T = TypeVar('T')
def adder(a: T, b: T) - T: ...
I'm not thrilled about having to actually declare T in this sort of
situation, but I don't have a better proposal.
Oh man, that's ugly. Maybe a decorator would be a bit less awful:
@-typevar T
Joshua Landau added the comment:
We wouldn't actually need to raise it from somewhere else; the line numbering
and frame are already correct. The only difficulty is that the traceback
currently says
# func(a=1, **{'a': 1})
TypeError: func() got multiple values for keyword argument
Howdy all,
I am pleased to announce the release of version 2.0.4 of the
‘python-daemon’ library.
The current release is always available at
URL:https://pypi.python.org/pypi/python-daemon/.
The project's forums and VCS are hosted at Alioth
URL:https://alioth.debian.org/projects/python-daemon/.
Joshua Landau added the comment:
The function object that's on the stack.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
On Friday, January 23, 2015 at 2:55:38 AM UTC+5:30, Ian wrote:
On Thu, Jan 22, 2015 at 7:16 AM, Steven D'Aprano wrote:
Meanwhile, there's the strange decision to implement type hints for
local variables # comment lines. I have an hard time wrapping my head
around this one. Really,
Neil Girdhar added the comment:
when does that get pushed on the stack?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
Joshua Landau added the comment:
Just before any arguments to the function.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
___
On 1/22/2015 8:15 PM, Rick Johnson wrote:
Okay, i have found a solution to the type hinting problem
that will appease both sides. On one side we have those who
are proposing type hinting annotations within function sigs,
and on the other side, we have those who oppose the
implementation of type
On 2015-01-23 01:15, Rick Johnson wrote:
Note: This is the closest you're going to get to a PEP from me!
Okay, i have found a solution to the type hinting problem
that will appease both sides. On one side we have those who
are proposing type hinting annotations within function sigs,
and on the
On 1/22/2015 7:40 PM, Sturla Molden wrote:
On 22/01/15 21:03, Mario Figueiredo wrote:
That is fine. But then the problem isn't type hinting, is it? Neither I
think you are suggesting we don't introduce language because there are
bad project managers out there.
The problem is then bad project
On Fri, Jan 23, 2015 at 2:11 PM, Rustom Mody rustompm...@gmail.com wrote:
1. [1,2,3] + [4,5,6]
uses the same symbol for an unrelated operation
1 + 4
They're not unrelated operations. Maybe in the purity of mathematics
they're distinct, but in the practical world of getting-stuff-done
On 1/22/2015 3:44 PM, Rick Johnson wrote:
On Thursday, January 22, 2015 at 12:28:47 PM UTC-6, Mark Lawrence wrote:
Evidence in completely the opposite direction if I'm
reading this correctly [snip link]
The main use case of type hinting is static analysis
using an external tool without
Joshua Landau added the comment:
No, that happens in CALL_FUNCTION_KW:
import dis
dis.dis(f(x=1, **{'x': 1}))
1 0 LOAD_NAME0 (f)
3 LOAD_CONST 0 ('x')
6 LOAD_CONST 1 (1)
9 LOAD_CONST
On Fri, Jan 23, 2015 at 2:22 PM, Terry Reedy tjre...@udel.edu wrote:
This idea is so brilliant that it is already an option in mypy and is part
of the new type-hint proposal. The separate type-hint files are called
'stub files'.
It's worth pointing out, too, that the idea isn't panaceaic -
1 - 100 of 204 matches
Mail list logo