[issue1674555] sys.path in tests contains system directories

2014-07-01 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

I update my patches every time they stop applying, but I do not feel that it is 
necessary to frequently attach new patches here.

--

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



[issue21894] ImportError: cannot import name jit

2014-07-01 Thread Ned Deily

Ned Deily added the comment:

This issue tracker is for reporting problems in Python itself.  For help in how 
to how to use Python, there are lots of forums to ask for help.  See 
https://www.python.org/about/help/ for suggestions.  That said, if you have 
named your example file parakeet.py, there's a good chance that it will 
shadow (or block) the parakeet module you installed.  Try renaming your file 
to something else.

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

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



[issue21889] https://docs.python.org/2/library/multiprocessing.html#process-and-exceptions doesn't explain exception

2014-07-01 Thread Ned Deily

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


--
nosy: +sbt

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



[issue21891] sysmodule.c, #define terminated with semicolon.

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 50e924d26ba6 by Ned Deily in branch '3.4':
Issue #21891: remove extraneous semicolon.
http://hg.python.org/cpython/rev/50e924d26ba6

New changeset fc527ecb4487 by Ned Deily in branch 'default':
Issue #21891: remove extraneous semicolon.
http://hg.python.org/cpython/rev/fc527ecb4487

--
nosy: +python-dev

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



[issue21891] sysmodule.c, #define terminated with semicolon.

2014-07-01 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report!

--
nosy: +ned.deily
resolution:  - fixed
stage:  - resolved
status: open - closed
versions: +Python 3.4

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



[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Ned Deily

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


--
nosy: +haypo

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



[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Ned Deily

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


--
nosy: +haypo

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



[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f55e802baf0 by Victor Stinner in branch '3.4':
Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
http://hg.python.org/cpython/rev/4f55e802baf0

New changeset 669b43bffd87 by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu
http://hg.python.org/cpython/rev/669b43bffd87

--
nosy: +python-dev

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



[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f55e802baf0 by Victor Stinner in branch '3.4':
Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
http://hg.python.org/cpython/rev/4f55e802baf0

New changeset 669b43bffd87 by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu
http://hg.python.org/cpython/rev/669b43bffd87

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

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



[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I forgot the mention John Malmberg in the changelog, sorry :-(

Thanks for your fix John.

--
stage: resolved - 

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



[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I forgot the mention John Malmberg in the changelog, sorry :-(

Thanks for your fix John.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21893
___
___
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-07-01 Thread Berker Peksag

Berker Peksag added the comment:

Patch updated. If there's no objections, I'll commit this patch in the next 
couple of days.

--
assignee: pje - berker.peksag
stage: patch review - commit review
Added file: http://bugs.python.org/file35814/issue5800_v3.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



[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Berker Peksag

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


--
stage:  - resolved

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



[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav Slavek Kabrda

New submission from Bohuslav Slavek Kabrda:

Reproducer attached. To describe the problem in words, one needs to do this to 
reproduce this issue:
- Create a signal handler and register it using signal.signal to SIGCHLD.
- Create a thread that invokes a subprocess, e.g. sleep 1 and then continues 
to do something for time period longer than the subprocess is running.
- Run this thread from main thread and call signal.pause() in the main thread.
- The pause() call is never interrupted and the signal handler is never run.

This happens because:
- Python adds signal_handler as a handler to the specified signal and stores 
the passed Python function in structure Handlers.
- When signal.pause() is run, the main thread releases the GIL, so that other 
threads can run.
- The non-main thread gets to lease and actually invokes the subprocess and 
then continues to do something.
- When subprocess finishes, it sends the signal *to the thread that invoked it* 
(assuming this thread is still running). This means that the signal.pause() 
call is not interrupted and main thread continues to sleep.
- The non-main thread adds handler call to the list of pending calls using 
Py_AddPendingCall.
- Pending calls are checked in Py_MakePendingCalls, which is called in every 
iteration of the bytecode evaluation loop in PyEval_EvalFrameEx.
- The problem is that since pause() isn't un-paused and hangs forever, the 
evaluation loop never gets to another iteration, hence can't do any pending 
call.

This happens on all Python versions I've tried, using pthread threading.
I think this could *possibly* be solved by issuing a pthread_kill from the 
non-main thread to the main thread to wake it up, but I'm not sure what all the 
implications of such a change would be.

--
components: Interpreter Core
files: signal_pause_doesnt_wake_up.py
messages: 222021
nosy: bkabrda
priority: normal
severity: normal
status: open
title: signal.pause() doesn't wake up on SIGCHLD in non-main thread
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35815/signal_pause_doesnt_wake_up.py

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



[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

First of all, signals and threads usually don't play together. Most signal 
functions are *not* thread safe. The behaviour of signal functions are not well 
defined for threads.

Example with pause:

pause()  causes  the  calling  process  (or  thread) to sleep until a signal 
is delivered that either terminates the process or causes the invocation of a 
signal-catching function.

What does it mean or thread? Sometimes the function waits for a signal from 
any thread, something only from the caller thread? :-p

I understood that pause() only waits for signals received in the caller thread, 
main thread in your case.

Depending on the platform, a signal may be delivered to a different thread :-/ 
Especially when a signal is send to the process, ex: kill -USR1 pid command 
on UNIX.

This issue is more a documentation issue: we should mention that pause() is 
limited to a thread.

Python signal handlers are only called from the main thread, even if signals 
can be received from any thread.

For your example, you can workaround pause() issue by calling 
signal.pthread_sigmask(signal.SIG_BLOCK, [signal.SIGCHLD]) in your thread.

--

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



[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor

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


--
nosy: +neologix

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



[issue21599] Argument transport in attach and detach method in Server class in base_events file is not used

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

I proposed a deeper change to make most attributes and methods private:
https://code.google.com/p/tulip/issues/detail?id=180

--

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



[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread Tymoteusz Paul

New submission from Tymoteusz Paul:

I've recently ran into a problem with urellib.request.urlopen that it fails 
against one website (that I've found so far). The website itself is working 
fine, I can access its content with other libraries like requests, curl and 
outside of python with telnet, links and so on. But with urllib it fails:

Python 3.4.1 (default, Jul  1 2014, 14:08:25)
[GCC 4.7.3] on linux
Type help, copyright, credits or license for more information.
 import urllib.request
 urllib.request.urlopen(http://www.thomsonlocal.com/;)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib64/python3.4/urllib/request.py, line 153, in urlopen
return opener.open(url, data, timeout)
  File /usr/lib64/python3.4/urllib/request.py, line 455, in open
response = self._open(req, data)
  File /usr/lib64/python3.4/urllib/request.py, line 473, in _open
'_open', req)
  File /usr/lib64/python3.4/urllib/request.py, line 433, in _call_chain
result = func(*args)
  File /usr/lib64/python3.4/urllib/request.py, line 1215, in http_open
return self.do_open(http.client.HTTPConnection, req)
  File /usr/lib64/python3.4/urllib/request.py, line 1194, in do_open
r = h.getresponse()
  File /usr/lib64/python3.4/http/client.py, line 1172, in getresponse
response.begin()
  File /usr/lib64/python3.4/http/client.py, line 351, in begin
version, status, reason = self._read_status()
  File /usr/lib64/python3.4/http/client.py, line 313, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), iso-8859-1)
  File /usr/lib64/python3.4/socket.py, line 371, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

I've tested it on about 6 different servers, in different parts of the world 
and all of them seem to be affected. I've tested with with 3.2.5, 3.3.3, 3.4.1 
and they are all failed with the same trace.

--
components: Library (Lib)
messages: 222024
nosy: Tymoteusz.Paul
priority: normal
severity: normal
status: open
title: Unexpected ConnectionResetError in urllib.request against a valid website
type: crash
versions: Python 3.3, Python 3.4

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



[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier

Andy Maier added the comment:

Ezio, what do you mean with string signature?

For me, the patch looks fine as it is.

--
nosy: +andymaier

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



[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Ezio Melotti

Ezio Melotti added the comment:

I mean here: https://docs.python.org/2/library/functions.html#str

--

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



[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2014-07-01 Thread Rodrigue Alcazar

Rodrigue Alcazar added the comment:

@Mark, I had a look at the time I commented on the ticket but didn't get a 
chance to progress much in the end.

--

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



[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda added the comment:

I think that the problem here is that the documentation sets an expectation 
that's not met, at least from my POV. Running the reproducer, I was expecting 
the main thread to unpause and execute the signal handler (citing: Python 
signal handlers are always executed in the main Python thread). I understand 
that this may be insanely hard to fix in code, so documentation should 
explicitly point out that there are some (perhaps unfixable) problems with 
Python's approach to threading+signals.

--

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



[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-01 Thread Masami HIRATA

New submission from Masami HIRATA:

It seems that frame.f_locals causes segfault on Python =3.4.1

$ uname -a
Linux ashrose 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
$ ls
test1.py
$ cat test1.py
import unittest

class TestCallable(unittest.TestCase):
def test_callable(self):
try:
with self.assertRaises(IndexError):
def raise_error(): raise TypeError
(lambda: raise_error())()
except TypeError as exception:
exception.__traceback__.tb_next.tb_frame.f_locals
$ python3.4.1 -m unittest
Segmentation fault
$ python3.4.0 -m unittest
.
--
Ran 1 test in 0.001s

OK
$ python3.3.5 -m unittest
.
--
Ran 1 test in 0.000s

OK
$ gdb /home/python/local/3.4.1mgs/bin/python3.4.1

...

(gdb) run -m unittest
Starting program: /home/python/local/3.4.1mgs/bin/python3.4.1 -m unittest
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.

Program received signal SIGSEGV, Segmentation fault.
map_to_dict (deref=1, values=0x75e97510, dict=0x75e8f588, 
nmap=optimized out, map=0x760e0278)
at Objects/frameobject.c:791
791 value = PyCell_GET(value);
(gdb) bt
#0  map_to_dict (deref=1, values=0x75e97510, dict=0x75e8f588, 
nmap=optimized out, 
map=0x760e0278) at Objects/frameobject.c:791
#1  PyFrame_FastToLocalsWithError (f=0x75e97398) at 
Objects/frameobject.c:915
#2  0x779beaa9 in frame_getlocals (f=0x75e97398, closure=optimized 
out)
at Objects/frameobject.c:24
#3  0x779deff3 in _PyObject_GenericGetAttrWithDict (obj=0x75e97398, 
name=0x77fcdbb0, dict=0x0)
at Objects/object.c:1043
#4  0x77a57891 in PyEval_EvalFrameEx (f=optimized out, 
throwflag=optimized out)
at Python/ceval.c:2411
#5  0x77a5df3c in PyEval_EvalCodeEx (_co=optimized out, 
globals=optimized out, 
locals=optimized out, args=optimized out, argcount=1, kws=0x790f48, 
kwcount=0, defs=0x0, defcount=0, 
kwdefs=0x0, closure=0x0) at Python/ceval.c:3578
#6  0x77a5ca61 in fast_function (nk=optimized out, na=optimized 
out, n=optimized out, 
pp_stack=0x7fffbbf0, func=0x76115158) at Python/ceval.c:4334
#7  call_function (oparg=optimized out, pp_stack=0x7fffbbf0) at 
Python/ceval.c:4252
#8  PyEval_EvalFrameEx (f=optimized out, throwflag=optimized out) at 
Python/ceval.c:2829
#9  0x77a5df3c in PyEval_EvalCodeEx (_co=optimized out, 
globals=optimized out, 
locals=optimized out, args=optimized out, argcount=2, 
kws=0x77fad060, kwcount=0, 
defs=0x7617cd48, defcount=1, kwdefs=0x0, closure=0x0) at 
Python/ceval.c:3578
#10 0x779bf28c in function_call (func=0x76192400, 
arg=0x76101c08, kw=0x75e8f248)
at Objects/funcobject.c:632
#11 0x7799300e in PyObject_Call (func=0x76192400, arg=optimized 
out, kw=optimized out)
at Objects/abstract.c:2067
#12 0x77a56871 in ext_do_call (nk=0, na=1, flags=optimized out, 
pp_stack=0x7fffbec0, 
func=0x76192400) at Python/ceval.c:4551
#13 PyEval_EvalFrameEx (f=optimized out, throwflag=optimized out) at 
Python/ceval.c:2869
---Type return to continue, or q return to quit---

--
components: Interpreter Core
messages: 222029
nosy: msmhrt
priority: normal
severity: normal
status: open
title: frame.f_locals causes segfault on Python =3.4.1
type: crash
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21897
___
___
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-07-01 Thread Mümin Öztürk

Mümin Öztürk added the comment:

more tests and some documentation added.

--
Added file: http://bugs.python.org/file35816/strftime3.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



[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread Mark Lawrence

Mark Lawrence added the comment:

Are there any more warnings that need silencing or can this be closed as fixed? 
 How do I check for these warnings as I don't have a 64 bit machine?

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

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



[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier

New submission from Andy Maier:

The .hgignore file misses some entries for directories and files created by 
Eclipse with pydev.

The additional lines for .hgignore would be:
^.project
^.pydevproject
^.settings/

This change applies to 2.7 and 3.x.

--
messages: 222032
nosy: andymaier
priority: normal
severity: normal
status: open
title: .hgignore: Missing ignores for Eclipse/pydev
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier

Changes by Andy Maier andreas.r.ma...@gmx.de:


--
keywords: +patch
Added file: http://bugs.python.org/file35817/issue21898.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21898
___
___
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-07-01 Thread R. David Murray

R. David Murray added the comment:

Since we don't need to avoid new language features, using the ternary would be 
better than using the or.  This is exactly the sort of situation the ternary 
was introduced for: making sure the input really is None before applying the 
default.

Otherwise the patch looks good.

--

___
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



[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread R. David Murray

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


--
nosy: +r.david.murray

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



[issue21899] Futures are not marked as completed

2014-07-01 Thread Sebastian Kreft

New submission from Sebastian Kreft:

With Python 3.4.1 compiled from source, I'm having an issue in which every now 
and then some Futures are not marked as completed even though the underlying 
workload is done.

My workload is launching two subprocess in parallel, and whenever one is ready, 
launches another one. In one of the runs, the whole process got stuck after 
launching about 3K subprocess, and the underlying processes had in fact 
finished.

To wait for the finished subprocesses, I'm using FIRST_COMPLETED. Below is the 
core of my workload:

for element in element_generator:
while len(running) = max_tasks:
done, pending = concurrent.futures.wait(running, timeout=15.0, 
return_when=concurrent.futures.FIRST_COMPLETED)
process_results(done)
running = pending

running.add(executor.submit(exe_subprocess, element)) 
 

Replicating the issue takes time, but I've been able to successfully reproduce 
it with 2 and 3 processes in parallel.

Note: this was already posted in comments to http://bugs.python.org/issue20319, 
however it did not receive the proper atention as that issue is already closed.

As suggested there I printed the status of the never finished futures and this 
is the result:

State: RUNNING, Result: None, Exception: None, Waiters: 0, Cancelled: False, 
Running: True, Done: False

The information does not seem very relevant. However, I can attach a console 
and debug from there.

--
messages: 222034
nosy: Sebastian.Kreft.Deezer
priority: normal
severity: normal
status: open
title: Futures are not marked as completed

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



[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

 How do I check for these warnings as I don't have a 64 bit machine?

Check buildbots. Example:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4744/steps/compile/logs/warnings%20%28108%29

There are still open issues related to this one: #18295 at least.

--

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



[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf

Klaus Wolf added the comment:

Please reopen this bug. To answer the question: Why on Earth would you want to 
serialize a hashlib object? : multiprocessing.connection.ForkingPickler wants. 
I.e. if you want to parallelize your hash calculations, this will obstruct your 
efforts.

--
nosy: +approximately

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



[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Ezio Melotti

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


--
nosy: +ezio.melotti, pitrou
stage:  - patch review
versions:  -Python 3.1, Python 3.2, Python 3.3

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



[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 36e884e65e45 by Victor Stinner in branch '3.4':
Issue #21781: Make the ssl module ssize_t clean for parsing parameters.
http://hg.python.org/cpython/rev/36e884e65e45

--
nosy: +python-dev

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



[issue21781] make _ssl module 64-bit clean

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



[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 26afcb8a87b9 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21781: Make the ssl module ssize_t clean for parsing
http://hg.python.org/cpython/rev/26afcb8a87b9

--

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



[issue21780] make unicodedata module 64-bit safe

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b82ff2d7f5ef by Victor Stinner in branch '3.4':
Closes #21780: make the unicodedata module ssize_t clean for parsing 
parameters
http://hg.python.org/cpython/rev/b82ff2d7f5ef

New changeset afd64e660628 by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21780: make the unicodedata module ssize_t clean for
http://hg.python.org/cpython/rev/afd64e660628

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

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



[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 691ca1694fe7 by Victor Stinner in branch '3.4':
Issue #8677: make the zlib module ssize_t clean for parsing parameters
http://hg.python.org/cpython/rev/691ca1694fe7

New changeset 45dcdd8f3211 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #8677: make the zlib module ssize_t clean for parsing
http://hg.python.org/cpython/rev/45dcdd8f3211

--
nosy: +python-dev

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier

New submission from Andy Maier:

In Python 2.7 and up to Python 3.3, the documentation build process downloads 
tools such as Sphinx etc. into the Doc/tools subtree. The .hgignore file misses 
entries to ignore those.

The additional lines for .hgignore would be:
^Doc/tools/docutils/
^Doc/tools/jinja2/
^Doc/tools/pygments/
^Doc/tools/sphinx/

This change applies to 2.7 only (assuming 3.1-3.3 are no longer patched).

--
messages: 222041
nosy: andymaier
priority: normal
severity: normal
status: open
title: .hgignore: Missing ignores for downloaded doc build tools
versions: Python 2.7

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier

Changes by Andy Maier andreas.r.ma...@gmx.de:


--
keywords: +patch
Added file: http://bugs.python.org/file35818/issue21900.diff

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



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

2014-07-01 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


Added file: http://bugs.python.org/file35819/3rdpartychecker-v2.diff

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



[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Do you honestly have a situation where you need to share a computationally
significant amount of hashing state only to want to finish the computation
N different times with alternate computationally significant ending data
that multiprocessing would actually help with where you cannot use
threads?  Hashlib releases the GIL during nontrivial hash computations.

--

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



[issue21090] File read silently stops after EIO I/O error

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

Here is a patch for FileIO.readall() which should fix the issue. Currently, 
readall() returns read bytes at the first read() error if a least one call to 
read() succeed.

--
keywords: +patch
Added file: http://bugs.python.org/file35820/fileio_readall_eio.patch

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



[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf

Klaus Wolf added the comment:

You want to say: It doesn't work, but it is somehow intentional because you 
never used id, correct?

--

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



[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-01 Thread Stefan Krah

Stefan Krah added the comment:

6ab3193e890e exposes the issue.

--
nosy: +pitrou, skrah

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



[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

I don't think anymore that it's a good idea. Almost all C functions can replace 
the current Python exception. There is no reason to add assertions only in a 
few functions.

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21857
___
___
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-07-01 Thread akira

akira added the comment:

 ``%s`` format code behaviour was undefined and incidental.

strftime('%s') is not portable but it *is* supported on some
platforms i.e., it is *not* undefined and it is *not* incidental
on these platforms. datetime.strftime *delegates* to the platform
strftime(3) and some platforms do support %s format code. See the
quote from the datetime docs in msg221385.

It would be preferable that datetime.strftime would reject format
codes that it doesn't support explicitly (like datetime.strptime
does) so that datetime.strftime were portable but that ship
has sailed.

This issue could be titled: add cross-platform support for %s
strftime-format code (and fix its behavior (add support) for
timezone-aware datetime objects).

---

If the implementation uses floats to get an integer result; it should
have tests for edge cases (datetime.min, datetime.max at least). I
don't see such tests, please, correct me if I'm wrong.

--

___
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



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

2014-07-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I want to broaden this to 'external' programs. Will discuss.

Both versions appear to be trying to access non-existent configuration 
parameters.

Warning: configHandler.py - IdleConf.GetOption -
problem retrieving configuration option 'enabled'
from section 'pyflakes'.
returning default value: None

Warning: configHandler.py - IdleConf.GetOption -
problem retrieving configuration option 'command'
from section 'pyflakes'.
returning default value: None

v1. Trial on file with no warnings - need end of report summary like find in 
files so actually know program ran. Trial on file with warnings hangs Idle.

v2. Trying to enable pyflakes gives this
Traceback (most recent call last):
  File F:\Python\dev\4\py34\lib\tkinter\__init__.py, line 1487, in __call__
return self.func(*args)
  File F:\Python\dev\4\py34\lib\idlelib\Checker.py, line 290, in ok
self.close()
  File F:\Python\dev\4\py34\lib\idlelib\Checker.py, line 296, in close
self._checker.update_listbox()
AttributeError: 'function' object has no attribute 'update_listbox'

--

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



[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier

Andy Maier added the comment:

Your patch right now generates the line:

  New in version 2.6: bytes() has been added as an alias for str()

at the end of the paragraph for str().

To me, that is sufficient for the description of str().

If anything, we could add a separate paragraph for bytes(), after the paragraph 
for bytearray(), e.g. like this:

--

.. function:: bytes()

   Alias for :func:`str`.

   .. versionadded:: 2.6

--

If that is what you had in mind, I think it is a good idea to add it.

Andy

--

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



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

2014-07-01 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


Removed file: http://bugs.python.org/file35819/3rdpartychecker-v2.diff

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



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

2014-07-01 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


Added file: http://bugs.python.org/file35821/3rdpartychecker-v2.diff

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



[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Please be constructive.

There is no way to implement generic pickling for hash objects that would work 
across all implementations.  

The underlying code implementing each function is free to store its internal 
state however it wants and does not provide an API to get at it or any standard 
representation of it.

Sure, you could hack things up and allow a specific version and build of 
openssl's EVP hashes to dump their state and restore it for use in another 
process running that same specific version and build of openssl (as would 
likely be the case for multiprocessing use) just as you could for any other 
implementation of a hash function such as the builtin libtomcrypt versions.  
But this is not portable between compilations using different implementations 
of the hash algorithm.  That is not what someone using pickle would ever expect.

Public APIs to access the internal state of hash functions do not exist because 
it is not a common thing for people to do.

hashlib isn't going to support this unless someone contributes a very solid 
patch with tests that handles all of the compatibility issues in a friendly 
maintainable manner.

--
stage:  - resolved
type:  - enhancement

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



[issue14097] Improve the introduction page of the tutorial

2014-07-01 Thread Andy Maier

Andy Maier added the comment:

Zach, I reviewed your 2.7 backport, including a comparison with the latest 3.x 
patch.

Comments on the 2.7 backport:

1. In 3.1.1 Numbers, on If both operands are ints,:
The ints is a link labeled int followed by a normal font s. I think it 
would be better to avoid concatenating them, and to say something like: If 
both operands are of type int,.

Comments on both the 2.7 backport and on the latest 3.x patch:

2. In the last paragraph of 3.1.1 Numbers (In addition to int and float, 
Python supports..::
The long type could be mentioned here as well, only with a link and no 
explanation, consistent with how Decimal and Fraction are mentioned.

Comments on just the latest 3.x patch:

3. In 3.1.2. Strings, I am missing a mentioning that the characters in 
strings are Unicode characters. I think quite a bit of the unicode subclause of 
the 2.x patch would be appropriate. I would also mention byte strings at this 
point, but only the fact that they exist and with a link.

--
nosy: +andymaier

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14097
___
___
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-07-01 Thread Ville Nummela

Ville Nummela added the comment:

Uploading a few more 'bad' lzma files for testing.

--
Added file: http://bugs.python.org/file35822/more_bad_lzma_files.zip

___
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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-01 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There are certainly some problems with subprocess on Windows.
Note .../python34 pip pyflakes  installs in a second or two.
... pyflakes -h  # Windows Command Propmpt WCP
 import subprocess as s; s.check_output(pyflakes -h)
console interpreter CI or Idle, all produce help output

WCP pyflakes c:\programs\python34\lib\turtle.py  # or / instead of \
c:\programs\python34\lib\turtle.py:572: local variable 'rgb' is assigned to but 
never used
... 50+ lines (all  1/2 second)
c:\programs\python34\lib\turtle.py:4139: undefined name 'exitonclick'

CI s.check_output(pyflakes c:\programs\python34\lib\turtle.py)
pause, so almost think is hanging, then

c:\programs\python34\lib\lib2to3\tests\data\bom.py:2:17: invalid syntax print 
BOM BOOM!
...100 more error for various files.
pyflakes ignores file name given and checks entire stdlib.

ID s.check_output(pyflakes c:\programs\python34\lib\turtle.py)
hangs indefinitely, no output

CI or ID  s.check_output(pyflakes c:/programs/python34/lib/turtle.py)  # / 
instead of \ which was ok in WCP
Traceback (most recent call last):
  File stdin, line 1, in module
  File F:\Python\dev\5\py35\lib\subprocess.py, line 627, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 'pyflakes c:/programs/python34/lib/turtle
.py' returned non-zero exit status 1

Above is CI 3.5 and Idle 3.4. subprocess and pyflakes work fine on linux. We 
are trying to add a feature to Idle to do above on file in editor, and are 
stuck here. The actual provisional code is
+proc = Popen(args, stdout=PIPE, stderr=PIPE)
+proc.wait()
+output, error = map(lambda b:b.decode('utf-8'), proc.communicate())
where args is  list, which shows the same hang forever behavior.

--
nosy: +steve.dower, terry.reedy, zach.ware
resolution: rejected - 
status: closed - open
versions: +Python 3.4, Python 3.5 -Python 2.5, Python 2.6, Python 3.1, Python 
3.2

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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-01 Thread Terry J. Reedy

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


--
nosy: +sahutd

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



[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread R. David Murray

R. David Murray added the comment:

The entries are there for 2.7.  And indeed for the 3.x versions to which they 
applied.

--
nosy: +r.david.murray
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2014-07-01 Thread Mark Lawrence

Mark Lawrence added the comment:

Hardly a good start :-(  From the IDLE shell.

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit 
(Intel)] on win32
Type copyright, credits or license() for more information.
 from pkgutil import walk_packages
 packages = list(walk_packages())
Traceback (most recent call last):
  File pyshell#1, line 1, in module
packages = list(walk_packages())
  File C:\Python34\lib\pkgutil.py, line 86, in walk_packages
__import__(name)
  File C:\Python34\lib\site-packages\pip\__init__.py, line 9, in module
from pip.log import logger
  File C:\Python34\lib\site-packages\pip\log.py, line 8, in module
from pip import backwardcompat
  File C:\Python34\lib\site-packages\pip\backwardcompat\__init__.py, line 27, 
in module
console_encoding = sys.__stdout__.encoding
AttributeError: 'NoneType' object has no attribute 'encoding'

Then from the command line.

C:\Users\Mark\MyPythontype wptest.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from pkgutil import walk_packages

packages = list(walk_packages())

C:\Users\Mark\MyPythonwptest.py
c:\python34\lib\site-packages\wx\core.py:22: UserWarning: wxPython/wxWidgets 
release number mismatch
  warnings.warn(wxPython/wxWidgets release number mismatch)
---
RuntimeError  Traceback (most recent call last)
C:\Users\Mark\MyPython\wptest.py in module()
  4 from pkgutil import walk_packages
  5
 6 packages = list(walk_packages())

c:\python34\lib\pkgutil.py in walk_packages(path, prefix, onerror)
 99 path = [p for p in path if not seen(p)]
100
-- 101 yield from walk_packages(path, name+'.', onerror)
102
103

c:\python34\lib\pkgutil.py in walk_packages(path, prefix, onerror)
 99 path = [p for p in path if not seen(p)]
100
-- 101 yield from walk_packages(path, name+'.', onerror)
102
103

c:\python34\lib\pkgutil.py in walk_packages(path, prefix, onerror)
 99 path = [p for p in path if not seen(p)]
100
-- 101 yield from walk_packages(path, name+'.', onerror)
102
103

c:\python34\lib\pkgutil.py in walk_packages(path, prefix, onerror)
 99 path = [p for p in path if not seen(p)]
100
-- 101 yield from walk_packages(path, name+'.', onerror)
102
103

c:\python34\lib\pkgutil.py in walk_packages(path, prefix, onerror)
 84 if ispkg:
 85 try:
--- 86 __import__(name)
 87 except ImportError:
 88 if onerror is not None:

c:\python34\lib\site-packages\wx\lib\pubsub\core\arg1\__init__.py in module()
 14
 15 msg = 'Should not import this directly, used by pubsub.core if 
applicable'
--- 16 raise RuntimeError(msg)

RuntimeError: Should not import this directly, used by pubsub.core if applicable

But then.

C:\Users\Mark\MyPythoncd c:\cpython\pcbuild

c:\cpython\PCbuildpython_d.exe C:\Users\Mark\MyPython\wptest.py

c:\cpython\PCbuild

No problems above!!!

Given Brett's comment in msg165456 But if we do this then I want to deprecate 
pkgutil in Python 3.4 I don't believe that this is worth pursuing, or have I 
missed something?

--
nosy: +brett.cannon

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



[issue14097] Improve the introduction page of the tutorial

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 438da6ae38fa by Zachary Ware in branch '2.7':
Issue #14097: Backport 796d1371605d and subsequent changes.
http://hg.python.org/cpython/rev/438da6ae38fa

--

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



[issue14097] Improve the introduction page of the tutorial

2014-07-01 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the reviews, Ezio and Andy.  Committed with most of your points 
addressed, though I did leave out the link to `long` since I could not come up 
with a good wording for adding it, and `long` is easily findable from `int`.  
Also, the link for 'complex numbers' also explains `long`, so it should be easy 
to find without burdening newbies with another name that they may not need for 
some time.

Andy: in future, please use the 'review' link to post reviews, it makes it much 
easier for the patch author to keep track of where your comments are meant to 
apply, and you can leave comments on multiple versions of a patch if you like.

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

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



[issue18604] Consolidate gui available checks in test.support

2014-07-01 Thread Zachary Ware

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


--
assignee: zach.ware - ned.deily
resolution: fixed - 

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



[issue21899] Futures are not marked as completed

2014-07-01 Thread Ned Deily

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


--
nosy: +bquinlan

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



[issue16968] Fix test discovery for test_concurrent_futures.py

2014-07-01 Thread Mark Lawrence

Mark Lawrence added the comment:

I followed the link in msg194910 to python-dev but didn't find a single 
response so where does that leave us?  I ask because I'd like to help out with 
the outstanding test issues, but there are so many of them and they seem so 
interlinked that I don't know where to start.  Please advise.

--
nosy: +BreamoreBoy

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



[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize killed by shell

2014-07-01 Thread R. David Murray

New submission from R. David Murray:

On one particular linux vserver virtual machine (which is unfortunately my 
development platform for python), 
test.test_selectors.PollSelectorTestCase.test_above_fd_setsize fails with the 
following message:

   zsh: killed

and at that point the test suite stops running, regardless of whether or not I 
started it with -j.

As far as I can tell, the configuration of this vserver is the same as the one 
my buildbots run on, but they are on different host machines, so there could be 
some differences I'm not remembering.  On the buldbots, the test gets skipped 
with the message 'FD limit reached'.

Anyone have any clues how to debug this?

--
components: asyncio
messages: 222059
nosy: gvanrossum, haypo, neologix, r.david.murray, yselivanov
priority: normal
severity: normal
status: open
title: test_selectors.PollSelectorTestCase.test_above_fd_setsize killed by shell
type: crash
versions: Python 3.4, Python 3.5

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



[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Mark Lawrence

Mark Lawrence added the comment:

@Zach just a reminder that you've committed #18492 in case you'd forgotten this.

--
nosy: +BreamoreBoy

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



[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-01 Thread R. David Murray

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


--
title: test_selectors.PollSelectorTestCase.test_above_fd_setsize killed by 
shell - test_selectors.PollSelectorTestCase.test_above_fd_setsize reported 
killed by shell

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



[issue21897] frame.f_locals causes segfault on Python =3.4.1

2014-07-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Following patch seems to fix it, but I have to cook a proper test:

diff --git a/Objects/frameobject.c b/Objects/frameobject.c
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -786,7 +786,7 @@ map_to_dict(PyObject *map, Py_ssize_t nm
 PyObject *key = PyTuple_GET_ITEM(map, j);
 PyObject *value = values[j];
 assert(PyUnicode_Check(key));
-if (deref) {
+if (deref  value != NULL) {
 assert(PyCell_Check(value));
 value = PyCell_GET(value);
 }

--

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



[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-01 Thread STINNER Victor

STINNER Victor added the comment:

The test changes the maximum number of open files. What is the limit in your 
shell? You can try to modify the test to add print(soft, hard) after 
getrlimit().

On Fedora 20:

$ python -c 'import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))'
(1024, 4096)

The test tries to use the hard limit (4096) to set the soft limit (1024).

--

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



[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 27feb652d3ad by Zachary Ware in branch '3.4':
Issue #18258: Fix test discovery for test_codecmaps_*.
http://hg.python.org/cpython/rev/27feb652d3ad

New changeset b08921c7d1ec by Zachary Ware in branch 'default':
Issue #18258: Fix test discovery for test_codecmaps_*.
http://hg.python.org/cpython/rev/b08921c7d1ec

--
nosy: +python-dev

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



[issue21804] Implement thr UTF8 command (RFC 6856) in poplib.

2014-07-01 Thread Milan Oberkirch

Milan Oberkirch added the comment:

I got the Exception policy of the POP3 class wrong (ignore my review comment on 
that) and needed to add 'UTF8' to the list of optional commands.

--
Added file: http://bugs.python.org/file35823/poputf8-v2.patch

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



[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Zachary Ware

Zachary Ware added the comment:

Not forgotten, just hadn't gotten to on the list yet.

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

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



[issue10224] Build 3.x documentation using python3.x

2014-07-01 Thread Ezio Melotti

Ezio Melotti added the comment:

Éric, I think you should open a separate issue for this.

--

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



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

2014-07-01 Thread Kevin Davies

New submission from Kevin Davies:

The docstring of acosh should more accurately be 
Return the area hyperbolic cosine of x.
instead of 
Return the hyperbolic arc cosine (measured in radians) of x.
asinh and atanh should be changed similarly.  The result of these functions is 
not an angle but a ratio of areas.  See 
http://en.wikipedia.org/wiki/Inverse_hyperbolic_function.

--
messages: 222067
nosy: kdavies4
priority: normal
severity: normal
status: open
title: Docstring of math.acosh, asinh, and atanh

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



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

2014-07-01 Thread Ezio Melotti

Ezio Melotti added the comment:

Do you want to propose a patch?
https://docs.python.org/3/library/math.html#hyperbolic-functions should be 
updated as well.

--
assignee:  - docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python, ezio.melotti, mark.dickinson, rhettinger, stutzbach
stage:  - needs patch
type:  - enhancement
versions: +Python 2.7, Python 3.4, Python 3.5

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



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

2014-07-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a91f0d4a2381 by Berker Peksag in branch 'default':
Issue #5800: headers parameter of wsgiref.headers.Headers is now optional.
http://hg.python.org/cpython/rev/a91f0d4a2381

--
nosy: +python-dev

___
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



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

2014-07-01 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch and review.

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

___
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



[issue14097] Improve the introduction page of the tutorial

2014-07-01 Thread Ezio Melotti

Ezio Melotti added the comment:

Thanks for backporting this!

--

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