[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-03-17 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Now that the 3.5 branch is the default, can this feature be committed?

--

___
Python tracker 

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



[issue19385] dbm.dumb should be consistent when the database is closed

2014-03-17 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Can this patch be committed, now that 3.5 is active?

--

___
Python tracker 

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



[issue20853] pdb "args" crashes when an arg is not printable

2014-03-17 Thread Jurjen N.E. Bos

Jurjen N.E. Bos added the comment:

I did figure it out.
It almost works, except when a argument lost its value, and the same name 
exists in the global context.
To be more specific: I simplified do_args to the following code
(that obviously ugly by explicitly evaluating repr in context, but
that is not the point)
def do_args(self, arg):
"""a(rgs)
Print the argument list of the current function.
Modified by Jurjen
"""
co = self.curframe.f_code
n = co.co_argcount
if co.co_flags & 4: n = n+1
if co.co_flags & 8: n = n+1
for i in range(n):
name = co.co_varnames[i]
expr = 'repr(%s)' % (name,)
self.message('%s = %s' % (name, self._getval_except(expr)))

At it works perfectly, except for this little surprise:
>>> bar = "BAR"
>>> def foo(bar):
...del bar
...return 5
>>> pdb.runcall(f, 10)
> (2)f()
->del bar
(Pdb) a
bar = 5
(Pdb) n
> (3)f()
-> return 5
(Pdb) a
bar = 'BAR'  # Huh? Expected undefined

I'll leave it to the experts to patch this in proper Python coding style.
So, the conclusion is we need a way to safely evaluate the call to repr() in 
context, with self.curframe_locals[co.co_varnames[i]] as argument.

I did not find a good supporting routine for that elsewhere in pdb.

--

___
Python tracker 

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



[issue20887] stdlib compatibility with pypy, test_zipfile.py

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

If you want to provide two patches for the two major lines, that’d be ideal.  
Please post both on this one ticket though.  Thank you!

--
nosy: +eric.araujo

___
Python tracker 

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



[issue20265] Bring Windows docs up to date

2014-03-17 Thread Mark Lawrence

Mark Lawrence added the comment:

IIRC PTVS can't be used with the express editions so please mention this.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

New submission from Marc Schlaich:

Steps to reproduce:

- clone pytest-cov at 
https://bitbucket.org/schlamar/pytest-cov/commits/ac14225a67d715b6649f8158e05d2389b78620d2
- remove `@pytest.mark.skipif` from `test_multiprocessing_subprocess` in 
test_pytest_cov.py
- run: `tox --develop -e py27 -- -x`

Result: it fails with MemoryError in `subprocess._args_from_interpreter_flags` 
because sys.flags.hash_randomization has a value of 2147483647 and it tries to 
build a string with such a length. Find more details in attached log. Patch is 
following.

--
components: Library (Lib), Windows
files: output.log
messages: 213844
nosy: schlamar
priority: normal
severity: normal
status: open
title: Bug in subprocess._args_from_interpreter_flags causes MemoryError
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file34452/output.log

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

Marc Schlaich added the comment:

Patch added.

--
keywords: +patch
Added file: http://bugs.python.org/file34453/Issue20954.patch

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-17 Thread Ned Deily

Ned Deily added the comment:

Here are patches to change network use of www.python.org to www.example.com so 
that the tests should pass even if the interpreter is built without SSL 
support.  It turns out that there are references to www.python.org in 
unexpected places (like test_site) so, while I ran all tests and tested the 
changes both with and without SSL availability, it wouldn't surprise me if I 
missed a few spots. Also, as requested by Benjamin, I produced patches for and 
tested on 3.1 and 3.2.  I'm +0 on applying the changes there as there are 
other, unrelated test failures with those releases on some platforms, but with 
the patches no one can blame the new python.org website for them.

--
assignee:  -> ned.deily
keywords: +patch
nosy: +benjamin.peterson, georg.brandl
stage: needs patch -> patch review
versions: +Python 3.1, Python 3.2, Python 3.5
Added file: http://bugs.python.org/file34454/issue20939_all_27.patch

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-17 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file34456/issue20939_all_32.patch

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-17 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file34455/issue20939_all_31.patch

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-17 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file34457/issue20939_all_33.patch

___
Python tracker 

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-03-17 Thread Ram Rachum

Changes by Ram Rachum :


--
title: Add `pathlib.Path.write` and `pathlib.Path.read` -> Add methods to 
`pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

___
Python tracker 

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-17 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file34458/issue20939_all_3x.patch

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

Marc Schlaich added the comment:

This comes from http://bugs.python.org/issue12098. Python 3.3 is affected, too.

Reproduction can be minimized by running the following script:


import multiprocessing


def main():
p = multiprocessing.Process(target=lambda: None)
p.start()
p.join()


if __name__ == '__main__':
main()

as

$ PYTHONHASHSEED=2147483647 python test.py
Traceback (most recent call last):
  File "test.py", line 12, in 
main()
  File "test.py", line 7, in main
p.start()
  File "c:\Python27\lib\multiprocessing\process.py", line 130, in start
self._popen = Popen(self)
  File "c:\Python27\lib\multiprocessing\forking.py", line 258, in __init__
cmd = get_command_line() + [rhandle]
  File "c:\Python27\lib\multiprocessing\forking.py", line 364, in 
get_command_line
opts = util._args_from_interpreter_flags()
  File "c:\Python27\lib\subprocess.py", line 508, in 
_args_from_interpreter_flags
args.append('-' + opt * v)
MemoryError

--
versions: +Python 3.3

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

Marc Schlaich added the comment:

Added TestCase.

--
Added file: http://bugs.python.org/file34459/20954_test.patch

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

Marc Schlaich added the comment:

BTW, patches are for 2.7 branch.

--

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread Marc Schlaich

Marc Schlaich added the comment:

Merged test case and fix in a single commit/patch.

--
Added file: http://bugs.python.org/file34460/Issue20954.patch

___
Python tracker 

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



[issue20955] Unexpected behavior in sqlite3.Connection.set_progress_handler

2014-03-17 Thread cheeleong

New submission from cheeleong:

I discovered this bug accidentally when i'm trying to test the Python 3.4 
package
$ make test

I've encountered the unittest assertion error at CheckOpcodeCount 
with the message, 5 is not greater than 5.

at line 144 here 
http://hg.python.org/cpython/file/04f714765c13/Lib/sqlite3/test/hooks.py

I read this 
http://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_progress_handler
As I understood, n is the step.

I took it out and tried to test it with Python 2.7 and 3.3.5. But the expected 
results was as the same as 3.4.

I've tried to replace the n with others number and the results returned don't 
really look like n is the step.

I have no idea if I'm wrong about this. But #python recommended me to submit 
this as a ticket.

--
components: Library (Lib)
messages: 213851
nosy: klrkdekira
priority: normal
severity: normal
status: open
title: Unexpected behavior in sqlite3.Connection.set_progress_handler
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue11949] Make float('nan') unorderable

2014-03-17 Thread Marc Schlaich

Changes by Marc Schlaich :


--
nosy:  -schlamar

___
Python tracker 

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



[issue20955] Unexpected behavior in sqlite3.Connection.set_progress_handler

2014-03-17 Thread cheeleong

cheeleong added the comment:

Found out about this is a duplicate
http://bugs.python.org/issue20901

--
resolution:  -> duplicate

___
Python tracker 

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



[issue20955] Unexpected behavior in sqlite3.Connection.set_progress_handler

2014-03-17 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> committed/rejected
status: open -> closed
superseder:  -> test_sqlite fails with SQLite 3.8.4

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue20956] tokenize module claims generate_tokens returns namedtuple, but it doesn't

2014-03-17 Thread Curtis Maloney

New submission from Curtis Maloney:

Although 3.x does yield a named-tuple, 2.x does not, despite the documentation:

The exact type can be determined by checking the token string field on the 
named tuple returned from tokenize.tokenize() for the character sequence that 
identifies a specific operator token.

(I'd much rather this functionality be back-ported from 3, as it's quite simple)

--
assignee: docs@python
components: Documentation
messages: 213853
nosy: FunkyBob, docs@python
priority: normal
severity: normal
status: open
title: tokenize module claims generate_tokens returns namedtuple, but it doesn't
versions: Python 2.7

___
Python tracker 

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



[issue20956] tokenize module claims generate_tokens returns namedtuple, but it doesn't

2014-03-17 Thread Eric V. Smith

Eric V. Smith added the comment:

The 2.x documentation says generate_tokens returns a 5-tuple, not a namedtuple:

http://docs.python.org/2/library/tokenize.html
"The generator produces 5-tuples with these members: ..."

The section you quote is talking about tokenize.tokenize, and I think that 
documentation should be fixed. Changing to namedtuple would be a new feature, 
which are not being added to 2.7.

--
nosy: +eric.smith

___
Python tracker 

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



[issue20957] test_smptnet Fail instead of Skip if SSL-port is unavailable

2014-03-17 Thread Lukas Lueg

New submission from Lukas Lueg:

If the SSL-port is unavailable due to firewall settings (or the host simply 
being down), the SSL-tests in test_smtpnet.py fail instead of being skipped.

The tests should be skipped if the smtp.google.com can't be reached and fail 
only in case of unexpected behaviour.

--
components: Tests
files: test_smptnet.txt
messages: 213855
nosy: ebfe
priority: normal
severity: normal
status: open
title: test_smptnet Fail instead of Skip if SSL-port is unavailable
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file34461/test_smptnet.txt

___
Python tracker 

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



[issue20956] tokenize module claims tokenize.tokenize returns namedtuple, but it doesn't

2014-03-17 Thread Curtis Maloney

Curtis Maloney added the comment:

Corrected title.

And, yeah, figured it wouldn't be added as a new feature, hence reporting this 
as a Documentation bug.

--
title: tokenize module claims generate_tokens returns namedtuple, but it 
doesn't -> tokenize module claims tokenize.tokenize returns namedtuple, but it 
doesn't

___
Python tracker 

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



[issue20957] test_smptnet Fail instead of Skip if SSL-port is unavailable

2014-03-17 Thread Lukas Lueg

Lukas Lueg added the comment:

Diff the make test_smtpnet pass if the network-resource is available but 
smtp.google.com's ssl-port can't be reached. Most probably there is a better 
way to do this.

--
keywords: +patch
Added file: http://bugs.python.org/file34462/cpython_hg_89810_to_89811.diff

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Jovik

Jovik added the comment:

As requested I did extra tests with extension. Same result as before:
>>> proc = subprocess.Popen("plink.exe", stdout=subprocess.PIPE, 
>>> cwd="c:\\python33\\workspace")
>>> proc = subprocess.Popen(".\plink.exe", stdout=subprocess.PIPE, 
>>> cwd="c:\\python33\\workspace")
>>> proc = subprocess.Popen(".\\plink.exe", stdout=subprocess.PIPE, 
>>> cwd="c:\\python33\\workspace")
>>> proc = subprocess.Popen(".\plink.exe", stdout=subprocess.PIPE, 
>>> cwd="c:/python33/workspace")
>>> proc = subprocess.Popen("plink.exe", stdout=subprocess.PIPE, 
>>> cwd="c:/python33/workspace")

Traceback (most recent call last):
  File "C:\Python33\lib\subprocess.py", line 1104, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python33\lib\subprocess.py", line 819, in __init__
restore_signals, start_new_session)
  File "C:\Python33\lib\subprocess.py", line 1110, in _execute_child
raise WindowsError(*e.args)
FileNotFoundError: [WinError 2] The system cannot find the file specified

I believe it's a wider issue, since my colleagues insisted on using shell=True 
on Windows by default (I didn't understand why, until now)

--

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Eric V. Smith

Eric V. Smith added the comment:

Where is plink.exe? If it's not in cwd (c:\python33\workspace), note that the 
documentation for cwd says:
"If cwd is not None, the function changes the working directory to cwd before 
executing the child. In particular, the function looks for executable (or for 
the first item in args) relative to cwd if the executable path is a relative 
path."

Although confusingly, the 2.7 documentation says:
"If cwd is not None, the child’s current directory will be changed to cwd 
before it is executed. Note that this directory is not considered when 
searching the executable, so you can’t specify the program’s path relative to 
cwd."

--

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Jovik

Jovik added the comment:

plink.exe is located in c:\python33\workspace. I'm aware of the docstring 
difference between Python 2 and 3, thus submitted the bug for Python 3 only.

--

___
Python tracker 

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



[issue20958] Undefined behavior flagged by Clang 3.4 (Python 3.4.0)

2014-03-17 Thread Jeffrey Walton

New submission from Jeffrey Walton:

Python 3.4.0 downloaded from website 
(https://www.python.org/download/releases/3.4.0/).

Objects/dictobject.c:756:5: runtime error: left shift of negative value -2
Objects/funcobject.c:907:5: runtime error: left shift of negative value -2
Objects/funcobject.c:726:5: runtime error: left shift of negative value -2
Modules/gcmodule.c:1718:5: runtime error: left shift of negative value -2
Objects/tupleobject.c:120:5: runtime error: left shift of negative value -3
Objects/typeobject.c:905:9: runtime error: left shift of negative value -3
Objects/dictobject.c:818:5: runtime error: left shift of negative value -3
Objects/methodobject.c:45:5: runtime error: left shift of negative value -3
Objects/listobject.c:178:5: runtime error: left shift of negative value -3
Modules/gcmodule.c:1703:9: runtime error: left shift of negative value -2
Modules/gcmodule.c:1693:5: runtime error: left shift of negative value -3
Objects/descrobject.c:9:5: runtime error: left shift of negative value -2
Modules/gcmodule.c:484:13: runtime error: left shift of negative value -3
Objects/tupleobject.c:195:5: runtime error: left shift of negative value -2
Modules/gcmodule.c:503:13: runtime error: left shift of negative value -4
Objects/exceptions.c:2205:5: runtime error: left shift of negative value -2
Objects/longobject.c:40:42: runtime error: index -3 out of bounds for type 
'PyLongObject [262]'
Objects/frameobject.c:736:5: runtime error: left shift of negative value -3
Objects/funcobject.c:64:5: runtime error: left shift of negative value -3
Objects/methodobject.c:149:5: runtime error: left shift of negative value -2
Objects/funcobject.c:552:5: runtime error: left shift of negative value -2
Objects/descrobject.c:1364:5: runtime error: left shift of negative value -2
Objects/cellobject.c:16:5: runtime error: left shift of negative value -3
Objects/listobject.c:2744:5: runtime error: left shift of negative value -3
Objects/listobject.c:2751:5: runtime error: left shift of negative value -2
Objects/dictobject.c:3232:5: runtime error: left shift of negative value -3
Objects/dictobject.c:2826:5: runtime error: left shift of negative value -3
Objects/exceptions.c:89:5: runtime error: left shift of negative value -2
Objects/classobject.c:68:5: runtime error: left shift of negative value -3
Objects/classobject.c:193:5: runtime error: left shift of negative value -2
Objects/tupleobject.c:1079:5: runtime error: left shift of negative value -3
Objects/genobject.c:526:5: runtime error: left shift of negative value -3
Objects/tupleobject.c:948:5: runtime error: left shift of negative value -2
Objects/genobject.c:48:5: runtime error: left shift of negative value -2
Objects/genobject.c:53:5: runtime error: left shift of negative value -3
Objects/genobject.c:58:5: runtime error: left shift of negative value -2
Objects/cellobject.c:49:5: runtime error: left shift of negative value -2
Objects/typeobject.c:1170:9: runtime error: left shift of negative value -3
Objects/exceptions.c:662:5: runtime error: left shift of negative value -2
Objects/exceptions.c:1010:5: runtime error: left shift of negative value -2
Objects/exceptions.c:513:5: runtime error: left shift of negative value -2
./Modules/_io/fileio.c:479:5: runtime error: left shift of negative value -2
Objects/unicodeobject.c:15267:5: runtime error: left shift of negative value -3
Objects/unicodeobject.c:15128:5: runtime error: left shift of negative value -2
Objects/typeobject.c:6720:5: runtime error: left shift of negative value -2
Objects/setobject.c:944:5: runtime error: left shift of negative value -3
Objects/bytesobject.c:3006:5: runtime error: left shift of negative value -3
Objects/bytesobject.c:2869:5: runtime error: left shift of negative value -2
Objects/bytearrayobject.c:3094:5: runtime error: left shift of negative value -3
Objects/bytearrayobject.c:2959:5: runtime error: left shift of negative value -2
Objects/descrobject.c:1001:9: runtime error: left shift of negative value -3
Objects/descrobject.c:873:5: runtime error: left shift of negative value -2
Modules/gcmodule.c:861:13: runtime error: left shift of negative value -3
Objects/typeobject.c:2865:5: runtime error: left shift of negative value -2
Objects/iterobject.c:26:5: runtime error: left shift of negative value -3
Objects/iterobject.c:33:5: runtime error: left shift of negative value -2
Objects/dictobject.c:2643:9: runtime error: left shift of negative value -2
Objects/descrobject.c:1262:9: runtime error: left shift of negative value -3
Objects/memoryobject.c:74:5: runtime error: left shift of negative value -3
Objects/memoryobject.c:639:5: runtime error: left shift of negative value -3
Objects/memoryobject.c:1060:5: runtime error: left shift of negative value -2
Objects/memoryobject.c:108:5: runtime error: left shift of negative value -2
./Modules/_io/bufferedio.c:402:5: runtime error: left shift of negative value -2
./Modules/_io/textio.c:1156:5: runtime error: left shift of negative value -

[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-03-17 Thread Brett Cannon

Brett Cannon added the comment:

Yes it can. I do my Python work typically on Fridays so I will get to it then.

--

___
Python tracker 

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



[issue20265] Bring Windows docs up to date

2014-03-17 Thread Kathleen Weaver

Kathleen Weaver added the comment:

There is also a separate version of the Python Tools depending on which version 
of Visual Studio.  I'm testing this out, and may add it to the current patch.

--

___
Python tracker 

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



[issue20958] Undefined behavior flagged by Clang 3.4 (Python 3.4.0)

2014-03-17 Thread Zachary Ware

Zachary Ware added the comment:

Unless I'm mistaken, this was already fixed in #20929.  Since 3.4.0 was in RC 
stage when you reported #20929 and the fix was not release-critical, it was not 
cherry-picked into 3.4.0 final.  It will be fixed in 3.4.1 and 3.5.

If I'm wrong and this is unrelated to #20929, please reopen :)

--
nosy: +zach.ware
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

___
Python tracker 

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2014-03-17 Thread Claudiu.Popa

Claudiu.Popa added the comment:

What can be done to move this forward?

--

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Eric V. Smith

Eric V. Smith added the comment:

I think the 2.7 documentation is correct: the current directory when the call 
is made, and not cwd, is included in the search path. I'd suggest specifying 
args as ["c:\\python33\\workspace\\plink.exe"].

I think I may have mislead you earlier on the search path. The Windows call is:
CreateProcess(lpApplicationName, lpCommandLine, , 
lpCurrentDirectory, )

The first parameter to Popen ("args") becomes lpCommandLine. The "executable" 
parameter to Popen, which you're not setting, becomes lpApplicationName. So, 
you're calling CreateProcess(NULL, "plink.exe, ..., 
lpCurrentDirectory="c:\\python33\\workspace").

In this case, .exe would be added if missing. But, the search path rules seem 
to not include the directory pointed to by lpCurrentDirectory (aka cwd).

So I think this would work:
subprocess.Popen(["c:\\python33\\workspace\\plink.exe"], 
stdout=subprocess.PIPE, cwd="c:\\python33\\workspace")
or
subprocess.Popen(["plink"], executable="c:\\python33\\workspace\\plink.exe", 
stdout=subprocess.PIPE, cwd="c:\\python33\\workspace")

Unfortunately, I don't have a copy of 3.x on my Windows machine to test with.

--

___
Python tracker 

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



[issue19643] shutil rmtree fails on readonly files in Windows

2014-03-17 Thread Jovik

Jovik added the comment:

This could be at least part of docs; I found that people tend to avoid 
shutil.rmtree(...) on Windows because of such issues. Some of them call 
subprocess("rmdir /S /Q ") to get desired behavior.

--
nosy: +Jovik

___
Python tracker 

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2014-03-17 Thread Mark Lawrence

Mark Lawrence added the comment:

I've changed the versions, hope I've got them correct.

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

___
Python tracker 

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



[issue20959] print gives wrong error when printing *generator

2014-03-17 Thread Jurjen N.E. Bos

New submission from Jurjen N.E. Bos:

One of the more interesting ways to use print is printing output of a 
generator, as print(*generator()).
But if the generator generates a typeError, you get a very unhelpful error 
message:
>>> #the way it works OK
>>> def f(): yield 'a'+'b'
...
>>> print(*f())
ab
>>> #Now with a type error
>>> def f(): yield 'a'+5
...
>>> print(*f())
Traceback (most recent call last):
  File "", line 1, in 
TypeError: print() argument after * must be a sequence, not generator

The problem is twofold:
- the message is plainly wrong, since it does work with a generator
- the actual error is hidden from view

--
components: IO
messages: 213869
nosy: jneb
priority: normal
severity: normal
status: open
title: print gives wrong error when printing *generator
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue20960] Fix usage of the versionchanged directive in the sys.hash_info documentation

2014-03-17 Thread Berker Peksag

Changes by Berker Peksag :


--
assignee: docs@python
components: Documentation
files: sys-versionchanged.diff
keywords: patch
nosy: berker.peksag, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: Fix usage of the versionchanged directive in the sys.hash_info 
documentation
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34463/sys-versionchanged.diff

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Jovik

Jovik added the comment:

Why this feature works on Posix systems, but not Windows? If my memory is 
correct, it didn't work anywhere when I used Python 2.7 (according with docs).

--

___
Python tracker 

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



[issue20961] Fix usages of the note directive in the documentation

2014-03-17 Thread Berker Peksag

New submission from Berker Peksag:

Here's a patch to fix all "ERROR: Error in "note" directive:
invalid option block." errors in the stdlib documentation.

--
assignee: docs@python
components: Documentation
files: fix-note-directive.diff
keywords: patch
messages: 213871
nosy: berker.peksag, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: Fix usages of the note directive in the documentation
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34464/fix-note-directive.diff

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Anastasia.Filatova added the comment:

Thank you, David, for review! I understood your point of view, an updated patch 
will be added soon.

--

___
Python tracker 

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



[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-17 Thread Eric V. Smith

Eric V. Smith added the comment:

The underlying APIs are very different. It's debatable how much of a shim we 
should provide to make all platforms look alike.

I think first we should understand what it currently takes to make something 
work in both environments. Then we can talk about how or if we can make them 
look more similar.

--

___
Python tracker 

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



[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-03-17 Thread Max Naumov

Max Naumov added the comment:

Wouldn't this be more correct?
--- Lib/distutils/msvc9compiler.py  2013-08-03T16:17:08+04:00
+++ Lib/distutils/msvc9compiler.py  2014-03-17T18:36:50.078672+04:00
@@ -411,7 +411,11 @@
   '/Z7', '/D_DEBUG']
 
 self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
-if self.__version >= 7:
+if self.__version >= 10:
+self.ldflags_shared = [
+'/DLL', '/nologo', '/INCREMENTAL:NO', '/DEBUG', '/pdb:None', 
'/Manifest'
+]
+elif self.__version >= 7:
 self.ldflags_shared_debug = [
 '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG', '/pdb:None'
 ]

--
nosy: +Max.Naumov
Added file: http://bugs.python.org/file34465/msvc9compilerpatch.diff

___
Python tracker 

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



[issue20960] Fix usage of the versionchanged directive in the sys.hash_info documentation

2014-03-17 Thread Roundup Robot

New submission from Roundup Robot:

New changeset a2fd7e452167 by R David Murray in branch '3.4':
closes #20960
http://hg.python.org/cpython/rev/a2fd7e452167

New changeset 3a3a5467baa9 by R David Murray in branch 'default':
Merge fix for #20960
http://hg.python.org/cpython/rev/3a3a5467baa9

--
nosy: +python-dev
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Thanks Mark.  There will be a last 3.3 release with bugfixes before it switches 
to security fixes only.

--
versions: +Python 3.3

___
Python tracker 

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

I would like another core developer more intimate with C to review the patch.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue19903] Idle: Use inspect.signature for calltips

2014-03-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have not decided yet whether to apply to 3.4.

--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue1350] IDLE - CallTips enhancement - show full doc-string in new window

2014-03-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Calltips will be rewritten for 3.5, maybe 3.4 in #19903, to use 
inspect.signature. Once that is done, I would like to revisit this issue, as I 
agree that it would be useful, and it should be fairly easy. I though of being 
able to rightclick on the calltip box to ask for more but a key would be fine 
to start. The current code uses .__doc__ but only after checking that it exists.
if isinstance(ob_call, types.MethodType):
doc = ob_call.__doc__
else:
doc = getattr(ob, "__doc__", "")
if doc:
I would not start this until the new code is in place.

--
assignee: kbk -> terry.reedy
dependencies: +Idle: Use inspect.signature for calltips
priority: low -> normal
resolution: rejected -> 
stage: committed/rejected -> test needed
status: closed -> open
versions: +Python 3.5 -Python 3.2

___
Python tracker 

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Ah, 3.3 won’t follow that custom given that it had a bugfix release very 
recently.

--
versions:  -Python 3.3

___
Python tracker 

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



[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-03-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

What is the procedure to test this patch? Under what circumstances exactly is 
it needed?

--

___
Python tracker 

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



[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-03-17 Thread Max Naumov

Max Naumov added the comment:

It allows to install numpy on windows python 3.4. Just like the patch in the 
original post. Actually my patch is merely the original patch refactored.

--

___
Python tracker 

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



[issue18615] sndhdr.whathdr could return a namedtuple

2014-03-17 Thread Claudiu.Popa

Changes by Claudiu.Popa :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20962] Rather modest chunk size in gzip.GzipFile

2014-03-17 Thread Skip Montanaro

New submission from Skip Montanaro:

I've had the opportunity to use the seek() method of the gzip.GzipFile class 
for the first time in the past few days. Wondering why it seemed my processing 
times were so slow, I took a look at the code for seek() and read(). It seems 
like the chunk size for reading (1024 bytes) is rather small. I created a 
simple subclass that overrode just seek() and read(), then defined a CHUNK_SIZE 
to be 16 * 8192 bytes (the whole idea of compressing files is that they get 
large, right? seems like most of the time we will want to seek pretty far 
through the file).

Over a small subset of my inputs, I measured about a 2x decrease in run times, 
from about 54s to 26s. I ran using both gzip.GzipFile and my subclass several 
times, measuring the last four runs (two using the stdlib implementation, two 
using my subclass). I measured both the total time of the run, the time to 
process each input records, and time to execute just the seek() call for each 
record. The bulk of the per-record time was in the call to seek(), so by 
reducing that time, I sped up my run-times significantly.

I'm still using 2.7, but other than the usual 2.x->3.x changes, the code looks 
pretty much the same between 2.7 and (at least) 3.3, and the logic involving 
the read size doesn't seem to have changed at all.

I'll try to produce a patch if I have a few minutes, but in the meantime, I've 
attached my modified GzipFile class (produced against 2.7).

--
components: Library (Lib)
files: gzipseek.py
messages: 213883
nosy: skip.montanaro
priority: normal
severity: normal
status: open
title: Rather modest chunk size in gzip.GzipFile
type: performance
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34466/gzipseek.py

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Removed file: http://bugs.python.org/file34389/Issue20112_py27.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Removed file: http://bugs.python.org/file34391/Issue20112_py34.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Removed file: http://bugs.python.org/file34390/Issue20112_py33.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Added file: http://bugs.python.org/file34467/Issue20112_py27.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Added file: http://bugs.python.org/file34468/Issue20112_py33.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Changes by Anastasia.Filatova :


Added file: http://bugs.python.org/file34469/Issue20112_py34.patch

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Anastasia.Filatova

Anastasia.Filatova added the comment:

So new patch is updated. Could someone please give me feedback on it?

--

___
Python tracker 

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



[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Thanks, the doc is much clearer now.  Could you also address my comments?  (If 
you did not get email, the comments can be accessed with the “review” link in 
the list of files attached to this report.)

--
nosy: +eric.araujo

___
Python tracker 

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



[issue18931] new selectors module should support devpoll on Solaris

2014-03-17 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

We missed 3.4 :-(.

Targeting Python 3.5 now. Giampaolo, could you possibly refresh your patch?. 
Thanks.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue16853] add a Selector to the select module

2014-03-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue16754] Incorrect shared library extension on linux

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Amaury’s questions are still unanswered:

> So sysconfig.get_config_var('SO') will change in a micro release?
> Won't this break working user code? Give unexpected file names?

--

___
Python tracker 

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



[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2014-03-17 Thread Adam Goodman

Adam Goodman added the comment:

What Martin said is correct, IMO.

The actual problem I'd like to correct is: If I - for example - create an 
HTTPSConnection with cert validation enabled, and set to use the default OS 
trust mechanism, then the validation process should trigger Windows' root CA 
download mechanism if necessary (i.e. rather than just rejecting the CA cert if 
it hasn't already been locally cached).

I don't expect that ssl.enum_certificates() ever will return all the 
certificates that are (implicitly, via the update mechanism) trusted by 
Windows; that's probably not feasible. I chose that as the title of the issue 
because it seemed to be the most concrete root-cause, but maybe that wasn't 
ideal.

(I'll file a separate issue for that traceback I ran into, if I get a chance to 
dig into it more)

--

___
Python tracker 

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



[issue16754] Incorrect shared library extension on linux

2014-03-17 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

There were already 5 releases of Python 3.3 (starting with 3.3.1) with this 
change included.
The number of affected applications was rather small. I had seen only NumPy.

--
status: open -> closed

___
Python tracker 

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



[issue16754] Incorrect shared library extension on linux

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ccb679e5ae0e by Éric Araujo in branch 'default':
Update SOABI PEP to reflect config var change (#16754).
http://hg.python.org/peps/rev/ccb679e5ae0e

--

___
Python tracker 

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



[issue20963] side_effects swapped in Mock example

2014-03-17 Thread chris-buccella

New submission from chris-buccella:

http://docs.python.org/3.4/library/unittest.mock-examples.html

Section 26.5.3.9. Mocking a dictionary with MagicMock

In the Note area:

>>> mock.__setitem__ = Mock(side_effect=getitem)
>>> mock.__getitem__ = Mock(side_effect=setitem)


I think these are swapped; should be:

>>> mock.__setitem__ = Mock(side_effect=setitem)
>>> mock.__getitem__ = Mock(side_effect=getitem)

--
assignee: docs@python
components: Documentation
messages: 213891
nosy: chris-buccella, docs@python
priority: normal
severity: normal
status: open
title: side_effects swapped in Mock example
versions: Python 3.4, Python 3.5

___
Python tracker 

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



[issue20890] Miscellaneous PEP 101 additions

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 414a7e2067b2 by Éric Araujo in branch 'default':
Update branch names after 3.4.0 release (ref #20890)
http://hg.python.org/devguide/rev/414a7e2067b2

--
nosy: +python-dev

___
Python tracker 

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



[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Thanks, will fix.

--
assignee: docs@python -> eric.araujo
nosy: +eric.araujo

___
Python tracker 

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



[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e725de5a2760 by Éric Araujo in branch '3.4':
Fix typo in example (#20963)
http://hg.python.org/cpython/rev/e725de5a2760

--
nosy: +python-dev

___
Python tracker 

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



[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20637] Support key-sharing dictionaries in subclasses

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset afae24cb81d9 by Benjamin Peterson in branch '3.4':
correct the fix for #20637; allow slot descriptor inheritance to take place 
before creating cached keys
http://hg.python.org/cpython/rev/afae24cb81d9

--

___
Python tracker 

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



[issue20915] Add "pip" section to experts list in devguide

2014-03-17 Thread Donald Stufft

Donald Stufft added the comment:

I'm sure y'all know my name already but since Eric asked on the pip tracker for 
us, I'm dstufft :)

--

___
Python tracker 

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



[issue19662] smtpd.py should not decode utf-8

2014-03-17 Thread Sreepriya Chalakkal

Sreepriya Chalakkal added the comment:

Hi David, 

I would like to work on this bug. Can you give some more insights about the 
main issue? As far as I understood, the smtp server is now decoding the 
incoming bytes as UTF-8. Why do you say that it is not the right way? Can you 
give some idea about the right convention?  Also, you mention about a solution 
with a switch statement having default case as utf8. What are the other cases? 
And you also mention that smtpd should be emitting binary and unicode should be 
handled by the email package. 
But is it possible to make that change now as other functions depending on this 
might be affected?

--
nosy: +sreepriya

___
Python tracker 

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



[issue18931] new selectors module should support devpoll on Solaris

2014-03-17 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Sorry for not being able to rewrite the patch in time for 3.4.
I will provide an updated patch (I need to setup an Open Solaris box first 
though).
The code for poll(), epoll() and /dev/poll will have many similarities, so I 
think it makes sense to refactor it and use a base class to avoid code 
duplication, similarly to what I did in my original patch.

--

___
Python tracker 

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



[issue20265] Bring Windows docs up to date

2014-03-17 Thread Kathleen Weaver

Kathleen Weaver added the comment:

I just figured out why Windows 8 isn't behaving the way the documentation says.

You have to use Command Prompt (Admin).   Command Prompt (the first option 
IGNORES the path)

Now it's time to have a discussion with a Windows Project Manager.

--

___
Python tracker 

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



[issue18931] new selectors module should support devpoll on Solaris

2014-03-17 Thread Guido van Rossum

Guido van Rossum added the comment:

I actually prefer some code duplication in this case. Makes the review
easier.
On Mar 17, 2014 2:17 PM, "Giampaolo Rodola'"  wrote:

>
> Giampaolo Rodola' added the comment:
>
> Sorry for not being able to rewrite the patch in time for 3.4.
> I will provide an updated patch (I need to setup an Open Solaris box first
> though).
> The code for poll(), epoll() and /dev/poll will have many similarities, so
> I think it makes sense to refactor it and use a base class to avoid code
> duplication, similarly to what I did in my original patch.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue18931] new selectors module should support devpoll on Solaris

2014-03-17 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

OK, I will provide a patch soon.

--

___
Python tracker 

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



[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7093d5758954 by Victor Stinner in branch '3.4':
Issue #20879: Delay the initialization of encoding and decoding tables for
http://hg.python.org/cpython/rev/7093d5758954

New changeset 06d646935c9a by Victor Stinner in branch 'default':
(Merge 3.4) Issue #20879: Delay the initialization of encoding and decoding
http://hg.python.org/cpython/rev/06d646935c9a

--
nosy: +python-dev

___
Python tracker 

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



[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

Thanks Serhiy, I merged your last patch with mine. This issue should now be 
fixed.

As Martin wrote, an enhancement would be to reimplement these functions in C 
without such table.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue19640] Drop _source attribute of namedtuple

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

> As an alternative, how about turning _source into a property?

A class or an instance property? A class property requires a metaclass. I guess 
that each namedtuple type requires its own metaclass, right?

--

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 08f9b881f78c by Victor Stinner in branch 'default':
Issue #20574: Implement incremental decoder for cp65001 code
http://hg.python.org/cpython/rev/08f9b881f78c

--
nosy: +python-dev

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 85b87789f048 by Victor Stinner in branch 'default':
Issue #20574: Add more tests for cp65001
http://hg.python.org/cpython/rev/85b87789f048

--

___
Python tracker 

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



[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-17 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
stage:  -> committed/rejected

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

> Could you please also add test_partial for CP65001 (if this will make sense)?

I added CP65001Test which inherit from UTF8Test and so runs all UTF-8 tests on 
cp65001 codec. I'm surprised that the test pass.

--

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

I don't feel the need to backport the new feature, so I'm closing the issue.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue18931] new selectors module should support devpoll on Solaris

2014-03-17 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

BDFL talked :-).

I can test the patch on a Solaris box, and Python has OpenSolaris buildbots.

--

___
Python tracker 

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



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +sbt

___
Python tracker 

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



[issue20941] pytime.c:184 and pytime.c:218: runtime error, outside the range of representable values of type 'long'

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

> Shouldn't a range test based on TIME_T_MAX with an epsilon occur first?

What is this constant? I don't see it in Python source code.

--

___
Python tracker 

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



[issue17110] sys.argv docs should explaining how to handle encoding issues

2014-03-17 Thread Sreepriya Chalakkal

Sreepriya Chalakkal added the comment:

You are right. Instead of running ./python inside the python directory, I ran 
the default python of older version! Based on the stackoverflow link given, I 
tried to make some documentation. I am attaching the patch!

--
keywords: +patch
Added file: http://bugs.python.org/file34470/Issue17110.patch

___
Python tracker 

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



[issue20915] Add "pip" section to experts list in devguide

2014-03-17 Thread Marcus Smith

Marcus Smith added the comment:

ok, add me.

--
nosy: +Marcus.Smith

___
Python tracker 

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



[issue20915] Add "pip" section to experts list in devguide

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

Nick, can you give Donald and Marcus sufficient rights for bug triage, or 
should we ask RDM?

--

___
Python tracker 

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



[issue20910] Make sleep configurable in tests

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

I created #20964 to add the support.check_time_delta() function.

--

___
Python tracker 

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



[issue20915] Add "pip" section to experts list in devguide

2014-03-17 Thread Éric Araujo

Éric Araujo added the comment:

BTW, what about adding a “pip” component to the tracker with some auto-nosy 
list?

--

___
Python tracker 

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



[issue20964] Add support.check_time_delta()

2014-03-17 Thread STINNER Victor

New submission from STINNER Victor:

Follow-up of issue #20910: add a support.check_time_delta() function an a 
--check-time-delta command line option for Lib/test/regrtest.py. By default, 
the function tolerate a difference of 500 ms for the maximum delta.

The idea is to set the --check-time-delta option on slowest buildbots to 
tolerate larger difference.

For example, test_time_and_call_at() of test_asyncio takes 2000 ms instead of 
100 ms on the "AMD64 OpenIndiana 3.x" buildbot:
http://bugs.python.org/issue20336#msg208714

--
components: Tests
files: check_time_delta.patch
keywords: patch
messages: 213914
nosy: haypo
priority: normal
severity: normal
status: open
title: Add support.check_time_delta()
versions: Python 3.5
Added file: http://bugs.python.org/file34471/check_time_delta.patch

___
Python tracker 

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



[issue20964] Add support.check_time_delta()

2014-03-17 Thread STINNER Victor

STINNER Victor added the comment:

I ran test_time and test_asyncio on Linux and Windows with 
--check-time-delta=1e-9 and the tests passed.

--

___
Python tracker 

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



[issue20915] Add "pip" section to experts list in devguide

2014-03-17 Thread Paul Moore

Paul Moore added the comment:

I've been around here for a while, but yeah, I'll keep an eye out for pip stuff 
now, too. Good thought.

--
nosy: +pmoore

___
Python tracker 

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



  1   2   >