[issue21922] PyLong: use GMP

2014-07-11 Thread Case Van Horsen
Changes by Case Van Horsen : -- nosy: +casevh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21913] threading.Condition.wait() is not interruptible in Python 2.7

2014-07-11 Thread Charles-François Natali
Charles-François Natali added the comment: > So do we agree that the resolution for this is "wont fix"? Yes. We don't want to backport this (we've had enough regressions already, and people have been living withut loc interruptibility for a long time before Python 3). -- resolution:

[issue21599] Argument transport in attach and detach method in Server class in base_events file is not used

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in changesets e6198242a537 (Python 3.4) and 5a299c3ec120 (Python 3.5). -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue21958] Allow python 2.7 to compile with Visual Studio 2013

2014-07-11 Thread Zachary Turner
Zachary Turner added the comment: That's fine with me, the HAVE_ROUND is the important change anyway. Do I need to re-upload a new patch, or are you able to just delete the VS2013 project files portion of the patch and apply the HAVE_ROUND portion? And do I push the patch myself or does some

[issue4453] MSI installer shows error message if "Compile .py files to bytecode" option is selected

2014-07-11 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file18370/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue15883] Add Py_errno to work around multiple CRT issue

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Am I imagining things or have I read that the Windows CRT is going to remain stable in the future, meaning this work would no longer be needed. -- components: +Windows nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware status: pending -> open __

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Is this test failure still relevant three years on? -- nosy: +BreamoreBoy status: pending -> open ___ Python tracker ___

[issue16221] tokenize.untokenize() "compat" mode misses the encoding when using an iterator

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: #16224 has been closed as a duplicate of #8478. -- nosy: +BreamoreBoy status: pending -> open ___ Python tracker ___

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Accidentally set to pending I take it. -- nosy: +BreamoreBoy status: pending -> open ___ Python tracker ___ _

[issue4453] MSI installer shows error message if "Compile .py files to bytecode" option is selected

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: I don't recall ever seeing this problem. -- nosy: +BreamoreBoy, steve.dower, zach.ware versions: +Python 3.4, Python 3.5 -Python 3.1 ___ Python tracker __

[issue17172] Add turtledemo to IDLE menu

2014-07-11 Thread Lita Cho
Lita Cho added the comment: I personally think it would be better to check to see if the turtledemo exists during startup, and if so, add the menu entry. Otherwise, don't add it when loading up IDLE. -- ___ Python tracker

[issue21655] Write Unit Test for Vec2 and TNavigator class in the Turtle Module

2014-07-11 Thread Lita Cho
Lita Cho added the comment: Ingrid and I combined our tests. The patch now lives here: http://bugs.python.org/issue21916 -- resolution: -> duplicate status: open -> closed ___ Python tracker _

[issue3015] tkinter with wantobjects=False has been broken for some time

2014-07-11 Thread Lita Cho
Lita Cho added the comment: That's perfect. I agree that this issue is closed! :) -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20135] FAQ need list mutation answers

2014-07-11 Thread Ezio Melotti
Ezio Melotti added the comment: Good point, I'll try to add that to the FAQ. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-11 Thread hakril
New submission from hakril: Will playing with generators and `yield from` I found some inconsistency. list comprehension with yield(-from) would return a generator. generator comprehension would yield some None in the middle of the expected values. Examples: l = ["abc", range(3)] g1 =

[issue21868] Tbuffer in turtle allows negative size

2014-07-11 Thread Lita Cho
Lita Cho added the comment: Hi Raymond! Just wanted to check if you had time to test this yet. I ran the tests through the Turtle tests I wrote (issue21914), but those are still pending approval. This is off topic, but I also didn't realize till now that you gave a talk about "Transforming Co

[issue10213] tests shouldn't fail with unset timezone

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Given the extended EOL I'd assume that this is worth doing for 2.7. -- nosy: +BreamoreBoy versions: -Python 3.2 ___ Python tracker ___ _

[issue21959] msi product code for 2.7.8150 not in Tools/msi/uuids.py

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc8849331528 by Steve Dower in branch '2.7': #21959: Adds 2.7.8 product code to Tools/msi/uuids.py http://hg.python.org/cpython/rev/cc8849331528 -- nosy: +python-dev ___ Python tracker

[issue21958] Allow python 2.7 to compile with Visual Studio 2013

2014-07-11 Thread Zachary Ware
Zachary Ware added the comment: Agreed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread Steve Dower
Steve Dower added the comment: This is definitely the same as #17797, so I'll close this as a dup. Over on that issue, it's confirmed as fixed in VC14 (and it is - I've checked). -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue21959] msi product code for 2.7.8150 not in Tools/msi/uuids.py

2014-07-11 Thread Steve Dower
Steve Dower added the comment: Yeah, I patched my msi.py to get the build going but haven't checked it in (it was already after the tag...). I'll fill out the next few minor versions and check it in. -- ___ Python tracker

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-11 Thread Josh Rosenberg
Josh Rosenberg added the comment: On: if (... a+b will not overflow ...) { Since you limited the optimization for addition to single digit numbers, at least for addition and subtraction, overflow is impossible. The signed twodigit you use for the result is guaranteed to be able to store far

[issue7063] Memory errors in array.array

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: I've tested the reworked patch on Windows 7, ran 718 tests with 1 skipped both before and after applying the patch. -- nosy: +BreamoreBoy Added file: http://bugs.python.org/file35926/Issue7063.diff ___ Python tracker

[issue21958] Allow python 2.7 to compile with Visual Studio 2013

2014-07-11 Thread Steve Dower
Steve Dower added the comment: The fix is certainly needed in default, though I already have it in my fork for porting to VC14. I'm okay with the HAVE_ROUND change, but I think the VS2013 project files are better off kept separate. We won't be rebuilding 2.x with a newer compiler, so they don

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: > The changeset 7741d0dd66ca looks good to me, Python 3 does the same thing > since Python 3.2 (the new GIL). Oh, I forgot to say that the simplest way to fix the regression is to revert this commit... As I wrote modifying the code to cleanup Python at exit is

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: Does anyone have a *simple* script to reproduce the regression? The changeset 7741d0dd66ca looks good to me, Python 3 does the same thing since Python 3.2 (the new GIL). Anyway, daemon threads are evil :-( Expecting them to exit cleanly automatically is not g

[issue14714] PEP 414 tokenizing hook does not preserve tabs

2014-07-11 Thread Armin Ronacher
Changes by Armin Ronacher : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12669] test_curses skipped on buildbots

2014-07-11 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14143] test_ntpath failure on Windows

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: I've just taken a look at the Windows buildbots and can't find anything relevant to this so can we close it. -- nosy: +BreamoreBoy ___ Python tracker __

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-07-11 Thread Ned Deily
Changes by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue14714] PEP 414 tokenizing hook does not preserve tabs

2014-07-11 Thread Armin Ronacher
Armin Ronacher added the comment: I hereby close this issue which is two years old. The only point of the tokenizer thing was to support Python 3.2 which many libraries already have stopped supporting anyways. -- ___ Python tracker

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2014-07-11 Thread Ned Deily
Ned Deily added the comment: I've opened Issue21963 to track the 2.7.8 regression. Please continue any discussion there. -- nosy: +ned.deily status: open -> closed ___ Python tracker __

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-07-11 Thread Ned Deily
New submission from Ned Deily: doko in msg222768 of Issue1856: http://tracker.ceph.com/issues/8797 reports that the backport to 2.7 causes a regression in ceph. -- messages: 222795 nosy: benjamin.peterson, doko, ned.deily priority: release blocker severity: normal stage: needs patch st

[issue14714] PEP 414 tokenizing hook does not preserve tabs

2014-07-11 Thread Vinay Sajip
Vinay Sajip added the comment: > How does a piece of code on github relate to the core Python code in > Mercurial? Tangentially. Armin Ronacher is the developer of both the GitHub code and the PEP 414 implementation, and it's referenced in the PEP. It doesn't make sense for any other Python c

[issue21937] IDLE interactive window doesn't display unsaved-indicator

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: In installed 3.4.1 on Win 7, I *do* get the unsaved * back when typing. It disappears again when I hit return. So on this system, the meaning seems to be 'unsubmitted code'. Saving in the middle of a line inserts '\n' before saving (but does not submit for ex

[issue21962] No timeout for asyncio.Event.wait() or asyncio.Condition.wait() ?

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: > A timeout can be specified for the whole task using asyncio.wait_for() but > it's tricky. Exactly, you can use wait_for() on any async operation. Why would you like to add a timeout on each async operation, while wait_for() is available? Replace event.wait

[issue21962] No timeout for asyncio.Event.wait() or asyncio.Condition.wait() ?

2014-07-11 Thread Alexandre JABORSKA
New submission from Alexandre JABORSKA: Hi, Nor asyncio.Event.wait() neither asyncio.Condition.wait() (or .wait_for()) has a timeout parameter, while threading.Event.wait() has one. A timeout can be specified for the whole task using asyncio.wait_for() but it's tricky. I guess asyncio

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread Audrey Roy
Audrey Roy added the comment: Mark, I and a number of others simply misinterpreted the text in that section. -- ___ Python tracker ___ ___

[issue16494] Add a method on importlib.SourceLoader for creating bytecode file format/container

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: @Brett as #15627 is in would you like to follow up on this. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue21323] CGI HTTP server not running scripts from subdirectories

2014-07-11 Thread Zach Byrne
Zach Byrne added the comment: Done and done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21960] Better path handling in Idle find in files

2014-07-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread Brandon Rhodes
Brandon Rhodes added the comment: I do not find it unreasonable, on a page of Python idioms, the we would call an example that explicitly says "Don't" in its title an "anti-idiom." -- ___ Python tracker __

[issue21961] Add What's New for Idle.

2014-07-11 Thread Terry J. Reedy
New submission from Terry J. Reedy: For the stdlib in general, What's New in x.y.0 is sufficient because there is not supposed to be anything new in bugfix releases except for bugfixes. 2.7 has a security enhancement exemption, and a corresponding section in the 2.7 What's New for security en

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 'In files:' field specifies the search directory. I opened #21960 about it being more informative when using Find in Files from the Shell window. Perfect encoding detection is a fantasy; decent encoding detection by heuristics is slow and not something to

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: What I meant was 'wait until we have an new announcement mechanism', which we very much need anyway, and then apply to all three. And that should have been 'Help/What's New' in the splash announcement. I opened #21961 for this and will try to have a minimal do

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2014-07-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> test needed versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue20135] FAQ need list mutation answers

2014-07-11 Thread R. David Murray
R. David Murray added the comment: I think the example would be clarified by speaking about mutation operations versus non-mutation operations. After all: >>> x = [1] >>> y = x >>> x = x + [2] >>> x [1, 2] >>> y [1] At that point including a list += operation would also be beneficial. --

[issue21960] Better path handling in Idle find in files

2014-07-11 Thread Terry J. Reedy
New submission from Terry J. Reedy: I propose two interrelated changes for path handling in Idle's Find in Files feature (Alt-F3). 1. If I hit Alt-F3 in an editor window, the 'In files:' entry box displays a full path, such as "C:\Programs\Python34\Lib\idlelib\*.py". If I do the same in the s

[issue6092] IDLE: Changed Shortcuts don't show up in menu

2014-07-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue21957] ASCII Formfeed (FF) & ASCII Vertical Tab (VT) Have Hexadecimal Representation

2014-07-11 Thread Ned Deily
Ned Deily added the comment: I am not sure why the string reprs for FF and VT are not special-cased to \f and \v but they are not alone: \a (BEL) and \b (BS) are also not special-cased. My guess is that it was for performance reasons but perhaps someone with a longer memory can comment. As n

[issue21959] msi product code for 2.7.5150 not in Tools/msi/uuids.py

2014-07-11 Thread Anselm Kruis
New submission from Anselm Kruis: The file Tools/msi/uuids.py contains the product codes for all recently released Python 2.x versions except 2.7.8. Without this code it is not possible to recreate the MSI installer using Tools\msi\msi.py. The product code of https://www.python.org/ftp/python

[issue21959] msi product code for 2.7.8150 not in Tools/msi/uuids.py

2014-07-11 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue16516] argparse types (and actions) must be hashable

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul can you take a look at this please. -- nosy: +BreamoreBoy, paul.j3 versions: +Python 3.5 ___ Python tracker ___ ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Mark Dickinson
Mark Dickinson added the comment: + In other words, the following expressions should have the same result: + +``x == y`` and ``not x != y`` + +``x < y`` and ``not x >= y`` + +``x > y`` and ``not x <= y`` I think the second and third items here go too far: sets don't obey these rule

[issue12217] Cross-link docs for faulthandler, traceback and pdb

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Who has the technical knowledge to write a patch for this? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: The docs state 'from module import name1, name2. - This is a “don’t” which is much weaker than the previous “don’t”s but is still something you should not do if you don’t have good reasons to do that.' How does that translate into 'The Python docs say that "fr

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: There's a table here https://docs.python.org/X/using/windows.html#compiling-python-on-windows which shows what versions you need, where X can be 2 or 3. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2014-07-11 Thread Matthias Klose
Matthias Klose added the comment: http://tracker.ceph.com/issues/8797 reports that the backport to 2.7 causes a regression in ceph. -- nosy: +benjamin.peterson, doko status: closed -> open ___ Python tracker __

[issue15577] Real argc and argv in embedded interpreter

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: Without a patch this issue will go nowhere. I'm assuming that this limitation must have been overcome by other projects using embedded Python. Has anybody got any ideas as to how, I certainly haven't? -- nosy: +BreamoreBoy type: crash -> enhancement v

[issue13574] refresh example in doc for Extending and Embedding

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: https://docs.python.org/3/extending/newtypes.html still refers to PyInstanceObject, I'm sorry but I've no idea what the replacement is called, so I'll leave this to someone in the know. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2, Python 3.3

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Zachary. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue1074333] On linux, numeric pad input is ignored when numlock off

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that this issue does not affect Windows. What about Mac? A patch might best be system-specific in only being active on systems that need it. The lack of complaints other than by one person suggests that it is not a high priority among linux users --

[issue21959] msi product code for 2.7.8150 not in Tools/msi/uuids.py

2014-07-11 Thread Anselm Kruis
Changes by Anselm Kruis : -- title: msi product code for 2.7.5150 not in Tools/msi/uuids.py -> msi product code for 2.7.8150 not in Tools/msi/uuids.py ___ Python tracker ___ ___

[issue16382] Better warnings exception for bad category

2014-07-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Phil. -- assignee: -> berker.peksag nosy: +r.david.murray resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> enhancement ___ Python tracker

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread Audrey Roy
Audrey Roy added the comment: > Since it isn't linked from the 3.4 index, it may be more effort than > it is worth to get someone to delete the file from the 3.4 tree on the > server. It would be worthwhile to delete or fix it in the 2.7 and 3.4 tree. It accidentally gets linked, still causing

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset eafe4007c999 by Berker Peksag in branch '3.4': Issue #21906: Make Tools/scripts/md5sum.py work in Python 3. http://hg.python.org/cpython/rev/eafe4007c999 New changeset e1913d2780d7 by Berker Peksag in branch 'default': Issue #21906: Merge from 3.4.

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not open another issue yet because I did not want to split the general discussion of parsing 3.x unicode-based python. We might also need another issue for idlelib/PyParse, and that might need to come first. What I think is that Idle should have at 1 def

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-07-11 Thread Tal Einat
Tal Einat added the comment: So is that a go-ahead to commit to the 2.7 and 3.4 branches (as well as default)? -- ___ Python tracker ___

[issue21958] Allow python 2.7 to compile with Visual Studio 2013

2014-07-11 Thread Zachary Turner
New submission from Zachary Turner: VS2013 and beyond implement C99 math functions. Of interest to Python is the function round(). Python conditionally provides its own implementation of round() based on whether or not HAVE_ROUND is defined, but in no case is HAVE_ROUND ever defined. This l

[issue16382] Better warnings exception for bad category

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4a86fe52006 by Berker Peksag in branch 'default': Issue #16382: Improve exception message of warnings.warn() for bad category. http://hg.python.org/cpython/rev/c4a86fe52006 -- nosy: +python-dev ___ Pytho

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The awkwardness of the config design is that idlelib/config-xyz.def files are separate for each version and shared across users (and systems) while .idlerc/config-xyz.def files are separate for each user (account) and shared across versions on the same machine

[issue21927] BOM appears in stdin when using Powershell

2014-07-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: I get different results that @haypo when testing Powershell on Windows 8.1 with Python 3.4.1: C:\Users\jaraco> chcp 1252 Active code page: 1252 C:\Users\jaraco> $env:PYTHONIOENCODING='' > How you do change the console encoding? Using the chcp command? Yes. I

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a7fcd5273ce by Victor Stinner in branch 'default': Issue #21932: Ooops, os.read(fd, size) allocates a buffer of size bytes, even http://hg.python.org/cpython/rev/4a7fcd5273ce -- ___ Python tracker

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread R. David Murray
R. David Murray added the comment: The file no longer exists in the 3.5 tree on the server. Since it isn't linked from the 3.4 index, it may be more effort than it is worth to get someone to delete the file from the 3.4 tree on the server. On the other hand, fixing the publication process to

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
Brandon Rhodes added the comment: The question of whether the document ought to be removed is not at issue here. The document was already deleted, in 2011, by Raymond Hettinger, with the consent of its author. I told that story merely as background. The issue here is that the Python web site i

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: > Patch LGTM. Thanks for the review. > Here is a test for it. Your test does not pass because Linux truncates the read() size to 2GB - 4096. I tested with /dev/zero device and with a regular file. I wrote a simplified test to just check that size larger than

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9b401d46e20 by Victor Stinner in branch 'default': Issue #21932: os.read() now uses a :c:func:`Py_ssize_t` type instead of http://hg.python.org/cpython/rev/e9b401d46e20 -- nosy: +python-dev ___ Python tr

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: > in many cases flat-out wrong What advice is "flat-out wrong"? All the advice seems excellent to me: * avoid "from spam import *" (with a very few exceptions) * be cautious about "from spam import eggs" * avoid bare "except" clauses * watch out for "time from

[issue21732] SubprocessTestsMixin.test_subprocess_terminate() hangs on "AMD64 Snow Leop 3.x" buildbot

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: It looks like the bug is gone... I don't know why :-/ But at least, it didn't occur recently. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is short and sweet. Assuming it is acceptable do we commit or don't we? See also the reference to #11470 in msg132032. -- nosy: +BreamoreBoy ___ Python tracker

[issue17984] io and _pyio modules require the _io module

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: Serhiy implemented the FileIO class in pure Python: see the issue #21859 (patch under review). -- nosy: +haypo ___ Python tracker ___ _

[issue13081] Crash in Windows with unknown cause

2014-07-11 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg222751 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13081] Crash in Windows with unknown cause

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: Serhiy implemented the FileIO class in pure Python: see the issue #21859 (patch under review). -- ___ Python tracker ___ __

[issue21953] pythonrun.c does not check std streams the same as fileio.c

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: See also issues: - issue #17797: Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program - issue #18804: I proposed a similar change for other reasons. -- nosy: +haypo ___ Python tracker

[issue21936] test_future_exception_never_retrieved() of test_asyncio fails on AMD64 Debian root 3.x

2014-07-11 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21957] ASCII Formfeed (FF) & ASCII Vertical Tab (VT) Have Hexadecimal Representation

2014-07-11 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: In the string module, the definition of whitespace is ' \t\n\r\v\f'. However, the representation of string.whitespace is ' \t\n\r\x0b\x0c'. Would it be terribly inconvenient to change the representation of '\x0b\x0c' to '\v\f'? The documentation at h

[issue21927] BOM appears in stdin when using Powershell

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: See also issues #1602 (Windows console) and #16587 (stdin, _setmode() and wprintf). I tried msvcrt.setmode(0, 0x4): set stdin mode to _O_U8TEXT. In this mode, echo "abc"|python -c "import sys; print(ascii(sys.stdin.read()))" displays "\xff\xfea\x00b\x00c\

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
Andy Maier added the comment: Uploaded v8 of the patch for 3.4 and default. It reflects hopefully everything that was said in this issue thread, and on the python-dev mailing list (subject: == on object tests identity in 3.x), at least to the extent it was related to comparisons. Besides the

[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2014-07-11 Thread Igor Franchuk
Igor Franchuk added the comment: Confirmed as fixed at least in Python 3.3.5 Successfully compiled at Linux gw 2.6.33-gentoo #1 SMP Mon Mar 8 23:29:59 MSK 2010 i686 Intel(R) Pentium(R) D CPU 3.00GHz GenuineIntel GNU/Linux -- versions: -Python 3.4 ___

[issue21950] import sqlite3 not running

2014-07-11 Thread David
David added the comment: You're absolute right that file is not in path. However, in my view this a bug, due to the fact libsqlite3-dev package must be installed before Python3.4.1 is compiled (or install it and recompile python) because there is no errors, no warnings... nothing. In any cas

[issue21950] import sqlite3 not running

2014-07-11 Thread Alejandro
Alejandro added the comment: we have /usr/local/lib/python3.4/lib-dynload/_sqlite3.cpython-34m.so but we didn't have it in /soft/pyt341/lib/python3.4/lib-dynload/ After copying it into /sofy/pyt341 the problem was solved!! ;) /soft/pyt341/bin/python3 -c "import sqlite3;print(sqlite3.sqlit

[issue21927] BOM appears in stdin when using Powershell

2014-07-11 Thread STINNER Victor
STINNER Victor added the comment: > The BOM (byte order mark) appears in the standard input stream. When using > cmd.exe, the BOM is not present. This behavior occurs in CP1252 as well as > CP65001. How you do change the console encoding? Using the chcp command? I'm surprised that you get a U

[issue14714] PEP 414 tokenizing hook does not preserve tabs

2014-07-11 Thread Mark Lawrence
Mark Lawrence added the comment: What are the Python core developers meant to do with this issue? How does a piece of code on github relate to the core Python code in Mercurial? -- ___ Python tracker

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
Changes by Brandon Rhodes : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.4 ___ Python tracker ___ __

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
Changes by Andy Maier : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
New submission from Brandon Rhodes: There was an old document in the "howto" folder whose advice was in many cases flat-out wrong, so Raymond Hettinger performed a wonderful public service by deleting it back in 2011: http://hg.python.org/cpython/rev/80ff78425419 Unfortunately it looks like t

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
Changes by Andy Maier : -- nosy: +benjamin.peterson, steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21927] BOM appears in stdin when using Powershell

2014-07-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've tested it and setting PYTHONIOENCODING='utf-8-sig' starts to get there. It causes Python to consume the BOM on stdin, but it also causes stdout to print a spurious non-printable character in the output: C:\Users\jaraco> echo foo | ./print-input foo The

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-11 Thread Tal Einat
Tal Einat added the comment: If you think ColorDelegator and UndoDelegator should be fixed as well, I'd be happy to take a look, but we should open a separate tracker issue for it. -- ___ Python tracker __

  1   2   >