[issue11783] email parseaddr and formataddr should be IDNA aware

2014-06-10 Thread Milan Oberkirch
Milan Oberkirch added the comment: Ping :) -- nosy: +zvyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue21703] IDLE: Test UndoDelegator

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: cls.percolator.close() cut leaks in half. test_idle leaked [237, 237, 237, 237] references, sum=948 test_idle leaked [95, 97, 97, 97] memory blocks, sum=386 test_idle leaked [130, 130, 130, 130] references, sum=520 test_idle leaked [60, 62, 62, 62] memory block

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2014-06-10 Thread Thomas Klausner
Changes by Thomas Klausner : -- nosy: +wiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21624] Idle: polish htests

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Refinement 1: in doing coverage for UndoDelegator, I noticed that the htest function is counted as missing (uncovered). Both of the following in .coveragerc work to ignore the block: name prefix; comment suffix. def htest_.*: .*# htest # The sec

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Dmitry Korchemny
Dmitry Korchemny added the comment: I think that the situation when you want start numbering from 0 is rather common, especially when you need to define bit fields as enumeration or when you need to implement an interface with other languages (e.g., C). --

[issue21715] Chaining exceptions at C level

2014-06-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch introduces new private function which chains previously fetched and current exceptions. This will help in correct implementing at C level an equivalent of following Python idioms: try: ... finally: ... and t

[issue21714] Path.with_name can construct invalid paths

2014-06-10 Thread Antony Lee
New submission from Antony Lee: Path.with_name can be used to construct paths containing slashes as name contents (rather than as separators), as demonstrated below. $ python -c 'from pathlib import Path; print(Path("foo").with_name("bar/baz").name)' bar/baz This should be changed to either r

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

2014-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine. Perhaps this non-trivial code for chaining exceptions (repeated at least three times) should be extracted to separate function. -- status: open -> closed ___ Python tracker

[issue21712] fractions.gcd failure

2014-06-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

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

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a98fd4eeed40 by Serhiy Storchaka in branch '3.4': PyErr_NormalizeException doesn't like being called with an exception set http://hg.python.org/cpython/rev/a98fd4eeed40 New changeset 55c50c570098 by Serhiy Storchaka in branch 'default': PyErr_Normal

[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a98fd4eeed40 by Serhiy Storchaka in branch '3.4': PyErr_NormalizeException doesn't like being called with an exception set http://hg.python.org/cpython/rev/a98fd4eeed40 New changeset 55c50c570098 by Serhiy Storchaka in branch 'default': PyErr_Normal

[issue21712] fractions.gcd failure

2014-06-10 Thread Tim Peters
Tim Peters added the comment: The gcd function is documented as taking two integer arguments: "Return the greatest common divisor of the integers a and b." I'm -0 on generalizing it, and also -0 on burning cycles to enforce the restriction to integer arguments. It's just silly ;-) --

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

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Backwards from default was the old, svn way. We hg we merge forward within 3.x. "ready to commit to 3.4 and merge to 3.5.". If you started with 3.5, then you would have to do a null merge of the 3.4 patch into 3.5. It is occasionally done when people decide to

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

2014-06-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +steve.dower, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21712] fractions.gcd failure

2014-06-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2014-06-10 Thread Tal Einat
Tal Einat added the comment: Thanks for reviewing this Terry! See two small comments in the review of your patch. Indeed, I would very much like for this to be my first commit. Thanks for the pointer WRT backporting to 2.7. Just to make sure, I should commit to 3.5 (default) and then backport

[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

[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 ___ __

[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 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

[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 __

[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

[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

[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

[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

[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

[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 ___

[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 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

[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

[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

[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

[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

[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

[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

[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

[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 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 _

[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

[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.

[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 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 ___

[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 ___ __

[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 _

[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

[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 __

[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

[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

[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

[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 ___

[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) --

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 __

[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

[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),

[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
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

[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. --

[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

[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 ___ ___

[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

[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

[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 ___

[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

[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

[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

[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

[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

[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 ___ __

[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 ___ ___

[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

[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

[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

[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 ...

[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 ___ ___

[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: 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

[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

[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

[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

  1   2   >