[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the approach which always puts the odd pad character on the right. I believe this is what most typists would do. Ideally, the behavior should be the same as in Python 2 (before ROOUND-HALF-EVEN) so that templates don't change their appearan

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks reasonable. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue21610] load_module not closing opened files

2015-03-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Vedran Čačić
Vedran Čačić added the comment: If I see right, it seems that that (putting odd pad character on the right) is exactly what format does (I don't have Py2 here to check how exactly it behaves). So, the current proposition to change the .center to match format stays. (I think I can see how the

[issue20613] Wrong line information in bytecode generated by compiler module

2015-03-10 Thread Arnaud Fontaine
Arnaud Fontaine added the comment: compiler module being deprecated does not mean that it's not used. For example, it is used by RestrictedPython as part of Zope2. As I could not figure out a way to fix this bug properly, I reverted the following commit and have not had any problem so far (nor

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Eric V. Smith
Eric V. Smith added the comment: I agree it would be nice to be consistent, and that str.__format__'s approach is likely the desirable one. But is it worth the breakage? Surely someone cares about the current behavior. Does this cause any practical, real-world problem? -- ___

[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are 18 public writable attributes in shlex object, and unthinking setting some of them can make shlex to produce incorrect results or create an infinite loop. For example there is nothing to prevent your from setting the eof attribute. Only 14 of 18 at

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The behavior of Python 2.7 is the same as Python 3.x. str.center() is very old method and changing it will change formatted reports generated by third-party software in all world. At least this will break many tests. And this will add yet one incompatibility

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Vedran Čačić
Vedran Čačić added the comment: By that line of reasoning, we would probably never change anything. :-( I searched the documentation, and the exact behaviour isn't documented anywhere. In fact all examples are of the kind where there is an even number of fill chars. I thought it was ok to "bre

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Paul Moore
Paul Moore added the comment: There's a problem with the latest patch, it's lost the MSI updates somehow. I'll add them back in this evening, please don't commit before a v6 patch is available, -- ___ Python tracker

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Paul Moore
Paul Moore added the comment: Steve Dower - could you please review the updated patch here. The WiX changes specifically are intended to register the .pyz extension with the launcher, but I can see no code that does this for a per-user install. I've copied the same code for the .py extension s

[issue23187] Segmentation fault, possibly asyncio related

2015-03-10 Thread Michael Goldish
Michael Goldish added the comment: I'm not sure where to post this as the issue is closed: I've encountered the same problem. I don't have a stack trace to share at the moment but I know it's almost (or entirely) identical. My context: - Windows - Happens with Python 3.4.2 and 3.4.3 (and possi

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

2015-03-10 Thread Martin Panter
Martin Panter added the comment: Posting a new patch that says that the NUL is always appended for both Unicode and Bytes, and explicitly says that internal NULs are allowed. -- Added file: http://bugs.python.org/file38420/utf8-null.v2.patch ___ Pyth

[issue9731] Add ABCMeta.has_methods and tests that use it

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if abstract class contains not only abstract methods, but default implementation of some methods? Should the predicate test if tested class contain these methods? For example, the Sequence ABC contains default implementation of __iter__. Should the pre

[issue23187] Segmentation fault, possibly asyncio related

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure where to post this as the issue is closed: Please open a new issue. > I've encountered the same problem. Why do you consider that it's the same issue? > The crash seems to occur at random, with anything between 1 and 20 days > separating conse

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

2015-03-10 Thread Thomas Güttler
New submission from Thomas Güttler: Please update the docs of imp.find_module() https://docs.python.org/2/library/imp.html#imp.find_module zipped egg files in sys.path are not found. Please provide a link how to find modules in sys.path like the interpreter does (with support of zipped egg fi

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

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other functions that returns null terminated data: PyByteArray_AsString(), PyBytes_AsStringAndSize(), PyUnicode_AS_UNICODE(), PyUnicode_AsUCS4Copy() PyUnicode_AsUnicode(), PyUnicode_AsUnicodeAndSize(), PyUnicode_AsWideCharString() and may be more.

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that it is not *obvious* what method is more correct. -- ___ Python tracker ___ ___

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

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: @kilowu: Thanks, I reviewed your patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > And for consistency with all other documentation this should be written as > "null byte/character", not NUL. Agreed! -- ___ Python tracker _

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

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, and for agreement with Victor. ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23624] str.center inconsistent with format "^"

2015-03-10 Thread Vedran Čačić
Vedran Čačić added the comment: We can make a poll, I think it is quite obvious. But that's not really the point. I would accept the solution enabling _both_ methods of rounding with _both_ methods of formatting (it isn't even very hard to do: .center can take additional argument, mandatory k

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread Ben Hoyt
Ben Hoyt added the comment: Hi Victor. I'm attaching a patch to the What's New doc. I know it's a minor thing, but I really read the What's New in Python x.y page whenever it comes out, so making this as specific as possible is good. The changes are: 1. Be more specific and flesh it out slight

[issue20659] Want to make a class method a property by combining decorators

2015-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: To get the behaviour you're requesting, you need to use a custom metaclass and define the property there. The reason is that the descriptor machinery is bypassed entirely when setting or deleting an attribute on the class itself: >>> class Example: ... @prop

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

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f805fdacdfe0 by Victor Stinner in branch 'default': Issue #23605: os.walk() now calls os.scandir() instead of os.listdir(). https://hg.python.org/cpython/rev/f805fdacdfe0 -- nosy: +python-dev ___ Python t

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52c7017fdcdd by Victor Stinner in branch 'default': Issue #23571: Oops, fix #ifdef assert() https://hg.python.org/cpython/rev/52c7017fdcdd -- ___ Python tracker __

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

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: My suggestion to add a new walk_dirs list is wrong: os.walk() documentation explicitly says that the dirs list can be modified to delete some directories: https://docs.python.org/dev/library/os.html#os.walk """ When topdown is True, the caller can modify the dir

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d76dabd40f6 by Victor Stinner in branch 'default': Issue #22524: Rephrase scandir addition in What's New in Python 3.5 https://hg.python.org/cpython/rev/8d76dabd40f6 -- ___ Python tracker

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

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50e32059a404 by Victor Stinner in branch '3.4': Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example https://hg.python.org/cpython/rev/50e32059a404 -- ___ Python tracker

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy's patch looks good to me. I'd completely missed that __qualname__ could be used to avoid needing a second argument even when handling objects other than bound methods. That's very cool, and I can see why you figured it was easier to just write the patch t

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: 2015-03-10 12:36 GMT+01:00 Ben Hoyt : > I intend to do some review of the scandir/DirEntry docs as well. I'll send > those in the next few days. Open maybe a new issue if you want to enhance the doc. -- ___ Python t

[issue23432] Duplicate content in SystemExit documentation

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64c0b4aead0f by Berker Peksag in branch '3.4': Issue #23432: Remove duplicate content from SystemExit docs. https://hg.python.org/cpython/rev/64c0b4aead0f New changeset 5163fb8dc61f by Berker Peksag in branch 'default': Issue #23432: Remove duplicat

[issue23432] Duplicate content in SystemExit documentation

2015-03-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Martin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Steve Dower
Steve Dower added the comment: The whole installer is run with a different global flag depending on the type of install. So it's automatic, though sometimes you can't do both per-user and all-user changes at the same time (not that you should anyway). -- __

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread Ben Hoyt
Ben Hoyt added the comment: Thanks. Will do! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Paul Moore
Paul Moore added the comment: OK, so if the installer changes look good to you, then this PR is once again ready to go. Sorry to anyone watching for the glitch. -- ___ Python tracker __

[issue23626] Windows per-user install of 3.5a2 doesn't associate .py files with the new launcher

2015-03-10 Thread Paul Moore
New submission from Paul Moore: Installing Python 3.5a2 with the 64-bit Windows installer using a user-level install doesn't associate .py files with the new (3.5) version of the launcher. I encountered this when there was an existing system install of Python 3.4, so .py files remained associa

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-10 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20613] Wrong line information in bytecode generated by compiler module

2015-03-10 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-li

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: @Claudiu Popa, IIRC I did not add 1-2 test images because I not found how to make image or how to convert image to this format. So, if there will no chance to add them, should we remove these formats from the patch? --

[issue23627] Incorrect string formatting of float values in Python 2.7

2015-03-10 Thread pushpendre rastogi
New submission from pushpendre rastogi: Hi, The string formatting module in python 2.7 incorrectly formats floating point values. The following code shows the problem >>> print "%.10s"%(-7.7176718e-05) -7.7176718 >> print "%.10s"%(-0.771767) -7.71767e- Ideally the code should have thrown a

[issue23628] See if os.scandir() could help speed up importlib

2015-03-10 Thread Brett Cannon
New submission from Brett Cannon: With os.scandir() now committed and implemented in C, it would be interesting to see if os.scandir() could provide any performance benefit to importlib. If finders can pass the DirEntry to loaders then some stat calls could potentially be saved at the expense

[issue7803] setup hangs on disk space requirements

2015-03-10 Thread Mark Lawrence
Mark Lawrence added the comment: @Steve can you close this please. -- nosy: +BreamoreBoy, steve.dower type: -> behavior ___ Python tracker ___ ___

[issue23627] Incorrect string formatting of float values in Python 2.7

2015-03-10 Thread Eric V. Smith
Eric V. Smith added the comment: By using %s, you're asking the formatting code to first convert the parameter to a string. Then, by using .10, you're asking it to truncate the value. It's essentially equivalent to: >>> str(-7.7176718e-05) '-7.7176718e-05' >>> str(-7.7176718e-05)[:10] '-7.7176

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Steve Dower
Steve Dower added the comment: Good question, I'm not sure. Right now, the api-* DLLs use forwarding rather than apisetschema, but that could change. Since they support back to XP though, I suspect it probably won't the api-* DLLs will stay as they are with ucrtbase exporting ordinals rather t

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ok, please bear with me. I'm going to be REALLY busy for a bit; I have a BIG test/exam coming up next week, a music recital shortly afterwards, and lots of stuff/studying in between. Sorry for any delays! -- ___ Pyt

[issue7803] setup hangs on disk space requirements

2015-03-10 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When followlinks is true, symlinks is not needed. But I this commit breaks a code like following: def unsymlink(top): for root, dirs, files in os.walk(top): for name in dirs: path = os.path.join(root, name) if os.path.islin

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: In the stdlib, this only appears with the memoryview object, but third-party types can be affected. Attaching patch. -- components: Interpreter Core messages: 237776 nosy: pitrou, serhiy.storchaka, skrah priority: normal severity: normal stage: patch

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +patch Added file: http://bugs.python.org/file38422/sizeof_var_obj.patch ___ Python tracker ___ _

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

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > When followlinks is true, symlinks is not needed. Hum, it's not easy to understand your code. I guess that the problem is that a symlink to a directory can become something else (not a directory or a symlink to a directory).

[issue23595] Split the math module into _math (C) + math (py)

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, fair enough, I abandon my change. I agree that a partial implementation of math.py (only a few functions) is not useful. To implement more math functions, struct and ctypes modules are probably needed. But it sounds overkill, since CPython already has a fu

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

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My first note was about efficiency of the implementation. When followlinks is true, you can avoid testing entry.is_link() and creating the symlinks set. The new implementation of os.walk() changes a behavior. The problem is that a symlink to a directory can

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86c9ef950288 by Steve Dower in branch 'default': Issue #23606: Disable ctypes.util.find_library("c") on Windows so tests are skipped while we figure out how best to approach the CRT change https://hg.python.org/cpython/rev/86c9ef950288 -- n

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Steve Dower
Steve Dower added the comment: That change should get the buildbots passing again, as it will now skip those tests. The "appcrt%d" return value was blatantly incorrect anyway. -- ___ Python tracker ___

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Patch attached to fix this. -- keywords: +patch Added file: http://bugs.python.org/file38423/tokenize-reloadable.patch ___ Python tracker ___ __

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! How it worked before? Now we can remove __sizeof__ implementations for tuples and bytes. Could you please add sizeof test for PyStructSequence types? -- ___ Python tracker

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Cyd Haselton
Cyd Haselton added the comment: Dog just died unexpectedly, behind on photograph project, need to start on Python tutorial, have a chat in a different language on Sunday I need to prep for and its patch day tomorrow. So yeah. Completely understand. --

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: First attempt at describing this attached. -- keywords: +patch Added file: http://bugs.python.org/file38424/linecache-encoding-doc.patch ___ Python tracker

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: -B.patch as Serhiy suggests, for tokenize only for the time being. -- Added file: http://bugs.python.org/file38425/tokenize-reloadable-B.patch ___ Python tracker __

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it should include other list fields if we don't want to open separate issues for every list field. -- ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Fixed the other three cases you pointed out (-B2.patch). -- Added file: http://bugs.python.org/file38426/tokenize-reloadable-B2.patch ___ Python tracker ___

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: This makes some sense, but it's easy to work around -- just call create_server() multiple times, once for each host. Why does that not work for you? -- ___ Python tracker _

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Davin Potts added the comment: Attaching patch for both 3.4 and default/3.5 (single file works for both) which fixes the test to properly adjust for running under -Werror. Whether -Werror is set or otherwise the equivalent of 'warnings.simplefilter("error", Warning)' has been set, any warning

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Changes by Davin Potts : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: That could work, but I would have to manually resolve and filter the lists of hostnames so that the program does not attempt to bind the same address twice - something that is better implemented in create_server, which already does the hostname resolut

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: So it sounds like you already have a patch in mind... Can you work on it and upload it? (It's open source -- you get to make it yourself. :-) -- ___ Python tracker _

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't the test fail with -Werror::ResourceWarning or like? -- ___ Python tracker ___ ___ Python

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, tests for PyStructSequence types already exist (tests for sys.flags and sys.float_info). The patch LGTM. -- ___ Python tracker ___ _

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: See attached. -- keywords: +patch Added file: http://bugs.python.org/file38428/asyncio_multibind.diff ___ Python tracker ___ ___

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix for Python implementation LGTM, but a fix for C implementation is needed too. -- stage: patch review -> needs patch ___ Python tracker __

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Davin Potts added the comment: Yes, setting -Werror::ResourceWarning would indeed cause the test to fail again. A couple of options we could potentially adopt: 1. Decide to ignore anything extra in the file anytime any kind of "error" filterwarning is present. 2. Decide to ignore anything extra

[issue23192] Generator return value ignored in lambda function

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add a test based on Chris's example? And it would be good to add a test for a lambda with "yield from". -- assignee: -> serhiy.storchaka stage: -> test needed ___ Python tracker

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c4c4e43c452 by Steve Dower in branch '2.7': Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls https://hg.python.org/cpython/rev/7c4c4e43c452 -- nosy: +python-dev ___ Python t

[issue18620] multiprocessing page leaves out important part of Pool example

2015-03-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +jnoller, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread mdcb
mdcb added the comment: Intention of the patch was to keep it simple and limited to nanoseconds (per the report). Throwing in Decimal would work (and possibly bring further precision) but consider: datetime.fromnanoseconds(ns) vs datetime.fromtimestamp(Decimal(ts)) I find the former cleane

[issue19909] Best practice docs for new SSL features

2015-03-10 Thread Christian Heimes
Christian Heimes added the comment: I'm closing the reminder ticket. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickling is not backward compatible. I.e. older versions of Python couldn't unpickle datetime pickled in new Python. -- ___ Python tracker __

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.5.0a2, my Win 7 and Guido's new Win laptop: error tracebacks are mangled in a way that makes Idle severely less functional, hence 'release blocker'. First, the normal behavior. Python 3.5.0a2 (v3.5.0a2:0337bd7ebcb6+, Mar 9 2015, 10:29:45) [MSC v.1900 64

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good, committed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: It is a bit of pity. A least non-sliced indexing should be able to work: >>> import numpy as np >>> a = np.arange(10) >>> memoryview(a)[0] 0 >>> a = np.arange(10).reshape((2,5)) >>> a[0,1] 1 >>> memoryview(a)[0,1] Traceback (most recent call last): File "",

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

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Larry, I have a very small patch (~4 lines) that does change user behavior or the API, but does have a significant performance boost. I'm still learning what is/is not okay to add to maintenance releases, so wanted to run this by you. -- assignee: -> e

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

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Larry, I have a very small patch (~4 lines) that does change user behavior or the API, but does have a significant performance boost. I'm still learning what is/is not okay to add to maintenance releases, so wanted to run this by you. -- nosy: +larry _

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

2015-03-10 Thread Ethan Furman
Changes by Ethan Furman : -- Removed message: http://bugs.python.org/msg237815 ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2015-03-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: This issue is about making coordinated changes to the py launcher doc and binary. 1. The py launcher doc is https://docs.python.org/3/using/windows.html#python-launcher-for-windows. If one does not know where to look, it is hard to find. Add an index entr

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2015-03-10 Thread mattip
New submission from mattip: If I have a read-only fd, and I try to open it as 'w' with os.fdopen(fd, 'w'), the operation raises on linux but succeeds on windows. Python relies on the underlying clib's fdopen to return an error, which glibc does, but MSVC happily closes the original fd and r

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread mdcb
mdcb added the comment: backward compatibility is implemented as 'new python can load old pickle'. isn't it what backward compatible means? The payload changed from 10 to 12 bytes to accomodate the nanoseconds, I don't know how to handle reverse-backward compatibility or if it's really needed.

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file38431/memoryview_tuple_indexing.patch ___ Python tracker ___ ___

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the link to where the doc *was* updated for 2.7. Currently, -m idlelib.idle works, so copying idle.py to __main__.py should make -m idlelib work. I will try this later, and see if the exact contents of idle.py are needed. Having '-m idlelib' work

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread David Linke
David Linke added the comment: Besides clarifying documentation, it may be helpful to provide a script that (temporarily) sets the path to pythonX and pythonX/scripts. A batch cmd script that does that and also changes the default Python for the launcher is here: https://gist.github.com/dalito

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread Paul Moore
Paul Moore added the comment: Steve has something like that planned, I believe. It's been discussed a couple of times on python-dev -- ___ Python tracker ___ ___

[issue2211] Cookie.Morsel interface needs update

2015-03-10 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should address all comments. -- Added file: http://bugs.python.org/file38432/issue2211_2.patch ___ Python tracker ___ ___

  1   2   >