[issue21961] Add What's New for Idle.

2015-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just added a generic entry to the 3.4 and 3.5 What's New docs pointing people to idlelib/NEWS.txt. + idlelib and IDLE + + +Since idlelib implements the IDLE shell and editor and is not intended for +import by other programs, it gets

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Mark Lawrence
Mark Lawrence added the comment: FTR I've now built everything successfully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24268 ___ ___

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 18:09 CEST schreef Peter Otten: Cecil Westerhof wrote: Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: Cecil Westerhof wrote: Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you, Steve. A similar problem is on other platforms as well. This patch should fix it; could someone look at it? -- Added file: http://bugs.python.org/file39477/fix-dynload-init-name.patch ___ Python tracker

[issue14373] C implementation of functools.lru_cache

2015-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. I tried to write an implementation with locking, but it would be too complicated (much more complex than all proposed before patches), because recursive locks are needed. In any case I think that GIL is enough here. Locking in Python

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: That patch looks good to me. Totally didn't think to look for copy-paste issues... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24268 ___

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Larry Hastings
Larry Hastings added the comment: If it makes sense, can you guys check it in soon, like in real-time here? I tag 3.5 beta 1 in about an hour, and since this is a bug-fix it's legitimate to go in. -- ___ Python tracker rep...@bugs.python.org

[issue2528] Change os.access to check ACLs under Windows

2015-05-23 Thread Paul Moore
Changes by Paul Moore p.f.mo...@gmail.com: -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2528 ___ ___ Python-bugs-list

[issue23973] PEP 484 implementation

2015-05-23 Thread Guido van Rossum
Guido van Rossum added the comment: I've opened a separate bug (http://bugs.python.org/issue24272) for docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23973 ___

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: I think it's missing PyAPI_DATA, as it's probably supposed to be an external reference than a declaration. If it builds fine now, I'll commit that, but whoever made the change should confirm that's what it is supposed to be. --

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: It also required updating PC/python3.def to put the new functions into the stable API. This is the reason we should auto-gen that file (+Zach), to make sure that anything people can #include under the limited ABI can actually be used. Just double checking all

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset af167a62e2a3 by Steve Dower in branch 'default': Issue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI) https://hg.python.org/cpython/rev/af167a62e2a3 -- ___ Python tracker

[issue14373] C implementation of functools.lru_cache

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57776eee74f2 by Serhiy Storchaka in branch 'default': Issue #14373: Added C implementation of functools.lru_cache(). Based on https://hg.python.org/cpython/rev/57776eee74f2 -- nosy: +python-dev ___

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 20:13 CEST schreef Mark Lawrence: On 23/05/2015 18:30, Cecil Westerhof wrote: I should have checked better. I think I found a bug that made it look like PYTHONPATH does not work. In bash I give: echo $PYTHONPATH this gives: .:/home/cecil/Python/PythonLibrary

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Petr Viktorin
Petr Viktorin added the comment: Steve, could you please merge it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24268 ___ ___ Python-bugs-list

[issue23973] PEP 484 implementation

2015-05-23 Thread Guido van Rossum
Guido van Rossum added the comment: This was committed (rev 3e96d7ca3f51). I'm keeping this open because there is more to do (see https://github.com/ambv/typehinting/labels/bug). -- priority: release blocker - normal ___ Python tracker

[issue24272] PEP 484 docs

2015-05-23 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24272 ___

[issue24272] PEP 484 docs

2015-05-23 Thread Guido van Rossum
New submission from Guido van Rossum: Would be nice if there were more docs for the typing module (PEP 484). Looking for volunteers. (There's stuff in the PEP that can serve as a starting point.) Note: support for isinstance() and issubclass() will be withdrawn in beta 2. -- assignee:

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b5f5f8b26a6 by Steve Dower in branch 'default': Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin. https://hg.python.org/cpython/rev/7b5f5f8b26a6 -- ___ Python

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Mark Lawrence
Mark Lawrence added the comment: error C2079: 'PyModuleDef_Type' uses undefined struct '_typeobject' c:\cpython\include\moduleobject.h is occurring on both 32 and 64 bit release builds on Windows 8.1 VS2015. I don't know what is causing it but figured I'd better flag it up pronto, and as you

Re: Human Rights and Justice in Islam

2015-05-23 Thread hamilton
On 5/23/2015 8:11 AM, bv4bv4...@gmail.com wrote: Human Rights and Justice in Islam Description: A glimpse at the foundations of human rights laid by Islam. By islam-guide.com Islam provides many human rights for the individual. The following are some of these human rights that Islam

[RELEASE] Python 2.7.10

2015-05-23 Thread Benjamin Peterson
The next bugfix release of the Python 2.7.x series, Python 2.7.10, has been released. The only interesting change since the release candidate is a fix for a regression in cookie parsing. Downloads are available at: https://www.python.org/downloads/release/python-2710/ Report bugs at:

Re: need help with an accessibility prototype

2015-05-23 Thread Ned Deily
In article 201505230925.t4n9pnz8028...@fido.openend.se, Laura Creighton l...@openend.se wrote: In a message of Fri, 22 May 2015 23:31:19 -0700, Ned Deily writes: Tcl/Tk 8.4 is quite old and no longer maintained; 8.6.x is current, although 8.5.x is also still in use.

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for getting the Windows side sorted out folks, and my apologies for the breakage. The overlap between the current import system maintainers and Windows developers is unfortunately the null set :( -- ___ Python

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: Since you're up, any chance you can help diagnose these test failures: Traceback (most recent call last): File D:\buildarea\3.x.bolen-windows8\build\lib\test\test_importlib\extension\test_loader.py, line 93, in setUp assert self.spec AssertionError From

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: Actually, that probably means we're not building a new extension module on Windows, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24268 ___

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42ec976f627e by Steve Dower in branch 'default': Issue #24268: Adds PCBuild project to build _testmultiphase module. https://hg.python.org/cpython/rev/42ec976f627e -- ___ Python tracker

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Steve Dower
Steve Dower added the comment: Confirmed that when we build the module needed by the test, the test works fine :) Unfortunately, I think it missed the branch for b1, so people who install and run the test suite will see failures there. I'll make sure it gets into the 3.5 branch once that

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Steve Hayes
On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico ros...@gmail.com wrote: On Sat, May 23, 2015 at 4:46 PM, savitha devi savith...@gmail.com wrote: I am developing a web scraper code using HTMLParser. I need to extract text/email address from java script with in the HTMLCode.I am beginner level

[issue16991] Add OrderedDict written in C

2015-05-23 Thread Matthew Barnett
Matthew Barnett added the comment: In odict_new, if _odict_initialize fails, will the dict pointed to by od_inst_dict be deallocated? In odictiter_new, there's Py_INCREF(od);. If di-di_result == NULL fails, od isn't DECREFed. -- ___ Python tracker

mix-in classes

2015-05-23 Thread Dr. John Q. Hacker
The post on different types of inheritence... brought up a thought. Let's say, I'm adding flexibility to a module by letting users change class behaviors by adding different mix-in classes. What should happen when there's a name collision on method names between mix-ins? Since they're mix-ins,

[issue16991] Add OrderedDict written in C

2015-05-23 Thread Eric Snow
Eric Snow added the comment: Good catch. I've fixed odictiter_new in the feature branch. However, I'm not sure there's anything to be fixed in odict_new. It follows the same pattern as dict_new (over in Objects/dictobject.c). -- ___ Python

[issue16991] Add OrderedDict written in C

2015-05-23 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- hgrepos: +309 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___ ___ Python-bugs-list

[issue24254] Make class definition namespace ordered by default

2015-05-23 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- hgrepos: +310 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24254 ___ ___ Python-bugs-list

[issue24273] _scproxy.so causes EXC_BAD_ACCESS (SIGSEGV)

2015-05-23 Thread Jacob
New submission from Jacob: This looks very related to: http://bugs.python.org/issue13829 I have very simple test code that looks like this: import requests r = requests.get('http://www.google.com') print('requests.get() succeeded') The above code works fine. However, when:

[issue14373] C implementation of functools.lru_cache

2015-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Serhiy. I'll work on the next steps after the beta. -- assignee: serhiy.storchaka - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 2:10 PM, Ian Kelly ian.g.ke...@gmail.com wrote: Sigh. I blame this as much on the browser. There's no inherent reason why a connection to a site secured with a self-signed certificate is insecure. In fact it's definitely not. Sure it is. Without some prior reason to

[issue2528] Change os.access to check ACLs under Windows

2015-05-23 Thread eryksun
eryksun added the comment: In msg243815 you asked me to look over this patch. I hope this helps. For GetFileSecurity you need to also request LABEL_SECURITY_INFORMATION. To test this in Vista+, use a file in the root directory of the system drive. This will inherit a high integrity level w/

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-23 Thread Ram Rachum
Ram Rachum added the comment: Raymond: Thank you. So the discussion is back on adding a recipe to the docs. Brian: When I said possible issues, I followed that with a couple of issues with the example I uploaded (filter_example.py). -- ___ Python

[issue23377] HTTPResponse may drop buffer holding next response

2015-05-23 Thread Martin Panter
Martin Panter added the comment: Thanks for the reviewing. Here is http-buffer.v3.patch: * Merged with current code * Better HTTPResponse(sock) compatibility suggested by Demian * New HTTPConnection.request(close=True) feature also suggested by Demian. This sends “Connection: close” in the

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 4:46 PM, savitha devi savith...@gmail.com wrote: I am developing a web scraper code using HTMLParser. I need to extract text/email address from java script with in the HTMLCode.I am beginner level in python coding and totally lost here. Need some help on this. The java

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 05:31, Michael Torrie wrote: Sigh. I blame this as much on the browser. There's no inherent reason why a connection to a site secured with a self-signed certificate is insecure. The problem is *not* that the certificate is self-signed. It's that it's unknown previously to

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Petr Viktorin
Petr Viktorin added the comment: And here are all changes in a single patch. -- keywords: +patch Added file: http://bugs.python.org/file39471/pep0489.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24268

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Petr Viktorin
New submission from Petr Viktorin: Here is the implementation for the recently accepted PEP 489. Tested on Linux. -- files: pep0489.patches messages: 243893 nosy: encukou, eric.snow, ncoghlan priority: normal severity: normal status: open title: PEP 489 -- Multi-phase extension module

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me. -- nosy: +larry, rkuska ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23968 ___ ___ Python-bugs-list

[issue2528] Change os.access to check ACLs under Windows

2015-05-23 Thread Tim Golden
Tim Golden added the comment: Thanks for the very thorough review. This isn't going to make it into 3.5, but I'll rework it in the light of your comments and see if people are happy with it in the optional argument variation. -- ___ Python tracker

Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
I am developing a web scraper code using HTMLParser. I need to extract text/email address from java script with in the HTMLCode.I am beginner level in python coding and totally lost here. Need some help on this. The java script code is as below: script type='text/javascript' //!--

[issue24267] test_venv.EnsurePipTest.test_with_pip version conflict

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: There's two issues here: 1. The bundled pip should be upgraded to the recently released 7.0 (I believe we can do that after beta 1, due to the different-from-normal guidelines set up in PEP 453) 2. Neither the tests nor ensurepip itself should be touching the

[issue24267] test_venv.EnsurePipTest.test_with_pip triggers version check over network

2015-05-23 Thread Martin Panter
Martin Panter added the comment: Actually looks like I should have updated before I opened this bug. I just updated and I suspect revision 29b95625a07c (“Merge 3.4 into default, upgrading pip to 7.0.1”, a large binary change) fixed it for me. But I did wonder why removing -unetwork didn’t

[issue24254] Make class definition namespace ordered by default

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: types.prepare_class() also needs to be updated to use OrderedDict() by default. -- dependencies: +Add OrderedDict written in C ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24254

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-23 Thread Ethan Furman
Ethan Furman added the comment: It looks like we are pretty much neutral between the +1's and -1's. Antoine seems to be opposed on general principles against bloat, while I am for it on general principles of completeness. The recipe could still go in the docs for people to use on previous

[issue24267] test_venv.EnsurePipTest.test_with_pip version conflict

2015-05-23 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +dstufft, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24267 ___ ___ Python-bugs-list

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: I'll get this merged tonight so we make the beta1 deadline, but I expect the initial docs to be fairly rudimentary and requiring further updates. -- assignee: - ncoghlan versions: +Python 3.5 ___ Python tracker

[issue16991] Add OrderedDict written in C

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: I'd suggest also taking a look into whether or not the PEP 412 keysharing might be causing problems. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991

Re: need help with an accessibility prototype

2015-05-23 Thread Laura Creighton
In a message of Fri, 22 May 2015 23:31:19 -0700, Ned Deily writes: Tcl/Tk 8.4 is quite old and no longer maintained; 8.6.x is current, although 8.5.x is also still in use. http://www.tcl.tk/man/tcl8.6/TkCmd/keysyms.htm Ned Deily, n...@acm.org Thank you Ned. Old bookmark from when I needed

[issue23965] test_ssl failure on Fedora 22

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Digging into the test_options failure suggests Christian is right (although I think it has more to do with https://fedoraproject.org/wiki/Changes/CryptoPolicy than it does with FIPS): ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) bin(ctx.options)

[issue23969] please set a SOABI for MacOSX

2015-05-23 Thread Ned Deily
Ned Deily added the comment: If you want to recognize architecture specific sonames For OS X we don't have a need to recognize architecture specific sonames because we want to continue to defer to the operating system to make the decisions about which, if any, architecture binary to load from

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to tip the balance in favor of the -1. Antoine is right about this one. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195

[issue23509] Speed up Counter operators

2015-05-23 Thread Jörn Hees
Jörn Hees added the comment: I'm closing this because the OP's original concern about wanting an in-place operation was already solved Was it? Are you referring to http://bugs.python.org/issue13121 ? My main concern was that += is considerably slower than .update(), kind of catching me

[issue24267] test_venv.EnsurePipTest.test_with_pip version conflict

2015-05-23 Thread Martin Panter
New submission from Martin Panter: Recently when running the test suite on the code from the default Mercuiral branch, I have been seeing following failure. This only started happening in the last week or two. $ ./python -bWall -m test -v test_venv [. . .] test_with_pip

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195

[issue24056] Better expose closure, generator coroutine status of functions

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: I've also come to agree with Raymond that the repr may not be the best place for this additional information, and have updated the issue title accordingly. For example, as one possible alternative, we might be able to put something in the inspect module (e.g.

Re: Camelot a good tool for me

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 5:12 AM, Lele Gaifax l...@metapensiero.it wrote: Chris Angelico ros...@gmail.com writes: SQLAlchemy has its uses, and it does solve a number of issues in reasonably clean ways, but I don't like a few of its facets, including its peculiar way of doing foreign key

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like:

[issue24260] TabError behavior doesn't match documentation

2015-05-23 Thread Stefan Krah
Stefan Krah added the comment: Then pep-008 is wrong, too, since the implementation *does* allow Evgeny's example. The current implementation just checks if the same INDENT/DEDENT tokens are generated for tab widths 1 and 8. -- ___ Python tracker

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-05-23 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23237 ___ ___ Python-bugs-list

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 11:01 PM, Steven D'Aprano st...@pearwood.info wrote: I'm not saying that it is impossible to have a correct Unicode implemention using UTF-16, but I've never seen one. I suspect this is partly because, if you're aiming for correct Unicode semantics, UTF-8 offers

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the extraneous whitespace changes in modsupport.h, those are courtesy of running make patchcheck as part of preparing the commit. -- ___ Python tracker rep...@bugs.python.org

[issue24267] test_venv.EnsurePipTest.test_with_pip triggers version check over network

2015-05-23 Thread Donald Stufft
Donald Stufft added the comment: Yea, I already upgraded pip. I did forget that we'll want to add --disable-pip-version-check to the pip invocation inside of ensurepip. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24267

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 13:21, Tim Daneliuk wrote: Trust has context. You're going to that site to read an article. This is rather different than, say, going somewhere to transact commerce or move money. Sure, for your site it doesn't really make a difference. And, as I said before, having a

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through

[issue24260] TabError behavior doesn't match documentation

2015-05-23 Thread Stefan Krah
Stefan Krah added the comment: I would go further and forbid tabs after spaces entirely. Tabs used for indentation with spaces following for formatting are okay (though unusual in Python). -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: collections.Counter: Formatted the code in the See also section. collections.deque.remove: Removed the first occurrence of value. - Remove ... collections.deque.index (a followup from issue23704): Changed [, end] to [, stop] in the signature, because

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch is the one I'm looking to commit, but -R 3:3 shows significant reference leaks in test_importlib, and possible problems in other tests as well. I'm about to revert it to see if there were any pre-existing refleak issues before applying this.

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 11:11 PM, amber wrote: «» On 22/05/2015 21:40, Tim Daneliuk wrote: https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/ Quoting that article «And no, you couldn't get a C based OS to do what TPF does even if you did have a couple hundred million dollars to redo

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 08:54 PM, Terry Reedy wrote: On 5/22/2015 5:40 PM, Tim Daneliuk wrote: Lo these many years ago, I argued that Python is a whole lot more than a programming language: https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/ Perhaps something at tundraware needs

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 9:34 PM, Tim Chase python.l...@tim.thechases.com wrote: A self-signed certificate may be of minimal worth the *first* time you visit a site, but if you return to the site, that initial certificate's signature can be used to confirm that you're talking to the same site

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: […] My hobby-horse, Unicode, is a notable flaw in many languages - if you ask the user for information (in the most obvious way for whatever environment you're in, be that via a web browser request, or a GUI widget, or text entered at the console), can it cope equally

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: If only characters were represented as sequences UTF-16 code units in ECMAScript implementations like JavaScript, there would not be a problem beyond the BMP; Are you being sarcastic? This is Rhino: js var c =

[issue24270] PEP 485 (math.isclose) implementation

2015-05-23 Thread Nick Coghlan
New submission from Nick Coghlan: Tracking issue for the PEP 485 math.isclose() implementation: https://www.python.org/dev/peps/pep-0485/ Chris's implementation review request to python-dev: https://mail.python.org/pipermail/python-dev/2015-May/140031.html Working repo:

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 11:35 pm, Ned Batchelder wrote: On Saturday, May 23, 2015 at 9:01:29 AM UTC-4, Steven D'Aprano wrote: On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: If only characters were represented as sequences UTF-16 code units in ECMAScript implementations like

Re: Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
What I exactly want is the java script is in the html code. I am trying for a regular expression to find the email address embedded with in the java script. On Sat, May 23, 2015 at 2:31 PM, Chris Angelico ros...@gmail.com wrote: On Sat, May 23, 2015 at 4:46 PM, savitha devi savith...@gmail.com

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Jon Ribbens
On 2015-05-23, Michael Torrie torr...@gmail.com wrote: On 05/22/2015 10:10 PM, Ian Kelly wrote: There is still some value in TLS with a self-signed certificate in that at least the connection is encrypted and can't be eavesdropped by an attacker who can only read the channel, but there is no

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 11:49 PM, Chris Angelico wrote: When the information you're sharing is completely public, there's no point taking the overhead of encryption. I disagree. With two different ways to access data, the metadata about when you do- and do not use an encrypted channel can be useful to

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Chase
On 2015-05-23 11:10, Jon Ribbens wrote: On 2015-05-23, Michael Torrie torr...@gmail.com wrote: The same can be said of CA-signed certificates. I think you are falling into the trap of believing that all things are either perfect or they are worthless. CAs aren't perfect, but neither are

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Marko Rauhamaa
Johannes Bauer dfnsonfsdu...@gmx.de: I dislike CAs as much as the next guy. But the problem of distributing trust is just not easy to solve, a TTP is a way out. Do you have an alternative that does not at the same time to providing a solution also opens up obvious attack surface? Here's an

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 14:44, Marko Rauhamaa wrote: Johannes Bauer dfnsonfsdu...@gmx.de: I dislike CAs as much as the next guy. But the problem of distributing trust is just not easy to solve, a TTP is a way out. Do you have an alternative that does not at the same time to providing a solution also

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Ned Batchelder
On Saturday, May 23, 2015 at 9:01:29 AM UTC-4, Steven D'Aprano wrote: On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: If only characters were represented as sequences UTF-16 code units in ECMAScript implementations like JavaScript, there would not be a problem beyond the

[issue24260] TabError behavior doesn't match documentation

2015-05-23 Thread Mark Lawrence
Mark Lawrence added the comment: From https://www.python.org/dev/peps/pep-0008/ quote Tabs or Spaces? Spaces are the preferred indentation method. Tabs should be used solely to remain consistent with code that is already indented with tabs. Python 3 disallows mixing the use of tabs and

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/23/2015 01:55 AM, Johannes Bauer wrote: On 23.05.2015 05:31, Michael Torrie wrote: Sigh. I blame this as much on the browser. There's no inherent reason why a connection to a site secured with a self-signed certificate is insecure. The problem is *not* that the certificate is

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Initial implementation checked in at https://hg.python.org/cpython/rev/e729b946cc03 Larry, FYI regarding the refleak in test_importlib I just committed: as described in the commit message, I'm pretty sure it's a real refleak in the current PEP 489

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 10:44 pm, Marko Rauhamaa wrote: Johannes Bauer dfnsonfsdu...@gmx.de: I dislike CAs as much as the next guy. But the problem of distributing trust is just not easy to solve, a TTP is a way out. Do you have an alternative that does not at the same time to providing a

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f2e6f236202 by Nick Coghlan in branch 'default': Issue #24268: Address some PEP 489 refleaks https://hg.python.org/cpython/rev/7f2e6f236202 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-23 Thread Petr Viktorin
Petr Viktorin added the comment: FWIW, the remaining refleak occurs when unloading an extension module object. This is something that wasn't possible before PEP 489 -- extension modules were never deleted. -- ___ Python tracker

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24269 ___

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. I've applied all of it except for the expansion of code in the multiset example where I've keep the style of the itertools recipes. -- ___ Python tracker rep...@bugs.python.org

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24269 ___

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d92ce08de6a by Raymond Hettinger in branch 'default': Issue #24269: Minor doc fixups. https://hg.python.org/cpython/rev/4d92ce08de6a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue24204] string.strip() documentation is misleading

2015-05-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger resolution: - fixed stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24204

  1   2   >