[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-21 Thread Fabian
Fabian added the comment: It is consistent as in it happens on every run of the test suite. But unfortunately I haven't checked if it's always happening at the same place. Luckily we have 4 builds on Travis with 3.6 and in all it happened from the beginning and got 100 matches for

[issue24485] Function source inspection fails on closures

2015-07-21 Thread Yury Selivanov
Yury Selivanov added the comment: Meador, the patch looks OK. Could you please commit it yourself? -- assignee: - meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24485 ___

Re: Where is the c source code of the import mechanism that ignores invalid directory?

2015-07-21 Thread Mark Lawrence
On 21/07/2015 16:35, Shiyao Ma wrote: Hi, It looks to me that the import system of Python will ignore invalid directories and cache the result in memory. For example, the following code: paste here: https://bpaste.net/show/b144deb42620 #!/usr/bin/env python3 import sys import os import

Re: Where is the c source code of the import mechanism that ignores invalid directory?

2015-07-21 Thread Shiyao Ma
Yep. I followed from bltmodule.c(the import function) and got to the import.c file, and finally got lost. Regards. On Tue, Jul 21, 2015 at 12:16 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 21/07/2015 16:35, Shiyao Ma wrote: Hi, It looks to me that the import system of Python will

[issue23591] Add IntFlags

2015-07-21 Thread Ethan Furman
Ethan Furman added the comment: My experience is that a module maintainer, or somebody claiming to speak for the module maintainer, can close any issue in their area at any time regardless of the number of core devs in favor of a change. Whatever. I'll leave this open and write up a spec of

Re: Can I copy/paste Python code?

2015-07-21 Thread ryguy7272
On Monday, July 20, 2015 at 10:50:09 PM UTC-4, ryguy7272 wrote: I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every time I

[issue24653] Mock.assert_has_calls([]) is surprising for users

2015-07-21 Thread Robert Collins
Robert Collins added the comment: Ok, so as a doc bug this should still be tracked here - I'm going to reopen it to reflect that, hope thats ok. -- assignee: - docs@python components: +Documentation nosy: +docs@python resolution: not a bug - status: closed - open title:

Re: Is there a way to install ALL Python packages?

2015-07-21 Thread Todd
On Tue, Jul 21, 2015 at 2:10 PM, tjohnson tandrewjohn...@outlook.com wrote: On 7/20/2015 10:57 PM, ryguy7272 wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Carl Meyer
Carl Meyer added the comment: Er, I meant `AttributeError`, of course... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24651 ___ ___

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Carl Meyer
Carl Meyer added the comment: As a frequent and long-time user of mock, the `assert_*` methods being on the mock object itself has always struck me as an unfortunate wart on an otherwise great library. The change to raise `AssertionError` on `assert_*` and `assret_*` feels like piling an ugly

Re: Should non-security 2.7 bugs be fixed?

2015-07-21 Thread Rick Johnson
On Tuesday, July 21, 2015 at 4:22:50 PM UTC-5, bream...@gmail.com wrote: It was actually Rustom who posted inaccurate data as only core-devs have commit rights. Well-well. We now find ourselves before the royal court of logic: If we are to take your statement as fact, then only two

[issue12067] Doc: remove errors about mixed-type comparisons.

2015-07-21 Thread Martin Panter
Martin Panter added the comment: Patch v15. No doc changes, but I refactored the test code: * Manually merged with recent changes * Separate assert_equality_only() and assert_total_order() test methods. Hopefully this is a bit simpler for people to understand and review, and avoids suggesting

Re: Is there a way to install ALL Python packages?

2015-07-21 Thread ryguy7272
On Monday, July 20, 2015 at 10:57:47 PM UTC-4, ryguy7272 wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages, like numpy and pandas, but nothing will

[issue24681] Put most likely test first is set_add_entry()

2015-07-21 Thread Raymond Hettinger
New submission from Raymond Hettinger: Since the *found_active* exit is like the *found_error* exit in that it makes no further use of *entry*, it can be moved before the table/entry_key check whose purpose is to make sure the *entry* pointer is still valid. This change doesn't apply to

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53c0c8914ad0 by Zachary Ware in branch '2.7': Issue #24603: Update Windows build to use OpenSSL 1.0.2d https://hg.python.org/cpython/rev/53c0c8914ad0 New changeset f4cd9ac378d7 by Zachary Ware in branch '3.4': Issue #24603: Update the Windows build

[issue24682] Add Quick Start: Communications section to devguide

2015-07-21 Thread Carol Willing
New submission from Carol Willing: Add a Quick Start: Communications section to devguide (or Q S: Community Interaction) as discussed on python-dev mailing list today. The Quick Start: Communications section should be brief, link to other sections in the devguide, and give contributor's

Re: Address field [was: Integers with leading zeroes]

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 2:31 PM, Jason Friedman jsf80...@gmail.com wrote: Of course, most of the time, I advocate a single multi-line text field Address, and let people key them in free-form. No postcode field whatsoever. I'm curious about that statement. I could see accepting input as you

Re: Can I copy/paste Python code?

2015-07-21 Thread Chris Angelico
On Tue, Jul 21, 2015 at 10:29 PM, Christian Gollwitzer aurio...@gmx.de wrote: On 21.07.2015 04:55, Chris Angelico wrote: On Tue, Jul 21, 2015 at 12:49 PM, ryguy7272 ryanshu...@gmail.com wrote: I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code,

Re: Is there a way to install ALL Python packages?

2015-07-21 Thread ryguy7272
On Monday, July 20, 2015 at 10:57:47 PM UTC-4, ryguy7272 wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages, like numpy and pandas, but nothing will

Where is the c source code of the import mechanism that ignores invalid directory?

2015-07-21 Thread Shiyao Ma
Hi, It looks to me that the import system of Python will ignore invalid directories and cache the result in memory. For example, the following code: paste here: https://bpaste.net/show/b144deb42620 #!/usr/bin/env python3 import sysimport osimport shutil

[issue24669] inspect.getsource() returns the wrong lines for coroutine functions

2015-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f02c5bf59fbb by Yury Selivanov in branch '3.5': Issue #24669: Fix inspect.getsource() for 'async def' functions. https://hg.python.org/cpython/rev/f02c5bf59fbb New changeset 6629773fef63 by Yury Selivanov in branch 'default': Merge 3.5 (Issue

[issue24669] inspect.getsource() returns the wrong lines for coroutine functions

2015-07-21 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, Kai! -- resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24669

Re: Can I copy/paste Python code?

2015-07-21 Thread Ben Bacarisse
Christian Gollwitzer aurio...@gmx.de writes: On 21.07.2015 04:55, Chris Angelico wrote: On Tue, Jul 21, 2015 at 12:49 PM, ryguy7272 ryanshu...@gmail.com wrote: [...] Every time I paste in any kind of code, it seems like everything is immediately left-justified, and then nothing works. snip

[issue22123] Provide a direct function for types.SimpleNamespace()

2015-07-21 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___

Re: Integers with leading zeroes

2015-07-21 Thread Antoon Pardon
On 07/19/2015 07:39 AM, Steven D'Aprano wrote: In Python 2, integer literals with leading zeroes are treated as octal, so 09 is a syntax error and 010 is 8. This is confusing to those not raised on C-style octal literals, so in Python 3 leading zeroes are prohibited in int literals. Octal is

Re: Can I copy/paste Python code?

2015-07-21 Thread Laura Creighton
In a message of Wed, 22 Jul 2015 00:48:06 +1000, Chris Angelico writes: Actually, maybe don't use PDF at all. I keep having to help my Mum deal with stupid problems with PDF documents she gets, and I'm never sure whether the fault is with the PDF creation software, the human operating said

Re: Proposed keyword to transfer control to another function

2015-07-21 Thread Antoon Pardon
On 07/19/2015 02:21 AM, Chris Angelico wrote: On Sun, Jul 19, 2015 at 9:32 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Personally I'd be fine with your initial syntax, but something else might be needed to get it past Guido. He didn't like my 'cocall f()' construct in PEP 3152,

Re: Integers with leading zeroes

2015-07-21 Thread Emile van Sebille
On 7/21/2015 10:58 AM, sohcahto...@gmail.com wrote: IMO, leading zeroes just looks like visual noise, and if I wanted to align numbers, I'd just use spaces. Aligning numbers using spaces doesn't always align -- using zeros does. Emile --

Re: Where is the c source code of the import mechanism that ignores invalid directory?

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 2:44 AM, Shiyao Ma i...@introo.me wrote: Yep. I followed from bltmodule.c(the import function) and got to the import.c file, and finally got lost. What version of CPython are you looking at? If it's a sufficiently recent version, you may want to look at importlib

Re: Can I copy/paste Python code?

2015-07-21 Thread Oscar Benjamin
On Tue, 21 Jul 2015 at 17:16 Ben Bacarisse ben.use...@bsb.me.uk wrote: Christian Gollwitzer aurio...@gmx.de writes: On 21.07.2015 04:55, Chris Angelico wrote: Sounds like a flaw in the PDF - it creates indentation in some way other than leading spaces/tabs. PDF never uses tabs and

Re: Proposed keyword to transfer control to another function

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 3:33 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: On 07/19/2015 02:21 AM, Chris Angelico wrote: On Sun, Jul 19, 2015 at 9:32 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Personally I'd be fine with your initial syntax, but something else might be

Re: Noob in Python. Problem with fairly simple test case

2015-07-21 Thread Jason P.
El miércoles, 15 de julio de 2015, 14:12:08 (UTC+2), Chris Angelico escribió: On Wed, Jul 15, 2015 at 9:44 PM, Jason P. suscrici...@gmail.com wrote: I can't understand very well what's happening. It seems that the main thread gets blocked listening to the web server. My intent was to spawn

Re: Noob in Python. Problem with fairly simple test case

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 3:38 AM, Jason P. suscrici...@gmail.com wrote: Despite the impression that surely I gave, I'm quite familiar with programming and general bug hunting rules. The problem is that I'm inexperienced with Python and the subtle details of multiple threads ;) Heh, it

Re: Integers with leading zeroes

2015-07-21 Thread sohcahtoa82
On Tuesday, July 21, 2015 at 10:22:44 AM UTC-7, Antoon Pardon wrote: On 07/19/2015 07:39 AM, Steven D'Aprano wrote: In Python 2, integer literals with leading zeroes are treated as octal, so 09 is a syntax error and 010 is 8. This is confusing to those not raised on C-style octal

Re: convert output to list(and nested dictionary)

2015-07-21 Thread Pablo Lucena
​str.split and re are a nice quick way to do it: def get_data(data): import re port_re = re.compile(r'(\w+)\((\S+-\S+)\)') cidr_re = re.compile(r'\[(.*?)\]') _, proto_port, cidr = data.rsplit(:, 2) port_match = port_re.search(proto_port) proto, port = port_match.group(1), port_match.group(2)

[issue24619] async/await parser issues

2015-07-21 Thread Nick Coghlan
Nick Coghlan added the comment: Patch test cases look good to me. I'm so used to thinking of the tokenisation phase as a linear token stream that it never occurred to me to just count the function nesting directly to determine if the async def tokenisation rules are in effect - it's a very

Re: convert output to list(and nested dictionary)

2015-07-21 Thread max scalf
Thank you all. I have gotten some great response, so i am going to play around with this and see how it turns out. As Pablo pointed out, best way to learn is to try it out and see how it goes. Thanks again and i will keep the list posted. On Tue, Jul 21, 2015 at 8:03 PM, Pablo Lucena

Re: Can I copy/paste Python code?

2015-07-21 Thread Steven D'Aprano
On Wed, 22 Jul 2015 03:25 am, Laura Creighton wrote: Lots of the problems are with the free reader, adobe acrobat. It is designed so that the user is kept very much in a straight-jacket which is a problem when your Mum needs, for instance, things to be in 36 point for her to be able to read

Re: Can I copy/paste Python code?

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 11:03 AM, Michael Torrie torr...@gmail.com wrote: On 07/21/2015 06:12 PM, Grant Edwards wrote: I don't want to close the TOC panel. I want to collapse all the entries in the TOC tree widget _in_ the TOC panel. Ahh. Atril does not do this either. It can collapse the

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Kevin Benton
Kevin Benton added the comment: What about other methods/properties like called, call_count, and reset_mock? It seems that they should be removed as well to be consistent with the reason for this change. -- nosy: +kevinbenton ___ Python tracker

[issue24680] typo in documentation, section extending python

2015-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91b738cfdc2f by Zachary Ware in branch '2.7': Issue #24680: Remove random backslash. Patch by cdz. https://hg.python.org/cpython/rev/91b738cfdc2f New changeset cf0011b6ebbd by Zachary Ware in branch '3.4': Issue #24680: Remove random backslash.

Re: convert output to list(and nested dictionary)

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 7:12 AM, max scalf oracle.bl...@gmail.com wrote: SecurityGroup:default sg-e1304484 inbound: IPPermissions:tcp(80-80) source: [67.184.225.222/32] Here is the output i am looking for rule1 = [{ 'cidr': '67.184.225.222/32', 'proto': 'tcp',

Re: Integers with leading zeroes

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 10:55 AM, Steven D'Aprano st...@pearwood.info wrote: Sometimes these numbers represent codeblocks of a fixed number of digits. Always writing those numbers with this number of digits helps being aware of this. It is also easier for when you need to know how many leading

Re: convert output to list(and nested dictionary)

2015-07-21 Thread Steven D'Aprano
On Wed, 22 Jul 2015 07:12 am, max scalf wrote: Hello all, For Each SecurityGroup, how can i convert that into a List that in turn will have a dictionary of the cidr block, protocol type and the port... Start with this: def sg_to_list(sg): return [rule_to_dict(r) for r in sg.rules]

[issue24680] typo in documentation, section extending python

2015-07-21 Thread cdz
New submission from cdz: In section 3. Building C and C++ Extensions with distutils there is unnecessary \ in the middle of the line. Seems to be bulk (re)formatting issue. Simple patch fixing the issue is attached. -- assignee: docs@python components: Documentation files:

[issue21750] mock_open data is visible only once for the life of the class

2015-07-21 Thread Robert Collins
Robert Collins added the comment: So the 1.1.4 behaviour matches that of a VFS most closely. But, see the earlier messages, it does do only and precisely because it breaks regular mock idioms. Thus I think we're better off with the new patch, which addresses the issue with reuse of the mocks

[issue12067] Doc: remove errors about mixed-type comparisons.

2015-07-21 Thread Berker Peksag
Berker Peksag added the comment: I think we can commit documentation and tests separately. I just did a quick review of the test changes and I will add some review comments later (sorry, lack of time :)). -- nosy: +berker.peksag ___ Python tracker

Address field [was: Integers with leading zeroes]

2015-07-21 Thread Jason Friedman
Of course, most of the time, I advocate a single multi-line text field Address, and let people key them in free-form. No postcode field whatsoever. I'm curious about that statement. I could see accepting input as you describe above, but I'm thinking you'd want to *store* a postcode field. --

Re: Can I copy/paste Python code?

2015-07-21 Thread Michael Torrie
On 07/21/2015 06:12 PM, Grant Edwards wrote: I don't want to close the TOC panel. I want to collapse all the entries in the TOC tree widget _in_ the TOC panel. Ahh. Atril does not do this either. It can collapse the TOC to the first level items but not the tree itself. I'm curious as to

Re: Integers with leading zeroes

2015-07-21 Thread Steven D'Aprano
On Wed, 22 Jul 2015 11:10 am, Chris Angelico wrote: On Wed, Jul 22, 2015 at 10:55 AM, Steven D'Aprano st...@pearwood.info wrote: Sometimes these numbers represent codeblocks of a fixed number of digits. Always writing those numbers with this number of digits helps being aware of this. It is

Re: Integers with leading zeroes

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 12:14 PM, Steven D'Aprano st...@pearwood.info wrote: On Wed, 22 Jul 2015 11:10 am, Chris Angelico wrote: On Wed, Jul 22, 2015 at 10:55 AM, Steven D'Aprano st...@pearwood.info wrote: Sometimes these numbers represent codeblocks of a fixed number of digits. Always

Re: Integers with leading zeroes

2015-07-21 Thread Steven D'Aprano
On Wed, 22 Jul 2015 03:21 am, Antoon Pardon wrote: On 07/19/2015 07:39 AM, Steven D'Aprano wrote: In Python 2, integer literals with leading zeroes are treated as octal, so 09 is a syntax error and 010 is 8. This is confusing to those not raised on C-style octal literals, so in Python 3

Re: convert output to list(and nested dictionary)

2015-07-21 Thread Chris Angelico
On Wed, Jul 22, 2015 at 11:03 AM, Pablo Lucena plucen...@gmail.com wrote: str.split and re are a nice quick way to do it: def get_data(data): import re port_re = re.compile(r'(\w+)\((\S+-\S+)\)') cidr_re = re.compile(r'\[(.*?)\]') _, proto_port, cidr = data.rsplit(:, 2) port_match =

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2015-07-21 Thread Martin Panter
Martin Panter added the comment: FWIW I have wondered in the past why these constants were missing. I would be more likely to use them when checking an exit status than when setting one. I typically do “raise SystemExit()” or “raise SystemExit('Error message')”, which implicitly sets the

[issue24680] typo in documentation, section extending python

2015-07-21 Thread Martin Panter
Martin Panter added the comment: Nice and obvious fix, looks like it also applies to Python 2. -- nosy: +vadmium stage: - commit review versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24680] typo in documentation, section extending python

2015-07-21 Thread Zachary Ware
Zachary Ware added the comment: Fixed! Thanks for the report and patch, cdz, and thanks for the triage, Martin. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24680 ___

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Felipe
Felipe added the comment: Not sure it's my place to comment here, but here are my 2 cents: I think Robert's proposal to have module functions is the only way to have a user-friendly and robust API, and it solves more than just the assert typo problem. (And yes, it would require moving the

Re: Interactive, test-driven coding challenges (algorithms and data structures)

2015-07-21 Thread Orochi
On Monday, 13 July 2015 16:50:54 UTC+5:30, donne@gmail.com wrote: Repo: https://github.com/donnemartin/interactive-coding-challenges Shortlink: https://bit.ly/git-code Hi Everyone, I created a number of interactive, test-driven coding challenges. I will continue to add to the

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would use test.support.swapattr(). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24678 ___

[issue21750] mock_open data is visible only once for the life of the class

2015-07-21 Thread Robert Collins
Robert Collins added the comment: Fixup patch. I've tested this with the reported failures and they all work. -- Added file: http://bugs.python.org/file39967/issue-21750-2.patch ___ Python tracker rep...@bugs.python.org

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-21 Thread Fabian
Fabian added the comment: Yes see the tests/README.rst. And afaik do you only need to have requests and six installed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Patrick Westerhoff
Changes by Patrick Westerhoff patrickwesterh...@gmail.com: -- nosy: +poke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24651 ___ ___

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Jacek Kołodziej
New submission from Jacek Kołodziej: The typo in test_logging was discovered while working on #23883: in two tests the addCleanup call reverts the raiseEx*ec*ptions value (instead of raiseExceptions) in logging module and apparently that didn't manifest itself in any way. Patch attached.

[issue21750] mock_open data is visible only once for the life of the class

2015-07-21 Thread Robert Collins
Robert Collins added the comment: But - its worth discussing. Perhaps we should roll this all back, and just say 'use a vfs layer for tests like this'. The problem in doing that, is that the @patch def test_foo... use case is actually pretty common IME, and this conflicts with the @patch ...

[issue24613] array.fromstring Use After Free

2015-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Minimal example: import array a = array.array(B) a.fromstring(b'x'*0x1) a.fromstring(a) a.fromstring(a) In 3.x it doesn't work. An exception is raised: Traceback (most recent call last): File stdin, line 1, in module BufferError: cannot resize an

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: - serhiy.storchaka stage: - commit review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24678 ___

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20e2b980bb87 by Serhiy Storchaka in branch '3.4': Issue #24678: Fixed raiseExceptions typo in logging tests. https://hg.python.org/cpython/rev/20e2b980bb87 New changeset 7a54e400155f by Serhiy Storchaka in branch '3.5': Issue #24678: Fixed

Re: Can I copy/paste Python code?

2015-07-21 Thread Mark Lawrence
On 21/07/2015 18:25, Laura Creighton wrote: In a message of Wed, 22 Jul 2015 00:48:06 +1000, Chris Angelico writes: Actually, maybe don't use PDF at all. I keep having to help my Mum deal with stupid problems with PDF documents she gets, and I'm never sure whether the fault is with the PDF

Re: Integers with leading zeroes

2015-07-21 Thread sohcahtoa82
On Tuesday, July 21, 2015 at 11:07:43 AM UTC-7, Emile van Sebille wrote: On 7/21/2015 10:58 AM, sohcahto...@gmail.com wrote: IMO, leading zeroes just looks like visual noise, and if I wanted to align numbers, I'd just use spaces. Aligning numbers using spaces doesn't always align --

Re: Can I copy/paste Python code?

2015-07-21 Thread Grant Edwards
On 2015-07-21, Laura Creighton l...@openend.se wrote: Lots of the problems are with the free reader, adobe acrobat. It is designed so that the user is kept very much in a straight-jacket which is a problem when your Mum needs, for instance, things to be in 36 point for her to be able to read

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Jacek. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24678

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-21 Thread Eric Snow
Eric Snow added the comment: Thanks for the extra info. I'm going to see if I can reproduce the issue by running the pywikibot test suite locally. What's the best way to set that up? Are there instructions somewhere? As to the C implementation, it was first released (as a special

[issue21750] mock_open data is visible only once for the life of the class

2015-07-21 Thread Paul Koning
Paul Koning added the comment: Sure, you can use a vfs. That's true for a lot of mock functions; the benefit of mock, including mock_open, is that it provides an easier and better packaged way. The behavior expected is be like a file. So in that last example, if you open it twice, you've

[issue24653] Mock.assert_has_calls([]) is surprising for users

2015-07-21 Thread Antti Haapala
Changes by Antti Haapala an...@haapala.name: -- nosy: +ztane ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24653 ___ ___ Python-bugs-list mailing

Re: Integers with leading zeroes

2015-07-21 Thread sohcahtoa82
On Tuesday, July 21, 2015 at 11:38:53 AM UTC-7, sohca...@gmail.com wrote: On Tuesday, July 21, 2015 at 11:07:43 AM UTC-7, Emile van Sebille wrote: On 7/21/2015 10:58 AM, sohcahto...@gmail.com wrote: IMO, leading zeroes just looks like visual noise, and if I wanted to align numbers,

[issue24678] raiseExceptions typo fix in logging tests

2015-07-21 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: s/swapattr/swap_attr/g :) Done. -- Added file: http://bugs.python.org/file39968/test_logging_typo.v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24678

[issue14373] C implementation of functools.lru_cache

2015-07-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Antti Haapala
Changes by Antti Haapala an...@haapala.name: -- nosy: +ztane ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24651 ___ ___ Python-bugs-list mailing

Re: Should non-security 2.7 bugs be fixed?

2015-07-21 Thread breamoreboy
On Tuesday, July 21, 2015 at 4:04:30 AM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 9:17:11 PM UTC-5, Rustom Mody wrote: List of python committers: - 11081 Guido van Rossum [snip: long list] Thanks for posting this list of names. I had put in a

Re: Python Schduling

2015-07-21 Thread Irmen de Jong
On 21-7-2015 19:52, Madduri Anil kumar wrote: Hello Experts, I am new to Python Programming.I have to work on Python. I have a requirement to scheduling the script for every one hour. could you please let me know which packages will be more helpful for Scheduling. if you post any samples

Re: Can I copy/paste Python code?

2015-07-21 Thread Grant Edwards
On 2015-07-21, Emile van Sebille em...@fenx.com wrote: On 7/21/2015 1:32 PM, Grant Edwards wrote: But, it apears foxit reader is Windows-only so it's a moot point for Linux/Unix/Mac users. I've been happy with https://wiki.gnome.org/Apps/Evince on linux. I'm trying to switch from acroread

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Steve Dower
Steve Dower added the comment: Afraid it's not possible - that error comes from the loader, so we haven't had a chance to run anything yet. One option would be to put some sort of readme into the zip, but that seems to be optimising for the wrong behavior. If I were legitimately embedding

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Cody Piersall
Cody Piersall added the comment: Agreed. An ounce of data is worth a pound of theory as the saying goes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24679 ___

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Cody Piersall
New submission from Cody Piersall: Whenever I tried to run the embeddable zip file from https://www.python.org/downloads/windows/ for Python 3.5.0b3, the program crashes with the message The program can't start because api-ms-win-crt-math-l1-1-0.dll is missing from your computer. Try

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread R. David Murray
R. David Murray added the comment: You shouldn't need visual studio to install python using the installer. What verison of windows are you using? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24679

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread R. David Murray
R. David Murray added the comment: Woops, I see you already said and I missed it. We'll have to wait for Steve to take a look. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24679 ___

Python Schduling

2015-07-21 Thread Madduri Anil kumar
Hello Experts, I am new to Python Programming.I have to work on Python. I have a requirement to scheduling the script for every one hour. could you please let me know which packages will be more helpful for Scheduling. if you post any samples it would be more helpful. Thanks Regards,

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Steve Dower
Steve Dower added the comment: That's exactly the use case, and I might borrow your summary for the docs that I'll eventually write for it because you've summed it up really well. My biggest worry right now is that people will treat it as a portable install and run into exactly the issue that

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Cody Piersall
Cody Piersall added the comment: Yeah, having embeddable in the name is a good hint, I think. It was almost enough for me to not even try downloading it. Is it possible / even worth the time to give a more helpful error message? I'm not sure that it's possible, based on when the dll is

Re: Is there a way to install ALL Python packages?

2015-07-21 Thread tjohnson
On 7/21/2015 11:19 AM, ryguy7272 wrote: On Monday, July 20, 2015 at 10:57:47 PM UTC-4, ryguy7272 wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages,

[issue21750] mock_open data is visible only once for the life of the class

2015-07-21 Thread Robert Collins
Robert Collins added the comment: @pkoning in Python3.3 == mock 1.0.1, m = mock_open(read_data='f') m().read() 'f' m().read() 'f' x = m() x.read() 'f' x.read() 'f' x = m() y = m() x.read() 'f' y.read() 'f' in 3.4 == mock 1.1.{0,1,2,3}, and 1.2.0 m = mock_open(read_data='f')

Re: Can I copy/paste Python code?

2015-07-21 Thread Mark Lawrence
On 21/07/2015 21:32, Grant Edwards wrote: On 2015-07-21, Mark Lawrence breamore...@yahoo.co.uk wrote: On 21/07/2015 18:25, Laura Creighton wrote: Lots of the problems are with the free reader, adobe acrobat. It is designed so that the user is kept very much in a straight-jacket which is a

Re: Can I copy/paste Python code?

2015-07-21 Thread Emile van Sebille
On 7/21/2015 1:32 PM, Grant Edwards wrote: But, it apears foxit reader is Windows-only so it's a moot point for Linux/Unix/Mac users. I've been happy with https://wiki.gnome.org/Apps/Evince on linux. Emile -- https://mail.python.org/mailman/listinfo/python-list

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Cody Piersall
Changes by Cody Piersall cody.piers...@gmail.com: -- components: +Windows nosy: +paul.moore, tim.golden, zach.ware type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24679 ___

convert output to list(and nested dictionary)

2015-07-21 Thread max scalf
Hello all, For Each SecurityGroup, how can i convert that into a List that in turn will have a dictionary of the cidr block, protocol type and the port...so from output below, the SecurityGroup called default had 2 rules...allowing TCP port from 80 and 5500 to the source IP and then SecurityGroup

Re: Can I copy/paste Python code?

2015-07-21 Thread Grant Edwards
On 2015-07-21, Mark Lawrence breamore...@yahoo.co.uk wrote: On 21/07/2015 18:25, Laura Creighton wrote: Lots of the problems are with the free reader, adobe acrobat. It is designed so that the user is kept very much in a straight-jacket which is a problem when your Mum needs, for instance,

[issue23287] ctypes.util.find_library needlessly call crle on Solaris

2015-07-21 Thread John Beck
John Beck added the comment: First, there are two related but somewhat separate issues here. Regarding the patches attached to http://bugs.python.org/issue20664 they seem fine. In theory, they should not be needed, as though it is true that dump(1) moved from /usr/ccs/bin to /usr/bin in

[issue24679] Windows embeddable Python zip file crashes (cannot find a dll)

2015-07-21 Thread Cody Piersall
Cody Piersall added the comment: Ah! That makes sense. I still think the embeddable Python could be useful, but I don't actually have a vested interest in it at the moment. Mostly I feel like it would be useful if Python is an implementation detail of an application, and you want to make

[issue23574] datetime: support leap seconds

2015-07-21 Thread dlroo
dlroo added the comment: If you are using mx.DateTime make certain you do not use the .strftime method. If you use .strftime method and have a 60th second in your DateTime object it will crash python with no error message. This occurs because the .strftime method is fully inherited from

[issue24485] Function source inspection fails on closures

2015-07-21 Thread Meador Inge
Meador Inge added the comment: Will do. Thanks for the review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24485 ___ ___ Python-bugs-list

  1   2   3   >