Re: Classes

2014-11-02 Thread Denis McMahon
On Sat, 01 Nov 2014 12:42:10 -0400, Seymore4Head wrote: OK Maybe I misunderstood the question. My answer to you then is ..I don't know. I will have to think about it some more. The question (I thought) was to write a class for Square that inherited a class Rectangle but imposed on it

Re: Classes

2014-11-02 Thread Tim Delaney
On 2 November 2014 20:50, Denis McMahon denismfmcma...@gmail.com wrote: The question (I thought) was to write a class for Square that inherited a class Rectangle but imposed on it the additional constraints of a square over a rectangle, namely that length == width. I'm late to the party and

Re: Classes

2014-11-02 Thread Gregory Ewing
Steven D'Aprano wrote: Like all good Pythonistas[1], we hate Java and think that getter/setter methods are pointless. But come on, they're not *wrong*, What's wrong is the statement that getters and setters are necessary to allow the implementation to change without changing the interface.

Re: Classes

2014-11-02 Thread Denis McMahon
On Sun, 02 Nov 2014 21:32:13 +1100, Tim Delaney wrote: On 2 November 2014 20:50, Denis McMahon denismfmcma...@gmail.com wrote: The question (I thought) was to write a class for Square that inherited a class Rectangle but imposed on it the additional constraints of a square over a

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-02 Thread Cyd Haselton
On Sat, Nov 1, 2014 at 5:25 PM, Ned Deily n...@acm.org wrote: In article cahu5praf_9rkgyw5yzp4tqs3dzsx0qm70esunuknodcqztm...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton chasel...@gmail.com wrote: [...] Sure enough, nm -D libm.so

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Huhuai Fan
在 2014年11月2日星期日UTC+8上午8时31分39秒,Grant Edwards写道: On 2014-11-01, alister alister.nospam.w...@ntlworld.com wrote: The IETF motto is 'rouch consesus and running code' -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates) I don't get it, and googling didn't help. What is rouch

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
Dear Terry Reedy I am using operating system Windows 7. I put the HTML TreeBuilder / htm5 library into the Python2.7 folder. I read that the LXML Treebuilder /lmxl installs itself automatically to the Python2.7 installation, so that is why I am not having difficulty with that installation. I

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Peter Otten
Huhuai Fan wrote: Thanks for your help, but i have no idea to find a project that i can complete,i am now in perplexed for what to do Then write a small text-based brainstorming app! -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
I have proceeded to click on the 'setup.py' in the html5-0.999 lib and got a python console for a few seconds, this may have been the installation of the HTML5 parser/ treebuilder - I will have to put the code that did not work to it previously to it again, hopefully it will. --

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Mark Lawrence
On 02/11/2014 14:58, Simon Evans wrote: Dear Terry Reedy I am using operating system Windows 7. I put the HTML TreeBuilder / htm5 library into the Python2.7 folder. I read that the LXML Treebuilder /lmxl installs itself automatically to the Python2.7 installation, so that is why I am not having

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Mark Lawrence
On 02/11/2014 15:23, Simon Evans wrote: I have proceeded to click on the 'setup.py' in the html5-0.999 lib and got a python console for a few seconds, this may have been the installation of the HTML5 parser/ treebuilder - I will have to put the code that did not work to it previously to it

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Joel Goldstick
On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote: Thanks for your help, but i have no idea to find a project that i can complete,i am now in perplexed for what to do Then write a small text-based brainstorming app! --

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Abhiram
If you like math puzzles you can do the euler project stuff -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list Ooh. I had to jump onboard to defend this. Project Euler is an absolute delight to do with Python :) You should totally

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Grant Edwards
On 2014-11-02, Chris Angelico ros...@gmail.com wrote: On Sun, Nov 2, 2014 at 11:31 AM, Grant Edwards invalid@invalid.invalid wrote: On 2014-11-01, alister alister.nospam.w...@ntlworld.com wrote: The IETF motto is 'rouch consesus and running code' -- Scott Bradner (Open Sources, 1999

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
Dear Mark Lawrence, I have tried inputting the code in the first link, re: import lxml import lxml.etree import bs4.builder.htmlparser Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named htmlparser import bs4.builder._lxml import

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote: Thanks for your help, but i have no idea to find a project that i can complete,i am now in perplexed for what to do Then

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
I have got the html5lib-0.999.tar.gz and the HTMLParser-0.0.2.tar.gz files in my Downloads the problem is how I install them to Python2.7. The lxml-3.3.3.win32-py2.7 is an exe file, which upon clicking will install but obviously the html and the html5 installations are not so

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Mark Lawrence
On 02/11/2014 19:22, Simon Evans wrote: I have got the html5lib-0.999.tar.gz and the HTMLParser-0.0.2.tar.gz files in my Downloads the problem is how I install them to Python2.7. The lxml-3.3.3.win32-py2.7 is an exe file, which upon clicking will install but obviously the html and the html5

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Mark Lawrence
On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote: Thanks for your help, but i have no idea to find a project that i can complete,i

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Terry Reedy
On 11/2/2014 9:58 AM, Simon Evans wrote: Dear Terry Reedy I am using operating system Windows 7. I put the HTML TreeBuilder / htm5 library into the Python2.7 folder. Both packages should go in python27/Lib/site-packages, where a 'package' equals a directory with a __init__.py module. I

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Ned Batchelder
On 11/2/14 3:08 PM, Terry Reedy wrote: I can post the Traceback but all it says is that it doesn't recognise any input with 'html5lib' in it. I will post the console response if it is important, but I can't see how it is relevan t to my request - which is how do I get these 'treebuilder/

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote:

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Seymore4Head
On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten __pete...@web.de wrote: Huhuai Fan wrote:

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-02 Thread Ned Deily
In article cahu5pryq3xegtd-7ahzmdbwk32nprfxz24dfdm1oj-wnmyj...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: Just checking: is sincos() the same as sin() and cos()? Nm output for my toolchain's libm does show sin() and cos() just not sincos() See, this is what you get when you ask

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
Oh I don't mind quoting console output, I just thought I'd be sparing you unnecessary detail. output was going nicely as I input text from my 'Getting Started with Beautiful Soup' even when the author reckoned things would go wrong - due to lxml not being installed, things went right,

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Joel Goldstick
On Sun, Nov 2, 2014 at 4:03 PM, Seymore4Head Seymore4Head@hotmail.invalid wrote: On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On

Re: Classes

2014-11-02 Thread Larry Hudson
On 11/02/2014 01:50 AM, Denis McMahon wrote: [snip] from math import sqrt class SquareGeometryError(Exception): The parameters create an illegal geometry for a square pass class Rectangle: def __init__(self,length,width): self.length=length self.width=width

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Dave Angel
On 11/02/2014 04:03 PM, Seymore4Head wrote: On Sun, 02 Nov 2014 19:42:49 +, Mark Lawrence breamore...@yahoo.co.uk wrote: On 02/11/2014 19:10, Seymore4Head wrote: On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick joel.goldst...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:08 AM, Peter

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-02 Thread Chris Angelico
On Mon, Nov 3, 2014 at 9:07 AM, Dave Angel da...@davea.name wrote: Brute force would take a few millenia, as something like ans = sum(range( BIG ) - sum(range(1000)) But just knowing the math lets you simplify it to something like ans = (1000 + BIG) * (BIG - 1000) / 2 Suggestion:

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
What I meant to say was I can't get the html5 or the html parsers to install, I have got their downloads in their respective directories in the downloads directory. -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Mark Lawrence
On 02/11/2014 21:59, Simon Evans wrote: Oh I don't mind quoting console output, I just thought I'd be sparing you unnecessary detail. output was going nicely as I input text from my 'Getting Started with Beautiful Soup' even when the author reckoned things would go wrong - due to lxml not

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Mark Lawrence
On 02/11/2014 22:20, Simon Evans wrote: What I meant to say was I can't get the html5 or the html parsers to install, I have got their downloads in their respective directories in the downloads directory. For the third time of asking will you please provide some context. For the fourth

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Chris Angelico
On Mon, Nov 3, 2014 at 8:59 AM, Simon Evans musicalhack...@yahoo.co.uk wrote: Oh I don't mind quoting console output, I just thought I'd be sparing you unnecessary detail. One of the tricks experienced programmers learn is how to skim a pile of output for what's important. When that output is a

Re: Classes

2014-11-02 Thread Denis McMahon
On Sun, 02 Nov 2014 11:31:12 -0500, Dennis Lee Bieber wrote: On Sun, 2 Nov 2014 12:27:06 + (UTC), Denis McMahon denismfmcma...@gmail.com declaimed the following: On Sun, 02 Nov 2014 21:32:13 +1100, Tim Delaney wrote: If course, that's probably because rectangles have a multitude of uses

Re: Classes

2014-11-02 Thread Dan Sommers
On Mon, 03 Nov 2014 03:12:32 +, Denis McMahon wrote: Quadrilateral Parallelogram Square Rectangle Rhombus Diamond (4 sides eq) Trapezoid Arrowhead What's the difference between a Diamond and a Rhombus? Is an arrowhead a trapezoid?

[issue22364] Improve some re error messages using regex for hints

2014-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22364 ___ ___ Python-bugs-list mailing

[issue17900] Recursive OrderedDict pickling

2014-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch caused a regression by breaking designed-in support for pickling using PyYAML (note, there was a test for yaml support, but this patch defeated the test). As a result of the patch, ordering now gets lost during a dump/load roundtrip. This

[issue16056] shadowed test names in std lib regression tests

2014-11-02 Thread Berker Peksag
Berker Peksag added the comment: I think my patch is wrong. test_weak_destroy_while_iterating and test_weak_destroy_and_mutate_while_iterating tests were committed as part of issue 7105 to 2.7 (see changeset https://hg.python.org/cpython/rev/03fcc12282fc). But, those same tests(they uses

[issue17900] Recursive OrderedDict pickling

2014-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you explain what is broken independently of PyYAML? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17900 ___

[issue22695] open() declared deprecated in python 3 docs

2014-11-02 Thread Berker Peksag
Berker Peksag added the comment: Here is a new patch. Thanks for the review, Serhiy. -- Added file: http://bugs.python.org/file37105/issue22695_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22695

[issue9771] add an optional default argument to tokenize.detect_encoding

2014-11-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: James, could you check again with a recent Python and see if the #11798 fix makes things any better? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22293

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +bethard stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22317 ___

[issue17900] Recursive OrderedDict pickling

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry, I did not notice test_yaml_linkage. And in any case this test was broken (should be rv[1][0] instead of rv[1]). I don't like to revert these changes, and the reversion can break a code written for 3.4 which pickles recursive OrderedDicts. I

[issue22695] open() declared deprecated in python 3 docs

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On my superficial view the patch looks good. But I am not well known with Sphinx code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22695 ___

[issue22364] Improve some re error messages using regex for hints

2014-11-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Add additional attributes to re.error, Other mentions of the buffer protocol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22364

[issue22697] Deadlock with writing to stderr from forked process

2014-11-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka resolution: - duplicate stage: - resolved status: open - closed superseder: - Locks in the standard library should be sanitized on fork ___ Python tracker

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22335 ___ ___

[issue16662] load_tests not invoked in package/__init__.py

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16662 ___ ___ Python-bugs-list

[issue22344] Reorganize unittest.mock docs into linear manner

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22344 ___

[issue22697] Deadlock with writing to stderr from forked process

2014-11-02 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: Serhiy, I don't think this is a duplicate. Odd that you closed this without any explanation. This happens in a internal lock in cpython's runtime, while the other bug is about locks used in the logging module (which are very different). --

[issue22783] Pickle: use NEWOBJ instead of NEWOBJ_EX if possible

2014-11-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently in pickle with protocol 4 the NEWOBJ_EX opcode is used to reconstruct objects with __getnewargs__() or __getnewargs_ex__() even if there no keyword arguments. import pickle, pickletools, collections P = collections.namedtuple('P', 'x y')

[issue22354] Idle: highlite tabs

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: Possible ways to highlite is to have a light grey: -- » (at the beginning of the tab) FWIW the latter (») is what I usually see used, with a lighter color to distinguish it from regular text. 3. Should tab space in comments and strings be shaded? I think

[issue22357] inspect module documentation makes no reference to __qualname__ attribute

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou, yselivanov stage: - needs patch type: behavior - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22357

[issue22388] Unify style of Contributed by notes

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: Patch LGTM. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22388 ___ ___ Python-bugs-list

[issue22697] Deadlock with writing to stderr from forked process

2014-11-02 Thread Charles-François Natali
Charles-François Natali added the comment: Maries Ionel Cristian added the comment: Serhiy, I don't think this is a duplicate. Odd that you closed this without any explanation. This happens in a internal lock in cpython's runtime, while the other bug is about locks used in the logging

[issue22697] Deadlock with writing to stderr from forked process

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry. I thought issue6721 is more general, not just about the logging module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22697 ___

[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22525 ___

[issue22558] Missing hint to source code - complete

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: The source links have been added where the code proved to be readable, easy to understand, and self documenting, and have been omitted when the code is complicated and not self documenting. This has been done under the assumption that reading the code might

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: logical_offset + 1 can't overflow because logical_offset is an offset in allocated array not counting final null byte. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22335

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that there are two possible crashes in debug mode: $ ./python -c bytearray(2**31-1) Erreur de segmentation $ ./python -c bytearray(2**31-2) python: Objects/obmalloc.c:1179: _PyObject_Alloc: Assertion `nelem = ((Py_ssize_t)(((size_t)-1)1)) / elsize'

[issue22612] Add block info to unicodedata

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I needed this in the past and had to implement it myself, so adding it to unicodedata might be OK. A script to generate the list of blocks from the official Unicode files should probably be created and used whenever we update the version of the Unicode

[issue22317] action argument is not documented in argparse add_subparser() docs

2014-11-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +paul.j3 versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22317 ___

[issue22671] Typo in class io.BufferedIOBase docs

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +pitrou stage: - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22671

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. It also fixes a bug in the debug allocators, which didn't properly check for Py_ssize_t overflow. -- Added file: http://bugs.python.org/file37108/ba_resize.patch ___ Python tracker

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Interpreter Core stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22335 ___

[issue22716] Add reference to the object missing an attribute to AttributeError

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I think we should be pursued together with #18156, so I'm going to close this. Serhiy already added a reference to this issue there. -- nosy: +ezio.melotti resolution: - duplicate stage: - resolved status: open - closed

[issue18156] Add an 'attr' attribute to AttributeError

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I closed #22716 in favor of this, since I think both should be tackled together. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18156 ___

[issue22784] test_asyncio fails without the ssl module

2014-11-02 Thread Antoine Pitrou
New submission from Antoine Pitrou: Patch attached. I don't know whether this applies to 3.4 as well. -- components: Tests, asyncio files: ssl_test_asyncio.patch keywords: patch messages: 230502 nosy: gvanrossum, haypo, pitrou, yselivanov priority: normal severity: normal stage: patch

[issue6721] Locks in the standard library should be sanitized on fork

2014-11-02 Thread Maries Ionel Cristian
Changes by Maries Ionel Cristian ionel...@gmail.com: -- nosy: +ionel.mc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___

[issue18156] Add an 'attr' attribute to AttributeError

2014-11-02 Thread flying sheep
flying sheep added the comment: yeah, exactly: my idea was to add a reference to the original object (AttributeError.target). together with this bug, that would be the AttributeError part of PEP 473, which i really like! -- nosy: +flying sheep ___

[issue22716] Add reference to the object missing an attribute to AttributeError

2014-11-02 Thread flying sheep
flying sheep added the comment: sure, go ahead! i wasn’t aware of PEP nor issue, so sorry for filing a dupe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22716 ___

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22335 ___ ___

[issue22751] Fix test___all__ warning about modified environment

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37ed6eed0595 by Ezio Melotti in branch '3.4': #22751: fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo. https://hg.python.org/cpython/rev/37ed6eed0595 New changeset 16dfefe67c1f by Ezio Melotti in branch

[issue22388] Unify style of Contributed by notes

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3825486da53 by Serhiy Storchaka in branch '3.4': Issue #22388: Unified the style of Contributed by sentences in What's New. https://hg.python.org/cpython/rev/e3825486da53 New changeset 5f10a4a1e4df by Serhiy Storchaka in branch 'default': Issue

[issue22388] Unify style of Contributed by notes

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ezio for your review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22388 ___ ___

[issue22388] Unify style of Contributed by notes

2014-11-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22388

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you. This is now pushed. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22335

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1590c594550e by Antoine Pitrou in branch '3.4': Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fff bytes on a 32-bit platform. https://hg.python.org/cpython/rev/1590c594550e New changeset f0b334ae95c9 by Antoine Pitrou in

[issue21650] add json.tool option to avoid alphabetic sort of fields

2014-11-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the suggestions. If you mean preserve order by default, then yes that would be a nice default. issue21650_v3.diff implements this idea. -- Added file: http://bugs.python.org/file37110/issue21650_v3.diff

[issue22725] improve documentation for enumerate() (built-in function)

2014-11-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +patch Added file: http://bugs.python.org/file37111/enumerate-doc.2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22725

[issue22725] improve documentation for enumerate() (built-in function)

2014-11-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Added file: http://bugs.python.org/file37112/enumerate_doc-3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22725 ___

[issue22344] Reorganize unittest.mock docs into linear manner

2014-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22344 ___ ___ Python-bugs-list mailing

[issue22417] PEP 476: verify HTTPS certificates by default

2014-11-02 Thread Alex Gaynor
Alex Gaynor added the comment: New patch uses self-signed.pythontest.net, instead of svn.python.org. svn.python.org is signed by CACert, which is in the root on some machines. -- Added file: http://bugs.python.org/file37113/issue22417.diff ___

[issue22650] set up and use VM for net access in the test suite

2014-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note we now have pythontest.net set up. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22650 ___

[issue22366] urllib.request.urlopen should take a context (SSLContext) argument

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13f46fc1a002 by Senthil Kumaran in branch '3.4': backport context argument of urlopen (#22366) for pep 476 https://hg.python.org/cpython/rev/13f46fc1a002 -- ___ Python tracker rep...@bugs.python.org

[issue22751] Fix test___all__ warning about modified environment

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: The buildbot seems happy, so I'm going to close this. Thanks for the patch! -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-11-02 Thread Tim Graham
Tim Graham added the comment: Updated patch per comments. -- Added file: http://bugs.python.org/file37114/cookie-pickling-all-protocols-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22775

[issue21815] imaplib truncates some untagged responses

2014-11-02 Thread Lita Cho
Lita Cho added the comment: Sure, let me combine it into one change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21815 ___ ___

[issue17896] Move Windows external libs from src\..\ to src\externals

2014-11-02 Thread David Bolen
David Bolen added the comment: I noticed this issue when checking on some recent 2.7 branch failures on my buildbot. It might be worth noting this change to any Windows buildbot owners since we all have existing trees now with a lot of stranded external folders that can be removed. For what

[issue17900] Recursive OrderedDict pickling

2014-11-02 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: serhiy.storchaka - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17900 ___

[issue22354] Idle: highlite tabs

2014-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I looked more into tab handling in tk and Idle. Tk uses literal tabs in text to position following text according to the tab stops configured with the Text tabs option. Tabs stops are ultimately set to the pixel (not character), although one may enter

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: - serhiy.storchaka stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22775 ___

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7be6ef737aaf by Serhiy Storchaka in branch '3.4': Issue #22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2 https://hg.python.org/cpython/rev/7be6ef737aaf New changeset caa8f9248ab8 by Serhiy Storchaka in branch 'default': Issue

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Tim. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22775

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 515331e0ca0c by Serhiy Storchaka in branch '2.7': Issue #22775: Fixed unpickling of Cookie.SimpleCookie with protocol 2. https://hg.python.org/cpython/rev/515331e0ca0c -- ___ Python tracker

[issue22775] SimpleCookie not unpicklable with protocol 2+

2014-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This affects 2.7 too. -- title: SimpleCookie not picklable with HIGHEST_PROTOCOL - SimpleCookie not unpicklable with protocol 2+ versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue22785] range docstring is less useful than in python 2

2014-11-02 Thread Ned Batchelder
New submission from Ned Batchelder: The Python 3.4 docstring for range is: {{{ | range(stop) - range object | range(start, stop[, step]) - range object | | Return a virtual sequence of numbers from start to stop by step. }}} In Python 2.7, it said: {{{ range(stop) - list of integers

[issue22366] urllib.request.urlopen should take a context (SSLContext) argument

2014-11-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22366 ___

[issue20351] Add doc examples for DictReader and DictWriter

2014-11-02 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Sounds good. Do you know when this will get merged? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20351 ___

  1   2   >