[issue6978] compiler.transformer dict key bug d[1,] = 1

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can somebody set this to "patch review" and do the honours please.  FWIW I 
don't like "tulplesub" in the patch.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue9912] Fail when vsvarsall.bat produces stderr

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Ping.

--

___
Python tracker 

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



[issue809846] bdist_wininst doesn't clean up read-only files in build dir

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

I understand from the experts list that tarek is no longer maintaining 
distutils but I can't change the "assigned to" field.  As a matter of interest 
there are another 67 issues with tarek assigned.

--
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-29 Thread John Isidore

John Isidore added the comment:

There is stdout_redirected() function [1] that allows to redirect a file object 
given as `stdout` patameter including `sys.stderr`. It works at a file 
descriptor level i.e. it supports redirecting subprocess' output too but it 
doesn't work for StringIO (no fd).

[1] 
http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python/22434262#22434262

--
nosy: +John Isidore

___
Python tracker 

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



[issue22472] OSErrors should use str and not repr on paths

2014-09-29 Thread Akira Li

Akira Li added the comment:

OSError has *filename* attribute. Could it be passed to the UI instead?

--
nosy: +akira

___
Python tracker 

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

We never promise that the messages won't change (they are not part of the API), 
so that part isn't a problem.  We do try to be backward compatible there when 
it comes to args beyond the message text.  I don't think unpickleability is an 
issue; at least there isn't any discussion of it in PEP 3161, and I don't 
remember any around the implementation.

I think this is fine.  I don't think we should worry about someone who is 
actually using rawval/rest pulled out of the exception args.  You could put a 
porting note in What's New, but my guess is that the chances of anyone being 
inconvenienced by this are pretty near to zero.

--

___
Python tracker 

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



[issue22472] OSErrors should use str and not repr on paths

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

No, because I'm just logging the error message.  That's the UI.

--

___
Python tracker 

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



[issue17835] test_io broken on PPC64 Linux

2014-09-29 Thread James Spurin

James Spurin added the comment:

With both the kernel parameters defined and undefined, I get the following 
output -

# /local/0/opt/python-3.4.1/bin/python
Python 3.4.1 (default, Sep 29 2014, 13:31:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from socket import socket, SO_SNDBUF, SOL_SOCKET
>>> s = socket()
>>> s.getsockopt(SOL_SOCKET, SO_SNDBUF)
16384

--

___
Python tracker 

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



[issue22460] idle editor: replace all in selection

2014-09-29 Thread bagrat lazaryan

bagrat lazaryan added the comment:

replacing across multiple files is something i personally considered too fancy 
for idle, but that's a great feature. the same goes for smart selections like 
selecting multiline statements. if they don't contradict idle's simplicity 
ideology they are great canditates to be implemented.

as to the editors currently implementing replace-in-selection, notepad++ is 
one. it actually does exactly what terry suggested, activating an "in 
selection" checkbox only if something is selected. (visual studio, and python 
tools for visual studio in particular, have some replacement and refactoring 
abilities too.)


--
now, guys, i'm very sorry that i have to return to my already mentioned 
off-topic issue: i'm not getting emails from bugtracker. not even in spam. i 
was about to file a bug on the metatracker but it seems i can't even register 
on it because i am not receiving that confirmation email to activate my 
account! i don't know if http://psf.upfronthosting.co.za/roundup/meta/issue541 
is related to my problem. it seems it might be. what am i to do?

--

___
Python tracker 

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



[issue9104] test.support method for dual-testing accelerated code (fixes test_exceptions and other's pickle testing)

2014-09-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
assignee: belopolsky -> 

___
Python tracker 

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



[issue20135] FAQ need list mutation answers

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 138f54622841 by R David Murray in branch '3.4':
#20135: FAQ entry for list mutation.  (See also 6375bf34fff6.)
https://hg.python.org/cpython/rev/138f54622841

New changeset 3d924bbfdcbc by R David Murray in branch 'default':
Merge: #20135: FAQ entry for list mutation.  (See also 90b07d422bd9.)
https://hg.python.org/cpython/rev/3d924bbfdcbc

New changeset 2b9db1fce82e by R David Murray in branch '2.7':
#20135: FAQ entry for list mutation.
https://hg.python.org/cpython/rev/2b9db1fce82e

--

___
Python tracker 

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



[issue20135] FAQ need list mutation answers

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

I accidentally committed the patch early to 3.4/3.5.  I've now addressed Ezio's 
review comment per my suggestion on the review, and committed it to 2.7 as well.

Thanks everyone for your contributions.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue21338] Silent mode for compileall

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

Berker: I had some review comments pending on the docs, but reitveld isn't 
letting me publish them for some reason (it says the patch set doesn't exist).

The comments are: the method docs should probably say "``False`` or ``0`` (the 
default)" (and all the numbers should be marked up as code), and the 
versionchanged I think should say that the option was changed to a multilevel 
value.

Otherwise the patch looks good to me, too.

--

___
Python tracker 

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-09-29 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: commit review -> resolved

___
Python tracker 

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



[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 565096a32ce4 by Serhiy Storchaka in branch 'default':
Issue #22510: Get rid of little overhead of testing re.DEBUG flag.
https://hg.python.org/cpython/rev/565096a32ce4

--
nosy: +python-dev

___
Python tracker 

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



[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

After reconsidering Terry's idle example, it seems to me that the change could 
adversely impact existing code that already works around the lack of chained 
tracebacks, even as idle does.  So I committed this to 3.5 only as an 
enhancement.

Thanks Claudiu.

As an aside, isn't it a (pre-existing) bug that if an excepthook exists, it 
gets passed None for the traceback?

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
type: behavior -> enhancement
versions:  -Python 3.4

___
Python tracker 

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



[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2b212a8186e0 by R David Murray in branch 'default':
#17442: Add chained traceback support to InteractiveInterpreter.
https://hg.python.org/cpython/rev/2b212a8186e0

--
nosy: +python-dev

___
Python tracker 

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



[issue12006] strptime should implement %V or %u directive from libc

2014-09-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

For future reference, here is the example showing %Y %V ambiguity:

>>> date(2013,12,31).strftime('%Y %V %u')
'2013 01 2'
>>> date(2013,1,1).strftime('%Y %V %u')
'2013 01 2'

which is resolved by using %G

>>> date(2013,12,31).strftime('%G %V %u')
'2014 01 2'
>>> date(2013,1,1).strftime('%G %V %u')
'2013 01 2'

In other words, '2013 01 2' cannot be unambiguously parsed using '%Y %V %u' 
format.

--

___
Python tracker 

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



[issue12006] strptime should implement %G, %V and %u directives

2014-09-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I think we need more tests showing that new directives don't violate strftime - 
strptime round-trip invariants.

--
title: strptime should implement %V or %u directive from libc -> strptime 
should implement %G, %V and %u directives

___
Python tracker 

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



[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue12006] strptime should implement %G, %V and %u directives

2014-09-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Documentation should say "new in 3.5".

--

___
Python tracker 

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



[issue1565509] Repair or Change installation error

2014-09-29 Thread Steve Dower

Steve Dower added the comment:

Newer versions of Windows Installer (this looks like an XP issue...) will 
preserve a copy of the original MSI in a safe place, so this problem should not 
occur any more.

I vote to close.

--

___
Python tracker 

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



[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: needs patch -> resolved

___
Python tracker 

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



[issue10007] Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory (PCBuild)

2014-09-29 Thread Steve Dower

Steve Dower added the comment:

Should be fine. Both 2.7 and default have the full OpenSSL version in 
pyproject.vsprops, so they'll only use the version they expect.

--

___
Python tracker 

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



[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Antoine for your review.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman

New submission from Ethan Furman:

First, the behavior for pwd.struct_passwd:
-
--> pwd.getpwuid(1000)
pwd.struct_passwd(pw_name='ethan', pw_passwd='x', pw_uid=1000, pw_gid=1000, 
pw_gecos='Ethan Furman,,,', pw_dir='/home/ethan', pw_shell='/bin/bash')

--> set(pwd.getpwuid(1000))
set(['/bin/bash', 1000, 'Ethan Furman,,,', '/home/ethan', 'ethan', 'x'])

--> set([pwd.getpwuid(1000)])
set([pwd.struct_passwd(pw_name='ethan', pw_passwd='x', pw_uid=1000, 
pw_gid=1000, pw_gecos='Ethan Furman,,,', pw_dir='/home/ethan', 
pw_shell='/bin/bash')])

Now, the behavior for grp.struct_group:
--
--> grp.getgrgid(1000)
grp.struct_group(gr_name='ethan', gr_passwd='x', gr_gid=1000, gr_mem=[])

--> set(grp.getgrgid(1000))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'list'

--> set([grp.getgrgid(1000)])
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'list'


At the very least the error message is wrong (it's not a list), and at the most 
grp.struct_group should be hashable  -- i.e. we should be able to have a set of 
groups.

--
messages: 227811
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: grp.struct_group is not hashable
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread Claudiu Popa

Claudiu Popa added the comment:

Indeed, it's a preexisting bug. I'll try to come up with a patch shortly.

--

___
Python tracker 

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



[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

Test added.

--
keywords: +patch
stage:  -> needs patch
Added file: http://bugs.python.org/file36752/issue22513.stoneleaf.01.patch

___
Python tracker 

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



[issue6978] compiler.transformer dict key bug d[1,] = 1

2014-09-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am closing this because a) Meador is correct that we do not normally patch 
deprecated features and b) the current emphasis on 2.7-only patches is security 
and keeping 2.7 working on current systems.  The fix would only benefit 2.7.9+ 
code or 2.7.9+ and 3.x code, neither of which should be using compiler module.

Benjamin, if you disagree, review and apply, as no one else will.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22460] idle editor: replace all in selection

2014-09-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

About your email problem: post to core-mentorship list and if you cannot do 
that, write to Ezio Melotti and/or R. David Murray directly, as they are 
tracker maintainers.

--
stage:  -> needs patch

___
Python tracker 

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



[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is because grp.struct_group contains unhashable component (a list).

Same behavior with tuple:

>>> tuple(grp.getgrgid(1000))
('serhiy', 'x', 1000, [])
>>> set(tuple(grp.getgrgid(1000)))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'list'
>>> set([tuple(grp.getgrgid(1000))])
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'list'

Instead a set of grp.struct_group, create a dict, which maps group name to 
grp.struct_group.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

Thanks, Serhiy.

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue22486] Add math.gcd()

2014-09-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

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



[issue22514] incomplete programming example on python.org

2014-09-29 Thread Friedrich Spee von Langenfeld

New submission from Friedrich Spee von Langenfeld:

When I open www.python.org, there are some examples to demonstrate the "look 
and feel" of Python. I´ve tested an example (example number 1). Online, the 
following is shown:
# Python 3: Fibonacci series up to n
>>> def fib(n):
>>> a, b = 0, 1
>>> while a < n:
>>> print(a, end=' ')
>>> a, b = b, a+b
>>> print()
>>> fib(1000)
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610

But then I have tested the (following) code with Python 3.1:
>>> def fib(n):
 a, b = 0, 1
 while a < n:
print(a, end=" ")
a, b = b, a+b
 print()


>>> fib(1000)
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987

As you can see, the last number(987)wasn´t shown online. Perhaps, this behavior 
is browser-dependent. I´ve used Mozilla Firefox 32.0.3 .
I can´t estimate the priority of this issue, because I can´t imagine how many 
people are using or analysing the examples. Can you reproduce my findings?

--
messages: 227818
nosy: Friedrich.Spee.von.Langenfeld
priority: normal
severity: normal
status: open
title: incomplete programming example on python.org

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

New submission from Ram Rachum:

I suggest implementing `Counter.__lt__` which will be a partial order, 
similarly to `set.__lt__`. That is, one counter will be considered 
smaller-or-equal to another if for any item in the first counter, the second 
counter has an equal or bigger amount of that item.

--
components: Library (Lib)
messages: 227819
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Implement partial order on Counter
versions: Python 3.5

___
Python tracker 

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



[issue22194] access to cdecimal / libmpdec API

2014-09-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

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



[issue22437] re module: number of named groups is limited to 100 max

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0b85ea4bd1af by Serhiy Storchaka in branch 'default':
Issue #22437: Number of capturing groups in regular expression is no longer
https://hg.python.org/cpython/rev/0b85ea4bd1af

--
nosy: +python-dev

___
Python tracker 

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



[issue22514] incomplete programming example on python.org

2014-09-29 Thread Benjamin Peterson

Benjamin Peterson added the comment:

987 is indeed missing.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

There is already Py_DEPRECATED in Include/pyport.h:


#if defined(__GNUC__) && ((__GNUC__ >= 4) || \
  (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
#else
#define Py_DEPRECATED(VERSION_UNUSED)
#endif


You can add this before '#else':
#elif defined(_MSC_VER) && _MSC_VER >= 1300
#define Py_DEPRECATED(VERSION_UNUSED) __declspec(deprecated)


Py_DEPRECATED is not used since Python 3.0 (it is still used in 2.7).

--

___
Python tracker 

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



[issue1565509] Repair or Change installation error

2014-09-29 Thread Zachary Ware

Zachary Ware added the comment:

Steve Dower wrote:
> I vote to close.

+1, and done.

--
assignee: loewis -> 
resolution:  -> third party
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue22437] re module: number of named groups is limited to 100 max

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Antoine for your review.

To avoid discrepancy between re and regex (and other engines), I have committed 
only a part of dynamic patch, without adding support of backreferences with 
index over 99. It is unlikely to achieve this limit in hand written regular 
expression, and in generated regular expression you can use named groups.

I found that backreference syntax is one of most discrepant thing in regular 
expressions. There are at least 8 different variants (\N, \gN, \g, \g{N}, 
\k, \k'N', \k{N}, (?P=N)), and \g in Perl have different meaning.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Mon, Sep 29, 2014 at 07:33:21PM +, Ram Rachum wrote:
> I suggest implementing `Counter.__lt__` which will be a partial order, 
> similarly to `set.__lt__`. 

Since Counter is described as a multiset, this sounds reasonable to me.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue10007] Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory (PCBuild)

2014-09-29 Thread Zachary Ware

Zachary Ware added the comment:

PCbuild/build_ssl.py in 2.7 and 3.4 look through pyproject.(vs)props for the 
openssl dir, and 3.5 no longer uses build_ssl.py in the regular build process, 
so this is in fact out of date.

--
assignee:  -> zach.ware
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What should be result of following operations?

Counter({'a': 0}) < Counter({})
Counter({}) < Counter({'a': 0})
Counter({'a': -1}) < Counter({})
Counter({}) < Counter({'a': -1})

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

I suggest they be ignored like in `elements`.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

(I mean, the non-positive values should be ignored.)

--

___
Python tracker 

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



[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-29 Thread Francis MB

Francis MB added the comment:

Why is test.support.EnvironmentVarGuard preferable over 
distutils.test.support.EnvironGuard (with this one I'm not getting the warnings 
below)?

If I change the patch to (not so different (?) as in other tests using 
EnvironmentVarGuard):

$hg diff
diff -r 2b212a8186e0 Lib/distutils/tests/test_bdist_rpm.py
--- a/Lib/distutils/tests/test_bdist_rpm.py Mon Sep 29 11:25:00 2014 -0400
+++ b/Lib/distutils/tests/test_bdist_rpm.py Mon Sep 29 21:11:25 2014 +0200
@@ -5,7 +5,7 @@
 import os
 import tempfile
 import shutil
-from test.support import run_unittest
+from test.support import run_unittest, EnvironmentVarGuard
 
 from distutils.core import Distribution
 from distutils.command.bdist_rpm import bdist_rpm
@@ -36,8 +36,11 @@
 super(BuildRpmTestCase, self).setUp()
 self.old_location = os.getcwd()
 self.old_sys_argv = sys.argv, sys.argv[:]
+self.env = EnvironmentVarGuard()
 
 def tearDown(self):
+self.env.__exit__()
+del self.env   
   
 os.chdir(self.old_location)
   
 sys.argv = self.old_sys_argv[0]
   
 sys.argv[:] = self.old_sys_argv[1] 
   
@@ -54,6 +57,7 @@   
   
 def test_quiet(self):  
   
 # let's create a package   
   
 tmp_dir = self.mkdtemp()   
   
+self.env['HOME'] = tmp_dir   # to confine dir '.rpmdb' creation
   
 pkg_dir = os.path.join(tmp_dir, 'foo') 
   
 os.mkdir(pkg_dir)  
   
 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
@@ -96,6 +100,7 @@
 def test_no_optimize_flag(self):
 # let's create a package that brakes bdist_rpm
 tmp_dir = self.mkdtemp()
+self.env['HOME'] = tmp_dir   # to confine dir '.rpmdb' creation
 pkg_dir = os.path.join(tmp_dir, 'foo')
 os.mkdir(pkg_dir)
 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)

I get the message:
[102/390] test_distutils
Warning -- threading._dangling was modified by test_distutils

Using EnvironmentVarGuard as context manager gives the same warning.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There is other definition of the <= operator for sets: "A <= B" is equivalent 
to "len(A - B) == 0". Extending to Counter this can mean 
"len(A.subtract(B).elements()) == 0".

--

___
Python tracker 

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



[issue22516] Windows Installer won't - even when using "just for me"option

2014-09-29 Thread J. Morton

New submission from J. Morton:

Could not install 3.4.1 on Windows 7 Enterprise SP1 using the .MSI installer, 
even when using the ”just for me” option (our IM department has not given us 
the necessary rights to run the .MSI installer even in this mode). 
Please consider providing 3.4.1 (and all future releases) in a non “.MSI” file 
so that  “admin” rights are not needed to do the install (a simple ZIP file?  
something similar to www.portableapps.com ?).  Or as a source “tarball” for 
Windows machines – ideally one that is independent of compiler vendor 
(compileable using gcc, etc. instead of MSVC).

--
components: Installation
messages: 227832
nosy: NaCl, tim.golden
priority: normal
severity: normal
status: open
title: Windows Installer won't - even when using "just for me"option
versions: Python 3.4

___
Python tracker 

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



[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

Sorry, I'm not that familiar with distutils and did not realize it had stuff 
for environment protection in the setUp/tearDown.

--

___
Python tracker 

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



[issue22516] Windows Installer won't - even when using "just for me"option

2014-09-29 Thread Ezio Melotti

Changes by Ezio Melotti :


--
components: +Windows
nosy: +steve.dower, terry.reedy, zach.ware

___
Python tracker 

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



[issue22516] Windows Installer won't - even when using "just for me"option

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

The source tarball is the source tarball.  You can built python yourself, but 
it does require MSVC.  There are issues in this tracker about supporting other 
compilers, but for various reasons (mostly having to do with this being a 
volunteer community driven project) they have not gotten anywhere close to good 
enough for us to officially support it.

For the 'no privileges' install question, I defer to Steve; otherwise I'd just 
close the issue.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread paul

New submission from paul:

# static void
# bufferedrwpair_dealloc(rwpair *self)
# {
# _PyObject_GC_UNTRACK(self);
# Py_CLEAR(self->reader);
# Py_CLEAR(self->writer);
# Py_CLEAR(self->dict);
# Py_TYPE(self)->tp_free((PyObject *) self);
# }
# 
# Weakrefs to this object contain stale pointer after BufferedRWPair is freed.

--
files: poc_brwpair_weakref.py
messages: 227835
nosy: pkt
priority: normal
severity: normal
status: open
title: BufferedRWpair doesn't clear weakrefs
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file36753/poc_brwpair_weakref.py

___
Python tracker 

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



[issue22516] Windows Installer won't - even when using "just for me"option

2014-09-29 Thread Steve Dower

Steve Dower added the comment:

The "just for me" option isn't really "just for me". I'll probably have a real 
option in 3.5, though it may still require admin rights.

There's no reason sites like www.portableapps.com couldn't provide true 
per-user installers, and Continuum Analytics and Enthought both already do (as 
do others - I think Portable Python is fine, though not quite up to date).

Python 3.4 probably won't be fixed. Python 3.5 might be. I don't need this 
issue to track it.

--

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread paul

New submission from paul:

# static PyObject *
# unicode_encode_ucs1(PyObject *unicode,
# const char *errors,
# unsigned int limit)
# {
# ...
# while (pos < size) {
#   ...
# case 4: /* xmlcharrefreplace */
# /* determine replacement size */
# for (i = collstart, repsize = 0; i < collend; ++i) {
# Py_UCS4 ch = PyUnicode_READ(kind, data, i);
# ...
# else if (ch < 10)
# 1   repsize += 2+5+1;
# ...
# }
# 2   requiredsize = respos+repsize+(size-collend);
# if (requiredsize > ressize) {
# ...
# if (_PyBytes_Resize(&res, requiredsize))
# ...
# }
# /* generate replacement */
# for (i = collstart; i < collend; ++i) {
# 3   str += sprintf(str, "&#%d;", PyUnicode_READ(kind, data, 
i)); 
# }
# 
# 1. ch=0x<10, so repsize = (number of unicode chars in string)*8
#=2^29*2^3=2^32 == 0 (mod 2^32)
# 2. respos==0, collend==0, so requiredsize=repsize==0, so the destination 
buffer
#isn't resized
# 3. overwrite

--
files: poc_encode_latin1.py
messages: 227837
nosy: pkt
priority: normal
severity: normal
status: open
title: integer overflow in encoding unicode
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file36754/poc_encode_latin1.py

___
Python tracker 

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



[issue22519] integer overflow in computing byte's object representation

2014-09-29 Thread paul

New submission from paul:

# PyBytes_Repr(PyObject *obj, int smartquotes)
# {
# PyBytesObject* op = (PyBytesObject*) obj;
# 1   Py_ssize_t i, length = Py_SIZE(op);
# size_t newsize, squotes, dquotes;
# ...
# 
# /* Compute size of output string */
# newsize = 3; /* b'' */
# s = (unsigned char*)op->ob_sval;
# for (i = 0; i < length; i++) {
#   ...
# default:
# if (s[i] < ' ' || s[i] >= 0x7f)
# 2   newsize += 4; /* \xHH */
# else
# newsize++;
# }
# }
# ...
# 3   if (newsize > (PY_SSIZE_T_MAX - sizeof(PyUnicodeObject) - 1)) {
#   PyErr_SetString(PyExc_OverflowError,
# "bytes object is too large to make repr");
#   return NULL;
# }
# 4   v = PyUnicode_New(newsize, 127);
# ...
# *p++ = 'b', *p++ = quote;
# for (i = 0; i < length; i++) {
# ...
# 5 *p++ = c;
# }
# *p++ = quote;
# 6   assert(_PyUnicode_CheckConsistency(v, 1));
# return v;
# }
# 
# 1. length=2^30+1=1073741825
# 2. newsize=length*4+3=7 (overflow)
# 3. check is inefficient, because newsize=7
# 4. allocated buffer is too small
# 5. buffer overwrite
# 6. this assert will likely fail, since there is a good chance the allocated
#buffer is just before the huge one, so the huge one will overwrite itself.

--
files: poc_repr_bytes.py
messages: 227838
nosy: pkt
priority: normal
severity: normal
status: open
title: integer overflow in computing byte's object representation
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file36755/poc_repr_bytes.py

___
Python tracker 

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-29 Thread paul

New submission from paul:

# unicode_repr(PyObject *unicode)
# {
# ...
# 1   isize = PyUnicode_GET_LENGTH(unicode);
# idata = PyUnicode_DATA(unicode);
# 
# /* Compute length of output, quote characters, and
#maximum character */
# osize = 0;
# ...
# for (i = 0; i < isize; i++) {
# Py_UCS4 ch = PyUnicode_READ(ikind, idata, i);
# switch (ch) {
# ...
# default:
# /* Fast-path ASCII */
# if (ch < ' ' || ch == 0x7f)
# 2   osize += 4; /* \xHH */ 
# ...
# }
# }
# 
# ...
# 3   repr = PyUnicode_New(osize, max);
# ...
# for (i = 0, o = 1; i < isize; i++) {
# Py_UCS4 ch = PyUnicode_READ(ikind, idata, i);
# ...
# else {
# 4   PyUnicode_WRITE(okind, odata, o++, ch);
# }
# }
# }
# }
# /* Closing quote already added at the beginning */
# 5   assert(_PyUnicode_CheckConsistency(repr, 1));
# return repr;
# }
# 
# 1. isize=2^30+1
# 2. osize=isize*4=4
# 3. allocated buffer is too small
# 4. heap overflow
# 5. this assert will likely fail, since there is a good chance the allocated
#buffer is just before the huge one, so the huge one will overwrite itself.

--
files: poc_repr_unicode.py
messages: 227839
nosy: pkt
priority: normal
severity: normal
status: open
title: integer overflow in computing unicode's object representation
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file36756/poc_repr_unicode.py

___
Python tracker 

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



[issue22516] Windows Installer won't - even when using "just for me"option

2014-09-29 Thread R. David Murray

Changes by R. David Murray :


--
resolution:  -> later
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-29 Thread Francis MB

Francis MB added the comment:

No problem, but is the, 3 lines, patch ok?
what are the next steps, if yes?
Shouldn't be the issue status now 'patch review' or similar?

Thanks in advance!

--

___
Python tracker 

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



[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

Yes, sorry I forgot to change the stage.

--
stage:  -> commit review

___
Python tracker 

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +benjamin.peterson, pitrou, stutzbach
versions: +Python 2.7

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

What would be the result of

  Counter({'a':1, 'b':2}) < Counter({'a':2, 'b':1})

?

--
nosy: +ethan.furman

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Looks very similar to issue22470.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

False, like with sets.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread R. David Murray

R. David Murray added the comment:

Thanks, Ethan.  I had a feeling that this wasn't well defined but I couldn't 
come up with an example :)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

David, there's nothing here that isn't well defined. It's simply a partial 
order, not a total order. We have the same for sets.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

set's don't have values, and you are wanting to implement the partial ordering 
based on the values.  (side-note: how does partial-ordering work for sets?)

> That is, one counter will be considered smaller-or-equal to another if for any
> item in the first counter, the second counter has an equal or bigger amount of
> that item.

According to your definition, my example should have returned True, which is 
clearly nonsensical.

Even if you changed the definition to:

  For every item in the first counter, that item's value is less than the
  corresponding item in the second counter.

You have situations like:

  Counter({'a':1, 'b':1}) < Counter({'a':2})

I just don't think there is one interpretation that is going to be correct most 
of the time.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Josh Rosenberg

Changes by Josh Rosenberg :


--
nosy: +josh.rosenberg

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

Ethan, I don't understand what the problem is. I also don't understand your 
side note question "how does partial-ordering work for sets?" I'm not sure what 
you're asking. 

>> That is, one counter will be considered smaller-or-equal to another if for 
>> any
>> item in the first counter, the second counter has an equal or bigger amount 
>> of
>> that item.

> According to your definition, my example should have returned True, which is 
> clearly nonsensical.

In your example the first counter had `b` twice, while the second counter had 
it only once. So the result is `False`. This comes pretty directly from my 
definition, I'm not sure where the confusion is. 

Regarding your new example: Since `Counter` works like a `defaultdict`, the 
second counter has a zero quantity of `b`. So the answer is again `False`.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

To put it another way: In Python sets, `a <= b` iff `b` has everything that `a` 
has, and possibly more. I'm proposing the exact same definition for counters. 
True, the implementation might be different because sets are not dicts and 
don't have `.values()`, but that is just the implementation, which is not the 
important thing here.

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

That is certainly a better definition.  If you carefully reread your original 
post you will see that you wrote something different ('any' instead of 
'every').  Also, your OP uses '__lt__' but talks about 'less-than-or-equal -- 
somewhat confusing.  ;)

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

You're right, sorry. I meant the mathematical "for any" which means "for 
every": https://en.wikipedia.org/wiki/List_of_mathematical_symbols (See "for 
any;")

--

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
versions: +Python 2.7, Python 3.5

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
versions: +Python 3.3

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The request sounds ok to me. As in the corner case of negative values, it seems 
that Counter currently doesn't elide zero values, e.g.:

>>> Counter({'a': 0}) == Counter({})
False

Therefore, we should have:

>>> Counter({'a': -1}) < Counter({'a': 0})
True

but:

>>> Counter({'a': -1}) < Counter({})
False

(I must admit, the current semantics of Counter look a bit ad hoc and not 
terribly consistent... halfway between a regular mapping and a multiset)

--
nosy: +pitrou

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b2e68274aa8e by Benjamin Peterson in branch '2.7':
cleanup overflowing handling in unicode_decode_call_errorhandler and 
unicode_encode_ucs1 (closes #22518)
https://hg.python.org/cpython/rev/b2e68274aa8e

New changeset 3b7e93249700 by Benjamin Peterson in branch '2.7':
add NEWS note for #22518
https://hg.python.org/cpython/rev/3b7e93249700

New changeset 3c67d19c624f by Benjamin Peterson in branch '3.3':
cleanup overflowing handling in unicode_decode_call_errorhandler and 
unicode_encode_ucs1 (closes #22518)
https://hg.python.org/cpython/rev/3c67d19c624f

New changeset 88332ea4c140 by Benjamin Peterson in branch '3.3':
NEWS issue for #22518
https://hg.python.org/cpython/rev/88332ea4c140

New changeset 7dab27f2 by Benjamin Peterson in branch '3.4':
merge 3.3 (closes #22518)
https://hg.python.org/cpython/rev/7dab27f2

New changeset f86fde20e9ce by Benjamin Peterson in branch 'default':
merge 3.4 (closes #22518)
https://hg.python.org/cpython/rev/f86fde20e9ce

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

___
Python tracker 

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



[issue8350] Document lack of support for keyword arguments in C functions

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Has the Argument Clinic had an impact on this or is that a different kettle of 
fish?

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

___
Python tracker 

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



[issue10789] Lock.acquire documentation is misleading

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Has the Argument Clinic had an impact on this or is that a different kettle of 
fish?

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

___
Python tracker 

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



[issue22519] integer overflow in computing byte's object representation

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d9cd11eda152 by Benjamin Peterson in branch '2.7':
fix overflow checking in PyString_Repr (closes #22519)
https://hg.python.org/cpython/rev/d9cd11eda152

New changeset f5c662a7f7e6 by Benjamin Peterson in branch '3.3':
fix overflow checking in PyBytes_Repr (closes #22519)
https://hg.python.org/cpython/rev/f5c662a7f7e6

New changeset ed31cdf11ac2 by Benjamin Peterson in branch '3.4':
merge 3.3 (closes #22519)
https://hg.python.org/cpython/rev/ed31cdf11ac2

New changeset 0ddc5fc5f395 by Benjamin Peterson in branch 'default':
merge 3.4 (#22519)
https://hg.python.org/cpython/rev/0ddc5fc5f395

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

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

Shall I write a patch?

--

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman

Ethan Furman added the comment:

I think the final call is Raymond's (whether to accept the patch), but go 
ahead.  Worst case scenario is you'll have your own thoroughly tested 
PartiallyOrderedCounter you can use in your own code.  :)

--
nosy: +rhettinger
type:  -> enhancement

___
Python tracker 

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



[issue10938] Provide links to system specific strftime/ptime docs

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Humberto could you provide a patch for this?

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

___
Python tracker 

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



[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue22519] integer overflow in computing byte's object representation

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum

Ram Rachum added the comment:

If that's the case I'd prefer Raymond to first say whether this feature is 
generally welcome before spending my time on making a patch.

--

___
Python tracker 

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue10937] WinPE 64 bit execution results with errors

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

In msg126496 MVL says "I'll also point out that this is not a bug: copying over 
an installation is not supposed to work" so can we close this as "not a bug"?

--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware -brian.curtin

___
Python tracker 

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



[issue2399] Patches for Tools/msi

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Has this issue been overtaken by events?

--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
versions: +Python 3.5 -Python 3.2

___
Python tracker 

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



[issue10531] write tilted text in turtle

2014-09-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Could this now be implemented in the turtle module?

--
nosy: +BreamoreBoy, terry.reedy
versions: +Python 3.5

___
Python tracker 

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



[issue2399] Patches for Tools/msi

2014-09-29 Thread Steve Dower

Steve Dower added the comment:

I think they've all been fixed anyway, but yeah, they're not going to be 
relevant with my new installer.

--

___
Python tracker 

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



[issue22422] IDLE closes all when in dropdown menu

2014-09-29 Thread Brunel

Changes by Brunel :


--
status: open -> closed

___
Python tracker 

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



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

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 090dc85f4226 by Benjamin Peterson in branch 'default':
fix windows tests (#16662)
https://hg.python.org/cpython/rev/090dc85f4226

--

___
Python tracker 

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9b4673d7b046 by Benjamin Peterson in branch '2.7':
clear BufferedRWPair weakrefs on deallocation (closes #22517)
https://hg.python.org/cpython/rev/9b4673d7b046

New changeset e834b32f0422 by Benjamin Peterson in branch '3.3':
clear BufferedRWPair weakrefs on deallocation (closes #22517)
https://hg.python.org/cpython/rev/e834b32f0422

New changeset e54da75100f6 by Benjamin Peterson in branch '3.4':
merge 3.3 (#22517)
https://hg.python.org/cpython/rev/e54da75100f6

New changeset a2add97e28b9 by Benjamin Peterson in branch 'default':
merge 3.4 (#22517)
https://hg.python.org/cpython/rev/a2add97e28b9

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

___
Python tracker 

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-29 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
versions: +Python 3.3, Python 3.5

___
Python tracker 

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8ba7e5f43952 by Benjamin Peterson in branch '3.3':
prevent overflow in unicode_repr (closes #22520)
https://hg.python.org/cpython/rev/8ba7e5f43952

New changeset 6f54dfa675eb by Benjamin Peterson in branch '3.4':
merge 3.3 (#22520)
https://hg.python.org/cpython/rev/6f54dfa675eb

New changeset 245d9679cd5b by Benjamin Peterson in branch 'default':
merge 3.4 (#22520)
https://hg.python.org/cpython/rev/245d9679cd5b

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

___
Python tracker 

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



[issue2399] Patches for Tools/msi

2014-09-29 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue10937] WinPE 64 bit execution results with errors

2014-09-29 Thread Tim Golden

Changes by Tim Golden :


--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue22422] IDLE closes all when in dropdown menu

2014-09-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> not a bug
stage:  -> resolved

___
Python tracker 

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



  1   2   >