[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Since issue15745 hasn't been fixed yet, would be okay to skip these tests when the test suite runs from a ZFS container? Currently, these failures are a nuissance when running the test suite. -- ___ Python tracker

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread koobs
koobs added the comment: I'd like to put the buildbot slave instances back onto ZFS for broader Disk/IO test coverage for Python and other projects as well as to gain some administrative disk utilisation flexibility. These two issues have unfortunately precluded that, and there's much more val

[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79562a31e5a6 by Victor Stinner in branch '3.4': Issue #21700: Fix asyncio doc, add DatagramProtocol http://hg.python.org/cpython/rev/79562a31e5a6 New changeset a8dfdae4c4a0 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21700: Fix asyncio

[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21702] asyncio: remote_addr of create_datagram_endpoint() is not documented

2014-06-10 Thread STINNER Victor
New submission from STINNER Victor: See issue #21701 for a recent issue about this parameter. -- assignee: docs@python components: Documentation, asyncio messages: 220147 nosy: ariddell, docs@python, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyn

[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #21702 to document the parameter remote_addr. -- ___ Python tracker ___ ___ Pytho

[issue17457] Unittest discover fails with namespace packages and builtin modules

2014-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21326] asyncio: request clearer error message when event loop closed

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7912179335cc by Victor Stinner in branch '3.4': Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop http://hg.python.org/cpython/rev/7912179335cc -- ___ Python tracker

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-10 Thread Sebastian Kreft
Sebastian Kreft added the comment: I was able to recreate the issue again, and now i have some info about the offending futures: State: RUNNING, Result: None, Exception: None, Waiters: 0, Cancelled: False, Running: True, Done: False The information does not seem very relevant. However, I can

[issue21326] asyncio: request clearer error message when event loop closed

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: This issue was discussed on the python-dev mailing list. The conclusion is that adding a new method to asyncio is safe because asyncio has a "provisional API" (whereas the selectors module doesn't). Ok, Python 3.4.2 will have the new method BaseEventLoop.is_cl

[issue21679] Prevent extraneous fstat during open()

2014-06-10 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: Again, thanks for the review. It's true that HAVE_FSTAT can be defined without stat structure containing st_blksize. I added an ifdef HAVE_STRUCT_STAT_ST_BLKSIZE for that. Attaching third version of the patch, hopefully everything will be ok now. --

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks for the reviews, Serhiy. Here's the new version of the patch. -- Added file: http://bugs.python.org/file35549/issue18039_2.patch ___ Python tracker ___

[issue21595] asyncio: Creating many subprocess generates lots of internal BlockingIOError

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Can someone please review asyncio_read_from_self.patch? -- ___ Python tracker ___ ___ Python-bugs-li

[issue21596] asyncio.wait fails when futures list is empty

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b3f8b6d6e5c by Victor Stinner in branch '3.4': Issue #21596: asyncio.wait(): mention that the sequence of futures must not http://hg.python.org/cpython/rev/2b3f8b6d6e5c New changeset 68d45a1a3ce0 by Victor Stinner in branch 'default': (Merge 3.4) I

[issue21596] asyncio.wait fails when futures list is empty

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?

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

[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: > I've read this entire issue and can't see that much can be done My patch can be applied in Python 3.5 to notice immediatly users that filenames cannot be encoded to the ANSI code page. Anyway, bytes filenames are deprecated (emit a DeprecationWarning warning

[issue21703] IDLE: Test UndoDelegator

2014-06-10 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Adds test for UndoDelegator class in idlelib.UndoDelegator. With the help of Victor Stinner on IRC, I managed to reduce the refleak, but the current status is: saimadhav@debian:~/dev/34-cpython$ ./python -m test -R 3:3 -uall test_idle [1/1] test_idle beg

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Matthias Urlichs
Matthias Urlichs added the comment: Actually, the problem is cgi.py around line 550: clen = -1 if 'content-length' in self.headers: try: clen = int(self.headers['content-length']) except ValueError: pass if maxle

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Matthias Urlichs
Matthias Urlichs added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file35551/cgi.patch ___ Python tracker ___

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Matthias Urlichs
Matthias Urlichs added the comment: This also applies to 3.4 and 3.5. -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-06-10 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: When POSIX semaphores are disabled (e.g. by unmounting /dev/shm on a Linux system), then _multiprocessing module builds with undefined symbol _PyMp_sem_unlink: $ ./configure ... ... checking whether POSIX semaphores are enabled... no ...

[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-06-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2014-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I don't have a Windows 8.1 handy, but if "ver" reports the correct version, why not have platform.win32_ver() use _syscmd_ver() in case the other APIs report "6.2.9200" and then have win32_ver() the higher version ?! FWIW: I don't think we should add anyth

[issue21705] cgi.py: Multipart with more than one file is misparsed

2014-06-10 Thread Matthias Urlichs
New submission from Matthias Urlichs: This code in cgi.py makes no sense whatsoever: 842 if line.endswith(b"--") and last_line_lfend: 843 strippedline = line.strip() 844 if strippedline == next_boundary: 845 break 84

[issue21309] Confusing "see also" for generic C-level __init__ methods in help output

2014-06-10 Thread R. David Murray
R. David Murray added the comment: I'm hoping that with Argument Clinic we can do better, but I haven't played with it so I'm not sure. -- ___ Python tracker ___ ___

[issue19840] The is no way to tell shutil.move to ignore metadata

2014-06-10 Thread R. David Murray
R. David Murray added the comment: Review comments added. Patch looks good after the doc fixes. We also need a whatsnew entry. -- ___ Python tracker ___ __

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a patch that marks those tests as expected failures if the source checkout is inside a zfs container. It uses `df -t zfs`, it was the easiest way I could find to detect that we are running from a zfs container. -- keywords: +patch Added file: http

[issue21705] cgi.py: Multipart with more than one file is misparsed

2014-06-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21703] IDLE: Test UndoDelegator

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: You should call "cls.percolator.close()" in your tearDownClass() method, before cls.text.destroy(). By the way, I prefer to assign an attribute to None instead of using "del obj.attr". -- nosy: +haypo ___ Python tr

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Dmitry Korchemny
New submission from Dmitry Korchemny: In enum module the functional API for enum creation has the following signature: Enum(value='NewEnumName', names=<...>, *, module='...', qualname='...', type=) so that the numeration always starts with 1. In some cases it is convenient to start numbering f

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19840] The is no way to tell shutil.move to ignore metadata

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks, David. The new version of the patch is attached. -- Added file: http://bugs.python.org/file35554/issue19840_1.patch ___ Python tracker ___

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Claudiu.Popa
Changes by Claudiu.Popa : Added file: http://bugs.python.org/file3/issue18039_3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2014-06-10 Thread Steve Dower
Steve Dower added the comment: The two 'correct' options are adding the manifest or doing nothing (based on a number of very passionate internal discussions I was able to dig up). Without the manifest, various APIs may behave differently - it's the new way that Windows decides whether to apply

[issue14758] SMTPServer of smptd does not support binding to an IPv6 address

2014-06-10 Thread Milan Oberkirch
Milan Oberkirch added the comment: Fixed it. -- Added file: http://bugs.python.org/file35556/smtpd_061014.patch ___ Python tracker ___ ___

[issue19662] smtpd.py should not decode utf-8

2014-06-10 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: +jesstess, zvyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Charles, Antoine, any final thought about this given the reasons I stated above? If you're still -1 about adding 'send_blocksize' argument I guess I can get rid of it and perhaps reintroduce it later if we see there's demand for it. --

[issue21707] modulefinder uses wrong CodeType signature in .replace_paths_in_code()

2014-06-10 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: Here's the code: def replace_paths_in_code(self, co): ... return types.CodeType(co.co_argcount, co.co_nlocals, co.co_stacksize, co.co_flags, co.co_code, tuple(consts), co.co_names, co.co

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-06-10 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Please see http://bugs.python.org/issue21652 for a regression introduced by this change. -- nosy: +exarkun ___ Python tracker ___ _

[issue21707] modulefinder uses wrong CodeType signature in .replace_paths_in_code()

2014-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The fix is easy. Simply change the call to: return types.CodeType(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize, co.co_flags, co.co_code, tuple(consts),

[issue21688] Improved error msg for make.bat htmlhelp

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b841b80e6421 by Zachary Ware in branch '3.4': Issue #21688: Give informative error message when hhc.exe cannot be found. http://hg.python.org/cpython/rev/b841b80e6421 New changeset e5594e751a2e by Zachary Ware in branch 'default': Issue #21688: Merg

[issue21688] Improved error msg for make.bat htmlhelp

2014-06-10 Thread Zachary Ware
Zachary Ware added the comment: Fixed! I tweaked the message a bit and added errorlevel setting before committing. Thanks for the report and patch! -- assignee: -> zach.ware resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4 __

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Ned Deily
Ned Deily added the comment: Thanks for the report, the test case, and the patch. It would be helpful if the informal test could be turned into a patch as a formal test in Lib/test_cgi.py and if, Matthias, you would be willing to sign the PSF contributor agreement if you haven't already (htt

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-10 Thread Stefan Krah
Stefan Krah added the comment: "I ran a quick test with profile-guided optimization (PGO, pronounced "pogo"), which has supposedly been improved since VC9, and +saw a very unscientific 20% speed improvement on pybench.py and 10% size reduction in python35.dll. I'm not sure what we used +to get

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

2014-06-10 Thread Lita Cho
Lita Cho added the comment: Here are the tests for Vec2D. I have also included the tests for TNavigator here as well as they are all going into the same test module. -- Added file: http://bugs.python.org/file35557/test_turtle_textonly.py ___ Python t

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2014-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 10.06.2014 18:28, Steve Dower wrote: > > The one concession that the Windows dev is willing to make is for logging, in > which case the version number should be read as a string from a standard DLL > like kernel32.dll. This would be appropriate for plat

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-10 Thread Steve Dower
Steve Dower added the comment: test_memoryview_assign seems to be okay, but the two test_lzma tests still fail with the same message. Both pass without PGO. I'll get in touch with the PGO team and try and get it fixed. I haven't checked, but it looks consistent with Stefan's analysis of the di

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f944f44ee41 by Serhiy Storchaka in branch 'default': Issue #18039: dbm.dump.open() now always creates a new database when the http://hg.python.org/cpython/rev/3f944f44ee41 -- nosy: +python-dev ___ Python

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2014-06-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Unlike to other dbm implementations, a dumpdbm database is always opened for update, and will be created if it does not exist. We can fix this discrepancy and implement common behavior for 'r' and 'w' modes, but this will change current behavior and some

[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2014-06-10 Thread Steve Dower
Steve Dower added the comment: > So have platform.win32_ver() return the true version is acceptable ? > > Note that the platform module is meant for identifying the platform, > not the runtime compatibility environment, so it has a slightly > different target audience Yes, and that's exactly the

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed original Claudiu's patch (issue18039.patch) with minor changes. For warnings I opened separate issue (issue21708) because patch becomes too large. Thank you Claudiu for your patch. -- resolution: -> fixed stage: patch review -> resolved st

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread R. David Murray
R. David Murray added the comment: Isn't this change going to cause unexpected data loss for (possibly mythical) people depending on the existing behavior? At an absolute minimum it needs an entry in the What's New porting section, but I'm wondering if a deprecation period is more appropriate

[issue18564] Integer overflow in socketmodule

2014-06-10 Thread Michele Orrù
Michele Orrù added the comment: ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the chance of this is pretty small. I can imagine that some people use default, 'r' or 'w' mode unintentionally, and all works for them even when database is missed (for example our tests do this). But it is very unlikely that someone use the 'n' mod

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue19840] shutil.move(): Add ability to use custom copy function to allow to ignore metadata

2014-06-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: The is no way to tell shutil.move to ignore metadata -> shutil.move(): Add ability to use custom copy function to allow to ignore metadata ___ Python tracker

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Charles-François Natali
Charles-François Natali added the comment: > I agree it is not necessary for sendfile() (you were right). Good we agree :-) > Do not introducing it for send(), though, poses some questions. > For instance, should we deprecate or ignore 'blocksize' argument in ftplib as > well? Honestly, we sh

[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

2014-06-10 Thread R. David Murray
R. David Murray added the comment: Yeah, hopefully you are right. (I didn't mean to reopen the issue, by the way). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue694339] IDLE: Dedenting with Shift+Tab

2014-06-10 Thread Tal Einat
Tal Einat added the comment: Regarding Roger Serwy's comment, we could either: 1) normalize the event descriptions using MultiCall's _parse_sequence() and _triplet_to_sequence() functions 2) remove any Shift-Tab bindings from <> I suggest #2. Regarding the patch itself: 1) Was the existing

[issue3068] IDLE - Add an extension configuration dialog

2014-06-10 Thread Ned Deily
Ned Deily added the comment: I did a very quick test on OS X. Comments: 1. In keeping with Apple Human Interface Guidelines, the "Options" menu is different on OS X: the "Configure IDLE" menu item appears as a "Preferences" menu item in the "IDLE" application menu row. So, as it stands, addi

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I agree, but both points are addressed by sendfile() I'm talking about send(), not sendfile(). Please remember that send() will be used as the default on Windows or when non-regular files are passed to the function. My argument is about introducing an ar

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-10 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: It is not when freezing the logging package, so any use of the logging package fails: >>> import logging Traceback (most recent call last): File "", line 1, in File "/importlib/_bootstrap.py", line 2237, in _find_and_load File "/importlib/_bootstra

[issue694339] IDLE: Dedenting with Shift+Tab

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The fact that Tab indents regions as well as lines seems not be documented. This should be added to Automatic Indentation (which should just be Indentation) with BackTab doc addition if not sooner. On Windows, 3.4.1, shift-tab is the same as tab. The same is t

[issue21710] --install-base option ignored?

2014-06-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: Looking at the source code in distutils.command.installer, it seems the "--install-base" option is ignored, since it is always overwritten, either in finalize_unix() or finalize_other(). (I haven't tried to check this on the command line, though) --

[issue1253] IDLE - Percolator overhaul

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: Can somebody please close as requested in msg210212, thanks. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue8503] smtpd SMTPServer does not allow domain filtering

2014-06-10 Thread Milan Oberkirch
Milan Oberkirch added the comment: I see no reason to restrict the filtering possibilities to the domain, so I added a method "validate_recipient_address" wich gets an address of the form "local-part@domain" and returns `True`. SMTPChannel.smtp_RCPT checks any address with this method before ap

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The issue is similar to Issue20884. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Charles-François Natali
Charles-François Natali added the comment: >> I agree, but both points are addressed by sendfile() > > I'm talking about send(), not sendfile(). > Please remember that send() will be used as the default on Windows or when > non-regular files are passed to the function. My argument is about > in

[issue13111] Error 2203 when installing Python/Perl?

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: Can it be assumed that there is no interest in this issue as it targets Windows 8 Developer Preview? -- nosy: +BreamoreBoy ___ Python tracker __

[issue13111] Error 2203 when installing Python/Perl?

2014-06-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Indeed, closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ P

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: If this is a security issue shouldn't it have been actioned? If not does the type move to behaviour or what? -- nosy: +BreamoreBoy ___ Python tracker _

[issue3905] subprocess failing in GUI applications on Windows

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: I cannot reproduce this problem with 3.4.1 or 3.5.a0 on Windows 7. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue13101] Module Doc viewer closes when browser window closes on Windows 8

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: This works fine for me with Windows 7, Python 3.4.1 and Firefox 29. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-10 Thread Jim Jewett
Jim Jewett added the comment: I think the new wording is an improvement, but keeping the changes minimal left it in an awkward in-between state. Proposal: A string is a sequence of Unicode code points. Strings can include any sequence of code points, including some which are semantically mea

[issue13101] Module Doc viewer closes when browser window closes on Windows 8

2014-06-10 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Ethan Furman
Ethan Furman added the comment: That is certainly nicer than the current idiom: Animal = Enum('Animal', zip('ant bee cat dog'.split(), range(4))) -- assignee: -> ethan.furman ___ Python tracker

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Eli Bendersky
Eli Bendersky added the comment: Is it really worthwhile to complicate the API for the sake of providing a less flexible solution for rare cases that saves a few keystrokes? -- ___ Python tracker _

[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-10 Thread Jim Jewett
Jim Jewett added the comment: And even my rewrite showed path dependency; a slight further improvement is to re-order encoding ahead of bytes. I also added a paragraph that I hope answers the speed issue. Proposal: A string is a sequence of Unicode code points. Strings can include any sequ

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Ethan Furman
Ethan Furman added the comment: Playing devil's advocate: The issue is not so much the keystrokes saved as the improvement in reading and understanding what was intended. If you are happy with starting at 1 the idiom is easy to both write, read, and understand; but if you want some other sta

[issue21677] Exception context set to string by BufferedWriter.close()

2014-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: This changeset crashes test_io here: test_close_error_on_close (test.test_io.CBufferedReaderTest) ... python: Objects/abstract.c:2091: PyObject_Call: Assertion `(result != ((void *)0) && !PyErr_Occurred()) || (result == ((void *)0) && PyErr_Occurred())' failed

[issue21711] Remove site-python support

2014-06-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: Support for "site-python" directories in site.py was deprecated in 3.4 and slated for removal in 3.5. Attached patch does the remove. -- components: Library (Lib) files: sitepython.patch keywords: patch messages: 220214 nosy: pitrou priority: normal s

[issue1253] IDLE - Percolator overhaul

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal could have. Anyway, I made a note to look at this or #1252 if I want to understand Percolator or Delegator or think about changing them. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2014-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list m

[issue21677] Exception context set to string by BufferedWriter.close()

2014-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: gdb backtrace: #0 0x7711ff79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x77123388 in __GI_abort () at abort.c:89 #2 0x77118e36 in __assert_fail_base (fmt=0x7726a718 "%s%s%s:%u: %s%sAssertion

[issue21711] Remove site-python support

2014-06-10 Thread Ned Deily
Ned Deily added the comment: The patch has one problem with OS X framework builds. This fixes it: --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -240,7 +240,7 @@ sysconfig.get_config_var("PYTHONFRAMEWORK"), sys.ve

[issue3905] subprocess failing in GUI applications on Windows

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, you did not specify which of the variations you tried ;-) I reproduce as I said in my last message. C:\Programs\Python34>pythonw -m idlelib Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [ >>> import subprocess >>> p = subprocess.Popen(["pytho

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue3905] subprocess failing in GUI applications on Windows

2014-06-10 Thread Mark Lawrence
Mark Lawrence added the comment: *facepalm* looks like I've run it with the wrong exe, sorry about the noise :-( -- ___ Python tracker ___

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: OK then, I'll trust your judgement. I'll use 8K as the default and will commit the patch soon. -- assignee: -> giampaolo.rodola ___ Python tracker

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
New submission from Pablo Acosta: The Greatest Common Divisor (gcd) algorithm sometimes breaks because the modulo operation does not always return a strict integer number, but one very, very close to one. This is enough to drive the algorithm astray from that point on. Example: >> import frac

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
Pablo Acosta added the comment: Actually probably int(round(a%b)) would be better. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue21713] a mistype comment in PC/pyconfig.h

2014-06-10 Thread Joseph Shen
New submission from Joseph Shen: in the source file PC/pyconfig.h at line 393 there is a mistype this is the origin file == /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200. Microsoft eMbedded

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

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I updated the patch to match a change, since you posted this, from 70 to 72 in .def and 'maxformatwidth' to ' limit' in formatparagraph. I also added a 'guard' value of 72 in case GetOption returns None (as it did before I changed the option name). I checked t

[issue21696] Idle: test syntax of configuration files

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The format paragraph entry in main.def is being moved to extensions.def, so don't test for it in main.def. -- nosy: +jesstess ___ Python tracker __

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 001895c39fea by Giampaolo Rodola' in branch 'default': fix issue #17552: add socket.sendfile() method allowing to send a file over a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'· http://hg.python.org/cpython/re

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-06-10 Thread Zachary Ware
Zachary Ware added the comment: Ok, here's another attempt which should address both points you raised, Serhiy. I don't have an East-Asian Windows install to test on (and wouldn't be able to read anything to do the test, anyway!), but I did test with a prefix containing East-Asian characters

[issue17552] Add a new socket.sendfile() method

2014-06-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- keywords: +3.2regression -needs review, patch resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue21712] fractions.gcd failure

2014-06-10 Thread Pablo Acosta
Pablo Acosta added the comment: I will correct myself one more time (hopefully the last): while b: a, b = b, round(a % b, 10) return a a b fractions.gcd proposed_algorithm -- 48

  1   2   >