[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: wpy9.patch looks mostly good to me, but there compiler warnings. -- ___ Python tracker ___

[issue26955] Implement equivalent to `pip.locations.distutils_scheme` in distutils

2016-05-21 Thread Ned Deily
Ned Deily added the comment: "When installing a python package that has `headers`, these headers are usually installed under the main python include directory". Can you give some specific examples of packages and platforms where that is the case? Just taking a quick look at some packages I

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-05-21 Thread Martin Panter
Martin Panter added the comment: FTR the Python 2.3 compatibility restriction was lifted; see . -- ___ Python tracker

[issue17599] mingw: detect REPARSE_DATA_BUFFER

2016-05-21 Thread Martin Panter
Martin Panter added the comment: Would it be better to define all the things in "winreparse.h" with names that are less likely to conflict, say Py_REPARSE_DATA_BUFFER etc? This would be a more general way to avoid conflicts, and also avoid hacking the configure script. Also, is the “#ifndef

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-21 Thread Martin Panter
Martin Panter added the comment: Forgot to refresh my patch -- Added file: http://bugs.python.org/file42938/issue18383_avoid_dups_3.diff ___ Python tracker

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-21 Thread Martin Panter
Changes by Martin Panter : Removed file: http://bugs.python.org/file42937/issue18383_avoid_dups_3.diff ___ Python tracker ___

[issue26742] imports in test_warnings changes warnings.filters

2016-05-21 Thread Martin Panter
Martin Panter added the comment: I suggest to use the patch from Issue 18383. -- resolution: -> duplicate status: open -> closed superseder: -> test_warnings modifies warnings.filters when running with "-W default" ___ Python tracker

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-21 Thread Martin Panter
Martin Panter added the comment: I am inclined to go with Alex’s patch. I am uploading a new version of it, issue18383_avoid_dups_3.diff, which resolves conflicts with recent changes. -- versions: -Python 3.4 Added file: http://bugs.python.org/file42937/issue18383_avoid_dups_3.diff

[issue27067] Improve curses tests

2016-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My bad. I tested only with stdout redirected, the test fail if both stdout and stderr are redirected. Proposed patch fixes this. -- Added file: http://bugs.python.org/file42936/test_curses_no_atty.patch ___

[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE shell window gets very slow when displaying long lines ___ Python tracker

Re: Image loading problem

2016-05-21 Thread huey . y . jiang
Thanks so much! All of methods works! -- https://mail.python.org/mailman/listinfo/python-list

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-21 Thread Demur Rumed
Demur Rumed added the comment: Based on serhiy's LGTM I'm uploading hopefully final touches based on his feedback New in this are changes to Makefile.pre & PCbuild files. I can't really test PCbuild but I did test that make followed by modifying wordcode_helpers.h followed by make rebuilds

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sun, 22 May 2016 06:48 am, Erik wrote: > Let me tell you a story ;) Back in the mid-to-late > 1980s I worked with C compilers on hardware that could take several > minutes to compile even a fairly trivial program. They errored on > syntactically incorrect code and happily compiled

Re: for / while else doesn't make sense

2016-05-21 Thread Michael Selik
On Sat, May 21, 2016, 4:52 PM Erik wrote: > So I guess my question is perhaps whether Python compilers should start > to go down the same path that C compilers did 30 years ago (by starting > to include some linter functionality) > Well, there's that whole optional

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > On the other hand, this limit isn't imposed elsewhere. There are a number of places in the language with these limits. In general, we're opening them up to wider limits if there are valid use cases and if it doesn't immediately shoot you in the foot

[issue20699] Document that binary IO classes work with bytes-likes objects

2016-05-21 Thread Martin Panter
Martin Panter added the comment: I updated my patch thanks to Serhiy’s comments. Also omitted Arg Clinic generated code in this version to avoid future merge conflicts with the hashes. -- versions: +Python 3.6 -Python 3.4 Added file:

[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Tim Peters
Tim Peters added the comment: Ya, this annoyance has been there forever. As I recall, the source of the problem is the Tk text widget (which slows horribly when displaying long lines). -- nosy: +tim.peters ___ Python tracker

[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Raymond Hettinger
New submission from Raymond Hettinger: IDLE should check the size of lines in a result string before printing it. Perhaps it should have a "..." after some user settable limit is reached. >>> '=' * 10# Destroys IDLE >>> json.load(somebigfile) # Makes IDLE unusably sluggish

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2016-05-21 Thread Martin Panter
Martin Panter added the comment: Looks like this was fixed in 3.1 and 3.2 by r84150. -- nosy: +martin.panter stage: needs patch -> patch review ___ Python tracker

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Campbell Barton
Campbell Barton added the comment: @rhettinger, agree that very large ints in this case aren't going to give very usable results. On the other hand, this limit isn't imposed elsewhere (you can power-of operator to create bigger numbers). Nevertheless this isn't going to give good/usable

[issue25548] Show the address in the repr for class objects

2016-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't quite get why the memory address is helpful For the same reason that we've found the address to helpful in other reprs, it helps people understand that classes are objects just like anything else and to know which objects are distinct. My

[issue24550] maxint on 64 bit platforms breaks os.read

2016-05-21 Thread Martin Panter
Martin Panter added the comment: Sorry in Python 3.5 the change was actually Issue 21932 (not Arg Clinic). But Victor said that change shouldn’t go into Python 2. BTW Issue 21199 is about Python 2’s file.read() method, not os.read(). -- resolution: duplicate -> wont fix superseder:

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since the downstream calls to PyMem_Malloc and _PyLong_FromByteArray both accept size_t for their sizing, there isn't a problem there. That said, I think the current limitation nicely protects us from harm. If you were to run getrandbits(2**60) it would

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___

[issue22558] Missing doc links to source code

2016-05-21 Thread Yoni Lavi
Yoni Lavi added the comment: Thank you for the review, Berker. I removed source code links from all the modules you specifically mentioned, and all links to C code, including stat.rst which already had such a link before. But I have to say that I don't quite understand the rationale here and

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-05-21 Thread Campbell Barton
Campbell Barton added the comment: > This probably isn't an issue on non-Windows or 64-bit systems. In fact it is, the limitation applies to 64bit Linux too. (tested in CPython 3.5.1) -- nosy: +ideasman42 ___ Python tracker

[issue27067] Improve curses tests

2016-05-21 Thread Martin Panter
Martin Panter added the comment: A couple buildbots don’t look happy with this change, e.g. http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.5/builds/903/steps/test/logs/stdio == ERROR: test_colors_funcs

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-05-21 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Hi, I have alphabetized and added the missing Environment Variables according to Section 1.2 https://docs.python.org/3.6/using/cmdline.html#environment-variables . I also added the missing environment variables from that documentation section. Should

[issue27081] Multiprocessing is not robust against sys.stderr changes

2016-05-21 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Martijn Pieters
Martijn Pieters added the comment: The catalyst for this question was a Stack Overflow question I answered: https://stackoverflow.com/questions/37365311/why-are-python-3-6-literal-formatted-strings-so-slow Compared the `str.format()` the BUILD_LIST is the bottleneck here; dropping the

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Martijn Pieters
Changes by Martijn Pieters : -- nosy: +mjpieters ___ Python tracker ___ ___ Python-bugs-list

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread STINNER Victor
STINNER Victor added the comment: On Python 3, comparison between str and bytes raises a BytesWarning exception if python3 is started with -bb. But sometimes, you really want to compare str with bytes. For example, os.get_exec_path() changes temporarely the BytesWarning warning for that!

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Berker Peksag
Berker Peksag added the comment: Yes, buildbots look happy now. Thanks! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue26928] _bootlocale imports locale at startup on Android, causing test_site to fail

2016-05-21 Thread ppperry
Changes by ppperry : -- title: _bootlocale imports locale at startup on Android -> _bootlocale imports locale at startup on Android, causing test_site to fail ___ Python tracker

[issue27081] Multiprocessing is not robust against sys.stderr changes

2016-05-21 Thread ppperry
ppperry added the comment: Replacing the first line with `queue = multiprocessing.SimpleQueue()` fixes this issue. -- ___ Python tracker ___

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, it should be fixed now in https://hg.python.org/cpython/rev/bdfb15aa3ac5 (sorry, I forgot to reference the issue in the commit message) -- ___ Python tracker

[issue27081] Multiprocessing is not robust against sys.stderr changes

2016-05-21 Thread ppperry
Changes by ppperry : -- nosy: +jnoller, sbt ___ Python tracker ___ ___ Python-bugs-list

[issue27081] Multiprocessing is not robust against sys.stderr changes

2016-05-21 Thread ppperry
New submission from ppperry: In this code, one would expect that the entire traceback from the uncaught recursion error would get put onto the queue, where it could be read in the main process. queue = multiprocessing.Queue() def do_stderr(queue): class f: def

Re: for / while else doesn't make sense

2016-05-21 Thread Erik
On 21/05/16 11:39, Steven D'Aprano wrote: Just for the record, that's not my mental model *now*. Sure. And I should have written "one's mental model" - the model of anyone writing that code (not you personally) who thought the same at the time. It took me a long time to work out what

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Yury Selivanov
Yury Selivanov added the comment: > The workaround is using lru_cache(typed=True). Yes, seems to be working! Thanks. -- ___ Python tracker ___

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-05-21 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-05-21 Thread Eric V. Smith
New submission from Eric V. Smith: I've separated this out from issue 26331, so as to not interfere with discussions and code reviews for the parsing portion of the PEP. -- assignee: eric.smith components: Interpreter Core messages: 266023 nosy: eric.smith priority: normal severity:

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The workaround is using lru_cache(typed=True). -- ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-21 Thread Eric V. Smith
Eric V. Smith added the comment: I've created issue 27080 to track the formatting part of this. -- ___ Python tracker ___

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Eric V. Smith
Eric V. Smith added the comment: I considered doing this, and have some of it implemented. I discussed it with Larry Hastings and Mark Shannon at PyCon Ireland, and we decided to just use ''.format() and the new FORMAT_VALUE opcode, since that was the simplest way to fix the previous

[issue27079] Bugs in curses.ascii predicates

2016-05-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Most curses.ascii predicates corresponds C functions declared in . But there are some differences: 1. isblank() returns True for space and backspace instead of space and tab. 2. ispunct() returns True for non-ASCII and control characters. 3. iscntrl()

[issue27064] Make py.exe default to Python 3 when used interactively

2016-05-21 Thread Paul Moore
Paul Moore added the comment: OK, no problem. Like you say, not a high priority. -- ___ Python tracker ___

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Yury Selivanov
Yury Selivanov added the comment: Alright, I think I know what's going on here -- this seems to be a bug of functools.lrucache. Serhiy, would you be able to look into this? Testcase: test.py: import functools @functools.lru_cache() def foo(a): return foo('')

Re: Image loading problem

2016-05-21 Thread Random832
On Sat, May 21, 2016, at 12:54, Peter Otten wrote: > It's not your fault, there's an odd quirk in the library: you have to > keep a reference of the PhotoImage instance around to prevent the > image from being garbage-collected. Just out of curiosity, why is this a "quirk" and not a bug? Why

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Yury Selivanov
Yury Selivanov added the comment: I really can't figure out what's going on. I can't reproduce this, and the exception doesn't make any sense :( -- ___ Python tracker

Re: Image loading problem

2016-05-21 Thread Terry Reedy
On 5/21/2016 12:54 PM, Peter Otten wrote: sweating_...@yahoo.com wrote: I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Ned Deily
Changes by Ned Deily : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-05-21 Thread Antti Haapala
New submission from Antti Haapala: I benchmarked some f'' strings against .format, and surprisingly f'' was slower than .format in about all the simple cases I could think of. I guess this is because f'' strings implicitly use `''.join([])`. The byte code for f'foo is {foo}' currently is 1

[issue27051] Create PIP gui

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: My main concern is that the project produce something good enough, even if not 'perfect' and 'complete', to commit before 3.6.0 beta 1, scheduled 09-07 https://www.python.org/dev/peps/pep-0494/. I would actually like to have a preliminary version in alpha 4

[issue27051] Create PIP gui

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I posted notice of this issue on #23551. I did some research on simulating user interaction for testing. The results are exemplified in the attached tk.generate_event.py with test setups and assertions. Events are generated, to fire event handlers, with

[issue27067] Improve curses tests

2016-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Berker. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue27067] Improve curses tests

2016-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55852de7d032 by Serhiy Storchaka in branch '3.5': Issue #27067: Improved curses tests. https://hg.python.org/cpython/rev/55852de7d032 New changeset 2917a3ce988e by Serhiy Storchaka in branch 'default': Issue #27067: Improved curses tests.

[issue23551] IDLE to provide menu link to PIP gui.

2016-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra Kumar's GSOC pip-gui proposal has been accepted. It is issue #27051 and progress can be followed there. I leave this issue open, at least for now, for invoking the gui from IDLE. -- ___ Python tracker

Re: Image loading problem

2016-05-21 Thread Gary Herron
On 05/21/2016 08:22 AM, sweating_...@yahoo.com wrote: Hi All, I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up, no

Python and GPSD

2016-05-21 Thread John McKenzie
Good day, all. I need help using the Python bindings for GPSD. Specifically, I would like to take a latitude reading, put it in a variable and use it later. The problem is that every example I see involves constantly taking changing readings. That part I have working for myself by following

Re: Image loading problem

2016-05-21 Thread Peter Pearson
On Sat, 21 May 2016 08:22:41 -0700 (PDT), sweating_...@yahoo.com wrote: > > I am working on an image project, and I can display my image in > main(). I mean, I can load my image in my main(). Needless, it is > awkward. I am trying to load my image with a function, but got an > empty image window

Re: Education [was Re: for / while else doesn't make sense]

2016-05-21 Thread Marko Rauhamaa
Christopher Reimer : > Under various proposals in the U.S., everyone will soon learn how to > program and/or become a computer scientist. Won't be long before some > snotty-nosed brat graduates from preschool, takes a look at your code, > and poops in his diapers.

Re: Image loading problem

2016-05-21 Thread Peter Otten
sweating_...@yahoo.com wrote: > I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up, no image content loaded. Please take

Re: Education [was Re: for / while else doesn't make sense]

2016-05-21 Thread Christopher Reimer
On 5/21/2016 3:05 AM, Steven D'Aprano wrote: On Sat, 21 May 2016 03:18 pm, Rustom Mody wrote: Given that for the most part, most of us are horribly uneducated [ http://www.creativitypost.com/education/9_elephants_in_the_classroom_that_should_unsettle_us ] how do we go about correcting our

[issue27051] Create PIP gui

2016-05-21 Thread lorenzogotuned
lorenzogotuned added the comment: Ok Upendra. Nice summary. In the next days: - Explain each *top task* (install, unistall, update) and in detail the way the underlying pip commands work (underline mandatory and optional parameters, requests performed to servers, filesystem storage and

[issue27064] Make py.exe default to Python 3 when used interactively

2016-05-21 Thread Steve Dower
Steve Dower added the comment: Unfortunately, the current MSI for the launcher doesn't have a great interface when used separately from the main installer. It happens to be more functional than the rest (i.e. double-clicking it will give you a very quick per-user install, whereas the other

[issue26928] _bootlocale imports locale at startup on Android

2016-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: An improvement to Python startup time on Android (Android does not have nl_langinfo()) is to have _bootlocale.getpreferredencoding() return 'ascii' without importing locale, when none of the locale environment variables is set. With patch

[issue26928] _bootlocale imports locale at startup on Android

2016-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sorry for the confusion, the file system encoding is not the locale encoding. In issue #9548, Antoine proposed a patch that avoids the import of the re, collections and functools modules by the _io module on startup, by refactoring and moving code from locale

Re: How do I subclass the @property setter method?

2016-05-21 Thread Christopher Reimer
On 5/21/2016 1:52 AM, Dirk Bächle wrote: Hi Christopher, On 20.05.2016 20:50, Christopher Reimer wrote: Greetings, My chess engine has a Piece class with the following methods that use the @property decorator to read and write the position value. slightly off topic: is your chess engine

[issue27051] Create PIP gui

2016-05-21 Thread Upendra Kumar
Upendra Kumar added the comment: I have uploaded my first iteration of design process for Tkinter. In the uploaded document "Design_notes_v1.docx", we have tried to identify different use cases and tasks to be fulfilled by the PIP GUI. If there are any suggestions regarding further changes or

Image loading problem

2016-05-21 Thread sweating_...@yahoo.com
Hi All, I am working on an image project, and I can display my image in main(). I mean, I can load my image in my main(). Needless, it is awkward. I am trying to load my image with a function, but got an empty image window popped up, no image content loaded. Please take a look at code: rom

Re: for / while else doesn't make sense

2016-05-21 Thread Grant Edwards
On 2016-05-21, Ian Kelly wrote: > On Sat, May 21, 2016 at 5:26 AM, Steven D'Aprano wrote: > >> Does anyone know of other languages that include the same feature? >> It's very rare for Python to innovate in language features. >> >> (I wonder if it came

[issue13615] setup.py register fails with -r argument

2016-05-21 Thread Berker Peksag
Berker Peksag added the comment: The repository URL has been changed to https://pypi.python.org/pypi in 2b5cd6d4d149. I'm -1 on making https://pypi.python.org/ a special case. -- nosy: +berker.peksag resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue27073] redundant checks in long_add and long_sub

2016-05-21 Thread Oren Milman
Oren Milman added the comment: Thanks for the reviews! I added an assert in long_add (in long_sub it might be that the result is 0). The updated diff file is attached. -- Added file: http://bugs.python.org/file42926/issue27073.diff ___ Python

[issue5187] distutils upload should prompt for the user/password too

2016-05-21 Thread Berker Peksag
Berker Peksag added the comment: Issue 18454 is a duplicate of this, but I'm going to close this one (there are patches for 2.7 and 3.5 in issue 18454). -- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> distutils

[issue27073] redundant checks in long_add and long_sub

2016-05-21 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I didn't check if the change is valid or not, but: > issue.diff Please keep the check but as an assertion (Put it in the if block). -- ___ Python tracker

[issue27073] redundant checks in long_add and long_sub

2016-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: Your analysis and patch look good to me. -- nosy: +mark.dickinson ___ Python tracker ___

Re: for / while else doesn't make sense

2016-05-21 Thread Ian Kelly
On Sat, May 21, 2016 at 5:26 AM, Steven D'Aprano wrote: > Does anyone know of other languages that include the same feature? It's very > rare for Python to innovate in language features. > > (I wonder if it came from ABC?) According to Raymond Hettinger starting at about

[issue22558] Missing doc links to source code

2016-05-21 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Yoni. Like Guido said in msg257586, we only want to add links for pure Python modules. Can you update your patch to remove C modules please? I'd prefer keep curses docs untouched. Lib/curses/* is basically a wrapper to _cursesmodule.c

Re: How do I subclass the @property setter method?

2016-05-21 Thread Dirk Bächle
Hi Christopher, On 20.05.2016 20:50, Christopher Reimer wrote: Greetings, My chess engine has a Piece class with the following methods that use the @property decorator to read and write the position value. slightly off topic: is your chess engine available in a public repo somewhere? I

[issue27064] Make py.exe default to Python 3 when used interactively

2016-05-21 Thread Paul Moore
Paul Moore added the comment: Terry: Correct. As 3.4 is in security fix mode, and 2.7 doesn't come with the launcher (which I hadn't realised - thanks for pointing this out Zach!) the only real backport candidate is 3.5, so I definitely don't think it's worth backporting just for that.

[issue27077] test_port_parameter_types fails with BytesWarning

2016-05-21 Thread Berker Peksag
New submission from Berker Peksag: The relevant changeset is 1570e3855ce8. Here is a traceback from a random buildbot: == ERROR: test_port_parameter_types (test.test_asyncio.test_base_events.BaseEventTests)

[issue27067] Improve curses tests

2016-05-21 Thread Martin Panter
Martin Panter added the comment: I guess this might help Issue 12669 (running the test on buildbots)? I had assumed a real terminal was required, but it looks like you are substituting a temporary file. -- nosy: +martin.panter ___ Python tracker

[issue27076] Doc and comment spelling fixes

2016-05-21 Thread Martin Panter
Martin Panter added the comment: Thanks Ville for this. It mostly looks good. I left some comments regarding “heterogenous”. I extended the patch with related fixes, mainly outside the Doc/ and Lib/ directories. Whoever commits this should also regenerate importlib, the configure script, and

[issue27075] Link to StreamReader/Writer from codecs.getreader/writer

2016-05-21 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Ville. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue27075] Link to StreamReader/Writer from codecs.getreader/writer

2016-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1628c1162a4 by Berker Peksag in branch '3.5': Issue #27075: Link to StreamReader and StreamWriter docs https://hg.python.org/cpython/rev/c1628c1162a4 New changeset b11b71aaf864 by Berker Peksag in branch 'default': Issue #27075: Link to

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 09:57 am, Dennis Lee Bieber wrote: > On Fri, 20 May 2016 11:55:34 - (UTC), Jon Ribbens > declaimed the following: > >> >>I would find that very confusing. "then:" makes it sound like >>executing that block is the usual case, when in practice

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 04:03 pm, Marko Rauhamaa wrote: > theh...@gmail.com: > >> You seem to have missed the point. Nobody is suggesting, I don't >> believe, that all of a language should be intuitive. Rather that if >> any part of it is unnecessarily counter-intuitive, it may be worth >> looking

Re: for / while else doesn't make sense

2016-05-21 Thread Chris Angelico
On Sat, May 21, 2016 at 8:55 PM, Steven D'Aprano wrote: > I think we agree that it's not the compiler's job to enforce good coding > standards. Yep. I believe we are in (possibly belligerent) agreement. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 08:08 pm, Chris Angelico wrote: > On Sat, May 21, 2016 at 7:56 PM, Steven D'Aprano > wrote: >> On Sat, 21 May 2016 02:01 pm, Chris Angelico wrote: >> >>> On Sat, May 21, 2016 at 1:50 PM, Steven D'Aprano >>> wrote: >> Would you

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 05:20 pm, Erik wrote: > On 20/05/16 01:06, Steven D'Aprano wrote: > >> In my experience, some people (including me) misunderstand "for...else" >> to mean that the else block runs if the for block *doesn't*. It took me >> the longest time to understand why this didn't work as

Education [was Re: for / while else doesn't make sense]

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 03:18 pm, Rustom Mody wrote: > Given that for the most part, most of us are horribly uneducated [ > http://www.creativitypost.com/education/9_elephants_in_the_classroom_that_should_unsettle_us > ] > how do we go about correcting our wrong primacies? An interesting article,

Re: for / while else doesn't make sense

2016-05-21 Thread Chris Angelico
On Sat, May 21, 2016 at 7:56 PM, Steven D'Aprano wrote: > On Sat, 21 May 2016 02:01 pm, Chris Angelico wrote: > >> On Sat, May 21, 2016 at 1:50 PM, Steven D'Aprano >> wrote: > >>> Would you classify the second line here: >>> >>> print("Hello World!") >>>

PyData EuroPython 2016

2016-05-21 Thread M.-A. Lemburg
We are excited to announce a complete PyData (http://pydata.org/) track at EuroPython 2016 in Bilbao, Basque Country, Spain, from July 14-24. *** PyData EuroPython 2016 *** https://ep2016.europython.eu/en/events/pydata/ The PyData track will be part of the

Re: for / while else doesn't make sense

2016-05-21 Thread Steven D'Aprano
On Sat, 21 May 2016 02:01 pm, Chris Angelico wrote: > On Sat, May 21, 2016 at 1:50 PM, Steven D'Aprano > wrote: >> Would you classify the second line here: >> >> print("Hello World!") >> pass >> >> >> as a bug? What exactly would your bug report be? "pass statement does >>

Re: problem regarding installation

2016-05-21 Thread Chris Angelico
On Sat, May 21, 2016 at 7:14 PM, Peter Otten <__pete...@web.de> wrote: > bhagyadhar sahoo wrote: > >> i have downloaded the software from your site.. >> but while installing it shows some problem .. >> plz help me out..or let me know how can i get the solution,.. i am waiting >> for ur replay > >

Re: problem regarding installation

2016-05-21 Thread Peter Otten
bhagyadhar sahoo wrote: > i have downloaded the software from your site.. > but while installing it shows some problem .. > plz help me out..or let me know how can i get the solution,.. i am waiting > for ur replay We are sorry, your operating system is no longer supported by current versions

  1   2   >