[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What exceptions are raised on Windows when try to open a file in bad directory? open('foo').close() open('foo/bar') # what raised? open('nonexistent/bar') # what raised? If raised the same exceptions as on Linux, then perhaps the following patch

[issue16124] fcntl_ioctl still not 100% sane with unsigned longs

2015-02-15 Thread Garrett Cooper
Garrett Cooper added the comment: Another note: mixed endianness might have been a factor as previous versions of the product that were shipped used bi-arch x86 (32-bit userland on 64-bit kernel. -- ___ Python tracker rep...@bugs.python.org

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what returns os.access for writable directories and non-existent files? os.mkdir('dir') os.access('dir', os.W_OK) # what returns? os.access('nonexistent', os.W_OK) # what returns or raises? -- ___

[issue16124] fcntl_ioctl still not 100% sane with unsigned longs

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue521723 and issue1471. Do you have tests that demonstrate a failure with using ioctl on OpenBSD? May be there are problems on 64-bit big-endian platforms (or even on 64-bit little-endian if additional parameters are passed

[issue16124] fcntl_ioctl still not 100% sane with unsigned longs

2015-02-15 Thread Garrett Cooper
Garrett Cooper added the comment: Yes, it's a duplicate. That being said, documentation alone it should be unsigned long for Darwin (OS/X), FreeBSD, OpenBSD. Looking at the definition for ioctl(2), the below example would cause a failure. I need to hunt around for a practical example as I

[issue21934] OpenBSD has no /dev/full device

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 354c3b65e245 by Serhiy Storchaka in branch '2.7': Issue #21934: test_file2k no longer create regular file /dev/full on OpenBSD https://hg.python.org/cpython/rev/354c3b65e245 -- nosy: +python-dev ___

[issue21849] Fix multiprocessing for non-ascii data

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: -Fix unicodeless build of Python resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21849

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-02-15 Thread Rolf Krahl
Rolf Krahl added the comment: The design goal for my implementation was compatibility. My version can be used as a drop in replacement for the existing urllib's HTTPHandler. The only thing that need to be changed in the calling code is that it must call build_opener() to select the chunked

[issue5700] io.FileIO calls flush() after file closed

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch for 2.7. -- Added file: http://bugs.python.org/file38148/fileio_flush_closed-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5700

[issue21934] OpenBSD has no /dev/full device

2015-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why the complication? You could just use open mode r+. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21934 ___

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-15 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- components: +Windows nosy: +tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23465 ___

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 138c2afd9f1f by Serhiy Storchaka in branch '3.4': Issue #19681: Test the repr of partial with more than one keyword argument. https://hg.python.org/cpython/rev/138c2afd9f1f New changeset 6f80e8bcb5ad by Serhiy Storchaka in branch 'default': Issue

[issue15178] Doctest should handle situations when test files are not readable

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Doctest still failed with backtrace if argument is a file name. $ ./python -m doctest aaa.py Traceback (most recent call last): File /home/serhiy/py/cpython/Lib/runpy.py, line 170, in _run_module_as_main __main__, mod_spec) File

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23374 ___ ___

[issue23408] Pickle tests use incorrect test data

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23408 ___ ___

[issue23096] Implementation-depended pickling floats with protocol 0

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23096 ___ ___

[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___ ___

[issue23096] Implementation-depended pickling floats with protocol 0

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23096 ___

[issue23096] Implementation-depended pickling floats with protocol 0

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c9121993eb5 by Serhiy Storchaka in branch 'default': Issue #23096: Pickle representation of floats with protocol 0 now is the same https://hg.python.org/cpython/rev/8c9121993eb5 -- nosy: +python-dev ___

[issue23408] Pickle tests use incorrect test data

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed in d92a067464a0 and 3e4ed1a23cfc. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23408

[issue5700] io.FileIO calls flush() after file closed

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments as Antoine suggested. -- versions: +Python 2.7 Added file: http://bugs.python.org/file38147/fileio_flush_closed_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5700

[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___ ___ Python-bugs-list

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a test. -- Added file: http://bugs.python.org/file38146/pydoc_encoding_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23374 ___

[issue23146] Incosistency in pathlib between / and \

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23146 ___ ___

[issue23452] Build errors using VS Express 2013 in win32 mode

2015-02-15 Thread Steve Dower
Steve Dower added the comment: There's nothing wrong with that line, it's probably the Tk or Tcl build failing. Zach may have some ideas, or I'll play with it some more in the next few days. -- ___ Python tracker rep...@bugs.python.org

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___

[issue21934] OpenBSD has no /dev/full device

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was my first idea. But this would be different test. The behavior of files opened with w and r+ modes can be different. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21934

[issue20575] Type handling policy for the statistics module

2015-02-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thanks for the note Mark. I need to give Oscar's comments some careful and distraction-free thought, but off the top of my head I think Oscar's suggestion to require consistent types seems reasonable, except that mixing int with any other type should be

[issue23239] SSL match_hostname does not accept IP Address

2015-02-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23239 ___

[issue23215] MemoryError with custom error handlers and multibyte codecs

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Aleksi. It LGTM in general. Updated patch just moves the test to Lib/test/test_multibytecodec.py where it can reuse ALL_CJKENCODINGS and fixes few other minor bugs in multibyte codecs. -- Added file:

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is there a difference if you do open(..., 'w')? It's a different enough operation that it may have a different error. Oh, yes, I forgot the 'w' mode. Mark, could you please run following test on Windows? import os open('foo', 'wb').close() flags =

[issue23215] MemoryError with custom error handlers and multibyte codecs

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23215 ___ ___

[issue23146] Incosistency in pathlib between / and \

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f8f24dab34b by Antoine Pitrou in branch '3.4': Issue #23146: Fix mishandling of absolute Windows paths with forward slashes in pathlib. https://hg.python.org/cpython/rev/0f8f24dab34b New changeset 0de45993c21c by Antoine Pitrou in branch

Re: pickle error by multiprocessing

2015-02-15 Thread Albert-Jan Roskam
On Sun, Feb 15, 2015 7:43 AM CET dieter wrote: Martijn Millecamp martijn.millec...@hotmail.com writes: for a schoolproject we had to build a robot and control this robot with a gui to follow a pathWe use multiprocessingand in our group 2 people can run the

[issue22687] horrible performance of textwrap.wrap() with a long word

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: wordsplit_3.patch is wordsplit_2.patch with few added comments in tests. Is it enough? -- Added file: http://bugs.python.org/file38149/wordsplit_3.patch ___ Python tracker rep...@bugs.python.org

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Mark Lawrence
Mark Lawrence added the comment: os.mkdir('dir') os.access('dir', os.W_OK) True os.access('nonexistent', os.W_OK) False open('dir/bar') Traceback (most recent call last): File stdin, line 1, in module FileNotFoundError: [Errno 2] No such file or directory: 'dir/bar'

[issue23146] Incosistency in pathlib between / and \

2015-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23146 ___

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Mark. Could you please make first test in msg236028 (when first part of the path is a file, not a directory)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22107

[issue23239] SSL match_hostname does not accept IP Address

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b15a5f239e8a by Antoine Pitrou in branch 'default': Issue #23239: ssl.match_hostname() now supports matching of IP addresses. https://hg.python.org/cpython/rev/b15a5f239e8a -- nosy: +python-dev ___

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Mark Lawrence
Mark Lawrence added the comment: open('README').close() open('README/bar') Traceback (most recent call last): File stdin, line 1, in module FileNotFoundError: [Errno 2] No such file or directory: 'README/bar' -- ___ Python tracker

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Steve Dower
Steve Dower added the comment: Is there a difference if you do open(..., 'w')? It's a different enough operation that it may have a different error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22107

Creating Python RPM on AIX

2015-02-15 Thread Blaxton
Hi Has any one created Python RPM on AIX ? I am using the spec file that comes with Python source file and here is the problems I was facing: README file says download the bz2 version, but only gziped and xz version available from Python website so had to convert the .tgz file to bz2 and

[issue19050] crash while writing to a closed file descriptor

2015-02-15 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19050 ___ ___ Python-bugs-list

Go Ahead, Make my PEP... (was: PEP 441 - Improving Python ZIP Application Support)

2015-02-15 Thread Skip Montanaro
From over yonder, on python-dev... -- Forwarded message -- From: Steve Dower steve.do...@microsoft.com Subject: Re: [Python-Dev] PEP 441 - Improving Python ZIP Application Support Go ahead, make my pep. We should make a python-dev t-shirt with this on it :) +1 from me as

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2015-02-15 Thread Vinay Sajip
Vinay Sajip added the comment: There is a bug in distlib.resources. As far as I know, this is no longer the case - a change was made in distlib.resources to get around the problem:

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22390 ___ ___ Python-bugs-list mailing

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

2015-02-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch! I'm -1 to adding IDE/editor specific files to .hgignore. You can create a global .hgignore instead. -- nosy: +berker.peksag resolution: - wont fix stage: patch review - resolved status: open - closed

[issue23469] Delete Misc/*.wpr files

2015-02-15 Thread Berker Peksag
New submission from Berker Peksag: Config/plugin/readme files for Emacs and Vim in Misc have been deleted. The only remaining ones are for Wing IDE. Here is a patch to remove these files. -- files: wpr.diff keywords: patch messages: 236082 nosy: berker.peksag priority: normal severity:

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2015-02-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: This has come up on Python-Ideas again: http://permalink.gmane.org/gmane.comp.python.ideas/32002 https://mail.python.org/pipermail/python-ideas/2015-February/032000.html -- nosy: +steven.daprano ___ Python tracker

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Great. There is only one difference between Windows and Linux, but it affects only error type in tests. Here is a patch with updated test. It should now work on Windows. -- Added file: http://bugs.python.org/file38151/tempfile_bad_tempdir_2.patch

[issue23468] ISO 8601 datetime process

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23468 ___ ___ Python-bugs-list

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: As far as bytes formatting supports the %s code (an alias to %b) purely for compatibility with Python 2, it would be good to support the %r as an alias to %a. I don't like this idea. -- nosy: +haypo ___ Python

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-02-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Inconsistency between str and bytes formatting of integers - PEP 461: Inconsistency between str and bytes formatting of integers ___ Python tracker rep...@bugs.python.org

Flagging classes as not intended for direct initialization

2015-02-15 Thread Mario Figueiredo
Hello everyone, [Python 3.X] I have the following factory model for the initialization of a class tree (code abbreviated for simplicity). # item.py class BadItemType(Exception): pass class Item: def __init__(self, _data): class Container(Item): def __init__(self, _data):

[issue22211] Remove VMS specific code in expat.h xmlrole.h

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: Modules/expat is not a copy of a module hosted somewhere else? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22211 ___

[issue21998] asyncio: support fork

2015-02-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asyncio: a new self-pipe should be created in the child process after fork - asyncio: support fork ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21998

[issue22087] asyncio: support multiprocessing (support fork)

2015-02-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asyncio: support multiprocessing (support fork=) - asyncio: support multiprocessing (support fork) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: @Giampaolo: I'm not sure that I understood your proposition? Can you please write a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18932 ___

[issue22087] asyncio: support multiprocessing (support fork=)

2015-02-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asyncio: support multiprocessing - asyncio: support multiprocessing (support fork=) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087

[issue23466] Inconsistency between str and bytes formatting of integers

2015-02-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PEP 461 says that all numeric bytes formatting codes will work as they do for str. In particular b%x % val is equivalent to (%x % val).encode(ascii). But this is wrong with current implementation: '%x' % 3.14 Traceback (most recent call last): File

[issue23468] ISO 8601 datetime process

2015-02-15 Thread SilentGhost
SilentGhost added the comment: Perhaps I'm misinterpreting your message, but this doesn't seem like a problem with datetime module. The issue is with dateutil module, which is not the part of the standard library and is not developed here. Also, I can reproduce this issue on 3.4 (though I

[issue21998] asyncio: support fork

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: Can someone review at_fork-2.patch? Martin: Can you please try my patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21998 ___

How to install PIL or PILLOW on OS X Yosemite?

2015-02-15 Thread KP
Hi, just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL import ImageFont, ImageDraw it tells me that it cannot find PIL How do I install this on Yosemite? Any pointers much appreciated KP

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The main motivation of PEP 461 was to help ease migration from, and/or have a single code base with, Python 2. But bytes formatting don't support the %r code supported in Python 2. Instead it supports the %a code which is exactly equivalent to the %r code

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-15 Thread Mark Lawrence
Mark Lawrence added the comment: open('foo', 'wb').close() flags = os.O_RDWR | os.O_CREAT | os.O_EXCL | getattr(os, 'O_NOFOLLOW', 0) | getattr(os, 'O_BINARY', 0) os.open('foo/bar', flags, 0o600) Traceback (most recent call last): File stdin, line 1, in module FileNotFoundError: [Errno 2]

[issue23468] ISO 8601 datetime process

2015-02-15 Thread Stoneagee
New submission from Stoneagee: Code: import dateutil.parser from datetime import datetime a='0001-01-01T00:00:00+02:00' b='1964-01-01T00:00:00+02:00' ia=dateutil.parser.parse(a) ib=dateutil.parser.parse(b) print a print ia print b print ib output: 0001-01-01T00:00:00+02:00 2001-01-01

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, we probably got carried away by purity concerns. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23467 ___

[issue19050] crash while writing to a closed file descriptor

2015-02-15 Thread STINNER Victor
STINNER Victor added the comment: I'm sorry, I can't try this myself as I no longer run 2.7. You should install Python 2.7 if you want to work on Python 2.7 only issue. It's not so hard to install Python, especially on Windows (this issue looks to be specific to Windows). --

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Ethan Furman
Ethan Furman added the comment: Sometimes practicality wins; it's why we allow %s, and we should also allow %r. Both %s and %r need to be clearly documented as an aid to Py2/3 code bases, and not recommended for new code. Serhiy, do you have time to take of this? --

[issue21934] OpenBSD has no /dev/full device

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21934 ___

[issue22211] Remove VMS specific code in expat.h xmlrole.h

2015-02-15 Thread John Malmberg
John Malmberg added the comment: These files are identical to the files in the expat git repository. So it looks like I need to submit the fix and get it accepted to that repository first. And then at some point cPython will pick up the change. I can still provide diffs if desired, but based

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02865d22a98d by Serhiy Storchaka in branch '2.7': Issue #22885: Fixed arbitrary code execution vulnerability in the dumbdbm https://hg.python.org/cpython/rev/02865d22a98d New changeset 693bf15b4314 by Serhiy Storchaka in branch '3.4': Issue #22885:

[issue5700] io.FileIO calls flush() after file closed

2015-02-15 Thread Martin Panter
Martin Panter added the comment: For the record, the python-dev thread referenced in the original post is https://mail.python.org/pipermail/python-dev/2009-April/088212.html. The obvious fix to me is to have FileIO.close() call IOBase.close() to invoke the flush() before continuing with its

[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed issue22885.patch with modified test which demonstrates vulnerability of unpatched dbm.dumb. If you want to change exception type raised by dbm.dumb, you can open new issue. -- assignee: - serhiy.storchaka resolution: - fixed stage: patch

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-15 Thread Martin Panter
Martin Panter added the comment: Patch looks sensible to me. This is another example of where Issue 15216 would be useful (a standard way to modify the encoding settings of a stream). -- ___ Python tracker rep...@bugs.python.org

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the implementation of os.path is alright. There is a bug in distlib.resources. And the lack of os.path documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20140

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In the case of this issue pydoc needs change not the encoding of stdout, but errors handler of stdout. There is similar issue with pprint (issue19100). -- ___ Python tracker rep...@bugs.python.org

[issue23457] make test failures

2015-02-15 Thread David Edelsohn
David Edelsohn added the comment: When you configure Python, you can specify an installation directory, which defaults to /usr/local. make install will overwrite the Python installation in the specified (possibly default) installation location, but not versions installed in other locations

Re: Python discussed in Nature

2015-02-15 Thread giacomo boffi
Chris Angelico ros...@gmail.com writes: On Sat, Feb 14, 2015 at 6:40 AM, John Ladasky john_lada...@sbcglobal.net wrote: The default font that the Geany program editor uses on my Ubuntu system renders everything I've tried. When I look up that font in Geany's Preferences menu, it is called,

[issue23440] Extend http.server.SimpleHTTPRequestHandler testing

2015-02-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23440 ___

Re: Python discussed in Nature

2015-02-15 Thread Chris Angelico
On Mon, Feb 16, 2015 at 8:09 AM, giacomo boffi pec...@pascolo.net wrote: That's a font alias. Unfortunately, I've never yet figured out a straight-forward way to snap the pointer; when you know it, it's easy... % fc-match mono DejaVuSansMono.ttf: DejaVu Sans Mono Book % Learn something

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The implementation is easy -- just add case 'r': before case 'a':. The hard (to me) part is the documentation, so that I'm out of the game. -- ___ Python tracker rep...@bugs.python.org

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-02-15 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23467 ___ ___

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Attached is a patch (for epoll only) which updates the SelectorKey. This introduces a considerable slowdown compared to my first patch: no patch:16.2 usec per loop your patch: 12.4 usec per loop my patch:10.9 usec per loop first patch: 3.07 usec

[issue23468] ISO 8601 datetime process

2015-02-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23468 ___

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-15 Thread Berker Peksag
Berker Peksag added the comment: Buildbots are not happy: == ERROR: test_write_filtered_python_package (test.test_zipfile.PyZipFileTests) -- Traceback (most

[issue23457] make test failures

2015-02-15 Thread Dwight
Dwight added the comment: Hi David, Thanks for the feed back. I must have a defective distribution because when installed python 3 it did not remove the older python 2. Also for some reason I have to set the LIBPATH to include the path to python libarary. Don't know why; but the build

Re: Flagging classes as not intended for direct initialization

2015-02-15 Thread Steven D'Aprano
Mario Figueiredo wrote: Hello everyone, [Python 3.X] I have the following factory model for the initialization of a class tree (code abbreviated for simplicity). # item.py class BadItemType(Exception): pass If this is a type error, why aren't you using TypeError? Or at least

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59716f28ed30 by Berker Peksag in branch '3.4': Issue #17753: effective_ids unavailable on Windows. https://hg.python.org/cpython/rev/59716f28ed30 New changeset 964753cf09de by Berker Peksag in branch 'default': Issue #17753: effective_ids

[issue11717] conflicting definition of ssize_t in pyconfig.h

2015-02-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a formal patch review please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11717 ___ ___

Re: Flagging classes as not intended for direct initialization

2015-02-15 Thread Peter Otten
Mario Figueiredo wrote: Hello everyone, [Python 3.X] I have the following factory model for the initialization of a class tree (code abbreviated for simplicity). # item.py class BadItemType(Exception): pass class Item: def __init__(self, _data): class Container(Item):

[issue10818] pydoc: Remove old server and tk panel

2015-02-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10818 ___ ___

[issue20833] scripts\pydocgui.pyw out of date

2015-02-15 Thread Berker Peksag
Berker Peksag added the comment: pydocgui.pyw was removed in https://hg.python.org/cpython/rev/2e578b80c2f3. msi.py was updated in issue 14512. Closing this as out of date. -- nosy: +berker.peksag resolution: - out of date stage: - resolved status: open - closed

[issue14512] Pydocs module docs server not working on Windows.

2015-02-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14512 ___ ___

[issue20069] Add unit test for os.chown

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests failed on Solaris: http://buildbot.python.org/all/builders/AMD64%20Solaris%2011%20%5BSB%5D%203.x/builds/3895/steps/test/logs/stdio == FAIL: test_chown_without_permission

[issue20069] Add unit test for os.chown

2015-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cea99f51bfe by Serhiy Storchaka in branch 'default': Issue #20069: Fixed test_os on Solaris: error message is platform depended. https://hg.python.org/cpython/rev/4cea99f51bfe -- ___ Python tracker

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests failed on Solaris: http://buildbot.python.org/all/builders/AMD64%20Solaris%2011%20%5BSB%5D%203.x/builds/3895/steps/test/logs/stdio == ERROR: test_deleted_cwd

Re: How to install PIL or PILLOW on OS X Yosemite?

2015-02-15 Thread Ned Deily
In article dc937f79-b6bf-4060-8c71-2f4939aef...@googlegroups.com, KP kai.pet...@gmail.com wrote: just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL import ImageFont, ImageDraw it

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17753 ___ ___

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Berker. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17753 ___ ___ Python-bugs-list mailing list

  1   2   >