[issue22546] Wrong default precision in documentation for format

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 041d0752171a by Terry Jan Reedy in branch '3.4':
Issue #22546: update doc for mini-language float None presentation type.
https://hg.python.org/cpython/rev/041d0752171a

--
nosy: +python-dev

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



[issue22546] Wrong default precision in documentation for format

2014-10-06 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Tommy, thanks for reporting this.

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

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



[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread Charles-François Natali

Charles-François Natali added the comment:

Note that I'm not fussed about it: far from simplifying the code, it
will make it more complex, thus more error-prone.

--

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



[issue21905] RuntimeError in pickle.whichmodule when sys.modules if mutated

2014-10-06 Thread Olivier Grisel

Olivier Grisel added the comment:

No problem. Thanks Antoine for the review!

--

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



[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

IMO, this is a horrible idea.  I'd hate for creation of a `namedtuple` class to 
fail just because there happened to be an existing (perhaps in an as-yet 
uncollected garbage `namedtuple` class with the same name).  That's the kind of 
spooky action at a distance that makes debugging unnecessarily difficult.

I also think this would be pretty much impossible to implement efficiently. :-)

I'm closing this report here: this behaviour is not a bug, and the suggested 
exception raising is (IMO) both undesirable and unworkable in practice.  I'd 
suggest opening a thread on the Python mailing-list if you want to discuss the 
idea further; if that thread produces a focused, widely accepted proposal, feel 
free to re-open an issue here.

--
nosy: +mark.dickinson
resolution:  - rejected
type: behavior - enhancement

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



[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
status: open - closed

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



[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-06 Thread Martin Pitt

Martin Pitt added the comment:

 I now raised it to 4 GB for python2.7

This is *still* not enough; I got a success with 6 GB. But this is really 
demanding..

--

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



[issue22482] logging: fileConfig doesn't support formatter styles

2014-10-06 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


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

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
versions: +Python 3.5 -Python 3.4

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



[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Serhiy Storchaka

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


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +hynek, ned.deily, ronaldoussoren

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



[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Martin Panter

Martin Panter added the comment:

Perhaps Leo doesn’t understand that the name passed to “namedtuple” is just an 
indicator for debugging etc, and it doesn’t really have to be unique or even 
correspond with what it is assigned to. I do remember finding it a bit odd that 
I had to give it a name when I first used “namedtuple”, but I guess it is 
because all Python function and class objects store their name internally.

 AB = namedtuple(Whatever, (a, b))
 AB
class '__main__.Whatever'
 Whatever
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'Whatever' is not defined
 Whatever = AB
 Whatever
class '__main__.Whatever'

--
nosy: +vadmium

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



[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

It looks like a bug in the uno module, nobody reports this issue with the 
vanilla Python.

The gdb traceback is incomplete: function parameters are missing, there are 
some unknown frames (??):

#0  0x011c118d in PyUnicode_InternInPlace ()
   from 
/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/LibreOfficePython
#1  0x011cf981 in PyUnicode_InternFromString ()
   from 
/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/LibreOfficePython
#2  0x011b5498 in PyType_Ready ()
   from 
/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/LibreOfficePython
#3  0x011b613c in PyType_Ready ()
   from 
/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/LibreOfficePython
#4  0x00708abb in pyuno::PyUNO_initType() () from 
/Applications/LibreOffice.app/Contents/MacOS/libpyuno.dylib
#5  0x003f7ee0 in ?? () from 
/Applications/LibreOffice.app/Contents/MacOS/pyuno.so
#6  0x0070f9f2 in PyInit_pyuno () from 
/Applications/LibreOffice.app/Contents/MacOS/libpyuno.dylib
#7  0x0009 in ?? ()

You should try to get debug symbols. It looks like you are working on Mac OS X. 
How did you install Python? Are you sure that the uno module is compatible 
with python 3.3 program? (Compiled with the same options.)

To me, it doesn't look like a Python bug. And it doesn't look to be related to 
Unicode.

--

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



[issue4832] IDLE does not supply a default ext of .py on Windows or OS X for new file saves

2014-10-06 Thread Saimadhav Heblikar

Saimadhav Heblikar added the comment:

I will try to describe the behavior on linux:

(Format used is what i type in file name - name which gets written to disk)

1. When files of type is: Python Files
   a - a.py
   b.py - b.py
   c.py.py - c.py.py
   d.py.abc - d.py.abc (!)
   e.abc - e.abc (!)

2. When files of type is: text file
Same behavior as before, with .txt instead of .py/.pyw

3. When files of type is: All files
   a - a
   b.py - b.py
   c.py.py - c.py.py
   d.py.abc - d.py.abc
   e.abc - e.abc

I hopefully have tried most of the combinations. If I have left out any, please 
let me know and I'll try them out.

--

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



[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

  Or perhaps the code can be kept identical with the exception of the
 sslproto.py file, and conditional import of the latter?

I think that's reasonable, yes. The _SelectorSslTransport is still there and 
can be used if the ssl module is not recent enough.

--

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread STINNER Victor

New submission from STINNER Victor:

Hi,

I just saw that the changeset a79003f25a41 was merged and it adds support for 
memory BIO to the Python ssl module, great! It's a nice addition, especially 
because it becomes possible to implement SSL for IOCP event loop in asyncio 
(#22560).

I read the changeset and I have a few comments. Sorry, I didn't have time 
before to review the patch. I prefer to open a new issue. I'm interested to 
work on patches, but I would prefer a first feedback before working on a patch.


+.. method:: SSLSocket.read(len=0, buffer=None)

Hum, I fear that some people will call read() with two parameters by mistake. I 
would prefer a keyword-only parameter: put a $ in the call to 
PyArg_ParseTuple() in PySSL_SSLread().

The read() method is quite generic, many Python functions expect a 
file-like object with a read() method which only take one indexed parameter.

An alternative would be to implemented readinto() and drop the buffer parameter 
from read().

Same remark for SSLObject.read() and _ssl._SSLSocket.read().


+.. attribute:: SSLSocket.server_hostname
+
+   A ``bytes`` instance (...)
+
+   .. versionadded:: 3.5

Oh, I would prefer to have a Unicode string here, but I see that the attribute 
is *not* new, it's already present in Python 3.4.

The versionadded field is wrong. It looks like the attribute was introduced in 
Python 3.2:
https://docs.python.org/dev/whatsnew/3.2.html#ssl

Maybe the change is that the attribute now also exists in the _ssl module? But 
the _ssl module is not documented.


+.. method:: MemoryBIO.write_eof()
+
+   Write an EOF marker to the memory BIO. After this method has been called, it
+   is illegal to call :meth:`~MemoryBIO.write`.

What does it mean, illegal? An exception is raised? Maybe it would be more 
explicit to say that an exception is raised.


+- All IO on an :class:`SSLObject` is non-blocking. This means that for example
+  :meth:`~SSLSocket.read` will raise an :exc:`SSLWantReadError` if it needs
+  more data than the incoming BIO has available.

It would be nice to repeat this information in the documentation of the 
SSLObject.read() method.


+.. method:: SSLContext.wrap_bio(incoming, outgoing, server_side=False, \

Why not puting the documentation of this method where the SSLContext is 
documented?


+Some notes related to the use of :class:`SSLObject`:

I suggest to move these notes just after the documentation of the SSLObject 
class.


+The following methods are available from :class:`SSLSocket`:

methods and *attributes*.


+class SSLObject:
+This class implements an interface on top of a low-level SSL object as
+implemented by OpenSSL. This object captures the state of an SSL connection
+but does not provide any network IO itself. IO needs to be performed
+through separate BIO objects which are OpenSSL's IO abstraction layer.
+
+This class does not have a public constructor. Instances are returned by
+``SSLContext.wrap_bio``. This class is typically used by framework authors
+that want to implement asynchronous IO for SSL through memory buffers.
+
+When compared to ``SSLSocket``, this object lacks the following features:
+
+ * Any form of network IO incluging methods such as ``recv`` and ``send``.
+ * The ``do_handshake_on_connect`` and ``suppress_ragged_eofs`` machinery.
+

This documentation is useful. It should be copied in the documentation of the 
SSLObject class.


+.. class:: MemoryBIO
+
+   A memory buffer that can be used to pass data between Python and an SSL
+   protocol instance.
+
+.. attribute:: MemoryBIO.pending
+
+   Return the number of bytes currently in the memory buffer.

I prefer when class methods and attributes are part of the class block in the 
documentation, the documentation is rendered differently and it's more readable 
IMO.

Compare:
   https://docs.python.org/dev/library/ssl.html#ssl.MemoryBIO
with:
   https://docs.python.org/dev/library/io.html#io.IOBase

But the choice how to document methods and attributes was not made in the 
memory BIO changeset, it is older. I suggest to upgrade to style to use the 
same style than the io module (put everything in the .. class: block).

What do you think?

--
messages: 228653
nosy: haypo
priority: normal
severity: normal
status: open
title: ssl: post-commit review of the new memory BIO API
versions: Python 3.5

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread STINNER Victor

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


--
nosy: +geertj, pitrou

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



[issue21965] Add support for Memory BIO to _ssl

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

I have some comments and suggestions to enhance the new API. I chose to open a 
new issue: #22564.

--

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



[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

The Linux kernel 3.17 has been released with the new getrandom() syscall.

glibc request to implement the function in the C library:
https://sourceware.org/bugzilla/show_bug.cgi?id=17252
Bug 17252 - getrandom and getentropy syscall

It looks like nobody asks for it on the libc-alpha mailing list yet.

--

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



[issue18348] Additional code pages for EBCDIC

2014-10-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I don't think we should add more EBCDIC codecs to Python's stdlib. It would be 
better to put a Python package on PyPI which people using these encodings can 
use.

--

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



[issue22565] missing const in declaration of PyErr_WarnEx in C-API docs

2014-10-06 Thread Lars Buitinck

New submission from Lars Buitinck:

The declaration for PyErr_WarnEx in Doc/c-api/exceptions.rst is missing a const 
compared to Include/warnings.h.

--
assignee: docs@python
components: Documentation
files: pyerr_warnex_const.patch
keywords: patch
messages: 228657
nosy: docs@python, larsmans
priority: normal
severity: normal
status: open
title: missing const in declaration of PyErr_WarnEx in C-API docs
versions: Python 3.5
Added file: http://bugs.python.org/file36824/pyerr_warnex_const.patch

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



[issue22565] missing const in declaration of PyErr_WarnEx in C-API docs

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 554152c317b4 by Georg Brandl in branch '3.4':
Closes #22565: fix argument types of PyErr_WarnEx.
https://hg.python.org/cpython/rev/554152c317b4

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

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



[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

Right; the underlying problem of having objects that appear to be instances of  
the wrong class has nothing to do with namedtuples.  After this sequence:

 class A: pass
... 
 a = A()
 
 class A: pass
... 

We get the following somewhat confusing results:

 type(a)
class '__main__.A'
 A
class '__main__.A'
 isinstance(a, A)
False

Class factories like namedtuple make it somewhat easier to run into this issue, 
but it's nothing really to do with namedtuple itself, and it's not something 
that could be fixed without significant language redesign.

--

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



[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2014-10-06 Thread karl

karl added the comment:

This is the correct behavior
  GET http://example.com/foo
with a response containing 
  302 and Location: /bar#test
must trigger
  http://example.com/bar#test



Location is defined in 
http://tools.ietf.org/html/rfc7231#section-7.1.2

7.1.2. Location


   The Location header field is used in some responses to refer to a
   specific resource in relation to the response.  The type of
   relationship is defined by the combination of request method and
   status code semantics.

 Location = URI-reference

   The field value consists of a single URI-reference.  When it has the
   form of a relative reference ([RFC3986], Section 4.2), the final
   value is computed by resolving it against the effective request URI
   ([RFC3986], Section 5).

A bit after in the spec.


   If the Location value provided in a 3xx (Redirection) response does
   not have a fragment component, a user agent MUST process the
   redirection as if the value inherits the fragment component of the
   URI reference used to generate the request target (i.e., the
   redirection inherits the original reference's fragment, if any).

   For example, a GET request generated for the URI reference
   http://www.example.org/~tim; might result in a 303 (See Other)
   response containing the header field:

 Location: /People.html#tim

   which suggests that the user agent redirect to
   http://www.example.org/People.html#tim;

   Likewise, a GET request generated for the URI reference
   http://www.example.org/index.html#larry; might result in a 301
   (Moved Permanently) response containing the header field:

 Location: http://www.example.net/index.html

   which suggests that the user agent redirect to
   http://www.example.net/index.html#larry;, preserving the original
   fragment identifier.

--
nosy: +karlcow

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Mark Dickinson

Mark Dickinson added the comment:

I don't think this is a good idea.  Remember that Python classes are themselves 
mutable objects, so if a library that you happen to import creates a Point 
namedtuple with fields x and y and class-level modifications (extra 
attributes, patched-in methods), any namedtuple you created with fields x and 
y would automatically pick up those modifications.  (And conversely, by 
modifying *your* class, you might adversely affect the behaviour of the 
library's class.)

--
nosy: +mark.dickinson

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



[issue18216] gettext doesn't check MO versions

2014-10-06 Thread Jakub Wilk

Jakub Wilk added the comment:

I believe so, yes.

--

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



[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Mc128k

New submission from Mc128k:

When using OSX 10.9 or 10.10 with the latest version of python, if I type ' or 
 with the international keyboard enabled (dead keys), the program crashes 
immediately. This can be reproduced in any occasion.

--
messages: 228663
nosy: mc128k
priority: normal
severity: normal
status: open
title: International keyboard makes IDLE crash on OSX
type: crash
versions: Python 3.5

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread Geert Jansen

Geert Jansen added the comment:

Hi Victor,

see below my comments:

* SSLSocket.read(), SSLOBject.read() and _ssl._SSLSocket.read() taking a buffer 
as the second positional argument.

Both SSLSocket.read() and _SSLSocket.read() already accepted two arguments so I 
went for consistency. The former has been publicly documented in prior releases 
so I don't think it can be changed?

* versionadded for server_hostname set to 3.5

This is when it was first documented. If it's more correct to specify when it 
was first implemented then I can put it to 3.2.

* server_hostname property is idna encoded bytes instead of unicode

Agreed that it should be changes to unicode.

Currently SSLSocket.server_hostname is whatever was passed to the constructor, 
which can be unicode or an already encoded bytes instance. 
SSLObject.server_hostname on the other hand is always a bytes instance.

Should SSLSocket.server_hostname also be changed to always return unicode even 
if a bytes was passed to the constructor? I'd tend to say yes especially 
because the attribute was not documented before. But it would be a change in 
behavior.

Now that I think of it - since SSLSocket now uses SSLObject to check the 
hostname, and SSLObject exposes server_hostname as a bytes instance, is 
hostname checking currently broken for non-ascii hostnames?

* Documentation suggestions.

Mostly make sense. I will have a look.

--

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue22187] commands.mkarg() buggy in East Asian locales

2014-10-06 Thread Jakub Wilk

Jakub Wilk added the comment:

Something like this should be safe:

def mkarg(x):
' ' + pipes.quote(x)

--

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



[issue22187] commands.mkarg() buggy in East Asian locales

2014-10-06 Thread Jakub Wilk

Jakub Wilk added the comment:

Err, with return of course. :-)

--

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



[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

On Fedora 20/x86_64, running test_file2k takes up to 4.8 GB (5114316 kB) of RSS 
memory (VmPeak in /proc/pid/status).

It looks like readahead_get_line_skip() has an efficient code to handle buffer. 
It uses recursive calls:
---
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.0 MB
readahead: allocate 0.1 MB
readahead: allocate 0.1 MB
readahead: allocate 0.1 MB
readahead: allocate 0.1 MB
readahead: allocate 0.1 MB
readahead: allocate 0.2 MB
readahead: allocate 0.2 MB
readahead: allocate 0.3 MB
readahead: allocate 0.3 MB
readahead: allocate 0.4 MB
readahead: allocate 0.5 MB
readahead: allocate 0.7 MB
readahead: allocate 0.8 MB
readahead: allocate 1.1 MB
readahead: allocate 1.3 MB
readahead: allocate 1.7 MB
readahead: allocate 2.1 MB
readahead: allocate 2.6 MB
readahead: allocate 3.2 MB
readahead: allocate 4.0 MB
readahead: allocate 5.0 MB
readahead: allocate 6.3 MB
readahead: allocate 7.9 MB
readahead: allocate 9.9 MB
readahead: allocate 12.3 MB
readahead: allocate 15.4 MB
readahead: allocate 19.3 MB
readahead: allocate 24.1 MB
readahead: allocate 30.1 MB
readahead: allocate 37.6 MB
readahead: allocate 47.0 MB
readahead: allocate 58.8 MB
readahead: allocate 73.5 MB
readahead: allocate 91.8 MB
readahead: allocate 114.8 MB
readahead: allocate 143.5 MB
readahead: allocate 179.4 MB
readahead: allocate 224.2 MB
readahead: allocate 280.2 MB
readahead: allocate 350.3 MB
readahead: allocate 437.9 MB
readahead: allocate 547.3 MB

Breakpoint 2, PyObject_Malloc (nbytes=2147483733) at Objects/obmalloc.c:792
792 if (nbytes  PY_SSIZE_T_MAX)
(gdb) where
#0  PyObject_Malloc (nbytes=2147483733) at Objects/obmalloc.c:792
#1  0x00464af1 in _PyObject_DebugMallocApi (id=111 'o', 
nbytes=2147483701) at Objects/obmalloc.c:1474
#2  0x00464a48 in _PyObject_DebugMalloc (nbytes=2147483701) at 
Objects/obmalloc.c:1441
#3  0x0046efdc in PyString_FromStringAndSize (str=0x0, size=2147483648) 
at Objects/stringobject.c:88
#4  0x00436c30 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=2147483648, bufsize=573933340) at Objects/fileobject.c:2291
#5  0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=1836553986, bufsize=459146672) at Objects/fileobject.c:2311
#6  0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=1469236648, bufsize=367317338) at Objects/fileobject.c:2311
#7  0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=1175382777, bufsize=293853871) at Objects/fileobject.c:2311
#8  0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=940299680, bufsize=235083097) at Objects/fileobject.c:2311
#9  0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=752233202, bufsize=188066478) at Objects/fileobject.c:2311
#10 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=601780019, bufsize=150453183) at Objects/fileobject.c:2311
#11 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=481417472, bufsize=120362547) at Objects/fileobject.c:2311
#12 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=385127434, bufsize=96290038) at Objects/fileobject.c:2311
#13 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=308095403, bufsize=77032031) at Objects/fileobject.c:2311
#14 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=246469778, bufsize=61625625) at Objects/fileobject.c:2311
#15 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=197169278, bufsize=49300500) at Objects/fileobject.c:2311
#16 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=157728878, bufsize=39440400) at Objects/fileobject.c:2311
#17 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=126176558, bufsize=31552320) at Objects/fileobject.c:2311
#18 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=100934702, bufsize=25241856) at Objects/fileobject.c:2311
#19 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=80741217, bufsize=20193485) at Objects/fileobject.c:2311
#20 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=64586429, bufsize=16154788) at Objects/fileobject.c:2311
#21 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=51662598, bufsize=12923831) at Objects/fileobject.c:2311
#22 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=41323533, bufsize=10339065) at Objects/fileobject.c:2311
#23 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=33052281, bufsize=8271252) at Objects/fileobject.c:2311
#24 0x00436da6 in readahead_get_line_skip (f=0x7fffeea2bf40, 
skip=26435279, bufsize=6617002) at Objects/fileobject.c:2311
#25 

[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

This is indeed intended. I'll update the docs.

--
nosy: +georg.brandl
resolution:  - not a bug
status: open - closed

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



[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dbf2a52575ee by Georg Brandl in branch '3.4':
Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.
https://hg.python.org/cpython/rev/dbf2a52575ee

--
nosy: +python-dev
resolution: not a bug - fixed
stage:  - resolved

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



[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset af18f1e1ade2 by Georg Brandl in branch '2.7':
Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.
https://hg.python.org/cpython/rev/af18f1e1ade2

--

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



[issue18348] Additional code pages for EBCDIC

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

If more users request this codec, we may integrate it later. Right now, 
maintain a package on PyPI is enough. It's easy to register a custom codec 
from a third-party codec: use
https://docs.python.org/dev/library/codecs.html#codecs.register

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

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



[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Run following command in a terminal:

python -c 'import tkinter; tkinter.Text().pack(); tkinter.mainloop()'

and type your dead keys in created window. What happened?

--
assignee:  - ronaldoussoren
components: +IDLE, Macintosh
nosy: +ronaldoussoren, serhiy.storchaka

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



[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Jens Troeger

Jens Troeger added the comment:

Thanks Victor.

I had the suspicion that UNO might set up somewhat incorrectly, and 
consequently cause this problem. To answer your questions:

- Debug symbols: agreed. I haven't built a vanilla Python with symbols yet. I'm 
using MacPorts default Python 3.3.

- Yes, this is Python on Mac using MacPorts.

- Yes, UNO is compatible with Python 3.3. When you install LibreOffice (on Mac) 
then it ships with a Python 3.3 interpreter. Interestingly, using THAT 
interpreter the crash does not happen when I import the module, but it does 
happen -- on occasion -- upon exiting. However, I do not know what options 
Python is compiled with for LibreOffice.

Shall I bounce this issue back to the LibreOffice folks and see if I can find 
whoever owns that piece of code?  (If anybody does...)

--

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



[issue9417] Declaring a class creates circular references

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

I don't think this can go somewhere useful.

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

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



[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread STINNER Victor

STINNER Victor added the comment:

 Shall I bounce this issue back to the LibreOffice folks and see if I can find 
 whoever owns that piece of code?  (If anybody does...)

For me, it's an issue in the uno module.

--

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



[issue21480] A build now requires...

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eefed1ecfd47 by Georg Brandl in branch '3.4':
Closes #21480: better explanation of hg touch in the Makefile.
https://hg.python.org/cpython/rev/eefed1ecfd47

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

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



[issue21480] A build now requires...

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

asdl.py is fixed to work with 2.7 as of 3b2af26f4638.

--
nosy: +georg.brandl

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread R. David Murray

R. David Murray added the comment:

Agreed.  If you want it to be a singleton in your code, use the singleton 
pattern in your code...but it is hard for me to see why that would be a good 
idea :) (ie: DRY).  Globally, it does not seem to me that there are likely to 
be any significant number of identical definitions in non-related codebases, 
even absent the mutable-class issue.

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

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



[issue6359] pyexpat.c calls trace function incorrectly for exceptions

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

A more complete patch that also fixes up pyexpat's frame trickery is tracked in 
#22462.

--
nosy: +georg.brandl
resolution:  - duplicate
status: open - closed
superseder:  - Modules/pyexpat.c violates PEP 384

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



[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Not sure how this can violate PEP 384, as it doesn't make it mandatory for 
builtin extensions to use the stable ABI.

The other concerns seem valid, although I don't like how the patch includes an 
unrelated change to ctypes.

--
nosy: +georg.brandl, pitrou

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread Alex Gaynor

Changes by Alex Gaynor alex.gay...@gmail.com:


--
nosy: +alex

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



[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Leo

Leo added the comment:

The idea was based on a misunderstanding of the typename argument. I
had erroneously inferred that the namedtuple class object would be
bound to some namespace whereas the only binding is achieved by the
assignment to a local name which may be different from the typename.
And typename can probably even be an empty string.

I agree that the oddities shown in the two code examples are just an
example of a misuse of the freedom a dynamic language grants.

Rereading the docs on nametuple, I think a clarification on the
purpose and proper use of typename might be in order. Most people have
been declaring classes for many years using the class statement. This
implicitly binds the class name to the current namespace. This is why
I was mislead.

Thanks for the helpful feedback.

Leo

On 06/10/2014, Mark Dickinson rep...@bugs.python.org wrote:

 Mark Dickinson added the comment:

 Right; the underlying problem of having objects that appear to be instances
 of  the wrong class has nothing to do with namedtuples.  After this
 sequence:

 class A: pass
 ...
 a = A()

 class A: pass
 ...

 We get the following somewhat confusing results:

 type(a)
 class '__main__.A'
 A
 class '__main__.A'
 isinstance(a, A)
 False

 Class factories like namedtuple make it somewhat easier to run into this
 issue, but it's nothing really to do with namedtuple itself, and it's not
 something that could be fixed without significant language redesign.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue22563
 ___


--

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



[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread Attilio Di Nisio

Attilio Di Nisio added the comment:

Duplicate of #21905
Fixed in https://hg.python.org/cpython/rev/86ba3bdfac15

--
resolution:  - duplicate
status: open - closed
versions: +Python 3.5

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



[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

I seem to recall that this was rejected into the realm of linters in a 
python-dev discussion.

If there is a chance of false positives, having Python emit the warning would 
be annoying because there is no convenient way of telling it to shut up about 
it.  At least people can choose not to run linters, or configure them to their 
taste.

--
nosy: +georg.brandl
resolution:  - rejected
status: open - pending

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



[issue22327] test_gdb failures on Ubuntu 14.10

2014-10-06 Thread Matěj Stuchlík

Matěj Stuchlík added the comment:

Suddenly started to see the same error on Fedora rawhide [0].

[0] https://kojipkgs.fedoraproject.org//work/tasks/3551/7773551/build.log

--
nosy: +sYnfo

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



[issue22567] doctest handle ignored execption

2014-10-06 Thread Yoav Caspi

New submission from Yoav Caspi:

When implementing a class with a __del__ function that raise an exception the 
exception ignored.
is it possible to add this printed message to be tested by doc test?

something like when running this script the script will pass:
 

Usage Example:
 cls = Module()
 del cls
Exception Exception: Exception('oops',) in bound method Module.__del__ of 
__main__.Module object at 0x0XXX ignored


class Module(object):
def __del__(self):
raise Exception(oops)

if __name__ == '__main__':
from doctest import testmod
print testmod()

--
components: Tests
messages: 228685
nosy: Yoav.Caspi
priority: normal
severity: normal
status: open
title: doctest handle ignored execption
type: enhancement
versions: Python 2.7

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-10-06 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue1284316] Win32: Security problem with default installation directory

2014-10-06 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue22567] doctest handle ignored execption

2014-10-06 Thread R. David Murray

R. David Murray added the comment:

This tracker is not a place to get answers to questions, you should use the 
python-list mailing list for that.  (That said, here's a hint: the only way to 
capture that message is to run it in a subprocess; the message is generated 
asynchronously, during garbage collection.)

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

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

+.. attribute:: SSLSocket.server_hostname
+
+   A ``bytes`` instance (...)

Ah, this is a mistake. It's actually always a str instance (on SSLObject as 
well).

--

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Leo

Leo added the comment:

A use case for the singleton pattern arises when
- field names are known only at runtime, and
- you have a large number of instances with the same field names.

An example is the storage of metadata for datasets when a hashable
type is needed.

I agree that it will generally be possible to implement the singleton
pattern by wrapping collections.namedtuple. And I recognise that the
singleton pattern would make both old and new code vulnerable to side
effects caused by mutated classes. These side effects may well
outweigh any efficiency gains to be reaped.
I therefore withdraw the idea.

Leo

On 06/10/2014, R. David Murray rep...@bugs.python.org wrote:

 R. David Murray added the comment:

 Agreed.  If you want it to be a singleton in your code, use the singleton
 pattern in your code...but it is hard for me to see why that would be a good
 idea :) (ie: DRY).  Globally, it does not seem to me that there are likely
 to be any significant number of identical definitions in non-related
 codebases, even absent the mutable-class issue.

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

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue22562
 ___


--

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



[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Serhiy's patch looks ok to me (haven't tested it).

--
nosy: +pitrou

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



[issue22568] Use of utime as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Jeffrey Armstrong

New submission from Jeffrey Armstrong:

Under certain circumstances, Modules/posixmodule.c will fail to compile due to 
a number of utime-related functions using a variable named utime when a 
function named utime already exists in the compiler's C header files.  
Specifically, if the following are undefined:

HAVE_UTIMENSAT
HAVE_UTIMES

and the following are defined:

HAVE_UTIMENSAT
HAVE_LUTIMES
HAVE_UTIME_H

the compiler will fail because the UTIME_TO_UTIMBUF module attempts to access 
utime-now when utime is acutually a function included from utime.h.

I've attached a patch that renames the uname functions' parameter utime to 
ut to avoid the conflict.

This bug was encountered using Open Watcom 2.0 (owcc) under GNU/Linux 32-bit.

--
components: Interpreter Core
files: utime-3.4.1.patch
keywords: patch
messages: 228690
nosy: Jeffrey.Armstrong
priority: normal
severity: normal
status: open
title: Use of utime as variable name in Modules/posixmodule.c causes errors
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file36825/utime-3.4.1.patch

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



[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8c33440d1f64 by Georg Brandl in branch '3.4':
Closes #10031: overhaul the imports section of the programming FAQ.
https://hg.python.org/cpython/rev/8c33440d1f64

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

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



[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9d321235f1f9 by Georg Brandl in branch '2.7':
Closes #10031: overhaul the imports section of the programming FAQ.
https://hg.python.org/cpython/rev/9d321235f1f9

--

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



[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread Geert Jansen

Geert Jansen added the comment:

 +.. attribute:: SSLSocket.server_hostname
 +
 +   A ``bytes`` instance (...)

 Ah, this is a mistake. It's actually always a str instance (on SSLObject as 
 well).

It is indeed, I stand corrected. I was confused by the decode - encode 
roundtrip that happens in _ssl.

However I think that in theory SSLSocket.server_hostname could be a bytes, if a 
bytes was passed into the constructor. _ssl parses this argument with the et 
format which means it will let a correctly encoded byte string through. Not 
sure if anybody is using this though.

--

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



[issue16518] add buffer protocol to glossary

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Please open a new issue for those.

--
nosy: +georg.brandl

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



[issue22568] Use of utime as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Antoine Pitrou

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


--
nosy: +larry

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



[issue22569] Add support for weakrefs to _socket.socket

2014-10-06 Thread Alex Gaynor

New submission from Alex Gaynor:

This is needed to keep the _ssl module reasonably in sync with it's Python3 
counterpart.

--
files: weakref-me-captain.diff
keywords: needs review, patch
messages: 228695
nosy: alex, benjamin.peterson
priority: normal
severity: normal
status: open
title: Add support for weakrefs to _socket.socket
versions: Python 2.7
Added file: http://bugs.python.org/file36826/weakref-me-captain.diff

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



[issue22559] [backport] ssl.MemoryBIO

2014-10-06 Thread Alex Gaynor

Alex Gaynor added the comment:

As suggested by Benjamin, I've filed issue22569 to add weakref support to 
_socket.socket; that will address this and further reduce teh diff with Python3.

--
dependencies: +Add support for weakrefs to _socket.socket

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



[issue14303] Incorrect documentation for socket.py on linux

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6e2a72e05b4f by Georg Brandl in branch '2.7':
Closes #14303: socket.makefile() does not call dup() anymore on the socket fd.
https://hg.python.org/cpython/rev/6e2a72e05b4f

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

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



[issue21784] __init__.py can be a directory

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

I agree, closing.

--
nosy: +georg.brandl
resolution:  - wont fix
status: open - closed

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



[issue13101] Module Doc viewer closes when browser window closes on Windows 8

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

pydoc.gui() no longer exists in supported versions.

--
nosy: +georg.brandl
resolution:  - out of date
status: open - closed

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



[issue21782] hashable documentation error: shouldn't mention id

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bfaf434a6f10 by Georg Brandl in branch '3.4':
Closes #21782: the default hash(x) is not exactly id(x) but derived from it.
https://hg.python.org/cpython/rev/bfaf434a6f10

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

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



[issue18165] Add 'unexpected_type' to TypeError

2014-10-06 Thread Brett Cannon

Brett Cannon added the comment:

There's actually nothing to remind here since there is no one waiting on input 
from anyone. Plus this particular issue is covered by 
http://legacy.python.org/dev/peps/pep-0473/ .

--

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



[issue12148] Clarify or-ing together doctest option flags

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1439619daf42 by Georg Brandl in branch '3.4':
Closes #12148: clarify or's together option flags in doctest docs.
https://hg.python.org/cpython/rev/1439619daf42

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

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



[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread STINNER Victor

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


--
superseder:  - RuntimeError in pickle.whichmodule  when sys.modules if mutated

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



[issue21072] Python docs and downloads not available for Egypt

2014-10-06 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - pending

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



[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Eric V. Smith

Eric V. Smith added the comment:

You might want to check out https://bitbucket.org/ctismer/namelesstuple, which 
uses a similar approach.

--
nosy: +eric.smith

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



[issue19642] shutil to support equivalent of: rm -f /dir/*

2014-10-06 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
components: +Library (Lib)

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

pathlib is really nice, but currently it's rather inconvenient to use due to 
the lack of support in other parts of the stdlib for Path objects.  For 
historical reasons, everything accepts string paths, but few places accept 
Paths.  As an example: configparser.ConfigParser.read() but there are lots of 
others.

I'm opening this bug to start a conversation about better support for Path 
objects in the stdlib.  Against all hope, I wish there was a simple way to 
extend the compatibility, but I don't like having to sprinkle `str(some_path)` 
calls everywhere (kind of defeats the purpose of having the nicer pathlib API 
IMHO).  I suspect instead that it will be a matter of adding type tests or 
str() conversions to the relevant methods, but there may be other issues to 
discuss, like is it even a good idea to do this? ;)

--
messages: 228704
nosy: barry
priority: normal
severity: normal
status: open
title: Better stdlib support for Path objects
versions: Python 3.5

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +pitrou

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



[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8a98ee6baa1e by Florent Xicluna in branch '2.7':
Issue #1686: Fix string.Template when overriding the pattern attribute.
https://hg.python.org/cpython/rev/8a98ee6baa1e

--
nosy: +python-dev

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Since we're unlikely to ever change all the places, I'd say it's better to be 
consistent.  I'd rather write str(path) all over the place than having to look 
up in the docs each time if that specific API happens to support passing Paths 
directly.

However, Antoine has been positive towards more utility methods on Path 
objects.  (Not that ConfigParser read() would fall in that category :)

--
nosy: +georg.brandl

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



[issue17057] Data model documentation grammar

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b6fab5c89ca9 by Georg Brandl in branch '2.7':
Closes #17057: fix grammar in old-style vs new-style class docs.
https://hg.python.org/cpython/rev/b6fab5c89ca9

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

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



[issue17078] string.Template.safe_substitute hard-wires braces as {}

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Done in 8a98ee6baa1e. Thanks!

--
nosy: +georg.brandl

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



[issue17078] string.Template.safe_substitute hard-wires braces as {}

2014-10-06 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 09782fad1825 by Georg Brandl in branch '2.7':
Closes #16155: fix a few errors in doctest output of the FAQ pages.
https://hg.python.org/cpython/rev/09782fad1825

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

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



[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 96eab476d45e by Georg Brandl in branch '3.4':
Closes #16155: fix a few errors in doctest output of the FAQ pages.
https://hg.python.org/cpython/rev/96eab476d45e

--

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



[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Thanks!

--
nosy: +georg.brandl

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Oct 06, 2014, at 03:43 PM, Georg Brandl wrote:

I'd rather write str(path) all over the place than having to look up in the
docs each time if that specific API happens to support passing Paths
directly.

Have you tried to write a large-ish application using path objects?
str-infection is definitely a disincentive to using pathlib. :/

--

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



[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2014-10-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 59fe0ff02c90 by Georg Brandl in branch '2.7':
Closes #19071: self argument is not the module for module functions in 2.x.
https://hg.python.org/cpython/rev/59fe0ff02c90

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

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



[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Mc128k

Mc128k added the comment:

2014-10-06 18:01:38.139 Python[13297:1294014] An uncaught exception was raised
2014-10-06 18:01:38.139 Python[13297:1294014] -[__NSCFConstantString 
characterAtIndex:]: Range or index out of bounds
2014-10-06 18:01:38.139 Python[13297:1294014] (
0   CoreFoundation  0x7fff89f3e64c 
__exceptionPreprocess + 172
1   libobjc.A.dylib 0x7fff8c8e56de 
objc_exception_throw + 43
2   CoreFoundation  0x7fff89f3e4fd 
+[NSException raise:format:] + 205
3   CoreFoundation  0x7fff89e12c46 
-[__NSCFString characterAtIndex:] + 102
4   Tk  0x00010243d5a8 
TkpInitKeymapInfo + 751
5   Tk  0x00010244360b 
Tk_MacOSXSetupTkNotifier + 880
6   Tcl 0x00010231849c 
Tcl_DoOneEvent + 316
7   _tkinter.so 0x000102290831 
Tkapp_MainLoop + 177
8   Python  0x0001000e542b 
PyEval_EvalFrameEx + 31291
9   Python  0x0001000e665d 
PyEval_EvalCodeEx + 2349
10  Python  0x0001000e51f7 
PyEval_EvalFrameEx + 30727
11  Python  0x0001000e665d 
PyEval_EvalCodeEx + 2349
12  Python  0x0001000e671f 
PyEval_EvalCode + 63
13  Python  0x000100e7 
PyRun_StringFlags + 183
14  Python  0x000100111271 
PyRun_SimpleStringFlags + 65
15  Python  0x000100127e55 Py_Main + 
1445
16  Python  0x00010e32 Python + 3634
17  Python  0x00010c84 Python + 3204
)
2014-10-06 18:01:38.140 Python[13297:1294014] *** Terminating app due to 
uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString 
characterAtIndex:]: Range or index out of bounds'
*** First throw call stack:
(
0   CoreFoundation  0x7fff89f3e64c 
__exceptionPreprocess + 172
1   libobjc.A.dylib 0x7fff8c8e56de 
objc_exception_throw + 43
2   CoreFoundation  0x7fff89f3e4fd 
+[NSException raise:format:] + 205
3   CoreFoundation  0x7fff89e12c46 
-[__NSCFString characterAtIndex:] + 102
4   Tk  0x00010243d5a8 
TkpInitKeymapInfo + 751
5   Tk  0x00010244360b 
Tk_MacOSXSetupTkNotifier + 880
6   Tcl 0x00010231849c 
Tcl_DoOneEvent + 316
7   _tkinter.so 0x000102290831 
Tkapp_MainLoop + 177
8   Python  0x0001000e542b 
PyEval_EvalFrameEx + 31291
9   Python  0x0001000e665d 
PyEval_EvalCodeEx + 2349
10  Python  0x0001000e51f7 
PyEval_EvalFrameEx + 30727
11  Python  0x0001000e665d 
PyEval_EvalCodeEx + 2349
12  Python  0x0001000e671f 
PyEval_EvalCode + 63
13  Python  0x000100e7 
PyRun_StringFlags + 183
14  Python  0x000100111271 
PyRun_SimpleStringFlags + 65
15  Python  0x000100127e55 Py_Main + 
1445
16  Python  0x00010e32 Python + 3634
17  Python  0x00010c84 Python + 3204
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

--

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

I was about to suggest deriving your own Path class from Path and str, but got 
a base class layout conflict because Path objects define lots of __slots__ :(

--

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I was about to suggest deriving your own Path class from Path and str

That would be a rather horrible solution.
It has already been suggested to create a path protocol. I would suggest 
Barry tries to float and investigate the idea on python-ideas:
https://mail.python.org/pipermail/python-ideas/2014-May/027869.html

--

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

 That would be a rather horrible solution.

I know :)

--

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



[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

As for adding convenience methods to Path objects, yes, I'm quite open to that. 
Best is to open an issue when you have a specific idea (and a patch :-)).

--

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



[issue7676] IDLE shell shouldn't use TABs

2014-10-06 Thread Stephen Paul Chappell

Stephen Paul Chappell added the comment:

In Lib\idlelib\PyShell.py, there are usetabs and indentwidth attributes in the 
PyShell class. Is there some reason that these settings cannot be reconfigured 
in the Options  Configure IDLE... menu? I just edited these to False and 4 
respectively and am quite content with the resulting behavior.

--

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



[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2014-10-06 Thread Shuhei Takahashi

Shuhei Takahashi added the comment:

Hi karl,

Of course it is correct that the user agent is redirected to 
http://example.com/bar#test when it got such response. However, it never means 
UA can send an HTTP request containing fragment part.

In RFC7230 section 3.1.1, HTTP request line is defined as:
request-line   = method SP request-target SP HTTP-version CRLF
where request-target is defined in section 5.3. In usual case, it is 
origin-form:
origin-form= absolute-path [ ? query ]
which never includes fragment part.

This means current urllib behavior violates HTTP/1.1 spec.

--

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



[issue10583] Encoding issue with chm help in 2.7.1

2014-10-06 Thread Georg Brandl

Georg Brandl added the comment:

Agreed, closing.

--
resolution:  - fixed
status: open - closed

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



[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-10-06 Thread ddve...@ucar.edu

ddve...@ucar.edu added the comment:

If no one is able to reproduce it, I guess we can close it.

I am sure I can reproduce it if I run it in the same situation I ran
it the first time. However, I initially reported the bug for python
2.7.6 i.e. two versions ago, so it might have been fixed by something
that happened meanwhile (or did the ones who tried used the exact
version I reported the bug against?)

If I experience the bug again while installing v2.7.9, I will report
it here again (you all receive updates even if the bug is closed,
right? I am asking because I don't thing I have the rights to re-open
it).

Thanks,
Davide

On Sat, Oct 4, 2014 at 6:47 PM, Mark Lawrence rep...@bugs.python.org wrote:

 Mark Lawrence added the comment:

 As there has been no response can this be closed?

 --
 nosy: +BreamoreBoy
 status: pending - open

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue21278
 ___

--

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



[issue22570] Better stdlib support for Path objects

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



[issue22559] [backport] ssl.MemoryBIO

2014-10-06 Thread Alex Gaynor

Alex Gaynor added the comment:

New patch works and passes all tests. It's on top of issue22569.

--
Added file: http://bugs.python.org/file36827/issue225593.diff

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



[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Ned Deily

Ned Deily added the comment:

Also note that there were major internal changes in Python strings for 3.3 
(http://legacy.python.org/dev/peps/pep-0393/) so you might want to look at 
those especially if this worked OK with Python 3.2.  Since it seems unlikely 
that there would be any further progress on resolving this without more 
analysis on the UNO end, I am closing this issue as presumed to be a 
third-party problem.  Feel free to re-open if evidence of a problem in Python 
itself is uncovered.

--
assignee: ronaldoussoren - 
resolution:  - third party
stage:  - resolved
status: open - closed

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



  1   2   >