[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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 ___

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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 ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

[issue23154] MSVC 2013 Express needlessly rebuilds code

2015-01-22 Thread Steve Dower
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

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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,

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
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

[issue23294] A typo in the tutorial

2015-01-22 Thread aruseni
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

[issue23300] An improper change in httplib.py

2015-01-22 Thread Guohua Ouyang
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

[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2015-01-22 Thread Martijn Pieters
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:

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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

Re: What killed Smalltalk could kill Python

2015-01-22 Thread Gene Heskett
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Steven D'Aprano
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

[issue23095] [Windows] asyncio: race condition when cancelling a _WaitHandleFuture

2015-01-22 Thread STINNER Victor
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

[issue23095] [Windows] asyncio: race condition when cancelling a _WaitHandleFuture

2015-01-22 Thread STINNER Victor
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:

An improper change in httplib.py

2015-01-22 Thread Guohua Ouyang
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

[issue23295] [Windows] asyncio: add UDP support to ProactorEventLoop

2015-01-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23295 ___ ___

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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 ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Rick Johnson
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*

Socket ICMP V6 error

2015-01-22 Thread ermanolillo
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,

[issue23009] selectors.EpollSelector.select raises exception when nothing to select.

2015-01-22 Thread Roundup Robot
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

[issue23297] ‘tokenize.detect_encoding’ is confused between text and bytes: no ‘startswith’ method on a byte string

2015-01-22 Thread STINNER Victor
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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,

[issue23009] selectors.EpollSelector.select raises exception when nothing to select.

2015-01-22 Thread Roundup Robot
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

python client call Java server by xmlrpc

2015-01-22 Thread fan . ding1
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
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,

Re: Python is DOOMED! Again!

2015-01-22 Thread Rick Johnson
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Marko Rauhamaa
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

Re: Socket ICMP V6 error

2015-01-22 Thread Chris Angelico
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

[issue23299] Documentation correction - 5.1.4. List Comprehensions

2015-01-22 Thread Liang Zhang
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

Re: An improper change in httplib.py

2015-01-22 Thread Mark Lawrence
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',

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Nicholas Cole
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

[issue21518] Expose RegUnloadKey in winreg

2015-01-22 Thread Claudiu Popa
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

[issue21518] Expose RegUnloadKey in winreg

2015-01-22 Thread Claudiu Popa
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 ___

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-01-22 Thread Claudiu Popa
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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

Python is DOOMED! Again!

2015-01-22 Thread Nicholas Cole
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
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,

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

[issue11024] imaplib: Time2Internaldate() returns localized strings

2015-01-22 Thread Alessio
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 ___

[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2015-01-22 Thread Berker Peksag
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

[issue23300] httplib is using a method that doesn't exist

2015-01-22 Thread Demian Brecht
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

Re: Python is DOOMED! Again!

2015-01-22 Thread random832
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

[issue23300] httplib is using a method that doesn't exist

2015-01-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Demian, sure, will do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23300 ___ ___ Python-bugs-list mailing

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___

[issue23301] ConfigParser does not handle square brackets in section name

2015-01-22 Thread R. David Murray
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.

[issue23299] Documentation correction - 5.1.4. List Comprehensions

2015-01-22 Thread R. David Murray
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

Re: Socket ICMP V6 error

2015-01-22 Thread Alain Ketterlin
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

Re: Socket ICMP V6 error

2015-01-22 Thread Chris Angelico
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 --

[issue23301] ConfigParser does not handle square brackets in section name

2015-01-22 Thread Sebastian Bank
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)

Re: What killed Smalltalk could kill Python

2015-01-22 Thread Emil Oppeln-Bronikowski
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Marko Rauhamaa
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 --

Re: Python is DOOMED! Again!

2015-01-22 Thread Ian Kelly
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Ian Kelly
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

[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2015-01-22 Thread Berker Peksag
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 ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Kaynor
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,

[issue23303] test_license_exists_at_url() of test_site fails on x86 XP-4 3.4 buildbot

2015-01-22 Thread STINNER Victor
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

[issue23303] test_license_exists_at_url() of test_site fails on x86 XP-4 3.4 buildbot

2015-01-22 Thread STINNER Victor
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

[issue23304] Unused Superclass in calendar.py

2015-01-22 Thread CliffM
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. --

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
Joshua Landau added the comment: Why would that simplify things? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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

[issue23304] Unused Superclass in calendar.py

2015-01-22 Thread SilentGhost
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 ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Ian Kelly
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

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
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

[issue23152] fstat64 required on Windows

2015-01-22 Thread STINNER Victor
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

[issue5309] distutils doesn't parallelize extension module compilation

2015-01-22 Thread Berker Peksag
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Emile van Sebille
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

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
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

[issue23293] [Windows] asyncio: race condition related to IocpProactor.connect_pipe()

2015-01-22 Thread Roundup Robot
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

[issue23293] [Windows] asyncio: race condition related to IocpProactor.connect_pipe()

2015-01-22 Thread STINNER Victor
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Mario Figueiredo
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

Re: apostrophe not considered with tkinter's wordstart and wordend

2015-01-22 Thread Christian Gollwitzer
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Jon Ribbens
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

[issue23300] An improper change in httplib.py

2015-01-22 Thread Brett Cannon
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. --

Re: Python is DOOMED! Again!

2015-01-22 Thread Steven D'Aprano
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)

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

[issue23298] Add ArgumentParser.add_mutually_dependence_group

2015-01-22 Thread R. David Murray
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 ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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,

Re: Socket ICMP V6 error

2015-01-22 Thread ermanolillo
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

[issue23298] Add ArgumentParser.add_mutually_dependence_group

2015-01-22 Thread R. David Murray
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Paul Rubin
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

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
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

[RELEASE] ‘python-daemon’ version 2.0.4 released

2015-01-22 Thread Ben Finney
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/.

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
Joshua Landau added the comment: The function object that's on the stack. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___

Re: Python is DOOMED! Again!

2015-01-22 Thread Rustom Mody
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,

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Neil Girdhar
Neil Girdhar added the comment: when does that get pushed on the stack? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
Joshua Landau added the comment: Just before any arguments to the function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-22 Thread Terry Reedy
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

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-22 Thread MRAB
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Terry Reedy
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Chris Angelico
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

Re: Python is DOOMED! Again!

2015-01-22 Thread Terry Reedy
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

[issue2292] Missing *-unpacking generalizations

2015-01-22 Thread Joshua Landau
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

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-22 Thread Chris Angelico
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   2   3   >