[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-28 Thread Syou Ei
Syou Ei added the comment: http://bugs.python.org/issue21602 The smtplib.py also has the same problem. The EINTR cannot be handled properly. -- nosy: +meishao ___ Python tracker ___

[issue21477] Idle: improve idle_test.htest

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, this patch includes a call to macosxSupport. _initializeTkVariantTests(root) in htest.run. Does this work on mac or is something else needed (like doing the same for individual tests that create another root)? --

[issue21477] Idle: improve idle_test.htest

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90dab7696e89 by Terry Jan Reedy in branch '2.7': Issue #21477: Add htests for GrepDialog, UndoDelegator, and configDialog. http://hg.python.org/cpython/rev/90dab7696e89 New changeset d90905960803 by Terry Jan Reedy in branch '3.4': Issue #21477: Add

[issue21602] smtplib.py socket.create_connection() also doesn't handle EINTR properly

2014-05-28 Thread Syou Ei
New submission from Syou Ei: The smtplib.py also has the same problem. The EINTR cannot be handled properly. 2014-05-21 19:20:15,631 ERROR actions: Notification 'socket_noti' FAILED to send emails to set(['mailt...@tscoss.com']): - [Errno 4] Interrupted system calltrace:Traceback (most recent

[issue21601] Cancel method for Asyncio Task is not documented

2014-05-28 Thread Vajrasky Kok
New submission from Vajrasky Kok: https://docs.python.org/3.5/library/asyncio-task.html#task The cancel method is not documented although it is a part of public API. Here is the patch to fix the doc. -- assignee: docs@python components: Documentation files: fix_doc_asyncio_task.patch k

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2014-05-28 Thread paul j3
paul j3 added the comment: This is not getting much attention for several reasons: - there's quite a backlog of argparse patches and issues - 'set_defaults' is not commonly used. Setting default in 'add_argument' seems more common. - defining the same argument for both the parser and subpars

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-05-28 Thread fumihiko kakuma
New submission from fumihiko kakuma: It seems that stopall doesn't work when do start patch.dict to sys.modules. I show sample scripts the following. Using stopall test case seems to always refer the first mock foo object. But using stop it refers a new mock foo object. $ cat test_sampmod.py im

[issue17172] Add turtledemo to IDLE menu

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I withdraw my suggestion that turtledemo get anything added just for moving code to Idle. What is does need is the ability to widen the code pane so one can more easily read or cut (by normal means). See #21597. One of my concerns about putting turtledemo on t

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Yeah, I remember I tried to improve the performance of the median in the past using median-of-k algorithm. But too bad I could not beat sorted C function efficiency. Maybe you have a better luck! -- nosy: +vajrasky __

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

2014-05-28 Thread Vajrasky Kok
New submission from Vajrasky Kok: In Lib/asyncio/base_events.py, we have these lines of code: --- def attach(self, transport): assert self.sockets is not None self.active_count += 1 def detach(self, transport):

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
Santoso Wijaya added the comment: Hm. The docstring for __getitem__ doesn't mention it can/should be accepting slice object as argument. That's what I'm missing. Doc patch? -- ___ Python tracker __

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
New submission from Santoso Wijaya: The reference doc for Python data model says that __getslice__ is deprecated [1], and that __getitem__ should be used instead: """ Deprecated since version 2.0: Support slice objects as parameters to the __getitem__() method. (However, built-in types in CPy

[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2014-05-28 Thread Graham Oliver
Graham Oliver added the comment: hello I came across this bug when using 'ā' in a url To get around the problem I used the 'URL encoded' version '%C4%81' instead of 'ā' See this page http://www.charbase.com/0101-unicode-latin-small-letter-a-with-macron I tried using the 'puny code' for 'ā' 'xn--

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Wed, May 28, 2014 at 02:43:29PM +, Thomas Dybdahl Ahle wrote: > I have written some proof of concept code here [1], I would appreciate > you commenting on it, before I turn it into a patch, as I haven't > contributed code to Python before. Thanks Thom

[issue21585] Run Tkinter tests with wantobjects=False

2014-05-28 Thread Lita Cho
Changes by Lita Cho : Added file: http://bugs.python.org/file35395/test_ttk_guionly_wantobj.py ___ Python tracker ___ ___ Python-bugs-list mai

[issue21585] Run Tkinter tests with wantobjects=False

2014-05-28 Thread Lita Cho
Lita Cho added the comment: Patches lived in my Linux machine. I've attached my patch. I will add my module next. -- keywords: +patch Added file: http://bugs.python.org/file35394/test_wantobj.patch ___ Python tracker

[issue21585] Run Tkinter tests with wantobjects=False

2014-05-28 Thread Lita Cho
Lita Cho added the comment: So I don't know what the best way to do this, but I changed the widget_tests.py in order to set tkinter.wantobjects = 0 if a 'wantobjects' flag was passed through test.support.use_resources. Then I added a new test called test_ttk_guionly_wantobj, where it turns on

[issue21252] Lib/asyncio/events.py has tons of docstrings which are just "XXX"

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to address Guido's remarks. FYI I copied the documentation from the Doc repository and Lib/asyncio/unix_events.py (for "child watchers"), and so I copied typos :-) I tried to fix all copies of the documentation in my new patch. I didn't mention

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Guido van Rossum added the comment: Hrm. I've always thought that the key point of cooperative MI was the term *cooperative*. Consider a regular (non-constructor) method. You must have a common base class that defines this method, and *that* method shouldn't be calling the super-method (becaus

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

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: I proposed a patch upstream (in Tulip) to solve this issue: http://code.google.com/p/tulip/issues/detail?id=169 -- nosy: +haypo ___ Python tracker _

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-05-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17172] Add turtledemo to IDLE menu

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0. My general interest is in running external programs and in particular, for this issue, python modules intended to be run as main. Some other scripts I would like to be able to easily launch from Idle include List/test.test_idle.py, Tools/Scripts/patchcheck.

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-05-28 Thread Martin Panter
Martin Panter added the comment: Thanks for looking at this. Originally the issue was found by reading the GIF and PNG images on various web pages, such as . However I was also able to produce the problem with the other formats of th

[issue13451] sched.py: speedup cancel() method

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: > Serhiy, perhaps it would be useful to see if such optimizations can apply to > Tulip's (or asyncio's) event loop, since it will probably be the new standard > in 3.4. asyncio was designed differently. Cancelling a task doesn't remove it from a list of pendi

[issue15014] smtplib: add support for arbitrary auth methods

2014-05-28 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: +jesstess ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue15014] smtplib: add support for arbitrary auth methods

2014-05-28 Thread Milan Oberkirch
Milan Oberkirch added the comment: Done. -- Added file: http://bugs.python.org/file35392/smtplib_auth.patch ___ Python tracker ___ ___

[issue21454] asyncio's loop.connect_read_pipe makes pipes non-blocking contrary to the documentation

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: Yes, the documentation was wrong. It should now be fixed. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue21454] asyncio's loop.connect_read_pipe makes pipes non-blocking contrary to the documentation

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16f399588b2a by Victor Stinner in branch '3.4': Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc http://hg.python.org/cpython/rev/16f399588b2a New changeset 8391f99208f6 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21454: F

[issue21443] asyncio logging documentation clarifications

2014-05-28 Thread Guido van Rossum
Guido van Rossum added the comment: Good idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21443] asyncio logging documentation clarifications

2014-05-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker ___ ___ Python-bugs-l

[issue21376] asyncio docs refer to wrong TimeoutError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report. In fact, asyncio.TimeoutError was not documented at all. It should now be fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue21376] asyncio docs refer to wrong TimeoutError

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d90e8df01f4 by Victor Stinner in branch '3.4': Issue #21376: document asyncio.TimeoutError http://hg.python.org/cpython/rev/6d90e8df01f4 New changeset 03bb1077b362 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21376: document asyncio.Ti

[issue21252] Lib/asyncio/events.py has tons of docstrings which are just "XXX"

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: A first patch to fill remaining XXX docstring of events.py. -- keywords: +patch Added file: http://bugs.python.org/file35391/asyncio_events_docstring.patch ___ Python tracker _

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

2014-05-28 Thread Maciej Szulik
Maciej Szulik added the comment: I'm attaching file issue19662_v1.patch. David please have a look at it and let me know if this is it, if not I'm waiting for your suggestions. -- Added file: http://bugs.python.org/file35390/issue19662_v1.patch ___ Py

[issue21119] asyncio create_connection resource warning

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: Can someone review close-3.patch please? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: Based on the example above, I've created a blog post to publish my recommendation for overriding these special methods in a way that's safe regardless of the parent implementation, given the status quo: http://blog.jaraco.com/2014/05/how-to-safely-override-in

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-05-28 Thread paul j3
paul j3 added the comment: In http://bugs.python.org/issue11588#msg212243 I explore the option of using decorators to 'register' custom functions with the parser. There I was adding exclusive/inclusive tests, but the same approach could be used to register custom types and actions. I should

[issue777588] asyncore is broken for windows if connection is refused

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: This issue was opened 11 years ago, when Windows 95, 98, Me, 2000 and XP were used. Python is going to drop support of Windows XP, and most older versions are already no more supported. Does this issue still exist in recent Windows versions? I'm not aware of s

[issue1641] asyncore delayed calls feature

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: asyncore documentation now starts with this note (which was approved by the asyncore maintainer): "This module exists for backwards compatibility only. For new code we recommend using asyncio." Since asyncio is now part of the stdlib, I don't think that it's w

[issue20430] Make argparse.SUPPRESS work as an argument "dest"

2014-05-28 Thread paul j3
paul j3 added the comment: In the attached file I tried another approach - a custom Action class. It gives you the custom behavior now, instead of 2-3 releases in the future. class Action2(Action): # custom action def __init__(self, *args, **kwargs): super(Actio

[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: BaseProactorEventLoop._loop_self_reading() uses an overlapped read of 4096 bytes. I don't understand how it wakes up the event loop. When the operation is done, _loop_self_reading() is scheduled with call_soon() by the Future object. Is it enough to wake up th

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: Maybe I should have focused on a more trivial example to demonstrate the place where my expectation was violated. The use of a real-world example is distracting from my intended point. Consider instead this abstract example: class SomeClass(SomeParentClass):

[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: "Exception ignored when trying to write to the signal wakeup fd" message comes from the signal handler in Modules/signalmodule.c. The problem is that Python gets a lot of SIGCHLD signals (the test scripts creates +300 processes per second on my computer). The

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. 3.3 is in security fixes only mode and shutdowning mechanism was changed in 3.4. 2. Looks as some Tk root was not explicitly destroyed and deleted during shutdown stage. 3. Tk.destroy does nothing with images, it destroys only subcomponents and commands

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-05-28 Thread Stefan Krah
Stefan Krah added the comment: Sunny, is there a definition of "visible positional fields"? Currently, it seems to me that in os.stat_result we have the opposite problem, namely "visible non-positional" fields: For example, st_atime_ns is visible but not indexable: os.stat_result(st_mode=33188,

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

2014-05-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker ___ ___ Python-bugs-l

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2014-05-28 Thread Samuel Bronson
Changes by Samuel Bronson : -- nosy: +SamB ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21597] Allow turtledemo code pane to get wider.

2014-05-28 Thread Terry J. Reedy
New submission from Terry J. Reedy: Turtledemo (python -m turtledemo) has a text pane for code and a canvas pane for the actual demo. The code pane is fixed at about 60% of the width needed to display full-width code lines. If the window is expanded horizontally, all the expansion goes to the

[issue18132] buttons in turtledemo disappear on small screens

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On my widescreen, the buttons are completely gone when I shrink vertically to about 720 pixels. So they must be gone on a 600x800 screen or 720x1280 small widescreen and perhaps on a non-fullscreen window on a 780x10xx screen. I agree with fixing this if possi

[issue21585] Run Tkinter tests with wantobjects=False

2014-05-28 Thread Lita Cho
Changes by Lita Cho : -- nosy: +Lita.Cho, jesstess ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: My worry about the patch is that is is a bandage covering up a problem elsewhere. 1. You indicate that you only have a problem with your custom build, but not on a standard build. This seems odd. Perhaps the problem is with your build. 2. turtledemo.__main__

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, I didn't realize why __new__ was being used. But what Jason's code is doing isn't any cleaner than monkey-patching. -- ___ Python tracker __

[issue21477] Idle: improve idle_test.htest

2014-05-28 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35387/htest-28052014-27.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue21477] Idle: improve idle_test.htest

2014-05-28 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Summary for htest-28052014-34.diff and htest-28052014-27.diff 1. Add htest for GrepDialog,UndoDelegator and configDialog 2. Makes changes to the way the help string is displayed. The label has been replaced by a text widget made to look like a label, and a

[issue20689] socket.AddressFamily is absent in pydoc output

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We should discuss this suggestion on Python-Dev. It affects the use of enums in other modules. -- ___ Python tracker ___

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

2014-05-28 Thread Sebastian Kreft
New submission from Sebastian Kreft: Passing an empty list/set of futures to asyncio.wait raises an Exception, which is a little annoying in some use cases. Probably this was the intended behavior as I see there's a test case for that. If such, then I would propose to document that behavior.

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it would be easy to restore this behavior on Posix. -- keywords: +easy stage: -> needs patch ___ Python tracker ___

[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread Sebastian Kreft
New submission from Sebastian Kreft: Using the asyncio.create_subprocess_exec, generates lost of internal error messages. These messages are: Exception ignored when trying to write to the signal wakeup fd: BlockingIOError: [Errno 11] Resource temporarily unavailable Getting the messages depene

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All works to me. >>> import tkinter >>> b = tkinter.Button() >>> with open('Lib/test/imghdrdata/python.gif', 'rb') as f: data = f.read() ... >>> img = tkinter.PhotoImage(data=data) >>> b['image'] = img >>> b.pack() Could you please provide an example which d

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: "I don't know if that is expected, but IMO I think it would be better to just block until the required numbers of fds are available." Does it mean that it can block forever? It sounds strange to try to make such error silent. Why not retrying in case of such

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-05-28 Thread Sebastian Kreft
New submission from Sebastian Kreft: In some cases asyncio.create_subprocess_exec raises an OSError because there are no file descriptors available. I don't know if that is expected, but IMO I think it would be better to just block until the required numbers of fds are available. Otherwise one

[issue21343] os.path.relpath returns inconsistent types

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK. I say the original issue is not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Claudiu. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Stephen. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95207bcd8298 by Serhiy Storchaka in branch '3.4': Restore performance of some dumb database methods (regression introduced by #19385). http://hg.python.org/cpython/rev/95207bcd8298 New changeset 2e59e0b579e5 by Serhiy Storchaka in branch 'default':

[issue21493] Add test for ntpath.expanduser

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Claudiu. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 2.7, Python 3.4 ___ Python tracker ___ _

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e5c65719c12 by Serhiy Storchaka in branch '2.7': Issue #21402: tkinter.ttk now works when default root window is not set. http://hg.python.org/cpython/rev/8e5c65719c12 New changeset 4a0987b8f630 by Serhiy Storchaka in branch '3.4': Issue #21402: tk

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Eric Snow
Eric Snow added the comment: > If you don't know enough about the base class you shouldn't be subclassing it. That's important when overriding any API in subclass and absolutely always essential when it comes to __new__ and __init__! That's something that isn't very obvious at first. :( > In t

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-28 Thread Claudiu.Popa
Claudiu.Popa added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From what I see, you do not need to change either __new__ or __init__, just >add __enter__ and __exit__ , and you only need to do that in 2.6. Since >Zipfile is written in Python, you could monkey-patch instead of subclassing, >if that is easier in your parti

[issue21493] Add test for ntpath.expanduser

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e599b301ebd by Serhiy Storchaka in branch '2.7': Issue #21493: Added test for ntpath.expanduser(). Original patch by http://hg.python.org/cpython/rev/5e599b301ebd New changeset a981a088512c by Serhiy Storchaka in branch '3.4': Issue #21493: Added

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-28 Thread Марк Коренберг
Марк Коренберг added the comment: why not to make tmpfileobj.delete as property that really sets self._closer.delete ? this will fix my problem. -- ___ Python tracker ___ __

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-28 Thread Марк Коренберг
Марк Коренберг added the comment: So, maybe API change? like delete=True|False|Maybe ? don't think that this is good decisions. My approach is based on ext4 behaviour about delayed allocation and atomic file replacements. In my case, either old file (with contents) or new file appear. In any c

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Guido van Rossum added the comment: If you don't know enough about the base class you shouldn't be subclassing it. In this particular case you should be overriding __init__, not __new__. -- ___ Python tracker __

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg219255 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg219253 ___ Python tracker ___ ___ Python-bugs-list maili

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Thomas Dybdahl Ahle
Thomas Dybdahl Ahle added the comment: I have written some proof of concept code here [1], I would appreciate you commenting on it, before I turn it into a patch, as I haven't contributed code to Python before. I have tried to write it as efficiently as possible, but it is of course possible

[issue21593] Clarify re.search documentation first match

2014-05-28 Thread Joshua Landau
New submission from Joshua Landau: The documentation for re.search does not state that it returns the first match. This should be added, or a clarification added if this is implementation-defined. https://docs.python.org/3/library/re.html#re.search --- See also http://stackoverflow.com/ques

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK, O_TMPFILE is not related. But Windows is related. -- ___ Python tracker ___ ___ Python-bugs-li

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

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Lita Cho, originally reported issue is fixed. I asked Martin (and Guilherme if he is here). Are you agree to close this issue? See issue21585 about extending testing. -- ___ Python tracker

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

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c69e8ea3bf10 by Serhiy Storchaka in branch 'default': Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by http://hg.python.org/cpython/rev/c69e8ea3bf10 -- ___ Python tracker

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Peter Otten
Changes by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Brett Cannon
Brett Cannon added the comment: I actually stopped development of a pure Python zip importer so it won't be in Python 3.5 either (http://bugs.python.org/issue17630). The motivation simply wasn't there if zipimport is going to be sticking around for bootstrapping reasons. This can still get fix

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +steven.daprano stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Thomas Dybdahl Ahle
New submission from Thomas Dybdahl Ahle: The statistics module currently contains the following comment: "FIXME: investigate ways to calculate medians without sorting? Quickselect?" This is important, because users expect standard library functions to use state of the art implementations, and

[issue20430] Make argparse.SUPPRESS work as an argument "dest"

2014-05-28 Thread jzwinck
jzwinck added the comment: Yes, I have a practical need for dest=SUPPRESS. One of the reasons is basically what you said: to implement things analogous to --help. In those cases you want to be able to invoke a function (e.g. via type=myfunc) but not store anything. Or you may need to ignore

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Thomas Heller
Thomas Heller added the comment: > As for progress, the answer is no as the hope is to eventually replace > zipimport with something in pure Python thanks to importlib. Does this mean there is no chance to put this into 3.4 and 3.3, do we really have to wait until 3.5 with it's pure-python zipi

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-05-28 Thread Karl Richter
Karl Richter added the comment: @paul.j3 That's interesting [1]. Documenting argparse.register seems crucial to me (-> reopen or file a new request?). After dealing more with the very sophisticated and complex functionality of argparse I'm sure that this is the only use case where such an uni

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Claudiu for your contribution. But please be more careful, your patches contained trailing whitespaces. Thank you Paul for your report. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed __

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e2833ae1718 by Serhiy Storchaka in branch '2.7': Issue #10203: sqlite3.Row now truly supports sequence protocol. In particular http://hg.python.org/cpython/rev/6e2833ae1718 New changeset 6af865f1a59d by Serhiy Storchaka in branch '3.4': Issue #102

[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-05-28 Thread Robert Jordens
New submission from Robert Jordens: According to the documentation the "exec a in b, c" is equivalent to "exec(a, b, c)". But in the testcase below the tuple form causes a SyntaxError while the statement form works fine. diff -r e770d8c4291c Lib/test/test_compile.py --- a/Lib/test/test_compil

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-28 Thread Vinay Sajip
Vinay Sajip added the comment: I've made the change - not exactly the same as your patch, which was missing an os.chmod() and doing an unnecessary os.path.join() - but thanks for submitting a patch :-). However, note that on 64-bit Linux systems (actually any POSIX other than OS X) a symlink

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce1b8b2ddf07 by Vinay Sajip in branch '3.4': Issue #18807: If copying (no symlinks) specified for a venv, then the python interpreter aliases (python, python3) are now created by copying rather than symlinking. http://hg.python.org/cpython/rev/ce1b