[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator

2015-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - berker.peksag stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23581 ___

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Ethan Furman
Ethan Furman added the comment: Slight reordering of code removed the one user visible change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23486 ___

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread eryksun
eryksun added the comment: To me, the reference to the windows internal function is worse than useless and should perhaps be removed. The docs could add an example commandline to edit the per-user .ini: NT 6: notepad %LOCALAPPDATA%\py.ini NT 5: notepad %USERPROFILE%\Local

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2545bfe0d273 by Ethan Furman in branch 'default': Close issue23486: performance boost for enum member lookup https://hg.python.org/cpython/rev/2545bfe0d273 -- nosy: +python-dev resolution: - fixed stage: commit review - resolved status:

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Ian Kelly
On Wed, Mar 11, 2015 at 4:54 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Michael Parchet wrote: Hello, The pyside project is ded. What makes you think that Pyside is dead? It seems to be active to me. The latest update was just 29 days ago: https://github.com/PySide

[issue23640] Enum.from_bytes() is broken

2015-03-11 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23640 ___ ___ Python-bugs-list

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
David Beazley added the comment: inal comment. It seems that one can generally avoid a lot of nastiness if importlib.reload() is used instead. For example: mod = sys.modules[spec.name] = module_from_spec(spec) importlib.reload(mod) This works for both source and Extension modules and

RE: Re: I want to get involved with Python!

2015-03-11 Thread bink...@mweb.co.za
Jacob, thanks for replying. The IT job market is s specific in what they are looking for here in SA and it is really hard to get a job in a programming language one hasn't been exposed to. Even when you explain to the agency that you want to learn new technologies and that the only way you

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-11 Thread Brett Cannon
Brett Cannon added the comment: Egg files are not a part of the Python stdlib and so I don't understand why you expected them to be supported by imp? Anyway, because egg files are not from Python itself but a third-party project they shouldn't be referenced from the official docs as it would

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23642 ___

Re: Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
- Original Message - From: bink...@mweb.co.za To: ja...@blindza.co.za Cc: python-list@python.org Sent: Wednesday, March 11, 2015 4:10 PM Subject: RE: Re: I want to get involved with Python! Jacob, thanks for replying. The IT job market is s specific in what they

Re: when may sys.executable be empty

2015-03-11 Thread YBM
Le 11/03/2015 15:41, Wolfgang Maier a écrit : From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-03-11 Thread STINNER Victor
STINNER Victor added the comment: You should also update the PEP 461. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23467 ___ ___

[issue23467] Improve byte formatting compatibility between Py2 and Py3

2015-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 611fa301b807 by Ethan Furman in branch 'default': Close issue23467: add %r compatibility to bytes and bytearray https://hg.python.org/cpython/rev/611fa301b807 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open -

[issue23640] Enum.from_bytes() is broken

2015-03-11 Thread Ethan Furman
Ethan Furman added the comment: The only solution that is coming to mind is to have EnumMeta go through the other base classes, wrap any classmethods it finds, and ensure that they return their appropriate type and not an Enum type. Any other ideas? --

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
David Beazley added the comment: Sorry. I take back the previous message. It still doesn't quite do what I want. Anyways, any insight or thoughts about this would be appreciated ;-). -- ___ Python tracker rep...@bugs.python.org

[issue23641] Got rid of bad dunder names

2015-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +unittest.mock.MagicMock doesn't support matmul (@) operator ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23641 ___

[issue23640] Enum.from_bytes() is broken

2015-03-11 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- keywords: +patch stage: test needed - needs patch Added file: http://bugs.python.org/file38444/issue23640.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23640

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
New submission from David Beazley: I have been investigating some of the new importlib machinery and the addition of ModuleSpec objects. I am a little curious about the intended handling of C Extension modules going forward. Backing up for a moment, consider a pure Python module. It seems

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-11 Thread Thomas Guettler
Thomas Guettler added the comment: Dear Bret Cannon, I don't ask for egg support in the imp module. I don't want to change the implemenation of imp.find_module() I just want to update the docs. Most people run a python version which supports loading zipped eggs. Please reopened this, since I

[issue23192] Generator return value ignored in lambda function

2015-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b4a04c3681b by Serhiy Storchaka in branch '3.4': Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet. https://hg.python.org/cpython/rev/2b4a04c3681b New changeset a3b889e9d3f3 by Serhiy Storchaka in branch 'default': Issue #23192: Fixed

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-11 Thread Brett Cannon
Brett Cannon added the comment: LGTM as well. You want to commit, Serhiy? If not assign to me and I will get to it on Friday. -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23615

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 383ba3699084 by Serhiy Storchaka in branch '3.4': Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with https://hg.python.org/cpython/rev/383ba3699084 New changeset 6e736a57a482 by Serhiy Storchaka in branch 'default': Issue

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-11 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/issue23615 ___

[issue23639] Not documented special names

2015-03-11 Thread Éric Araujo
Éric Araujo added the comment: I think like Ezio does. Python covers itself by saying that all names starting and ending with two underscores are reserved, and documents those that are interesting for users. On the other hand, many third-party frameworks/libs/apps invent their own __names__

[issue23639] Not documented special names

2015-03-11 Thread Peter Otten
Changes by Peter Otten __pete...@web.de: -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23639 ___ ___ Python-bugs-list

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread Steve Dower
Steve Dower added the comment: For a per-user install, the launcher does not go in C:\Windows (note that Python 3.4 does not really have per-users installs). The correct location for the ini file in every case is alongside the executable, and it must always be named py.ini. py.exe is put

EuroPython 2015: Early-Bird tickets sold out!

2015-03-11 Thread M.-A. Lemburg
We are very happy to announce that early-bird tickets are sold out! The tickets were sold in less than a week! We’d like to thank everyone for the fantastic feedback. Given the rush to the early-bird tickets (we sold 100 tickets in the first 4 hours), we recommend to not wait too

[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2015-03-11 Thread Nathan Jensen
Nathan Jensen added the comment: I'm not sure this was fixed in an optimal way. We have a set of processes using the SocketHandler to send log records to a single log process. Some of these log records have the msg attribute as a dictionary that contained a variety of extra information about

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Robert Kern
On 2015-03-11 19:31, Michael Torrie wrote: On 03/11/2015 01:29 PM, Chris Warrick wrote: On Wed, Mar 11, 2015 at 8:20 PM, Michael Torrie torr...@gmail.com wrote: My biggest complaint with PySide is that for historical reasons (looking at you, PyQt), it does not use pep8 naming conventions,

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-11 Thread STINNER Victor
STINNER Victor added the comment: Is there a method to detect other reload bugs? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23615 ___ ___

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643 ___ ___ Python-bugs-list mailing list

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Ned Deily
Ned Deily added the comment: Isn't this a duplicate of Issue5765 and Issue11383? -- nosy: -ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643 ___

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- components: -Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643 ___ ___ Python-bugs-list mailing

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Robert Kern
On 2015-03-11 18:46, Vincent Vande Vyvre wrote: Le 11/03/2015 18:06, Ian Kelly a écrit : On Wed, Mar 11, 2015 at 4:54 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Michael Parchet wrote: Hello, The pyside project is ded. What makes you think that Pyside is dead? It seems

Re: MSVC2013

2015-03-11 Thread polyvertex
On Sunday, March 8, 2015 at 7:51:17 PM UTC+1, Mark Lawrence wrote: On 08/03/2015 17:57, polyver...@gmail.com wrote: On Saturday, March 7, 2015 at 5:36:07 PM UTC+1, Mark Lawrence wrote: On 07/03/2015 15:55, polyver...@gmail.com wrote: Out of curiosity, is there any plan to use a more recent

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Michael Klein
New submission from Michael Klein: I have gotten Segmentation Fault: 11 with the newest version of Python 2.7 and nothing but standard functions. The program is of the following form (attached to this email): def loopcountaux(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15,

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Only grep. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23615 ___ ___ Python-bugs-list mailing list

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Michael Klein
Changes by Michael Klein michael14...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643 ___ ___ Python-bugs-list

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Michael Klein
Michael Klein added the comment: I found a simpler one, like Amaury's eval(+1 * 748580): def f(x): y = x+x+x+x+x return y print f(0) (Except there are 74875 x+'s. This is exactly enough for a segfault, one less runs fine.) I've tried something like: loopcount = 0 loopcount +=

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Probably a stack overflow, when the AST is too deep: eval(+1 * 748580) also crashed for me -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23643

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread Steve Dower
Steve Dower added the comment: NT 5 would be Vista and earlier in this case, I believe. Specifying %LOCALAPPDATA% should be sufficient, though %USERPROFILE% (e.g. C:\Users\Steve) would also be okay. %ProgramData% is not writable by limited users, but we don't want the global .ini to be

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread eryksun
eryksun added the comment: Specifying %LOCALAPPDATA% should be sufficient, though %USERPROFILE% (e.g. C:\Users\Steve) would also be okay. The command using %USERPROFILE% was for XP (NT 5.1), since the %LOCALAPPDATA% environment variable was added in Vista (NT 6.0). %ProgramData% is not

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Chris Warrick
On Wed, Mar 11, 2015 at 8:20 PM, Michael Torrie torr...@gmail.com wrote: My biggest complaint with PySide is that for historical reasons (looking at you, PyQt), it does not use pep8 naming conventions, which makes for some really ugly function and method names. This isn’t PyQt’s fault. Both

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good idea, but what do 'NT5' and 'NT6' correspond to in user terms -- Vista, Win 7, Win 8, and Win 10? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23633

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 01:29 PM, Chris Warrick wrote: On Wed, Mar 11, 2015 at 8:20 PM, Michael Torrie torr...@gmail.com wrote: My biggest complaint with PySide is that for historical reasons (looking at you, PyQt), it does not use pep8 naming conventions, which makes for some really ugly function and

Re: when may sys.executable be empty

2015-03-11 Thread Dave Angel
On 03/11/2015 10:41 AM, Wolfgang Maier wrote: From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Vincent Vande Vyvre
Le 11/03/2015 18:06, Ian Kelly a écrit : On Wed, Mar 11, 2015 at 4:54 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Michael Parchet wrote: Hello, The pyside project is ded. What makes you think that Pyside is dead? It seems to be active to me. The latest update was just 29

[issue23633] Improve py launcher help, index, and doc

2015-03-11 Thread eryksun
eryksun added the comment: Good idea, but what do 'NT5' and 'NT6' correspond to in user terms -- Vista, Win 7, Win 8, and Win 10? Don't worry about NT 5 if Python's no longer supporting Windows XP in any fashion. Vista, Windows 7, Windows 8, Windows 8.1, and Windows 10 are respectively NT

Re: I want to get involved with Python!

2015-03-11 Thread Terry Reedy
On 3/11/2015 5:19 AM, bink...@mweb.co.za wrote: I am currently a Progress Programmer and looking for new challenges! Are you referring to https://en.wikipedia.org/wiki/OpenEdge_Advanced_Business_Language It seems that Python is a good language to get familiar with and I would like some

[issue23640] Enum.from_bytes() is broken

2015-03-11 Thread Ethan Furman
Ethan Furman added the comment: I think the classmethod-as-constructor behavior is correct, so it's up to IntEnum (or EnumMeta, or foo, or ...), to work around the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23640

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Parchet
Hello, Only one file of pyside project has update at 10 fob, What's your opinion Pyside is ded ? Best regards mparchet Le 11.03.15 18:06, Ian Kelly a écrit : On Wed, Mar 11, 2015 at 4:54 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Michael Parchet wrote: Hello,

[issue23643] Segmentation Fault with Large Simple Function

2015-03-11 Thread SilentGhost
SilentGhost added the comment: This seems to work on linux (returning 0), but fails on 3.4 with RuntimeError: maximum recursion depth exceeded during compilation. I wonder if the two are related. -- nosy: +SilentGhost ___ Python tracker

Re: MSVC2013

2015-03-11 Thread Mark Lawrence
On 11/03/2015 21:59, polyver...@gmail.com wrote: On Sunday, March 8, 2015 at 7:51:17 PM UTC+1, Mark Lawrence wrote: On 08/03/2015 17:57, polyver...@gmail.com wrote: On Saturday, March 7, 2015 at 5:36:07 PM UTC+1, Mark Lawrence wrote: On 07/03/2015 15:55, polyver...@gmail.com wrote: Out of

[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-03-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: Added file: http://bugs.python.org/file38448/utf8-null.v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23088 ___

[issue23088] Document that PyUnicode_AsUTF8() returns a null-terminated string

2015-03-11 Thread Martin Panter
Martin Panter added the comment: Posting a new patch updating the documentation for some of the extra functions Serhiy mentioned. Also changed references of “NUL”, “nul” and “0” characters to “null”. I’m not very familiar with Python’s C API, so I am mainly relying on what you guys say

[issue23638] shutil.copytree makedirs exception

2015-03-11 Thread Martin Panter
Martin Panter added the comment: In case it’s not clear to others, the first bit of code is from the shutil.copytree() implementation at Lib/shutil.py:303. The documentation currently says “The destination directory . . . must not already exist”. Yuriy seems to be proposing to make copytree()

__new__() does not return anything, on singletong pattern

2015-03-11 Thread Mario Figueiredo
I'm fairly new to Python, so I don't know if the following is me abusing the programming language idioms, or simply a mistake of my IDE code inspection routine. I have a singleton Map class which is defined like so: class Map: _instance = None def __new__(cls): if

Re: __new__() does not return anything, on singletong pattern

2015-03-11 Thread Ethan Furman
On 03/11/2015 04:33 PM, Mario Figueiredo wrote: The following code runs just fine. But PyCharm flags the assignment with a warning telling me that generate() does not return anything and the I lose code completion on the mmap variable. if __name__ == '__main__': mmap = Map.generate(12,

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Larry Hastings
Larry Hastings added the comment: Oh, I read the code. But it's a performance hack, and the rules say we only accept security fixes and bug fixes at this stage of the release, and they're the rules for good reasons. -- ___ Python tracker

[issue14285] Traceback wrong on ImportError while executing a package

2015-03-11 Thread Martin Panter
Martin Panter added the comment: The patches at Issue 19771 should remove the part of the message that incorrectly says “. . . is a package and cannot be directly executed”. However that still leaves the problem of the suppressed traceback. I am posting runpy-traceback.patch here which adds

[issue23637] Warnings error with non-ascii chars.

2015-03-11 Thread Lukáš Němec
New submission from Lukáš Němec: File /usr/lib/python2.7/warnings.py, line 29, in _show_warning file.write(formatwarning(message, category, filename, lineno, line)) File /usr/lib/python2.7/warnings.py, line 38, in formatwarning s = %s:%s: %s: %s\n % (filename, lineno,

Sphinx 1.3 released

2015-03-11 Thread Takayuki Shimizukawa
Hi all, I'm very happy to announce the release of Sphinx 1.3 available on the Python package index at http://pypi.python.org/pypi/Sphinx. It includes about 50 features, several incompatible changes and fixes a lot of bugs/buglets from the 1.2.3 version of Sphinx. What's new in 1.3 (very short

[issue19771] runpy should check ImportError.name before wrapping it

2015-03-11 Thread Martin Panter
Martin Panter added the comment: Posting a new patch with the following changes: * Added Poleto’s original tests, updated according to review comments. Combined the flag and source code string parameters. * Used a different approach to guessing where the offending ImportError came from. Now

[issue14285] Traceback wrong on ImportError while executing a package

2015-03-11 Thread Martin Panter
Martin Panter added the comment: Posting finding-spec.patch which just has another test I wrote. It tests if AttributeError/ValueError/TypeError gets wrapped in the “finding spec” ImportError, though I’m not sure if this is a bug or a feature, hence I kept it separate. And again I’m not sure

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Ethan Furman
Ethan Furman added the comment: Argh, sorry -- that was supposed to be *does not* change user behavior nor the API, it's *just* a performance increase. Does that change your inclination? -- ___ Python tracker rep...@bugs.python.org

[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-11 Thread eryksun
eryksun added the comment: I guess you were mainly testing with Python 2. Python 3 on Linux does not raise any error either In Python 3 os.fdopen delegates to io.open, which calls io.FileIO to create the raw file object. This doesn't verify a compatible mode on the file descriptor.

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Steven D'Aprano
Michael Parchet wrote: Hello, The pyside project is ded. What makes you think that Pyside is dead? It seems to be active to me. The latest update was just 29 days ago: https://github.com/PySide PySide supports Python 3: http://qt-project.org/wiki/PySide_Python_3_Support Dose pyqt4

[issue23639] Not documented special names

2015-03-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here are lists of special names used in Python core and the stdlib, but absent in documentation index. Module level names used in pydoc: __author__ __credits__ __date__ __version__ Module level name used in doctest: __test__ Other

[issue23526] Silence resource warnings in test_httplib

2015-03-11 Thread Martin Panter
Martin Panter added the comment: I think this one can be closed. Let me know if I was mistaken :) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23526

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-11 Thread STINNER Victor
STINNER Victor added the comment: issue23566_update.patch looks good to me, but I suggested some minor changes. Usually, I do such changes myself, but I proposed this issue on the Python menthorship list, so I prefer to do the changes to learn the process of reviewing patches and taking

[issue23526] Silence resource warnings in test_httplib

2015-03-11 Thread STINNER Victor
STINNER Victor added the comment: I think this one can be closed. Let me know if I was mistaken :) Correct, I forgot to close it, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23526

[issue2889] curses for windows (alternative patch)

2015-03-11 Thread Mario Figueiredo
Mario Figueiredo added the comment: This patch is a huge improvement over the current situation, which is we don't have a cross-platform curses implementation in the standard library. The alternatives listed by Mark aren't sufficient. For the two reasons given below: - The implementation at

[issue23638] shutil.copytree makedirs exception

2015-03-11 Thread yuriy_levchenko
New submission from yuriy_levchenko: We have a code: names = os.listdir(src) if ignore is not None: ignored_names = ignore(src, names) else: ignored_names = set() os.makedirs(dst) errors = [] But if I had created this folder. I have exception.

[issue2889] curses for windows (alternative patch)

2015-03-11 Thread Paul Moore
Paul Moore added the comment: The patch would need updating to be applicable. Minimum changes I would expect to be required: 1. Update to build for Python 3.5 (the patch will *not* be included in earlier versions, as it is a new feature), which means it needs the Visual Studio 2015 build

[issue23526] Silence resource warnings in test_httplib

2015-03-11 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23526 ___ ___

[issue2211] Cookie.Morsel interface needs update

2015-03-11 Thread Berker Peksag
Berker Peksag added the comment: Serhiy already reviewed the latest patch. Just one more comment: The deprecated API should be documented in Doc/whatsnew/3.5.rst and Doc/library/http.cookies.rst. -- ___ Python tracker rep...@bugs.python.org

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Parchet
Hello, The pyside project is ded. Dose pyqt4 support Python 3 ? Thanks for your answer Best regards mparchet Le 10 mars 2015 à 01:20, Michael Torrie torr...@gmail.com a écrit : On 03/09/2015 05:47 PM, Steven D'Aprano wrote: Michael Parchet wrote: Hello, For a new project, a person

[ANN] Pylint 1.4.2 / Astroid 1.3.5 released

2015-03-11 Thread Claudiu Popa
Hello, I'm happy to announce the release of Pylint 1.4.2 and astroid 1.3.5. The following changes were included in these releases: For pylint: * Don't require a docstring for empty modules. Closes issue #261. * Fix a false positive with `too-few-format-args` string warning,

[ANN] Pylint 1.4.2 / Astroid 1.3.5 released

2015-03-11 Thread Claudiu Popa
Hello, I'm happy to announce the release of Pylint 1.4.2 and astroid 1.3.5. The following changes were included in these releases: For pylint: * Don't require a docstring for empty modules. Closes issue #261. * Fix a false positive with `too-few-format-args` string warning,

ANN python-taiga 0.1.0

2015-03-11 Thread Andrea Stagi
python-taiga 0.1.0 released! python-taiga is a python module for communicating with the Taiga.io, a new project management platform, for more info https://taiga.io/ You can find python-taiga code on Github https://github.com/nephila/python- taiga Any kind of contribution is appreciated! :)

[issue23630] support multiple hosts in create_server/start_server

2015-03-11 Thread Yann Sionneau
Yann Sionneau added the comment: Here is a test related to Sebastien's patch. -- nosy: +ysionneau Added file: http://bugs.python.org/file38441/asyncio_multibind_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630

[issue23630] support multiple hosts in create_server/start_server

2015-03-11 Thread STINNER Victor
STINNER Victor added the comment: Combine patch written for CPython tree, so we get the review button. -- Added file: http://bugs.python.org/file38442/multibind.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23630

Urgent Need for Sr QE Automation Consultant - Sunnyvale CA (Local candidates ONLY)

2015-03-11 Thread tiya . akrid
Hello, We have below position for one of the leading online retailer of sports merchandise. Let me know if you have LOCAL candidates. Please send resume with all the details asked below. Job title: Software Engineer in Quality Location: Sunnyvale, CA Rate: Open for the right candidate Type:

[issue23640] Enum.from_bytes() is broken

2015-03-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Example: import socket x = socket.AddressFamily.from_bytes(b'\1', 'big') type(x) enum 'AddressFamily' int(x) 1 str(x) Traceback (most recent call last): File stdin, line 1, in module File /home/serhiy/py/cpython/Lib/enum.py, line 464, in __str__

[issue23639] Not documented special names

2015-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: I think most of these are either implementation details or private names, so there is no need to document them. The ones that are intended to be used by developers or that are useful to understand the functioning of a public API should be documented. If these

[issue23192] Generator return value ignored in lambda function

2015-03-11 Thread Bruno Cauet
Bruno Cauet added the comment: Here is a working test, testing yield by lambda function as well as lambda and function yielding from those. -- Added file: http://bugs.python.org/file38440/0001-Add-tests-for-issue-23192.patch ___ Python tracker

[issue23639] Not documented special names

2015-03-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +__sizeof__ is not documented ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23639 ___

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-11 Thread Ben Hoyt
Ben Hoyt added the comment: Note specifically in the unsymlink() example Serhiy gave, you probably don't *want* os.walk() to recurse into a symlink-to-a-directory-that's-changed-to-a-directory, and you probably haven't thought about it doing so, so maybe the new behaviour is fine? --

[issue23641] Got rid of bad dunder names

2015-03-11 Thread Martin Panter
Martin Panter added the comment: I’m not very familiar with the mock module so can't comment if removing div is sensible there. But all the other changes seem reasonable. I just left a few suggestions for further tweaks on Rietveld. -- nosy: +vadmium

[issue23639] Not documented special names

2015-03-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23639 ___ ___ Python-bugs-list

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-11 Thread Ben Hoyt
Ben Hoyt added the comment: To Victor and Serhiy: 1) Serhiy's point about not needing to build the symlinks set when followlinks is True is a good one, because it'll never get used. Just a if not followlinks: ... around that try/except would do it. Though this is a small optimization, as I

[issue23641] Got rid of bad dunder names

2015-03-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch gets rid of uses and mentions of bad dunder names. I.e. names inherited from Python 2: __cmp__, __nonzero__, __getslice__, __unicode__, __div__, etc. They are replaced by correct names (__truediv__, __floordiv__, __eq__, __bool__, etc) or

when may sys.executable be empty

2015-03-11 Thread Wolfgang Maier
From the documentation of sys.executable: A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None. So on

[issue23641] Got rid of bad dunder names

2015-03-11 Thread Berker Peksag
Berker Peksag added the comment: Also added support for __matmul__ and __getnewargs_ex__ in unittest.mock [...] See issue 23581 for __matmul__ support. -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 03:28 AM, Michael Parchet wrote: The pyside project is ded. Why do you say PySide is dead? Dose pyqt4 support Python 3 ? Thanks for your answer Best regards mparchet Riverbank Computing has a web page that I'm sure has information on their PyQt product. (Yes PyQt is a

Re: Use à Python 2 module with Python 3

2015-03-11 Thread Michael Torrie
On 03/11/2015 04:54 AM, Steven D'Aprano wrote: Dose pyqt4 support Python 3 ? I can only repeat what I already wrote a few days ago: For PyQt specifically, googling suggests that PyQt does work with Python 3, but the documentation is out of date and you may have difficulty installing it:

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not a regression (there were no enums before 3.4), slow down is not critical (only constant factor, not increased computational complexity), there is a workaround, and the code that just use constants that were converted to IntEnum is not affected.

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Poor performance could fall under the category of bug fixes, so for an in-maintenance mode release, a fix that does not in any way change user visible behavior could be acceptable. It would probably be fine for 3.4 but I'm just +0 on it. Larry's call.

Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
- Original Message - From: bink...@mweb.co.za To: python-list@python.org Sent: Wednesday, March 11, 2015 11:19 AM Subject: I want to get involved with Python! Please advise on what route you would suggest I take to become a Python developer! Thanks, Bianca.

  1   2   >