[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Marc Abramowitz

Marc Abramowitz added the comment:

Testing a few common cases:

$ python setup.py check --restructuredtext --strict --metadata
running check
error: The docutils package is needed.

$ python setup.py check --restructuredtext --strict --metadata
running check
warning: check: Cannot analyze code. Pygments package not found. (line 66)

warning: check: Cannot analyze code. Pygments package not found. (line 99)

error: Please correct your package.

$ python setup.py check --restructuredtext --strict --metadata  echo RST was 
OK.
running check
RST was OK.

--

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Marc Abramowitz

Marc Abramowitz added the comment:

Note that this patch does 2 things:

1. Improves the error message
2. Prevents check from failing when there are code-blocks

If I only did #1 and not #2, then output looks like this:

$ python setup.py check --restructuredtext --strict --metadata  echo RST was 
OK.
running check
warning: check: Could not finish the parsing: 'Values' object has no attribute 
'syntax_highlight'.

error: Please correct your package.

--

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



[issue22733] MSVC ffi_prep_args doesn't handle 64-bit arguments properly

2014-12-16 Thread Tim Golden

Tim Golden added the comment:

Likewise.

--

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



[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Demian Brecht

Demian Brecht added the comment:

 in GNU/Linux system timeout has been reached -- means that  system timeout 
 will *never* reached.

That's quite likely because the system limits may be very large. For example, 
on my OSX box:

--- ~ » sysctl net.inet.tcp.keepinit
net.inet.tcp.keepinit: 75000

According to Apple developer docs, this is in seconds. Meaning for your example 
to run all 100 iterations, you'd be looking at an inordinate amount of time to 
finish a loop that timed out at each connection attempt and deferred to system 
defaults for the timeout value. Not exactly never, but far from a reasonable 
time frame. Of course, this can be tuned to a more reasonable limit.

--

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



[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-12-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 51de0da524b4 by Terry Jan Reedy in branch '2.7':
Issue #20577: move configuration of FormatParagraph extension to new extension
https://hg.python.org/cpython/rev/51de0da524b4

New changeset 3ffa8438d274 by Terry Jan Reedy in branch '3.4':
Issue #20577: move configuration of FormatParagraph extension to new extension
https://hg.python.org/cpython/rev/3ffa8438d274

--
nosy: +python-dev

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



[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov

Andrej A Antonov added the comment:

I just will write next code-fragment:

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
s.connect(('python.org', 80))
print(
'is my operation system using (by default) tcpkeepalive-algorithm 
for testing broken-connection? answer:',
s.getsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE)
)
# answer is 0 (false) -- for all GNU/Linux


my previous code-example has 100-iteration -- only for we could catch the 
right-moment when testing (and for nothing else).

--

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



[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-12-16 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
assignee:  - terry.reedy
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov

Andrej A Antonov added the comment:

 in GNU/Linux system timeout has been reached -- means that  system timeout 
 will *never* reached.

 That's quite likely because the system limits may be very large.

I tested system-timeout GNU/Linux (on various computers). I waited more then 5 
days. system-timeout works on GNU/Linux -- only if was custom-set tcpkeepalive, 
else (by default): even after 5 days system-timeout was not reached.

--

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



[issue23060] Assert fails in multiprocessing.heap.Arena.__setstate__ on Windows

2014-12-16 Thread Tim Golden

Tim Golden added the comment:

I agree that this is a fragile assertion; it's too far removed from the
CreateFileMapping call which can generate it and almost impossible to
work around (in calling code) if it should fail in the way we're seeing
in the buildbot.

I think we're better off relying on a genuine exception bubbling up from
the CreateFileMapping/MapViewOfFile calls than trying to assert the
no-exception error return.

While the preallocate self.buffer hack you mention would probably have
the effect of preventing the assertion, it's really just adding another
layer of unwanted complexity. (And might still not work in some future
memory-allocation algorithm).

@Richard: if you're watching, have I missed anything?

--

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



[issue22980] C extension naming doesn't take bitness into account

2014-12-16 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 16.12.2014 05:54, Steve Dower wrote:
 Nobody seemed too bothered by it, so I committed a slightly simpler change 
 that only includes the most specific tag (that is, .cp35-win32.pyd or 
 .pyd). We can always add another tag easily enough if it seems useful, or 
 roll this change back if it was a mistake.

I'm not sure the format you've chosen is a good idea. We now have
a different tag for .pyc (PEP 3149) and .pyd files, in addition
to yet another tag format defined in wheels (PEP 425 and PEP 427).

The .pyd format looks similar to PEP 425 abi tag + platform tag,
but it's missing the abi flags.

IMO, we should use one of the available PEP standards instead
of creating yet another variant.

The checkin also only adds import support for the tags.

Shouldn't distutils also be changed to create such .pyd files
per default or at least via an option ?

--

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



[issue23064] pep8 asyncore.py

2014-12-16 Thread liu chang

New submission from liu chang:

pep8 Lib/asycore.py.

--
components: Library (Lib)
files: pep8-asyncore.patch
hgrepos: 287
keywords: patch
messages: 232730
nosy: 畅.刘
priority: normal
severity: normal
status: open
title: pep8 asyncore.py
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file37462/pep8-asyncore.patch

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



[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-16 Thread Andrej A Antonov

Andrej A Antonov added the comment:

@demian.brecht , for high probably to catch *infinite_freeze* (at GNU/Linux) -- 
if we may will run requests of xmlrpc.client.ServerProxy -- parallely:


(when running next code -- need to make some network-disconnections on 
network-router-computer)



#!/usr/bin/env python3

import threading
from xmlrpc.client import ServerProxy

ITERATION_COUNT = 100
THREAD_COUNT = 100

def thread_func(thread_name):
for i in range(ITERATION_COUNT):
try:
server = ServerProxy(http://betty.userland.com;)
rpc_result = server.examples.getStateName(41)
print('{}/iter_{} {!r}'.format(thread_name, i, rpc_result))
except Exception as e:
print('{}/iter_{} error: {} {}'.format(thread_name, i, type(e), 
str(e)))

def main():
print('* testing begin *')

thread_list = []

for i in range(THREAD_COUNT):
thread_name = 'thread_{}'.format(i)
thread_list.append(threading.Thread(target=thread_func, 
args=(thread_name,)))

for thr in thread_list:
thr.start()

for thr in thread_list:
thr.join()

print('* testing end *')

if __name__ == '__main__':
main()

--

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



[issue21619] Cleaning up a subprocess with a broken pipe

2014-12-16 Thread Martin Panter

Martin Panter added the comment:

Here is a patch to fix this by calling wait() even if stdin.close() fails, 
including a test case. With my patch, the subprocess context manager __exit__() 
will still raise a BrokenPipeError, but no zombie will be left.

--
keywords: +patch
Added file: http://bugs.python.org/file37463/pipe-cleanup.patch

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



[issue23065] Pyhton27.dll at SysWOW64 not updated when updating Python 2.7.X

2014-12-16 Thread GamesGamble

New submission from GamesGamble:

Hello,
the Python27.dll at C:\Windows\SysWOW64 not get updated when updating Python 
2.7.X at Windows 7 SP1 (Reported weak spot from Kaspersky Pure 3.0 weak spot 
search). When I´am manually deinstalling Python und install Python after 
deinstalling It got the updated *.dll .

--
components: Windows
messages: 232733
nosy: GamesGamble, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Pyhton27.dll at SysWOW64 not updated when updating Python 2.7.X
type: security
versions: Python 2.7

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Berker Peksag

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


--
keywords: +patch
Added file: http://bugs.python.org/file37464/cfabe07bc98f.diff

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Berker Peksag

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


--
stage:  - patch review
versions:  -Python 3.2, Python 3.3, Python 3.6

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Berker Peksag

Berker Peksag added the comment:

Could you add a test? See Lib/distutils/tests/test_check.py.

--
nosy: +berker.peksag

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



[issue23056] tarfile raises an exception when reading an empty tar in streaming mode

2014-12-16 Thread liu chang

liu chang added the comment:

2232 def next(self):
2233 Return the next member of the archive as a TarInfo object, when
2234TarFile is opened for reading. Return None if there is no more
2235available.
2236 
2237 self._check(ra)
2238 if self.firstmember is not None:
2239 m = self.firstmember
2240 self.firstmember = None
2241 return m
2242 
2243 # Read the next block.
2244 self.fileobj.seek(self.offset)
2245 tarinfo = None

raise a StreamError at #2244, It should catch this Error and return None. I 
would like to post a patch to fix it.

--
nosy: +liu chang

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



[issue23056] tarfile raises an exception when reading an empty tar in streaming mode

2014-12-16 Thread liu chang

liu chang added the comment:

a simple fix

--
keywords: +patch
Added file: http://bugs.python.org/file37465/fix-tar-23056.patch

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



[issue23055] PyUnicode_FromFormatV crasher

2014-12-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is updated patch for 2.7 (backported tests from 3.5), patches for 3.2 and 
3.3.

--
Added file: http://bugs.python.org/file37466/issue23055-2.7-2.patch
Added file: http://bugs.python.org/file37467/issue23055-3.2.patch
Added file: http://bugs.python.org/file37468/issue23055-3.3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23055
___diff -r 9927781e457f Lib/test/test_unicode.py
--- a/Lib/test/test_unicode.py  Mon Dec 15 14:02:43 2014 +0200
+++ b/Lib/test/test_unicode.py  Tue Dec 16 13:52:24 2014 +0200
@@ -1700,6 +1700,9 @@ class UnicodeTest(
 if sys.maxunicode  0x:
 check_format(u'\U0010',
  b'%c', c_int(0x10))
+else:
+with self.assertRaises(OverflowError):
+PyUnicode_FromFormat(b'%c', c_int(0x1))
 with self.assertRaises(OverflowError):
 PyUnicode_FromFormat(b'%c', c_int(0x11))
 # Issue #18183
@@ -1750,8 +1753,45 @@ class UnicodeTest(
  b'%zu', c_size_t(123))
 
 # test long output
+min_long = -(2 ** (8 * sizeof(c_long) - 1))
+max_long = -min_long - 1
+check_format(unicode(min_long),
+ b'%ld', c_long(min_long))
+check_format(unicode(max_long),
+ b'%ld', c_long(max_long))
+max_ulong = 2 ** (8 * sizeof(c_ulong)) - 1
+check_format(unicode(max_ulong),
+ b'%lu', c_ulong(max_ulong))
 PyUnicode_FromFormat(b'%p', c_void_p(-1))
 
+# test padding (width and/or precision)
+check_format(u'123'.rjust(10, u'0'),
+ b'%010i', c_int(123))
+check_format(u'123'.rjust(100),
+ b'%100i', c_int(123))
+check_format(u'123'.rjust(100, u'0'),
+ b'%.100i', c_int(123))
+check_format(u'123'.rjust(80, u'0').rjust(100),
+ b'%100.80i', c_int(123))
+
+check_format(u'123'.rjust(10, u'0'),
+ b'%010u', c_uint(123))
+check_format(u'123'.rjust(100),
+ b'%100u', c_uint(123))
+check_format(u'123'.rjust(100, u'0'),
+ b'%.100u', c_uint(123))
+check_format(u'123'.rjust(80, u'0').rjust(100),
+ b'%100.80u', c_uint(123))
+
+check_format(u'123'.rjust(10, u'0'),
+ b'%010x', c_int(0x123))
+check_format(u'123'.rjust(100),
+ b'%100x', c_int(0x123))
+check_format(u'123'.rjust(100, u'0'),
+ b'%.100x', c_int(0x123))
+check_format(u'123'.rjust(80, u'0').rjust(100),
+ b'%100.80x', c_int(0x123))
+
 # test %V
 check_format(u'repr=abc',
  b'repr=%V', u'abc', b'xyz')
diff -r 9927781e457f Misc/NEWS
--- a/Misc/NEWS Mon Dec 15 14:02:43 2014 +0200
+++ b/Misc/NEWS Tue Dec 16 13:52:24 2014 +0200
@@ -10,6 +10,9 @@ What's New in Python 2.7.10?
 Core and Builtins
 -
 
+- Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV.  Analysis
+  and fix by Guido Vranken.
+
 - Issue #23048: Fix jumping out of an infinite while loop in the pdb.
 
 Library
diff -r 9927781e457f Objects/unicodeobject.c
--- a/Objects/unicodeobject.c   Mon Dec 15 14:02:43 2014 +0200
+++ b/Objects/unicodeobject.c   Tue Dec 16 13:52:24 2014 +0200
@@ -735,15 +735,10 @@ PyUnicode_FromFormatV(const char *format
   * objects once during step 3 and put the result in an array) */
 for (f = format; *f; f++) {
  if (*f == '%') {
- if (*(f+1)=='%')
- continue;
- if (*(f+1)=='S' || *(f+1)=='R')
- ++callcount;
- while (isdigit((unsigned)*f))
- width = (width*10) + *f++ - '0';
- while (*++f  *f != '%'  !isalpha((unsigned)*f))
- ;
- if (*f == 's')
+ f++;
+ while (*f  *f != '%'  !isalpha((unsigned)*f))
+ f++;
+ if (*f == 's' || *f=='S' || *f=='R')
  ++callcount;
  }
 }
@@ -760,12 +755,16 @@ PyUnicode_FromFormatV(const char *format
 /* step 3: figure out how large a buffer we need */
 for (f = format; *f; f++) {
 if (*f == '%') {
-const char* p = f;
+const char* p = f++;
 width = 0;
 while (isdigit((unsigned)*f))
 width = (width*10) + *f++ - '0';
-while (*++f  *f != '%'  !isalpha((unsigned)*f))
-;
+precision = 0;
+if (*f == '.') {
+f++;
+while (isdigit((unsigned)*f))
+precision = (precision*10) + *f++ - '0';
+}
 
 /* skip the 'l' or 'z' in {%ld, %zd, %lu, %zu} since
  * they 

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2014-12-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which addresses Antoine's comments. Also added dis() output for 
binary example in comments.

--
Added file: http://bugs.python.org/file37469/pickle_optimize_memoize_2.patch

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



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

2014-12-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses Antoine's comments. Also added few comments explaining 
binary data.

--
Added file: http://bugs.python.org/file37470/pickle_newobj_2.patch

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



[issue22980] C extension naming doesn't take bitness into account

2014-12-16 Thread Steve Dower

Steve Dower added the comment:

I justified leaving out the ABI tag in an earlier post as well as in an email 
to distutils-sig, where two of the PEPs you mention were developed, and nobody 
had any comment. Cache tags don't include platform information and are 
worthless here.

distutils uses the first extension from _imp.extension_suffixes() and so will 
automatically tag binaries. I also tested with setuptools and Cython.

--

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



[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2014-12-16 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm still a fan of never - it's a good escape hatch that means we never have 
to contort the new API to deal with some of the more esoteric use cases that 
involved completely overloading the import process in the loader :)

--

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



[issue23064] pep8 asyncore.py

2014-12-16 Thread R. David Murray

R. David Murray added the comment:

Thanks for the effort, but we do not apply PEP8-only patches.  The small 
improvements in readability do not justify the costs of code churn and the 
chance of introducing bugs.

(Also, FYI, PEP8 discourages using \ for line continuation.)

--
nosy: +r.david.murray
resolution:  - rejected
stage:  - resolved
status: open - closed

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2014-12-16 Thread Nick Coghlan

Nick Coghlan added the comment:

Turns out I had written up a recap of the PEP 451 C extension support status 
back in July, so I just resent that to import-sig.

--

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



[issue22945] Ctypes inconsistent between Linux and OS X

2014-12-16 Thread Daniel Standage

Daniel Standage added the comment:

Sorry for my radio silence. Your example was very helpful, and restores the 
behavior I was looking for. Thanks!

--
resolution:  - works for me
status: open - closed

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



[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2014-12-16 Thread Brett Cannon

Brett Cannon added the comment:

Yeah, we need to settle the whole load_module() thing at PyCon because I'm 
tired of it hanging over our heads since the code is entirely structured to 
yank it out and if it's going to stay I want to clean up _bootstrap.py to make 
the code flow easier to follow.

--

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



[issue23066] re.match hang

2014-12-16 Thread Jie Yin

New submission from Jie Yin:

The following expression hang in 2.7.9 for the module re:

re.match('^([a-zA-Z0-9]+|[\\s]+|[,.])+$', 'Feature Test Macro Requirements for 
glibc ()')

--
components: Interpreter Core
messages: 232746
nosy: writalnaie
priority: normal
severity: normal
status: open
title: re.match hang
type: security
versions: Python 2.7

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



[issue23066] re.match hang

2014-12-16 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
nosy: +serhiy.storchaka

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



[issue23066] re.match hang

2014-12-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Please go to python-list to get help about writing re expressions for parsing. 
The example regexp does not technically hang, it is just exploring a very large 
set of alternatives, none of which match (because the trailing '()' doesn't 
match anything).

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

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



[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2014-12-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c49b7acba06f by Serhiy Storchaka in branch '3.4':
Issue #19858:  pickletools.optimize() now aware of the MEMOIZE opcode, can
https://hg.python.org/cpython/rev/c49b7acba06f

New changeset e7dd739b4b4e by Serhiy Storchaka in branch 'default':
Issue #19858:  pickletools.optimize() now aware of the MEMOIZE opcode, can
https://hg.python.org/cpython/rev/e7dd739b4b4e

--
nosy: +python-dev

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



[issue23060] Assert fails in multiprocessing.heap.Arena.__setstate__ on Windows

2014-12-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Or perhaps:

buffer = mmap.mmap(-1, self.size, tagname=self.name)
assert _winapi.GetLastError() == _winapi.ERROR_ALREADY_EXISTS
self.buffer = buffer

?

--
nosy: +pitrou

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



[issue15513] Correct __sizeof__ support for pickle

2014-12-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fed774c926f5 by Serhiy Storchaka in branch '3.4':
Issue #15513: Added a __sizeof__ implementation for pickle classes.
https://hg.python.org/cpython/rev/fed774c926f5

New changeset e11d99ed3d3f by Serhiy Storchaka in branch 'default':
Issue #15513: Added a __sizeof__ implementation for pickle classes.
https://hg.python.org/cpython/rev/e11d99ed3d3f

--
nosy: +python-dev

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



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

2014-12-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2ffaac4c8e53 by Serhiy Storchaka in branch 'default':
Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
https://hg.python.org/cpython/rev/2ffaac4c8e53

--
nosy: +python-dev

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



[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2014-12-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Many thanks for all your reviews Antoine!

--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



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

2014-12-16 Thread Serhiy Storchaka

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


--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue22777] Test pickling with all protocols

2014-12-16 Thread Serhiy Storchaka

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


--
status: open - closed

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Marc Abramowitz

Marc Abramowitz added the comment:

OK, I added a test.

See:

* 
https://bitbucket.org/msabramo/cpython/commits/9b8f6812ff6981b5f195b6bf73cefb0fea46fba6
* 
https://bitbucket.org/msabramo/cpython/pull-request/1/fix-distutils-setuppy-check/diff

If you want, I can also update the diff attached here, but maybe it's easier to 
just look at my branch on Bitbucket? Whatever is most convenient for you...

--

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Éric Araujo

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


--
hgrepos: +288

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Éric Araujo

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


Added file: http://bugs.python.org/file37471/9b8f6812ff69.diff

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Éric Araujo

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


--
hgrepos:  -286

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Marc Abramowitz

Changes by Marc Abramowitz msabr...@gmail.com:


Added file: http://bugs.python.org/file37472/issue23063.patch

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Éric Araujo

Éric Araujo added the comment:

The Mercurial integration lets you update the patch with one click.  
Decentralized VCSes are nice :‑)

Patch looks good to me.  Thank you.

--

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



[issue23060] Assert fails in multiprocessing.heap.Arena.__setstate__ on Windows

2014-12-16 Thread Steve Dower

Steve Dower added the comment:

That was actually my first hack and it also works. The fundamental problem here 
is that GetLastError() is not actually meant to indicate *whether* an error has 
occurred, but when one has occurred it describes what it was.

Indeed, in this case no error has occurred - CreateFileMapping was called and 
there is a file mapping available. OpenFileMapping is provided if an error is 
required when the mapping does not already exist.

The best option is definitely a separate method (or parameter) on mmap to 
open/raise rather than open/create. I may just comment out the assertion with a 
reference to this bug in the meantime, so that the buildbots aren't getting 
stuck every time.

--

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



[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-16 Thread Marc Abramowitz

Marc Abramowitz added the comment:

What's the next step?

--

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



[issue23067] Export readline forced_update_display

2014-12-16 Thread Chris Hand

New submission from Chris Hand:

The current implementation of readline implements the redisplay function, but 
not the forced version. This patch maintains the current behavior as the 
default, but also allows a bool to be passed which, if True, calls 
rl_forced_update_display instead.

--
components: Extension Modules
files: readline_redisplay_force.patch
keywords: patch
messages: 232757
nosy: dexteradeus
priority: normal
severity: normal
status: open
title: Export readline forced_update_display
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file37473/readline_redisplay_force.patch

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



[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''