Re: Your message to sqlite-users awaits moderator approval

2014-07-05 Thread Steve Hayes
On Sat, 05 Jul 2014 01:00:22 -0400, sqlite-users-boun...@sqlite.org wrote:

Your mail to 'sqlite-users' with the subject

hi

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

So has someone tried to gate the comp.lang.python newsgroup to an Sqlite
mailing list without the list owner's permission?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Your message to sqlite-users awaits moderator approval

2014-07-05 Thread Chris Angelico
On Sat, Jul 5, 2014 at 4:19 PM, Steve Hayes hayes...@telkomsa.net wrote:
 On Sat, 05 Jul 2014 01:00:22 -0400, sqlite-users-boun...@sqlite.org wrote:

Your mail to 'sqlite-users' with the subject

hi

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

 So has someone tried to gate the comp.lang.python newsgroup to an Sqlite
 mailing list without the list owner's permission?

More likely someone just posted a piece of spam with a forged From
address. If some piece of malware got access to somebody's address
book and started sending spam from one address to another address,
picked at random, it's entirely possible that it'd pick two list
addresses. At that point, the target list will get an email from an
address it doesn't recognize, and what you see above happens -
non-members aren't allowed to post to most lists (without a mod's
approval; I run a list for a local society's committee, and it's
normal for people to send something to the committee who aren't
members of it, so those posts go to the moderation queue), and the
post gets bounced.

When it first came in, I clicked on the link to cancel the post, but
someone beat me to it. :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Travis Griggs

 On Jul 4, 2014, at 11:29, Lie Ryan lie.1...@gmail.com wrote:
 
 On 04/07/14 07:55, Gregory Ewing wrote:
 Steven D'Aprano wrote:
 
 That's exactly the problem with tabs - whatever you think your code
 looks like with tabs, other people will see quite different picture.
 
 Why do you consider this a problem?
 
 It's a problem if you try to use tabs for lining things
 up in a tabular fashion in your source code.
 
 The solution is not to use tabs for that -- only use
 tabs for indentation, and use spaces for everything
 else. Or, as PEP 8 suggests, don't try to line things
 up in the first place.
 
 PEP8 suggests using this style of method invocation:
 
obj.method(foo,
   bar,
   baz)
 
 which is an effect impossible to do correctly with tabs alone. If you want to 
 follow this style strictly, you end up having to either mix tabs and spaces, 
 or just use spaces, or as I prefer it, avoid the issue altogether:
 
obj.method(
foo,
bar,
baz,
)

Ok, here's irony. I'm looking at that thinking what the heck is he talking 
about?!?. And then my brain catches up. My mail reader is of course modern 
and does not use a mono space font. So the value of the along ed indent is lost 
anyway. But wasn't that what spaces were supposed to give us over tabs, some 
separation from the trading betwixt different editors? Chuckle.

Travis Griggs

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sat, Jul 5, 2014 at 12:47 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
 Of course, I'm anxiously await my friend to ask for a drop
 light -- oh boy, that will be fun! :^)

Just wait till you get into theatre, and people start asking for
parcans, domes, bubbles, gobos, gels, and workers. If you can't learn
a little technical terminology for the field you're in, you're in the
wrong universe.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Gregory Ewing

Rick Johnson wrote:

Why is a handheld light
called a flashlight? It does not flash,


According to Wikipedia, originally it did:

Early flashlights ran on zinc–carbon batteries, which could not provide a 
steady electric current and required periodic 'rest' to continue functioning. 
Because these early flashlights also used energy-inefficient carbon-filament 
bulbs, resting occurred at short intervals. Consequently, they could be used 
only in brief flashes, hence the common American name flashlight.


Of course, in sane parts of the world, we
call them torches. :-)

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread alister
On Sat, 05 Jul 2014 20:57:14 +1200, Gregory Ewing wrote:

 Rick Johnson wrote:
 Why is a handheld light called a flashlight? It does not flash,
 
 According to Wikipedia, originally it did:
 
 Early flashlights ran on zinc–carbon batteries, which could not provide
 a steady electric current and required periodic 'rest' to continue
 functioning. Because these early flashlights also used
 energy-inefficient carbon-filament bulbs, resting occurred at short
 intervals. Consequently, they could be used only in brief flashes, hence
 the common American name flashlight.
 
 Of course, in sane parts of the world, we call them torches. :-)

+1
don't just use the correct tool fro the job use the correct name for the 
tool ;-)

-- 
If your bread is stale, make toast.
-- 
https://mail.python.org/mailman/listinfo/python-list


OT: Flashlights [was Re: PEP8 and 4 spaces]

2014-07-05 Thread Steven D'Aprano
On Fri, 04 Jul 2014 19:47:45 -0700, Rick Johnson wrote:

 [A continuation of my last reply...]
 
 Here is a recent situation that occurred to me that showcases the
 tendency of humans to carelessly bind illogical terms to common objects,

I think you mean the tendency of certain people to go off half-cocked and 
mistake their own ignorance for knowledge.

Since I personally don't know why flashlights are called that name, it 
clearly MUST BE that there is no reason for that name!!!

(By the way, outside of the USA, flashlights in the rest of the English-
speaking world are usually called torches, so called because, like the 
old-fashioned burning torch, they provide light.)


 thereby creating a inverse esoteric of ubiquitous illogic, in this case,
 the term: flash-light.

A few minutes googling would have given you the answer: flashlights are 
called flashlights because originally you could only flash them on and 
off. Due to the high power requirements and the low battery capacities at 
the time, leaving the torch switched on would burn out the filament, 
exhaust the battery, or both.

The Oxford Dictionary also points out that flashlight is a term used 
for signalling and warning lights, such as in lighthouses. It doesn't say 
whether the signalling use inspired, or was inspired by, the hand-held 
flashlight. I expect that, since electric lighthouses are more than two 
decades older than flashlights, that usage came first.

Both the flashlight and the flash bulb were first patented in 1899, and 
it is possible that the name of one was influenced by the name of the 
other. Flash bulbs used an electrically-ignited filament of magnesium to 
provide a single, extremely bright, flash of light. They replaced the 
older system of a small trough of flash powder (a mixture of magnesium 
and potassium chlorate) ignited in the air.

So far from being an illogical term, the name flashlight actually gives 
you a glimpse into the historical background of the invention.


 Of course everyone knows that a flash light does not flash, 

Everybody is wrong. I have torches (flashlights) with a flash 
function, where they flash on and off. I've also owned torches where they 
had a switch to turn them on and give a steady, hands-free light, and a 
second button that only generated light while it was held down.


 so why do we continue to propagate such foolish terms? 

Not a foolish term, merely a sign that technology marches on.


 Well, for the same reason
 language designers keep giving us illogical terms like function and
 class, but i digress.

Oh my, I can hardly wait to hear this. It ought to be good.


 The point is we go around the world falsely believing we have a strong
 grasp of the simple things

Speak for yourself. Oh, I see you are!



-- 
Steven
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Ian Kelly
On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
 Strangly, I rather fancy the idea of using tabs in code,,,
 which allow each viewer to view the code in his or her level
 of indention,,, however, i cannot justify using a tab as a
 replacement for a space. Tabs should be used for tabular
 data (aka: speadsheets), and since code is NOT tabular data,
 we would be wise to use the space char for indention.

I find it a little curious that nobody ever seems to advocate the use
of vertical tabs instead of repeated newlines. It should offer the
same benefit as horizontal tabs, namely that one could then
independently configure one's editor to separate adjacent code
elements with the desired number of blank lines. But I suppose that
nobody finds that useful enough to bother with in the vertical case.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Roy Smith
In article mailman.11525.1404586681.18130.python-l...@python.org,
 Ian Kelly ian.g.ke...@gmail.com wrote:

 On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson
 rantingrickjohn...@gmail.com wrote:
  Strangly, I rather fancy the idea of using tabs in code,,,
  which allow each viewer to view the code in his or her level
  of indention,,, however, i cannot justify using a tab as a
  replacement for a space. Tabs should be used for tabular
  data (aka: speadsheets), and since code is NOT tabular data,
  we would be wise to use the space char for indention.
 
 I find it a little curious that nobody ever seems to advocate the use
 of vertical tabs instead of repeated newlines. It should offer the
 same benefit as horizontal tabs, namely that one could then
 independently configure one's editor to separate adjacent code
 elements with the desired number of blank lines. But I suppose that
 nobody finds that useful enough to bother with in the vertical case.

Personally, I'm holding out for U+00A0 being a valid character in an 
identifier.  Intercourse this underscore stuff.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Robert Kern

On 2014-07-05 19:57, Ian Kelly wrote:

On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:

Strangly, I rather fancy the idea of using tabs in code,,,
which allow each viewer to view the code in his or her level
of indention,,, however, i cannot justify using a tab as a
replacement for a space. Tabs should be used for tabular
data (aka: speadsheets), and since code is NOT tabular data,
we would be wise to use the space char for indention.


I find it a little curious that nobody ever seems to advocate the use
of vertical tabs instead of repeated newlines. It should offer the
same benefit as horizontal tabs, namely that one could then
independently configure one's editor to separate adjacent code
elements with the desired number of blank lines. But I suppose that
nobody finds that useful enough to bother with in the vertical case.


I do see the occasional person using form feeds to separate sections of code.

--
Robert Kern

I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth.
  -- Umberto Eco

--
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Michael Torrie
On 07/04/2014 08:54 AM, Marko Rauhamaa wrote:
 Grant Edwards invalid@invalid.invalid:
 
 Definitely. Indenting with tabs vs. spaces is mostly personal
 preference (though spaces are better!). But, mixing the two is right
 out, and should be stomped on hard.
 
 Often one person writes the code and another person fixes bugs in it or
 adds features to it. So if one uses tabs and the other refrains from
 using them, you'll get the mixed style you abhor.
 
 Even if we accepted that to be bad style, there's nothing on the screen
 that would warn against such usage: the lines seemingly align perfectly,
 and the code runs as expected.

Or more likely the lines seemingly align perfectly and the code does not
compile and run, or worse it does run but does not do the right thing.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Mark Lawrence

On 05/07/2014 23:03, Michael Torrie wrote:

On 07/04/2014 08:54 AM, Marko Rauhamaa wrote:

Grant Edwards invalid@invalid.invalid:


Definitely. Indenting with tabs vs. spaces is mostly personal
preference (though spaces are better!). But, mixing the two is right
out, and should be stomped on hard.


Often one person writes the code and another person fixes bugs in it or
adds features to it. So if one uses tabs and the other refrains from
using them, you'll get the mixed style you abhor.

Even if we accepted that to be bad style, there's nothing on the screen
that would warn against such usage: the lines seemingly align perfectly,
and the code runs as expected.


Or more likely the lines seemingly align perfectly and the code does not
compile and run, or worse it does run but does not do the right thing.



Some commentators lead me to believe that the latter is perfectly 
acceptable so long as the code runs quickly.


--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sun, Jul 6, 2014 at 4:57 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
 I find it a little curious that nobody ever seems to advocate the use
 of vertical tabs instead of repeated newlines. It should offer the
 same benefit as horizontal tabs, namely that one could then
 independently configure one's editor to separate adjacent code
 elements with the desired number of blank lines. But I suppose that
 nobody finds that useful enough to bother with in the vertical case.

How often do you ever have multiple consecutive blank lines? My
newlines are either single (line end) or in pairs (one blank line),
and I don't remember having anything else (at least, not
intentionally). Greater separation than a blank line is provided by
comments, not more whitespace.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Dan Sommers
On Sun, 06 Jul 2014 09:27:59 +1000, Chris Angelico wrote:

 How often do you ever have multiple consecutive blank lines? My
 newlines are either single (line end) or in pairs (one blank line),
 and I don't remember having anything else (at least, not
 intentionally). Greater separation than a blank line is provided by
 comments, not more whitespace.
 
 ChrisA

http://legacy.python.org/dev/peps/pep-0008/#id15 says:  Separate top-level
function and class definitions with two blank lines.

With docstrings occurring inside function definitions, this happens quite a
bit.

Dan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sun, Jul 6, 2014 at 11:18 AM, Dan Sommers d...@tombstonezero.net wrote:
 On Sun, 06 Jul 2014 09:27:59 +1000, Chris Angelico wrote:

 How often do you ever have multiple consecutive blank lines? My
 newlines are either single (line end) or in pairs (one blank line),
 and I don't remember having anything else (at least, not
 intentionally). Greater separation than a blank line is provided by
 comments, not more whitespace.

 ChrisA

 http://legacy.python.org/dev/peps/pep-0008/#id15 says:  Separate top-level
 function and class definitions with two blank lines.

 With docstrings occurring inside function definitions, this happens quite a
 bit.

Ah, okay. Still, it's not something that scales up much, the way
horizontal whitespace does. You go to 2 blanks, and extras (sparingly)
between groups, but it's not like indentation, where nesting naturally
requires progressively more space. If you're nesting groups of
functions like that, you probably should be using something other than
whitespace (maybe separate files?).

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why is regexp not working?

2014-07-05 Thread Denis McMahon
On Fri, 04 Jul 2014 14:27:12 +0200, Florian Lindner wrote:

 self.regexps = [rit (?Pcoupling_iterations\d+) .* dt complete yes |
 write-iteration-checkpoint |,
 rit (?Pit_read_ahead\d+) read ahead

My first thought is what is the effect of '|' as the last character in 
the regex?

-- 
Denis McMahon, denismfmcma...@gmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-05 Thread Tim Peters

Tim Peters added the comment:

One more useless ;-) data point, from Macsyma:

? acosh;
 -- Function: acosh (x)
 - Hyperbolic Arc Cosine.

I don't like area - while accurate, nobody else uses it.  Gratuitous novelty 
is no virtue ;-)  I like inverse better than arc, because it's all of 
accurate, common, and nearly self-evident.

--
nosy: +tim.peters

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ram, do you want to provide a patch and benchmarks?

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21911
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17652] Add skip_on_windows decorator to test.support

2014-07-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17652
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-05 Thread Berker Peksag

Berker Peksag added the comment:

See also issue 18162.

--
nosy: +berker.peksag

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21911
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21715] Chaining exceptions at C level

2014-07-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I added 3.4 because this private function makes cleaner and more bug-free 
existing code (mostly recently added) and possible future bug fixes. Note a bug 
just fixed by Benjamin (changeset 888fd1cdec6f).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21715
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21881] python cannot parse tcl value

2014-07-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which omits using of float() to convert Tcl's NaN values.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file35864/test_tcl_nan.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21881
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21920] Fixed missing colon in the docs

2014-07-05 Thread Stefan Tatschner

New submission from Stefan Tatschner:

Hi,
i just discovered a missing colon in the docs. I have created a patch for this.

Stefan

--
assignee: docs@python
components: Documentation
files: fixed-missing-colon.patch
keywords: patch
messages: 222341
nosy: docs@python, rumpelsepp
priority: normal
severity: normal
status: open
title: Fixed missing colon in the docs
versions: Python 3.4
Added file: http://bugs.python.org/file35865/fixed-missing-colon.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21920
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21920] Fixed missing colon in the docs

2014-07-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
assignee: docs@python - berker.peksag
nosy: +berker.peksag
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21920
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21920] Fixed missing colon in the docs

2014-07-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6094aa25b33c by Berker Peksag in branch '3.4':
Issue #21920: Add a missing colon to the __main__ doc.
http://hg.python.org/cpython/rev/6094aa25b33c

New changeset e22d0ff286f9 by Berker Peksag in branch 'default':
Issue #21920: Merge from 3.4.
http://hg.python.org/cpython/rev/e22d0ff286f9

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21920
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21920] Fixed missing colon in the docs

2014-07-05 Thread Berker Peksag

Berker Peksag added the comment:

Thanks Stefan!

--
resolution:  - fixed
stage:  - resolved
status: open - closed
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21920
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21921] Example in asyncio event throws resource usage warning

2014-07-05 Thread Vajrasky Kok

New submission from Vajrasky Kok:

These examples coming from:
https://docs.python.org/3/library/asyncio-eventloop.html#example-hello-world-callback

and

https://docs.python.org/3/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm

throw resource usage warning.

One of them gives this output:
Event loop running forever, press CTRL+c to interrupt.
pid 3075: send SIGINT or SIGTERM to exit.
^Cgot signal SIGINT: exit
sys:1: ResourceWarning: unclosed socket object at 0x7f7124783448
sys:1: ResourceWarning: unclosed socket object at 0x7f7124c230e8

The patch adds closing the loop code in the examples.

--
assignee: docs@python
components: Documentation, asyncio
files: close_loop_on_example.patch
keywords: patch
messages: 222344
nosy: docs@python, gvanrossum, haypo, vajrasky, yselivanov
priority: normal
severity: normal
status: open
title: Example in asyncio event throws resource usage warning
type: resource usage
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35866/close_loop_on_example.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21921
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21881] python cannot parse tcl value

2014-07-05 Thread Andreas Schwab

Andreas Schwab added the comment:

Thanks, this is working now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21881
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-05 Thread Ram Rachum

Ram Rachum added the comment:

obably Serhiy: Unfortunately I don't program in C, so I can't implement this.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21911
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15114] Deprecate strict mode of HTMLParser

2014-07-05 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/issue15114
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Hristo Venev

New submission from Hristo Venev:

I have implemented the PyLong interface using the GMP mpn functions. API/ABI 
compatibility is retained (except for longintrepr).

It can be enabled by passing --enable-big-digits=gmp to ./configure.

No large performance regressions have been observed for small numbers (a few 
operations are about 10% slower). For large numbers some operations are a lot 
faster.

There is also int.__gcd__ which may be used by fractions.gcd.

The GIL is sometimes released. Minimum number of digis for releasing GIL: 
- multiplication - 64
- division - 64,
- modular exponentiation - 16,
- base conversion - 64 (256 for binary bases)
- GCD - 16

The tests for long, float, decimal, fractions, string, unicode, bytes, pickle, 
marshal and enum pass. The tests for int fail because the error messages are a 
bit different (when creating int from bytes or bytearray the value is not 
shown). I may have run other tests and they have not failed. I have not tested 
on anything but x86-64.

The following testcases yield 42x performace improvement:
- 16384-bit RSA on 8 threads on quad-core with HT # GIL released
- Multiplying 560-bit ints
- Dividing 600-bit ints
- Converting 30-character str to int(base=10)
- Converting 125-bit int to str

--
components: Interpreter Core
messages: 222347
nosy: h.venev
priority: normal
severity: normal
status: open
title: PyLong: use GMP
type: performance
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Stefan Krah

Stefan Krah added the comment:

Did you mean to upload a patch?

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +mark.dickinson, rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

So the problem is mostly that 2.7 gives less diagnosis information than 3.x 
about an incorrect use of the API. I don't think that's very worthy of a 
bugfix, IMHO. Just use 3.x :-)

--
nosy: +neologix

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21913
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread STINNER Victor

STINNER Victor added the comment:

Hi, I worked on a similar patch 6 years ago, while Python 3.0 was developped:
https://mail.python.org/pipermail/python-dev/2008-November/083315.html
http://bugs.python.org/issue1814

The summary is that using GMP makes Python slower because most numbers are 
small: fit in [-2^31; 2^31-1], and GMP allocation is expensive.

There is also a license issue: GMP license is GPL which is not compatible with 
the Python license.

If you want to work on large numbers, you can gmpy:
https://code.google.com/p/gmpy/


The following testcases yield 42x performace improvement:
- 16384-bit RSA on 8 threads on quad-core with HT # GIL released
- Multiplying 560-bit ints
- Dividing 600-bit ints
- Converting 30-character str to int(base=10)
- Converting 125-bit int to str


That's not a common use case. Run the Python benchmark suite with your patch to 
see if your patch has a similar overhead than my old patch.
http://hg.python.org/benchmarks

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-07-05 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Library (Lib)
keywords: +easy
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21879
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Hristo Venev

Hristo Venev added the comment:

PyLongObject is a PyVarObject. It contains many mp_limb_t's. There is little 
overhead. For some operations if the result is in [-20;256] no memory will be 
allocated. There are special codepaths for 1-limb operations.

And I just finished GDB support.

Please test if it works for you.

--
keywords: +patch
Added file: http://bugs.python.org/file35867/pygmp.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-05 Thread Ezio Melotti

Ezio Melotti added the comment:

The feature request sounds reasonable to me, unless someone proves that there 
are major (performance) issues.  However, since this has already been reported 
in #18162, I'm going to close it as a duplicate.

@Raymond
 The IndexError exception is commonly used for control flow.

Can you provide an example?  IME I rarely catch IndexErrors, and I usually use 
LBYL before accessing a random index.

 Slowing down the instantiation to add an index that no one really needs
 would be a waste.   This exception has been around for 20+ years -- if
 they were an actual need, we would have known by now.

I'm not sure the cost of adding the index is comparable with the cost of the 
whole instantiation.  Regarding the request itself see #1534607 and #18162.

@Ram
 Another possibility is to make the -O flag do this switch,
 though there are problems with that too.

-1

 Unfortunately I don't program in C, so I can't implement this.

It might be easier than you think.  You just need to find where the exception 
is defined and see what other exceptions like KeyError do.
Then you copy the code and adjust it until it doesn't segfault anymore and the 
tests pass.

--
nosy: +ezio.melotti
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - Add index attribute to IndexError

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21911
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18162] Add index attribute to IndexError

2014-07-05 Thread Ram Rachum

Ram Rachum added the comment:

Since #21911 has been merged into this issue, I'd like to add: Please also 
include the length of the sequence in the exception message. It can help with 
debugging.

--
nosy: +cool-RR

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18162
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18162] Add index attribute to IndexError

2014-07-05 Thread Ezio Melotti

Ezio Melotti added the comment:

Knowing the len of the sequence would also be useful.
Brett, were you also planning to use these attributes in the error message 
(when they are available), or do you prefer to keep the two issues separate and 
reopen #21911?

 Is there a meta-issue for these changes?

FTR the other relevant issues are:
  #18156: Add an 'attr' attribute to AttributeError
  #18163: Add a 'key' attribute to KeyError
  #18165: Add 'unexpected_type' to TypeError
  #18166: 'value' attribute for ValueError

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18162
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18162] Add index attribute to IndexError

2014-07-05 Thread Brett Cannon

Brett Cannon added the comment:

Part of the point of these various attributes I proposed was so that a good 
default message could be provided when only the new attributes are given. So 
I'm fine with that being part of this issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18162
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15974] Optional compact and colored output for regrest

2014-07-05 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
superseder:  - Optional compact and colored output for regrest

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15974
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19593] Use specific asserts in importlib tests

2014-07-05 Thread Brett Cannon

Brett Cannon added the comment:

Ezio already gave a commit review. Serhiy just needs to commit it himself.

--
assignee:  - serhiy.storchaka
stage: patch review - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19593
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21886] asyncio: Future.set_result() called on cancelled Future raises asyncio.futures.InvalidStateError

2014-07-05 Thread STINNER Victor

STINNER Victor added the comment:

Fix commited to Tulip (4655ef2d9f43), Python 3.4 and 3.5.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21886
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21447] Intermittent asyncio.open_connection / futures.InvalidStateError

2014-07-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7e4efd5e279 by Victor Stinner in branch '3.4':
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
http://hg.python.org/cpython/rev/d7e4efd5e279

New changeset 50c995bdc00a by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21886, #21447: Fix a race condition in asyncio when setting
http://hg.python.org/cpython/rev/50c995bdc00a

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21447
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21886] asyncio: Future.set_result() called on cancelled Future raises asyncio.futures.InvalidStateError

2014-07-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7e4efd5e279 by Victor Stinner in branch '3.4':
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
http://hg.python.org/cpython/rev/d7e4efd5e279

New changeset 50c995bdc00a by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21886, #21447: Fix a race condition in asyncio when setting
http://hg.python.org/cpython/rev/50c995bdc00a

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21886
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-07-05 Thread Brett Cannon

Brett Cannon added the comment:

I can do the review if no Windows people step forward.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19714
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Stefan Krah

Stefan Krah added the comment:

Hmm, the license (LGPL) should only matter for the Windows binaries
and we can just compile without --enable-big-digits=gmp.

Even *if* the Windows binaries were built with gmp support, it would
be sufficient for any redistributor to point to the external library
sources for gmp that the build has actually used -- your own code
does not automatically become LGPL licensed and you are under no
obligation to reveal it.


I haven't looked at the patch in detail, but I don't have any
fundamental objection against adding a configure option, provided
that the additional code is well isolated (which seems to be the
case).

Of course we'd have to set up buildbots for the option etc...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21921] Example in asyncio event throws resource usage warning

2014-07-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f6827c6b1164 by Victor Stinner in branch '3.4':
Closes #21921: Fix ResourceWarning in the asyncio examples: close the event
http://hg.python.org/cpython/rev/f6827c6b1164

New changeset 0533f148fb49 by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21921: Fix ResourceWarning in the asyncio examples: close
http://hg.python.org/cpython/rev/0533f148fb49

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21921
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21921] Example in asyncio event throws resource usage warning

2014-07-05 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for the fix. I already suggested it to Guido van Rossum a few months 
ago, but he preferred the keep the example simple. I made the same fix in the 2 
hello world examples of the Tulip project last Tuesday, so it's fair to apply 
the same fix to asyncio examples.

Thanks for the fix Vajrasky.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21921
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-05 Thread Stefan Behnel

Stefan Behnel added the comment:

you'd be surprised how much cheaper indexing a sequence is relative to 
dictionary access

This is a bit off-topic (and I realise that this ticket is closed now), but the 
difference isn't really all that large:

$ python3.4 -m timeit -s 'seq = list(range(1000)); d = {n:n for n in seq}' 
'seq[100]'
1000 loops, best of 3: 0.0263 usec per loop

$ python3.4 -m timeit -s 'seq = list(range(1000)); d = {n:n for n in seq}' 
'd[100]'
1000 loops, best of 3: 0.0285 usec per Pool

$ python3.4 -m timeit -s 'seq = list(range(1000)); d = {test%d%n:n for n in 
seq}' 'd[test34]'
1000 loops, best of 3: 0.0317 usec per loop

Especially hashing strings is usually faster than you might expect, because the 
hash value is cached and strings that get hashed once tend to get hashed again 
later.

Note that KeyError doesn't do any exception message formatting on creation. It 
only includes the bare key, which is pretty quick, especially if the key is 
already a string.

In comparison, instantiating an exception takes almost three times as long:

$ python3 -m timeit -s 'K=KeyError' 'K(test)'
1000 loops, best of 3: 0.0779 usec per loop

We once had the case in Cython where dropping the instantiation of 
StopIteration at the end of generator execution gave a serious performance 
boost (more than 40% faster for short running generator expressions in the 
nqueens benchmark), but the same is less likely to apply to IndexError, which 
normally indicates a bug and not control flow. I lean towards agreeing with 
Terry that usability beats performance here.

--
nosy: +scoder

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21911
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Josh Rosenberg

Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:


--
nosy: +josh.rosenberg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-05 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Antoine: It's possible this is a legitimate failure in the signal handling 
code. The lack of a RuntimeError seems more likely to be due to the code never 
executing, not an issue with Condition.wait/Condition.notify.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21913
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-05 Thread Saimadhav Heblikar

Saimadhav Heblikar added the comment:

In v3, there is no subprocess usage.
It imports the checker specific module,does its job and returns the result of 
processing.


The checker specific files are to be installed from TestPyPI(atleast for now). 
It has to be installed via pip.
It will be detected automatically in IDLE. There will be a feature to pass 
additional arguments onto the checker(though not yet implemented in this patch).

This patch also supports the feature to modify the editor buffer.

To test out this patch, kindly install two packages
pip install -i https://testpypi.python.org/pypi IDLEPyflakes 
IDLEWhitespaceRemover

(I used the reindent.py file in Tools/scripts in IDLEWhitespaceRemover)

Again, this is more a proof of concept patch. I we are to go ahead in this 
direction, I will be writing it from scratch again and also with tests.

Checker, is actually a misnomer if we do support the modify buffer feature.

--
Added file: http://bugs.python.org/file35868/3rdpartychecker-v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21880
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9554] test_argparse.py: use new unittest features

2014-07-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


Added file: http://bugs.python.org/file35869/issue9554_v4.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9554
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-05 Thread SilentGhost

SilentGhost added the comment:

This seem like a new feature for IDLE, so I'd imagine it would not be included 
in either 2.7 or 3.4. Correct me if I'm wrong.

--
nosy: +SilentGhost
versions:  -Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21880
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Hristo Venev

Hristo Venev added the comment:

After some minor optimizations my implementation is about 1.8% slower on 
pystone and about 4% slower on bm_nqueens. It's 4 times faster on bm_pidigits.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread STINNER Victor

STINNER Victor added the comment:

Please try the Python benchmark suite.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Mark Dickinson

Mark Dickinson added the comment:

I *do* have an objection to adding the configure option:  from that point on, 
it means that maintaining the GMP-based long implementation is now the 
responsibility of the core developers, and I think that's an unnecessary 
maintenance burden, for an option that few users will care about.  I think 
having two long integer implementations in the core is worse than having one.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +tim.peters

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread STINNER Victor

STINNER Victor added the comment:

  I think having two long integer implementations in the core is worse than 
 having one.

I agree. If the GMP implementation is accepted, the old implementation must be 
dropped and replaced by the GMP implementation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9554] test_argparse.py: use new unittest features

2014-07-05 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9554
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Mark Dickinson

Mark Dickinson added the comment:

 If the GMP implementation is accepted, the old implementation must be
 dropped and replaced by the GMP implementation.

Agreed.  I'm open to that, but it's critical that common use-cases (i.e., those 
*not* using 1000-digit integers!) aren't slowed down.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-05 Thread Alex Gaynor

New submission from Alex Gaynor:

If one invokes some distutils code too early, this function will try to read 
``_config_vars`` before it is initialized. 
http://bpaste.net/show/1DOGhL8sdnkPyLTL06AZ/ is an example traceback that 
results.

The attached patch uses the public API which guarantees that it is defined.

--
components: Distutils
files: sysconfig.diff
keywords: patch
messages: 222373
nosy: alex, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils.sysconfig.customize_compiler will try to read variable that 
has not been initialized
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file35870/sysconfig.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17554] Compact output for regrtest

2014-07-05 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/issue17554
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-05 Thread Saimadhav Heblikar

Saimadhav Heblikar added the comment:

This seem like a new feature for IDLE, so I'd imagine it would not be 
included in either 2.7 or 3.4. Correct me if I'm wrong.

Hi,
Yes, it is a new feature. I think it will be included in both 2.7 and 3.4(apart 
from the latest version 3.5), if my understanding of pep434 is correct.

From pep434
The PEP would apply to changes in existing features and addition of small 
features, such as would require a new menu entry, but not necessarily to 
possible major re-writes such as switching to themed widgets or tabbed windows

Though, I cant say for sure into what category this feature would fall into, 
i.e. whether it is a small feature or not.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21880
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17554] Compact output for regrtest

2014-07-05 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17554
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15974] Optional compact and colored output for regrest

2014-07-05 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
superseder: Optional compact and colored output for regrest - Compact output 
for regrtest

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15974
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20898] Missing 507 response description

2014-07-05 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20898
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-07-05 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15025
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-05 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
assignee:  - ned.deily
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-07-05 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
versions:  -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21578
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10395] new os.path function to extract common prefix based on path components

2014-07-05 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
stage: patch review - commit review
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10395
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21859] Add Python implementation of FileIO

2014-07-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Many thanks Victor for your review. Updated patch addresses your comments. It 
also fixes debugging remnants in test_file_eintr.

--
Added file: http://bugs.python.org/file35871/pyio_fileio_3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21859
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
type:  - behavior
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5051
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17737] test_gdb fails on armv7hl

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
type:  - behavior
versions: +Python 3.4, Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17737
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17755] test_builtin assumes LANG=C

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
type:  - behavior
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17755
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12259] Document which compilers can be created on which platform

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I've no objection to people trying to take this forward but they should be 
aware that asyncio is recommended for new code.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12523
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11259] asynchat does not check if terminator is negative integer

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I've no objection to people trying to take this forward but they should be 
aware that asyncio is recommended for new code.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11259
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 2.7, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6087
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12602] Missing cross-references in Doc/using

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
type:  - behavior
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12602
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1565071] update Lib/plat-linux2/IN.py

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1565071
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1011113] Make “install” find the build_base directory

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-05 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Small feature requiring a new menu entry.

--
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21880
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17755] test_builtin assumes LANG=C

2014-07-05 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - duplicate
stage: needs patch - resolved
status: open - closed
superseder:  - readline-related test_builtin failure

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17755
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13886] readline-related test_builtin failure

2014-07-05 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +doko

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13886
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +paul.j3
versions: +Python 3.5 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9571
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +paul.j3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10190
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6253] optparse.OptionParser.get_usage uses wrong formatter

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it worth leaving this open as optparse was deprecated in 2.7 in favour of 
argparse?

--
components: +Library (Lib) -Extension Modules
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20554] Use specific asserts in optparse test

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I don't object to these changes but I don't see much sense in them as optparse 
has been deprecated since 2.7/3.2.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20554
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21852] Fix optparse in unicodeless build

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I don't see much point to this as optparse has been deprecated in 2.7.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21852
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10766] optparse uses %s in gettext calls

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I don't see much point doing any work with optparse as it's deprecated.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10766
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2403] Add figleaf coverage metrics

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

As there have been no replies to msg213358 can someone close this please.

--
nosy: +BreamoreBoy
status: pending - open
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2403
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19608] devguide needs pictures

2014-07-05 Thread Mark Lawrence

Mark Lawrence added the comment:

Please close this.

--
nosy: +BreamoreBoy
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Josh, your analysis is right, I had forgotten that we had improved this point 
in 3.x (interruptibility of lock.acquire()). It is *extremely* unlikely to be 
backported to 2.7, though, since it is really an enhancement.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21913
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21924] Cannot import anything that imports tokenize from script called token.py

2014-07-05 Thread Peter Inglesby

New submission from Peter Inglesby:

A script called token.py that imports anything that ends up importing tokenize, 
such as logging, triggers the following error when the script is run:

$ cat token.py 
import tokenize
$ python3 token.py
Traceback (most recent call last):
  File token.py, line 1, in module
import tokenize
  File 
/usr/local/Cellar/python3/3.4.0/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tokenize.py,
 line 38, in module
__all__ = token.__all__ + [COMMENT, tokenize, detect_encoding,
AttributeError: 'module' object has no attribute '__all__'

--
messages: 222386
nosy: inglesp
priority: normal
severity: normal
status: open
title: Cannot import anything that imports tokenize from script called token.py
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21924
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21924] Cannot import anything that imports tokenize from script called token.py

2014-07-05 Thread Ned Deily

Ned Deily added the comment:

That's because there is also a standard library module named token 
(https://docs.python.org/3/library/token.html).  When you run python, by 
default the current working directory is inserted at the beginning of sys.path, 
the list of directories searched for modules.  If you have a file there that 
has the same name as a standard library module, e.g. token.py, it will be found 
first and, thus, hide the standard library module of the same name.  Either 
change the name of your file so it does not conflict or make sure it is in a 
directory not on sys.path.

--
nosy: +ned.deily
resolution:  - not a bug
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21924
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-07-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I've no objection to people trying to take this forward

We were really looking for your approval, thank you.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12523
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21922] PyLong: use GMP

2014-07-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Note that we could probably release the GIL in the current implementation, too 
- we just haven't bothered adding such an optimization.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21922
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >