[issue25822] Add docstrings to fields of urllib.parse results

2015-12-30 Thread Swati Jaiswal

Changes by Swati Jaiswal :


Added file: http://bugs.python.org/file41456/iss_25822_4.patch

___
Python tracker 

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



[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-30 Thread Eryk Sun

Eryk Sun added the comment:

For anyone interested, this issue is solvable on Windows by working around how 
O_TEMPORARY is implemented. To do this the _winapi module would need a wrapper 
for SetFileInformationByHandle (available in Vista+), which would need to 
support at least FileDispositionInfo. 

That said, the use case of replacing a file is better supported by calling the 
Windows API function ReplaceFile anyway. It isn't atomic, however. I don't 
think that's possible in general on Windows. The problem is that, unlike on 
Unix, an open file on Windows can't be anonymous. So if the replaced file is 
already open, it has to first be renamed before the replacement file can take 
its place. That creates a small window for things to go wrong.

--

___
Python tracker 

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



[issue24505] shutil.which wrong result on Windows

2015-12-30 Thread Toby Tobkin

Toby Tobkin added the comment:

Patch incorporating Eryk Sun's feedback for various Windows-specific behavior 
attached.

--
Added file: http://bugs.python.org/file41459/issue-24505-proposed-patch-2.diff

___
Python tracker 

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



[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-30 Thread Марк Коренберг

Changes by Марк Коренберг :


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

___
Python tracker 

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



[issue25980] not able to find module request in lib urllib - Python35-32

2015-12-30 Thread Brett Cannon

Brett Cannon added the comment:

You need to use the line `import urllib.request` to make the import work as you 
didn't import the urllib.request module, only the urllib package.

--
nosy: +brett.cannon
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue25961] Disallow the null character in type name

2015-12-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 29cc6b2f9d28 by Serhiy Storchaka in branch '2.7':
Issue #25961: Disallowed null characters in the type name.
https://hg.python.org/cpython/rev/29cc6b2f9d28

New changeset d2417971c934 by Serhiy Storchaka in branch '3.5':
Issue #25961: Disallowed null characters in the type name.
https://hg.python.org/cpython/rev/d2417971c934

New changeset 1ab7bcd4e176 by Serhiy Storchaka in branch 'default':
Issue #25961: Disallowed null characters in the type name.
https://hg.python.org/cpython/rev/1ab7bcd4e176

--
nosy: +python-dev

___
Python tracker 

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



[issue22995] Restrict default pickleability

2015-12-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 92172d7372dd by Serhiy Storchaka in branch '2.7':
Issue #22995: Instances of extension types with a state that aren't
https://hg.python.org/cpython/rev/92172d7372dd

--

___
Python tracker 

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



[issue22995] Restrict default pickleability

2015-12-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

That's all with this issue.

Analyzing the signature of __new__ is not such easy and perhaps will be done in 
separate issue.

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

___
Python tracker 

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



[issue25981] Intern namedtuple field names

2015-12-30 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't see how the proposed patch would affect the result.  ISTM that the 
interning would have to happen after the template substitution and exec.  See 
the attached alternate patch.

That said, I'm not too concerned with the contents of _fields not being 
interned.  It isn't the performance sensitive part of the code.

--
Added file: http://bugs.python.org/file41457/alternate_namedtuple_intern.patch

___
Python tracker 

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



[issue25981] Intern namedtuple field names

2015-12-30 Thread Raymond Hettinger

Changes by Raymond Hettinger :


Added file: http://bugs.python.org/file41458/show_all_fieldnames_interned2.py

___
Python tracker 

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



[issue16731] xxlimited/xxmodule docstrings ambiguous

2015-12-30 Thread Daniel Shahaf

Daniel Shahaf added the comment:

I don't mind at all.  Go ahead :)

--

___
Python tracker 

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



[issue25980] not able to find module request in lib urllib - Python35-32

2015-12-30 Thread Kiran Kotari

New submission from Kiran Kotari:

Python 3.5.1 documentation code giving following error:

Error: 
Traceback (most recent call last):
  File ".\urllib1.py", line 5, in 
with urllib.request.urlopen('http://www.py4inf.com/code/romeo.txt') as f:
AttributeError: module 'urllib' has no attribute 'request'

Python Code:

import urllib
with urllib.request.urlopen('http://www.py4inf.com/code/romeo.txt') as f:
print(f.read())

--
components: Library (Lib)
messages: 257230
nosy: Kiran Kotari
priority: normal
severity: normal
status: open
title: not able to find module request in lib urllib - Python35-32
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue25980] not able to find module request in lib urllib - Python35-32

2015-12-30 Thread R. David Murray

R. David Murray added the comment:

Can you provide a link to the documentation you find to be in error?

--
nosy: +r.david.murray

___
Python tracker 

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