[issue20167] Exception on IDLE closing

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The above appears to be a system-specific open issue, not a close issue. So it must be a different issue. On my Win7 F:\Python\dev\4\py34\PCbuild>python_d -m idlelib ../Lib/decimal.py F:\Python\dev\4\py34\PCbuild> C:\Programs\Python34>python -m idlelib Lib/d

[issue22580] PyUnicode_Tailmatch documentation does not match signature

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks rather as a bug in C code. There is no need to return Py_ssize_t instead of int. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue20167] Exception on IDLE closing

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On 3.5 the issue is gone, but on 3.4 and 2.7 following traceback are generated: $ ./python -m idlelib.idle Lib/decimal.py Traceback (most recent call last): File "/home/serhiy/py/cpython-3.4/Lib/runpy.py", line 170, in _run_module_as_main "__main__", mo

[issue20167] Exception on IDLE closing

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I forget how to get the third, micro number. tkinter.Tcl().call('info', 'patchlevel') -- ___ Python tracker ___ ___

[issue20167] Exception on IDLE closing

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I know. 3.4.2.rc1 was released over 2 weeks ago and 3.4.2 just yesterday (essentially without change). So you have to delete space again. Since 3.4.1 worked for many people, perhaps you have an ancient version of tk. You can get major/minor number with >>>

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-09 Thread Petri Lehtinen
Petri Lehtinen added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue17204] argparser's subparsers.add_parser() should accept an ArgumentParser

2014-10-09 Thread paul j3
paul j3 added the comment: In the attached patch I modified 'add_parser' to take a 'parser' keyword parameter. If given, it is used as the parser, rather than create a new one. Thus an existing parser, or one created with a custom ArgumentParser class, could be used as a subparser. In thi

[issue5305] imaplib should support international mailbox names

2014-10-09 Thread Hiroaki Kawai
Hiroaki Kawai added the comment: >> the twisted imap API is problematic for imaplib because twisted seems to >> expect its arguments to already be Python unicode. > Could you elaborate on this? As far as I can tell, it works fine: twisted imap4-utf-7 seems to be improved in this 2 years. :-)

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: On Fri, Oct 10, 2014 at 8:49 AM, Rustom Mody wrote: > On Fri, Oct 10, 2014 at 8:46 AM, Terry J. Reedy > wrote: >> >> Terry J. Reedy added the comment: >> >> I verified that problem had returned on Windows as well. It would be good >> to have a test that would fail if

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: On Fri, Oct 10, 2014 at 8:46 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > I verified that problem had returned on Windows as well. It would be good to > have a test that would fail if the tcl error message changed again. > > -- > resolutio

[issue10712] 2to3 fixer for deprecated unittest method names

2014-10-09 Thread R. David Murray
R. David Murray added the comment: I committed this to 2.7 in 9336b470544b but screwed up the copy and paste of the issue number so it didn't auto post. -- nosy: +r.david.murray resolution: -> fixed stage: commit review -> resolved status: open -> closed __

[issue20167] Exception on IDLE closing

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that problem had returned on Windows as well. It would be good to have a test that would fail if the tcl error message changed again. -- resolution: fixed -> stage: needs patch -> test needed versions: +Python 3.5 _

[issue20167] Exception on IDLE closing

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce0316007b21 by Terry Jan Reedy in branch '3.4': Issue #20167: revise condition to accomodate message change. https://hg.python.org/cpython/rev/ce0316007b21 -- ___ Python tracker

[issue20167] Exception on IDLE closing

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem is the change in the exception message between these two lines can't invoke "bind" command: application has been destroyed can't invoke "bind" command: application has been destroyed In your copy of MultiCall.py, line 63-4, change APPLICATION_GONE =

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Larry Hastings
Larry Hastings added the comment: I remember manually setting/unsetting #defines to force alternate compilation paths. But I think there were one or two that I didn't have library support for (testing on Linux and Windows). -- ___ Python tracker <

[issue20167] Exception on IDLE closing

2014-10-09 Thread Rusi
Rusi added the comment: Just confirming: idle 3.4.1-1 on debian testing Start idle3 Open recent file -> some file Close file Close interpreter (and idle) Get this Exception ignored in: > Traceback (most recent call last): File "/usr/lib/python3.4/idlelib/MultiCall.py", line 244, in __del__

[issue7061] Improve turtle module documentation

2014-10-09 Thread R. David Murray
R. David Murray added the comment: If there *is* anything left to do here, new issues should be opened. -- nosy: +r.david.murray resolution: accepted -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue5305] imaplib should support international mailbox names

2014-10-09 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > the twisted imap API is problematic for imaplib because twisted seems to > expect its arguments to already be Python unicode. Could you elaborate on this? As far as I can tell, it works fine: >>> import twisted.mail.imap4 >>> print u"Hello, \N{

[issue14012] Misc tarfile fixes

2014-10-09 Thread R. David Murray
R. David Murray added the comment: The patch no longer applies again. -- assignee: lars.gustaebel -> nosy: +r.david.murray stage: commit review -> needs patch ___ Python tracker ___

[issue13340] list.index does not accept None as start or stop

2014-10-09 Thread R. David Murray
R. David Murray added the comment: Per discussion in the issue, I'm changing this to a bugfix on the message text. If the python-dev discussion resulted (or results in the future) in a desire to change the API, that should be a new issue. -- nosy: +r.david.murray stage: commit review

[issue18176] Builtins documentation refers to old version of UCD.

2014-10-09 Thread R. David Murray
R. David Murray added the comment: I changed my mind and decided to "fix" the PropList reference to also be version specific, since that solves the immediate problem. I opened a new issue for automating the changes, since there are three locations and four URLs, now. --

[issue22593] Automate update of doc references to UCD version when it changes.

2014-10-09 Thread R. David Murray
New submission from R. David Murray: As noted by Alexander in issue 18176, we often forget to update the UCD references in the docs when we switch to a new version. That issue added notes to the makeunicodedata script to list the places that need to be changed; however, it would be even bette

[issue18176] Builtins documentation refers to old version of UCD.

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73a6f121e51a by R David Murray in branch '3.4': #18176: Change generic UCD PropList link to version specific link. https://hg.python.org/cpython/rev/73a6f121e51a New changeset b04b7af14910 by R David Murray in branch 'default': Merge: #18176: Change

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-10-09 Thread Ian Cordasco
Ian Cordasco added the comment: This behaviour is allowed by the RFC but not encouraged. There's a difference between MUST, SHOULD, and MAY Sending this pre-emptively could well cause unexpected errors for users. Changing the default even in 3.5 will make writing compatible code difficult bec

[issue21986] Idle: disable pickleability of user code objects

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Wanting to make sure that a patch does not break Idle makes perfect sense to me. As it turns out, running *any* code from the editor (even empty) works for these patches. Idle compiles the code to a code object *in the Idle process* and if no compile errors,

[issue22493] Deprecate the use of flags not at the start of regular expression

2014-10-09 Thread Matthew Barnett
Matthew Barnett added the comment: I think the simplest and clearest approach from the user's point of view is just to deprecate inline flags that are not at the start of the pattern. In practice, they almost invariably occur at the start anyway, although I do remember once seeing a pattern in

[issue5214] Add KOI8-RU as a known encoding

2014-10-09 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2014-10-09 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22493] Deprecate the use of flags not at the start of regular expression

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here is alternative, much simpler, patch. It deprecates only flags in nested > subpatterns. That sounds a bit random. It wouldn't totally address the discrepancy with regex, would it? MRAB, what do you think on this topic? -- __

[issue22579] Posix module init function name should not be compiler-dependent

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed the change: --- changeset: 92900:c7adad17f663 user:Victor Stinner date:Fri Oct 10 00:09:47 2014 +0200 files: Modules/posixmodule.c Closes #22579: Fix posixmodule.c to support any C compiler on Windows --- Oh, I forgot to me

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 10/10/2014 00:11, Nick Coghlan a écrit : > > Nick Coghlan added the comment: > > If I understand your question correctly, then yes, __package__ should be > used when converting explicit relative imports to absolute ones. > > To write a test, run a submodule

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-09 Thread Nick Coghlan
Nick Coghlan added the comment: If I understand your question correctly, then yes, __package__ should be used when converting explicit relative imports to absolute ones. To write a test, run a submodule that needs the new fallback feature via the -m switch (it will fail if using __name__) -

[issue22592] Drop support of Borland C compiler

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: And now with a patch. -- keywords: +patch Added file: http://bugs.python.org/file36857/drop_borlandc_support.patch ___ Python tracker ___ __

[issue22591] Drop support of MS-DOS

2014-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22592] Drop support of Borland C compiler

2014-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22579] Posix module init function name should not be compiler-dependent

2014-10-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-10-09 Thread Matej Cepl
Matej Cepl added the comment: > In my own case I use os.popen(“wget …”) instead of urllib2 just because some > version long ago failed on some web site. I can trust that this external > tool works all the time. It would be great if urllib2 worked as well > nowadays. I believe that Python

[issue22591] Drop support of MS-DOS

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: Here is my huge patch :-) It only changes osdefs.h. In fact, I expected more code checking for __DJGPP__. For __WATCOMC__, it's unclear for me yet if the code is specific to MS-DOS or to the Watcom compiler. For example, timemodule.c includes to get the dela

[issue22592] Drop support of Borland C compiler

2014-10-09 Thread STINNER Victor
New submission from STINNER Victor: As a follow-up of the issue #22591, I propose to drop support of the Borland C compiler. In 2000, it was nice to support Visual Studio and Borland C++ Builder, because they were the two most popular compilers on Windows. Borland C compiler could also be use

[issue22591] Drop support of MS-DOS

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > AFAIK Borland and Watcom compilers supported Windows. AFAIU Victor only proposes to remove the MSDOS-specific conditionals. But it's hard to tell, since he didn't post a patch ;-) -- nosy: +pitrou ___ Python track

[issue18176] Builtins documentation refers to old version of UCD.

2014-10-09 Thread R. David Murray
R. David Murray added the comment: I committed the stdtypes, lexical_analysis, and Tools changes, updating the version number appropriately in the doc fixes. I'm closing this, and will open a new issue for the PropList.txt problem. -- nosy: +r.david.murray resolution: -> fixed stage:

[issue22591] Drop support of MS-DOS

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > AFAIK Borland and Watcom compilers supported Windows. It looks like Borland C++ Builder 5.5 was released in 2000, 14 years ago. Yes, it supports Windows and MS-DOS, but do we really want to support this very old proprietary compiler? For Watcom, it's a diff

[issue18176] Builtins documentation refers to old version of UCD.

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 303861ce9ead by R David Murray in branch '3.4': #18176: fix another reference and add it to the makeunicodedata comment. https://hg.python.org/cpython/rev/303861ce9ead New changeset e9ec8d622a30 by R David Murray in branch 'default': Merge: #18176:

[issue18176] Builtins documentation refers to old version of UCD.

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7994909c2d by R David Murray in branch '3.4': #18176: updated stdtypes UCD link, added reminder to makeunicodedata. https://hg.python.org/cpython/rev/fd7994909c2d New changeset 2551bdfff335 by R David Murray in branch 'default': Merge: #18176: upd

[issue21986] Idle: disable pickleability of user code objects

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Thank you for your feedback, Terry. 1. IDLE is behaving differently than the builtin interpreter. It should be higher priority, because it leads beginners into believing that code objects are picklable. 2. No, wrapping code objects in a CodePickler with __getsta

[issue21986] Idle: disable pickleability of user code objects

2014-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Pickleability of code objects is inconsistent -> Idle: disable pickleability of user code objects ___ Python tracker ___

[issue22591] Drop support of MS-DOS

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK Borland and Watcom compilers supported Windows. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, my patch is currently using the package's __name__ attribute to build the fully-qualified name. Should it use the package's __package__ attribute instead? -- ___ Python tracker

[issue22579] Posix module init function name should not be compiler-dependent

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > I would remove the "|| defined(__BORLANDC__) || defined(__WATCOMC__) || > defined(__DJGPP__)" part, since it's probably for MSDOS variants of those > compilers. I agree, but IMO it is unrelated to this issue. Jeffrey wants to support a new C compiler (OpenW

[issue22591] Drop support of MS-DOS

2014-10-09 Thread STINNER Victor
New submission from STINNER Victor: In the C code of Python 3.5, there are still preprocessor commands checking for defines: - __BORLANDC__: Borland C compiler - __WATCOMC__: Watcom C compiler - __DJGPP__: MS-DOS port of GCC In 2014, it's time to drop this old code. OS/2 support was already re

[issue21986] Pickleability of code objects is inconsistent

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2. It is normal. The third argument of copyreg.pickle() is not used now. The patch LGTM. -- title: Idle: disable pickleability of user code objects -> Pickleability of code objects is inconsistent ___ Python track

[issue22579] Posix module init function name should not be compiler-dependent

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would remove the "|| defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__)" part, since it's probably for MSDOS variants of those compilers. -- ___ Python tracker

[issue18615] sndhdr.whathdr could return a namedtuple

2014-10-09 Thread R. David Murray
R. David Murray added the comment: Committed. Thanks, Claudiu. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue18615] sndhdr.whathdr could return a namedtuple

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef72142eb8a2 by R David Murray in branch 'default': #18615: Make sndhdr return namedtuples. https://hg.python.org/cpython/rev/ef72142eb8a2 -- nosy: +python-dev ___ Python tracker

[issue22579] Posix module init function name should not be compiler-dependent

2014-10-09 Thread Georg Brandl
Georg Brandl added the comment: There is also #if !defined(__QNX__) #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) #define SEP L'\\' #define ALTSEP L'/' #define MAXPATHLEN 256 #define DELIM L';' #endif #endif in Include/osdefs.h -- nosy:

[issue21986] Idle: disable pickleability of user code objects

2014-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Pickleability of code objects is inconsistent -> Idle: disable pickleability of user code objects ___ Python tracker ___ __

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: The last "official" Open Watcom release (1.9) is indeed quite dated. The codebase was forked for a variety of reasons where development continues: https://github.com/open-watcom/open-watcom-v2 The current development release does indeed build on x86_64 (t

[issue21986] Pickleability of code objects is inconsistent

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here are the issues for me. 1. Except for your interest, this is a lower priority for me that most all of the other 125 Idle issues. 2. I am not familiar with pickling and wonder about the following in the patch. It deletes a statememt copyreg.pickle(type

[issue22588] memory corrupted in test_capi refleaks test

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > but occur systematically with '-R 23:23' or a greater run count. I was able to reproduce the issue. I found that the error came from test_incref_decref_API(). After my change, it looks like test_capi doesn't crash anymore. $ ./python -m test -R 23:23 test_c

[issue22588] memory corrupted in test_capi refleaks test

2014-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d87a6b38422 by Victor Stinner in branch '3.4': Issue #22588: Fix typo in _testcapi.test_incref_decref_API() https://hg.python.org/cpython/rev/5d87a6b38422 -- nosy: +python-dev ___ Python tracker

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, things are ok under 3.x. We'll probably disable our NaN tests under Windows anyway, since they aren't very useful as you point out. -- ___ Python tracker

[issue22588] memory corrupted in test_capi refleaks test

2014-10-09 Thread Stefan Krah
Stefan Krah added the comment: I cannot reproduce this here. Did you run "make distclean" before compiling? -- nosy: +skrah ___ Python tracker ___ ___

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Mark Dickinson
Mark Dickinson added the comment: > we should perhaps produce the right sign bit for each Perhaps. But given that signs of NaNs are pretty much meaningless anyway (the IEEE 754 standard explicitly refuses to attach any meaning to NaN sign bits, and the sign bit of a NaN result is not specifie

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, the fact that we support float('nan') and float('-nan') as producing different bit patterns means we should perhaps produce the right sign bit for each (it seems that's the problem here). >>> import struct >>> struct.pack("d", float("nan")) '\x00\x00\x00

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, apparently it was already reported as issue14521... Well, it's bug in as much as it shows different behaviour across platforms... AFAICT, we try to provide consistent math behaviour despite possible platform variations. -- ___

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > UTIME_TO_UTIMBUF actually still looks dodgy and UTIME_TO_TIME_T is completely > broken. Agreed. It looks like dead code which was never used nor tested. @Jeffrey: Is your patch enough to compile posixmodule.c with OpenWatcom? If it's enough, I will close th

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > I realize nobody here cares about Open Watcom as a supported compiler; the > Python community has made that *abundantly* clear. I only heard once about Open Watcom, maybe 1 or 2 years ago. I see on http://www.openwatcom.org/ that the latest release is 4 year

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Mark Dickinson
Mark Dickinson added the comment: More info: the reason for the difference is that in Python 3.4, float("nan") and float("inf") create the float directly from the appropriate bit-pattern, rather than deferring to the platform's definition of nan. This change was introduced to avoid obscure pr

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Mark Dickinson
Mark Dickinson added the comment: Why do you consider this a bug? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue22590] math.copysign buggy with nan under Windows

2014-10-09 Thread Antoine Pitrou
New submission from Antoine Pitrou: Z:\>c:\Python27\python.exe Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> import math >>> math.copysign(0.0, float("nan")) -0.0 >>> ^Z Z:\>c:\Py

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a refreshed patch: - raising_conversion_error is now raise_conversion_error - the decorator uses functools.wraps - the ConversionError is instantiated with the first argument of the caught expression - the reraising of ConversionError has the exception con

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2014-10-09 Thread Brian Matthews
New submission from Brian Matthews: In the file mimetypes.py the mime type for bmp files should be image/bmp for IE8 and later. the problem is that if the content header for 'nosniff' is set, then the bmp file fails to display due to the incorrect mime type. -- components: IO messages:

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Georg Brandl
Georg Brandl added the comment: I'm sure you've improved the code. Without looking at the hg history, you've likely just inherited the broken C code from the previous version and made it prettier :) Since this breakage has not been reported so far, the last two #elses appear to be a combinati

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2014-10-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue3068] IDLE - Add an extension configuration dialog

2014-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think we should give each extension with options other than 'enablexx' a single 'option-help' option that gives the 'signature' of the extension. I suggest 'option-help', rather than just 'help', as the new 'reserved' option name as being more descriptive a

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Larry Hastings
Larry Hastings added the comment: Georg, you want to take a swing at it, be my guest. The current mess is my doing, and I claim this is an *improvement* over what came before. -- ___ Python tracker __

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2014-10-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the confirmation, Brian. I certainly would not have thought to ask about multiple monitors. -- ___ Python tracker ___ __

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-09 Thread Quentin Pradet
Changes by Quentin Pradet : -- nosy: +Quentin.Pradet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21986] Pickleability of code objects is inconsistent

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Terry, can I do something to move this issue forward? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue18615] sndhdr.whathdr could return a namedtuple

2014-10-09 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22588] memory corrupted in test_capi refleaks test

2014-10-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: This does not happen on tests run with '-R 22:22' or a lower run count, but occur systematically with '-R 23:23' or a greater run count. $ ./python Python 3.5.0a0 (default:1e1c6e306eb4, Oct 9 2014, 19:52:59) [GCC 4.9.1 20140903 (prerelease)] on linux Type "h

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-09 Thread Kevin Keating
Kevin Keating added the comment: I just realized that even the behavior of ntpath.abspath() is inconsistent across platforms. On Windows, ntpath.abspath(None) returns the current working directory. On other OSs, ntpath.abspath(None) raises a TypeError. There are two different abspath defini

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: Georg: Sorry, that wasn't directed at you. Your comment snuck in before mine. It was more general frustration. -- ___ Python tracker ___ _

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-09 Thread Kevin Keating
New submission from Kevin Keating: On Windows, os.path.abspath() treats None as if it were an empty string, so os.path.abspath(None) returns the current working directory. On Linux, os.path.abspath(None) raises an AttributeError. With macpath, abspath(None) raises a TypeError. I've seen thi

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Georg Brandl
Georg Brandl added the comment: Jeffrey: I did not mean to devalue your patch, I just wanted to bring even more issues to Victor's attention. -- ___ Python tracker ___ _

[issue22586] urljoin allow_fragments doesn't work

2014-10-09 Thread Georg Brandl
Georg Brandl added the comment: The "not allowed" should be clarified. What is meant is that if allow_fragments is false, a fragment is parsed as part of the path. This doesn't make a difference for urljoin if the fragment is part of the second part. It does make a difference for the first p

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: My patch merely fixes broken code that wasn't being used by Python's "supported" compilers under most common configurations. It's really independent of compiler. I realize nobody here cares about Open Watcom as a supported compiler; the Python community h

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-09 Thread Georg Brandl
Georg Brandl added the comment: UTIME_TO_UTIMBUF actually still looks dodgy and UTIME_TO_TIME_T is completely broken. * There should be only one "utimbuf" structure, because it already contains both times (see man 2 utime). * UTIME_TO_TIME_T uses a type called "struct timet" which I don't thi

[issue22389] Add contextlib.redirect_stderr()

2014-10-09 Thread Yury Selivanov
Yury Selivanov added the comment: I think that Victor is right, it would be better to have two distinct entries in the docs. Besides that - LGTM. -- ___ Python tracker ___ _

[issue22586] urljoin allow_fragments doesn't work

2014-10-09 Thread Alex Parrill
New submission from Alex Parrill: Passing False to the allow_fragments argument to urljoin doesn't remove fragments. Is this a bug, or am I misunderstanding the allow_fragments parameter? It's not perfectly clear what "fragment identifiers are not allowed" means (strips them out? throws an er

[issue22407] re.LOCALE is nonsensical for Unicode

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is simple patch which just deprecate using of the re.LOCALE flag with str patterns. It also deprecates using of the re.LOCALE flag with the re.ASCII flag (with bytes patterns) and adds some re.LOCALE related tests. -- versions: -Python 2.7, Pyt

[issue21049] Warning at interpreter exit triggers flood of “ImportWarning: sys.meta_path is empty”

2014-10-09 Thread Brett Cannon
Brett Cannon added the comment: I'm already planning to look into this problem in issue #21052 so feel free to follow over there. -- superseder: -> Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path ___ Python tracker

[issue22578] Add additional attributes to re.error

2014-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Matthew for your suggestions. Here is updated patch. -- Added file: http://bugs.python.org/file36852/re_error_attrs3.patch ___ Python tracker __

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

2014-10-09 Thread Ben Hoyt
Ben Hoyt added the comment: I dunno, I'd be happy if you implement this, but it does mean *more* C code, not less. :-) I feel this would be a nice-to-have, but we should get the thing working first, and then do the multiple-OS-calls-in-one optimization. In any case, if you implement this, I th

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

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: > I'm somewhat surprised at the 2-3x numbers you're seeing, as I was > consistently getting 4-5x in the Linux tests I did. But it does depend quite > a bit on what file system you're running, what hardware, whether you're > running in a VM, etc. Still, 2-3x fa

[issue557704] netrc module can't handle all passwords

2014-10-09 Thread Martin Dengler
Martin Dengler added the comment: Sorry for the whitespace-unaware diff. The attached patch is the real one, with the obvious extra level of indentation around the critical "password = lexer.get_token()" line. -- keywords: +patch Added file: http://bugs.python.org/file36851/python-ne

[issue557704] netrc module can't handle all passwords

2014-10-09 Thread Martin Dengler
Martin Dengler added the comment: I know this is ancient, but the below patch handles spaces in passwords in 2.7.8 and 3.4 for me. If this is worth making into a new bug / proper patch I'm happy to do it. $ diff -uw /c/Python278/Lib/netrc.py{-orig,} --- /c/Python278/Lib/netrc.py-orig 201

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-09 Thread STINNER Victor
STINNER Victor added the comment: Here is a first patch for SSL documentation. If the patch looks fine, I will first apply revelant parts to Python 3.4 documentation. -- keywords: +patch Added file: http://bugs.python.org/file36850/ssl_doc.patch ___

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2014-10-09 Thread Brian Keegan
Brian Keegan added the comment: I was also using a dual-screen setup: laptop + external display. On Thu, Oct 9, 2014 at 1:07 AM, Ned Deily wrote: > > Ned Deily added the comment: > > Thanks, Tom, nice writeup! If any of the other people who have seen this > crash are still around, it would be

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

2014-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 09/10/2014 14:35, Ben Hoyt a écrit : > > Anyway, where to from here? Are we agreed given the numbers that -- especially on Linux -- it makes good performance sense to use an all-C approach? I think so, yes. -- __

  1   2   >