[issue14477] Rietveld test issue

2014-06-26 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
resolution:  - not a bug
status: open - closed

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



[issue14477] Rietveld test issue

2014-06-26 Thread Ezio Melotti

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


--
stage:  - resolved

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Technically this is not a bug.

--
nosy: +serhiy.storchaka

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



[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2014-06-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

All works to me without exception in 2.7, 3.3 and 3.4.

--
nosy: +serhiy.storchaka

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



[issue12942] Shebang line fixer for 2to3

2014-06-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +benjamin.peterson
type:  - enhancement
versions: +Python 3.4

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



[issue13074] Improve documentation of locale encoding functions

2014-06-26 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

The two functions serve a different purpose.

getdefautltlocale() specifically avoids calling setlocale() and is thread-safe 
on Unix. It's purpose is to return the default locale string, not only the 
encoding.

getpreferredencoding() only returns the encoding, but on Unix has to call 
setlocale() to return correct results and thus is not thread-safe.

Martin's comment doesn't address this difference and I don't agree with it.

Regarding the different results, I guess this could be solved by having both 
function pass the data obtained from the system through _parse_localname() 
before returning it, but that would have to be a handled in a new issue report.

--

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



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 import lzma
 f = lzma.open('22h_ticks_bad.bi5')
 len(f.read())
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/serhiy/py/cpython/Lib/lzma.py, line 310, in read
return self._read_all()
  File /home/serhiy/py/cpython/Lib/lzma.py, line 251, in _read_all
while self._fill_buffer():
  File /home/serhiy/py/cpython/Lib/lzma.py, line 225, in _fill_buffer
raise EOFError(Compressed file ended before the 
EOFError: Compressed file ended before the end-of-stream marker was reached


This is similar to issue1159051. We need a way to say read as much as possible 
without error and raise EOFError only on next read.

--
nosy: +serhiy.storchaka
versions: +Python 3.5

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



[issue18592] Idle: test SearchDialogBase.py

2014-06-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The warning was due to absence of def self.root. Attached is close to what will 
commit.

--
stage: needs patch - commit review
Added file: http://bugs.python.org/file35784/test-search-sdb-18592-34.diff

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



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-26 Thread Ville Nummela

Ville Nummela added the comment:

My stats so far:

As of writing this, I have attempted to decompress about 5000 downloaded files 
(two years of tick data). 25 'bad' files were found within this lot.

I re-downloaded all of them, plus about 500 other files as the minimum lot the 
server supplies is 24 hours / files at a time.

I compared all these 528 file pairs using hashlib.md5 and got identical hashes 
for all of them.

I guess what I should do next is to go through the decompressed data and look 
for suspicious anomalies, but unfortunately I don't have the tools in place to 
do that quite yet.

--

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Mak Nazečić-Andrlon

New submission from Mak Nazečić-Andrlon:

While searching for a way to work around the breakage of the Schwartzian 
transform in Python 3 (and the resulting awkwardness if you wish to use heapq 
or bisect, which do not yet have a key argument), I thought of the good old 
IEEE-754 NaN. Unfortunately, that shouldn't work since lexicographical 
comparisons shouldn't stop for something comparing False all the time. 
Nevertheless:

 (1, float(nan), A())  (1, float(nan), A())
False
 (0, float(nan), A())  (1, float(nan), A())
True

Instead of as in
 nan = float(nan)
 (1, nan, A())  (1, nan, A())
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: unorderable types: A()  A()

(As a side note, PyPy3 does not have this bug.)

--
components: Interpreter Core
messages: 221600
nosy: Electro
priority: normal
severity: normal
status: open
title: Tuple comparisons with NaNs are broken
versions: Python 3.4

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



[issue13405] Add DTrace probes

2014-06-26 Thread Xavier Morel

Changes by Xavier Morel xavier.mo...@masklinn.net:


--
nosy: +xmorel

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



[issue14776] Add SystemTap static markers

2014-06-26 Thread Xavier Morel

Changes by Xavier Morel xavier.mo...@masklinn.net:


--
nosy: +xmorel

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



[issue21590] Systemtap and DTrace support

2014-06-26 Thread Xavier Morel

Changes by Xavier Morel xavier.mo...@masklinn.net:


--
nosy: +xmorel

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Matthew Barnett

Matthew Barnett added the comment:

Lookarounds can contain capture groups:

 import re
 re.search(r'a(?=(.))', 'ab').groups()
('b',)
 re.search(r'(?=(.))b', 'ab').groups()
('a',)

so lookarounds that are optional or can have no repeats might have a use.

I'm not sure whether it's useful to repeat them more than once, but that's 
another matter.

I'd say that it's not a bug.

--

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +mark.dickinson

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread akira

akira added the comment:

 I suspect that in the absence of %z, the most useful option would be to 
 return naive datetime in the local timezone, but that can be added later.

Naive datetime in the local timezone may lose information that is contained in 
the input timestamp:

   import os
   import time
   from datetime import datetime
   import pytz
   os.environ['TZ'] = ':America/New_York'
   time.tzset()
   naive_dt = datetime(2014, 11, 2, 1, 30)
   naive_dt.timestamp()
  1414906200.0
   naive_dt.strftime('%s')
  '1414906200'
   pytz.timezone('America/New_York').localize(naive_dt, 
is_dst=False).timestamp()
  1414909800.0
   pytz.timezone('America/New_York').localize(naive_dt, 
is_dst=True).timestamp()
  1414906200.0
   pytz.timezone('America/New_York').localize(naive_dt, is_dst=None)
  Traceback (most recent call last):
File stdin, line 1, in module
File ~/.virtualenvs/py3.4/lib/python3.4/site-packages/pytz/tzinfo.py, 
line 349, in localize
  raise AmbiguousTimeError(dt)
  pytz.exceptions.AmbiguousTimeError: 2014-11-02 01:30:00

1414906200 timestamp corresponds to 2014-11-02 01:30:00-04:00
but datetime(2014, 11, 2, 1, 30) along is ambiguous -- 
it may correspond to both 1414906200 and 1414909800 if local timezone is 
America/New_York.

It would be nice if datetime.strptime() would allow the round-trip whatever the 
local timezone is:

   ts = '1414906800'
   datetime.strptime(ts, '%s').strftime('%s') == ts

it is possible if strptime() returns timezone-aware datetime object.

--

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



[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-26 Thread Berker Peksag

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


--
stage:  - needs patch
type:  - enhancement
versions: +Python 3.5

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread akira

akira added the comment:

Is the issue that:

   (1, float('nan')) == (1, float('nan'))
  False

but

   nan = float('nan')
   (1, nan) == (1, nan)
  True

?

`nan != nan` therefore it might be expected that `(a, nan) != (a, nan)` [1]:

 The values float('NaN') and Decimal('NaN') are special. The are identical to 
 themselves, x is x but are not equal to themselves, x != x. 

 Tuples and lists are compared lexicographically using comparison of 
 corresponding elements. This means that to compare equal, each element must 
 compare equal and the two sequences must be of the same type and have the 
 same length.
 If not equal, the sequences are ordered the same as their first differing 
 elements.

[1]: https://docs.python.org/3.4/reference/expressions.html#comparisons

--
nosy: +akira

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread akira

akira added the comment:

btw, pypy3 (986752d005bb) is broken:

   (1, float('nan')) == (1, float('nan'))
  True

--

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



[issue12613] itertools fixer fails

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch is small and looks clean to me.  Can someone take a look with a view 
to committing please, thanks.

--
nosy: +BreamoreBoy

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Mümin Öztürk

Mümin Öztürk added the comment:

I added an improved patch according to akira's explanation for strftime and 
rounding problem.

--
Added file: http://bugs.python.org/file35785/strftime2.patch

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



[issue15332] 2to3 should fix bad indentation (or warn about it)

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

I'd be inclined to close this as won't fix as a workaround is given, 
especially considering that mixing tabs and spaces has always been considered a 
no no.

--
nosy: +BreamoreBoy

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Jyrki Pulliainen

Changes by Jyrki Pulliainen jy...@dywypi.org:


--
nosy: +nailor

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



[issue12613] itertools fixer fails

2014-06-26 Thread Berker Peksag

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


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

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Python containers are allowed to let identity-imply-equality (the reflesive 
property of equality).  Dicts, lists, tuples, deques, sets, and frozensets all 
work this way.  So for your purposes,  you need to use distinct NaN values 
rather than reusing a single instance of a NaN.

--
nosy: +rhettinger
resolution:  - not a bug
status: open - closed

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Mak Nazečić-Andrlon

Mak Nazečić-Andrlon added the comment:

The bug is that the comparison should throw a TypeError, but does not (for 
incomparable A).

--

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



[issue21863] Display module names of C functions in cProfile

2014-06-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +ncoghlan

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



[issue20069] Add unit test for os.chown

2014-06-26 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Okay, I removed as _. I thought it was not possible.

--
Added file: http://bugs.python.org/file35786/add_unit_test_os_chown_v5.patch

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



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Raymond, thanks for committing my patch but my name was already put into ACKS 
before this commit.

$ grep -R Vajrasky Misc/ACKS 
Vajrasky Kok
Vajrasky Kok

--

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Python core containers support the invariant:

assert all(x in c for x in c)

See also:  
http://bertrandmeyer.com/2010/02/06/reflexivity-and-other-pillars-of-civilization/

--
assignee:  - rhettinger

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



[issue20069] Add unit test for os.chown

2014-06-26 Thread Claudiu Popa

Claudiu Popa added the comment:

Looks good to me.

--
stage: patch review - commit review

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



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 463f499ef591 by Raymond Hettinger in branch '3.4':
Issue #19145:  Remove duplicate ACKS entry
http://hg.python.org/cpython/rev/463f499ef591

--

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



[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 07eb04003839 by Raymond Hettinger in branch '2.7':
Issue #19145:  Remove duplicate ACKS entry
http://hg.python.org/cpython/rev/07eb04003839

--

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



[issue20295] imghdr add openexr support

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 71b9a841119a by R David Murray in branch 'default':
#20295: Teach imghdr to recognize OpenEXR format images.
http://hg.python.org/cpython/rev/71b9a841119a

--
nosy: +python-dev

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



[issue20295] imghdr add openexr support

2014-06-26 Thread R. David Murray

R. David Murray added the comment:

Thanks, Martin and Claudiu.

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

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm with Martin and the other respondents who think this shouldn't be done.

Without compelling timings, the smacks of feature creep.  The platform specific 
issues may create an on-going maintenance problem.  The feature itself is prone 
to misuse, leaving hard-to-find race condition bugs in its wake.

--

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



[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


--
nosy: +r.david.murray

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



[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread R. David Murray

R. David Murray added the comment:

Do we really want to allow infinite recursion (say a symbolic link loop)?

--

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

On the second thought, I don't think accepting this should be contingent on any 
decision with respect to strptime.

--
assignee:  - belopolsky
stage: needs patch - commit review

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



[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread R. David Murray

R. David Murray added the comment:

Ah, bad font, I thought the -l was a -1.  I see you aren't adding the infinite 
recursion, the just ability to control the maximum.  The patch looks good to me.

--
stage: patch review - commit review

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



[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Berker Peksag

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


--
stage: patch review - commit review

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 rounding problem fixed with math.floor

Can you explain why math.floor rather than builtin round is the correct 
function to use?

--

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



[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0a16756dfcc0 by R David Murray in branch '3.4':
#21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.
http://hg.python.org/cpython/rev/0a16756dfcc0

New changeset a3ee325fd489 by R David Murray in branch 'default':
Merge #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.
http://hg.python.org/cpython/rev/a3ee325fd489

--
nosy: +python-dev

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



[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-26 Thread R. David Murray

R. David Murray added the comment:

Thanks, Vajrasky.  And to the reviewers as well.

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

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



[issue21046] Document formulas used in statistics

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Three months gone and still no patch, not that I believe one is needed.  I'm 
inclined to close as won't fix, there's nothing to stop it being reopened if 
needed.

--

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



[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Eric V. Smith

Eric V. Smith added the comment:

Shouldn't the existing calls to abspath() be changed to os.path.abspath()? Or 
are both patches meant to be applied? I don't think the first patch applies 
cleanly any more.

In any event: the deprecation and test look good to me. So assuming we get rid 
of the import and get rid of direct calls to abspath(), I'm +1.

--

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



[issue8387] use universal newline mode in csv module examples

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

@sfinnie can we please have a response to the question first asked by Antoine 
and repeated by Jessica, thanks.

--

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



[issue21327] socket.type value changes after using settimeout()

2014-06-26 Thread Mark Lawrence

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


--
nosy:  -BreamoreBoy

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



[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Eric V. Smith

Eric V. Smith added the comment:

Now that I think about it, maybe we don't need a deprecation warning.

http://legacy.python.org/dev/peps/pep-0008/#public-and-internal-interfaces

says:

Imported names should always be considered an implementation detail. Other 
modules must not rely on indirect access to such imported names unless they are 
an explicitly documented part of the containing module's API, such as os.path 
or a package's __init__ module that exposes functionality from submodules.

abspath isn't in __all__, so it's arguably not part of the public API, anyway.

--

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



[issue2636] Adding a new regex module (compatible with re)

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Will we actually get regex into the standard library on this pass?

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

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



[issue21046] Document formulas used in statistics

2014-06-26 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy:  -zach.ware

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-06-26 Thread Berker Peksag

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


--
nosy: +berker.peksag
versions:  -Python 3.3

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



[issue21746] urlparse.BaseResult no longer exists

2014-06-26 Thread Berker Peksag

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


--
nosy: +berker.peksag, orsenthil

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



[issue12815] Coverage of smtpd.py

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

There are comments on rietvield but I'm not sure whether or not they've been 
picked up.  In any case can somebody set the appropriate fields and give us a 
commit review please.

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

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread py.user

py.user added the comment:

 m = re.search(r'(?=(a)){10}bc', 'abc', re.DEBUG)
max_repeat 10 10 
  assert -1 
subpattern 1 
  literal 97 
literal 98 
literal 99 
 m.group()
'bc'

 m.groups()
('a',)



It works like there are 10 letters a before letter b.

--

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



[issue1528154] New sequences for Unicode groups and block ranges needed

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there an easy way to find out how many other issues have #2636 as a 
dependency?

--
nosy: +BreamoreBoy

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



[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2014-06-26 Thread Mark Lawrence

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


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

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



[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-06-26 Thread Berker Peksag

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


--
assignee:  - berker.peksag
stage: patch review - commit review

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



[issue14373] C implementation of functools.lru_cache

2014-06-26 Thread Aaron Meurer

Changes by Aaron Meurer asmeu...@gmail.com:


--
nosy: +Aaron.Meurer

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread STINNER Victor

STINNER Victor added the comment:

Maybethe development should start outside Python stdlib, on a project on
PyPI.

--

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Matthew Barnett

Matthew Barnett added the comment:

Lookarounds can capture, but they don't consume. That lookbehind is matching 
the same part of the string every time.

--

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Tim Peters

Tim Peters added the comment:

I would not call this a bug - it's just usually a silly thing to do ;-)

Note, e.g., that p{N} is shorthand for writing p N times.  For example, p{4} is 
much the same as  (but not exactly so in all cases; e.g., if `p` happens to 
contain a capturing group, the numbering of all capturing groups will differ 
between those two spellings).

A successful assertion generally matches an empty string (does not advance the 
position being looked at in the target string).  So, e.g., if we're at some 
point in the target string where

(?=a)

matches, then

(?=a)(?=a)

will also match at the same point, and so will

(?=a)(?=a)(?=a)

and

(?=a)(?=a)(?=a)(?=a)

and so on  so on.  The position in the target string never changes, so each 
redundant assertion succeeds too.  So (?=a){N} _should_ match there too.

 It works like there are 10 letters a before letter b.

It's much more like you're asking whether a appears before b, but are 
rather pointlessly asking the same question 10 times ;-)

--
nosy: +tim.peters

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



[issue10721] Remove HTTP 0.9 server support

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

How, if at all, has the requirement for HTTP 0.9 support changed since this 
issue was first raised?

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

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



[issue10721] Remove HTTP 0.9 server support

2014-06-26 Thread Ian Cordasco

Changes by Ian Cordasco graffatcolmin...@gmail.com:


--
nosy: +icordasc

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



[issue10721] Remove HTTP 0.9 server support

2014-06-26 Thread Cory Benfield

Cory Benfield added the comment:

To answer your question, Mark, RFC 7230 has removed the expectation that 
HTTP/1.1 servers will be able to support HTTP/0.9 requests.

--
nosy: +Lukasa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10721
___
___
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-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch is two extra lines that look fine to me, can somebody do a commit 
review please?

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

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread py.user

py.user added the comment:

Tim Peters wrote:
 (?=a)(?=a)(?=a)(?=a)


There are four different points.
If a1 before a2 and a2 before a3 and a3 before a4 and a4 before something.

Otherwise repetition of assertion has no sense. If it has no sense, there 
should be an exception.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14460
___
___
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-06-26 Thread Berker Peksag

Berker Peksag added the comment:

Eric, do you want me to commit the patch? Should this also be committed to the 
3.4 branch?

--
nosy: +r.david.murray

___
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



[issue21829] Wrong test in ctypes

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ab708e4131dd by Zachary Ware in branch '3.4':
Issue #21829: Fix running test_ctypes on Windows with -O or -OO
http://hg.python.org/cpython/rev/ab708e4131dd

New changeset bbb28082d7b4 by Zachary Ware in branch 'default':
Issue #21829: Merge with 3.4
http://hg.python.org/cpython/rev/bbb28082d7b4

--
nosy: +python-dev

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



[issue1288056] pygettext: extract translators comments

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there anything of value in the patch which can be used, as I can't comment 
on it from a technical viewpoint?  Otherwise can we close this as out of date 
or won't fix as appropriate?

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

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



[issue21829] Wrong test in ctypes

2014-06-26 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the report, Claudiu.  I went with a simpler fix, just comparing 
Py_OptimizeFlag with sys.flags.optimize.  That way, we don't care if we're 
running as -O, -OO, or -OOO, the test will always test against the correct 
value.

--
assignee:  - zach.ware
resolution:  - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.4

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



[issue19897] Use python as executable instead of python3 in Python 2 docs

2014-06-26 Thread Roundup Robot

New submission from Roundup Robot:

New changeset eb0921b2100b by Berker Peksag in branch '2.7':
Issue #19897: Use python as executable instead of python3.
http://hg.python.org/cpython/rev/eb0921b2100b

--
nosy: +python-dev

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



[issue19897] Use python as executable instead of python3 in Python 2 docs

2014-06-26 Thread Berker Peksag

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


--
assignee: docs@python - berker.peksag
nosy: +r.david.murray
resolution:  - fixed
stage: patch review - resolved
status: open - closed
type:  - enhancement

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Ben Hoyt

Ben Hoyt added the comment:

Raymond, there are very compelling timings/benchmarks for this -- not so much 
the original issue here (generator vs list, that's not really an issue) but 
having a scandir() function that returns the stat-like info from the OS so you 
don't need extra stat calls. This speeds up os.walk() by 7-20 times on Windows 
and 4-5 times on Linux. See more at: 
https://github.com/benhoyt/scandir#benchmarks

I've written a draft PEP that I've sent to the PEP editors (if you're 
interested, it's at https://github.com/benhoyt/scandir/blob/master/PEP.txt). If 
any of the PEP editors are listening here ... would love some feedback on that 
at some stage. :-)

Victor -- development has started outside the stdlib here: 
https://github.com/benhoyt/scandir and PyPI module here: 
https://pypi.python.org/pypi/scandir Both are being used by various people.

--

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Tim Peters

Tim Peters added the comment:

 (?=a)(?=a)(?=a)(?=a)

 There are four different points.
 If a1 before a2 and a2 before a3 and a3 before a4 and a4
 before something.

Sorry, that view doesn't make any sense.  A successful lookbehind assertion 
matches the empty string.  Same as the regexp

()()()()

matches 4 empty strings (and all the _same_ empty string) at any point.

 Otherwise repetition of assertion has no sense.

As I said before, it's usually a silly thing to do.  It does make sense, just 
not _useful_ sense - it's silly ;-)

 If it has no sense, there should be an exception.

Why?  Code like

i += 0

is usually pointless too, but it's not up to a programming language to force 
you to code only useful things.

It's easy to write to write regexps that are pointless.  For example, the regexp

(?=a)b

can never succeed.  Should that raise an exception?  Or should the regexp

(?=a)a

raise an exception because the (?=a) part is redundant?  Etc.

--

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Ben Hoyt

Ben Hoyt added the comment:

Thanks! Will post the PEP to python-dev in the next day or two.

--

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



[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Patched code produces identical output to unpatched code.  This doesn't really 
surprise me as word is reused within the for loop.

--
nosy: +BreamoreBoy

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



[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-06-26 Thread Berker Peksag

Berker Peksag added the comment:

Here's a new patch with a whatsnew entry. David, could you review the patch?

--
nosy: +r.david.murray
Added file: http://bugs.python.org/file35787/issue5800_v2.diff

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



[issue21858] Enhance error handling in the sqlite module

2014-06-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 62612b195cb5 by Victor Stinner in branch '3.4':
Issue #21858: Better handling of Python exceptions in the sqlite3 module.
http://hg.python.org/cpython/rev/62612b195cb5

New changeset 169171da66fa by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21858: Better handling of Python exceptions in the sqlite3
http://hg.python.org/cpython/rev/169171da66fa

--
nosy: +python-dev

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



[issue21858] Enhance error handling in the sqlite module

2014-06-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
versions: +Python 3.4

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



[issue21858] Enhance error handling in the sqlite module

2014-06-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue10558] non-standard processing of several configure options ignores =no

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Does the patch here or an updated version still need incorporating into the 
build system?

--
nosy: +BreamoreBoy
type:  - behavior
versions: +Python 3.4, Python 3.5 -Python 3.2

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



[issue21863] Display module names of C functions in cProfile

2014-06-26 Thread STINNER Victor

STINNER Victor added the comment:

The patch looks good to me. I didn't test it, but I see that the change is 
already tested by existing tests.

--
nosy: +haypo

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



[issue21849] Fix multiprocessing for non-ascii data

2014-06-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-26 Thread STINNER Victor

STINNER Victor added the comment:

The problem is in the ceval.c, the core of Python bytecode interpreter. For 
performances, it doesn't check if pending calls should be called for each 
instructio. It uses fast dispatch which doesn't check pending calls. The 
problem is that a signal schedules a pending call. The scheduled call is never 
executed on Python 2.

Python 3.2 introduced an atomic eval_breaker variable which fixes this issue. 
It is part of the huge change new GIL:
---
changeset:   57175:fdd6484f1210
parent:  57172:6d91aaa0
user:Antoine Pitrou solip...@pitrou.net
date:Tue Nov 10 19:50:40 2009 +
files:   Include/ceval.h Include/pystate.h Include/sysmodule.h 
Lib/test/test_sys.py Makefile.pre.in Objects/longob
description:
Merge in the new GIL.
---

I'm not sure that it would be possible to only backport the eval_breaker 
variable. Anyway, changing ceval.c in minor Python 2.7 release is risky. I 
would prefer to close the bug as wontfix. IMO the safe solution is to upgrade 
to Python 3.2 or later.

--
nosy: +haypo, pitrou

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



[issue21825] Embedding-Python example code from documentation crashes

2014-06-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe this can be closed as a very similar change was done in r59626.

--
nosy: +BreamoreBoy

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



[issue10798] test_concurrent_futures fails on FreeBSD

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it safe to assume that this test problem was resolved long ago?

--
nosy: +BreamoreBoy

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



[issue10798] test_concurrent_futures fails on FreeBSD

2014-06-26 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue2636] Adding a new regex module (compatible with re)

2014-06-26 Thread Nick Coghlan

Nick Coghlan added the comment:

Even with in principle approval from Guido, this idea still depends on
volunteers to actually write up a concrete proposal as a PEP (which
shouldn't be too controversial, given Guido already OK'ed the idea) and
then do the integration work to incorporate the code, tests and docs into
CPython (not technically *hard*, but not trivial either). pip install
regex starts looking fairly attractive at that point :)

--

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



[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-26 Thread Alex

Alex added the comment:

It's not a major usability issue for me, and I wouldn't be too distressed by a 
WONTFIX, though I don't know how much it affects other people.

I've just noticed that this is a smaller version:

while 1:
  if 00: pass

I'm curious as to why the above is not interruptible, but things like

while 1:
  if 0+0: pass

are.

--

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Nick Coghlan

Nick Coghlan added the comment:

I suggest a pass through python-ideas first. python-ideas feedback tends to
be more oriented towards is this proposal as persuasive as it could be?,
while python-dev is more aimed at the is this a good idea or not? yes/no
question. (python-ideas feedback naturally includes some of the latter as
well, but there's a lot more I'm not sure I agree with the idea itself,
but I agree it's worth discussing further feedback than is common on
python-dev)

--

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



[issue4346] PyObject_CallMethod changes the exception message already set by PyObject_GetAttr

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

The calls to type_error in the patch that have been added and removed appear to 
be identical, I don't know if this is by accident or design.

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

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Ben Hoyt

Ben Hoyt added the comment:

Nick -- sorry, already posted to python-dev before seeing your latest. However, 
I think it's the right place, as there's already been a fair bit of hashing 
this idea and API out on python-ideas first and then also python-dev. See links 
in the PEP here: http://legacy.python.org/dev/peps/pep-0471/#previous-discussion

--

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



[issue4613] Can't figure out where SyntaxError: can not delete variable 'x' referenced in nested scope us coming from in python shows no traceback

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

As issue 4617 has been closed as resolved is there anything left to do here?

--
nosy: +BreamoreBoy

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread akira

akira added the comment:

 Python containers are allowed to let identity-imply-equality (the reflesive 
 property of equality).

Is it documented somewhere?

 Dicts, lists, tuples, deques, sets, and frozensets all work this way. 

Is it CPython specific behaviour?

--

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



[issue10598] curses fails to import on Solaris

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

The code was fixed in default in r73781.  The patch for test_curses was never 
applied unless by a different name.

--
nosy: +BreamoreBoy

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



[issue10116] Sporadic failures in test_urllibnet

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it safe to assume that these failures have been resolved?

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

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



[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Tim Peters

Tim Peters added the comment:

BTW, note that the idea successful lookaround assertions match an empty 
string isn't just a figure of speech:  it's the literal truth, and - indeed - 
is key to understanding what happens here.  You can see this by adding some 
capturing groups around the assertions.  Like so:

m = re.search(((?=a))((?=a))((?=a))((?=a))b, xab)

Then

[m.span(i) for i in range(1, 5)]

produces

[(2, 2), (2, 2), (2, 2), (2, 2)]

That is, each assertion matched (the same) empty string immediately preceding 
b in the target string.

This makes perfect sense - although it may not be useful.  So I think this 
report should be closed with so if it bothers you, don't do it ;-)

--

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



[issue21874] test_strptime fails on rhel/centos/fedora systems

2014-06-26 Thread Bob Lightfoot

New submission from Bob Lightfoot:

when attempting build of 3.3.2-15 and 3.4.1 saw this error on both el7 and fc20 
systems.

--
components: Tests
files: fail.summary.log.el7
messages: 221667
nosy: boblfoot
priority: normal
severity: normal
status: open
title: test_strptime fails on rhel/centos/fedora systems
type: behavior
versions: Python 3.2, Python 3.4
Added file: http://bugs.python.org/file35788/fail.summary.log.el7

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



  1   2   >