[issue8970] Tkinter Litmus Test

2010-06-11 Thread Rick Johnson
New submission from Rick Johnson : There has been much discussion in the past and recently on c.l.p about how many python programmers *actually* use Tkinter. Recently i have been involved in a lengthy discussion on c.l.p about whether or not we should remove Tkinter, replace Tkinter, or fix Tk

[issue8971] Tkinter Litmus Test

2010-06-11 Thread Rick Johnson
New submission from Rick Johnson : There has been much discussion in the past and recently on c.l.p about how many python programmers *actually* use Tkinter. Recently i have been involved in a lengthy discussion on c.l.p about whether or not we should remove Tkinter, replace Tkinter, or fix Tk

[issue8970] Tkinter Litmus Test

2010-06-11 Thread Rick Johnson
Changes by Rick Johnson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8954] wininst regression: errors when building on linux

2010-06-11 Thread anatoly techtonik
anatoly techtonik added the comment: $ python setup.py build bdist_wininst running build running build_py running bdist_wininst installing to build/bdist.linux-i686/wininst running install_lib creating build/bdist.linux-i686/wininst creating build/bdist.linux-i686/wininst/PURELIB copying build/l

[issue8970] Tkinter Litmus Test

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate superseder: -> Tkinter Litmus Test ___ Python tracker ___ ___ Python-bugs-list m

[issue8924] Error in error message in logging

2010-06-11 Thread Peter Landgren
Peter Landgren added the comment: Answer to your first question: - The variable s is of type 'unicode' - The variable record.exc_text, which is what Formatter.formatException returns, is of type 'str' For your second question; I'm not a python expert, so I can't follow you there. I don't know

[issue8954] wininst regression: errors when building on linux

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: The error comes from the msvccompiler module, which shouldn’t get used on non-Windows platforms unless I’m mistaken. Reading the module, I’m not sure at all this command was meant to be run on not-Windows OSes. -- nosy: +merwok _

[issue8954] wininst regression: errors when building on linux

2010-06-11 Thread anatoly techtonik
anatoly techtonik added the comment: It did run ok on non-Windows OSes with previous Python versions. -- ___ Python tracker ___ ___ Py

[issue2892] improve cElementTree iterparse error handling

2010-06-11 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Here is a small test case that demonstrates the problem, expected behavior and actual behavior: {{{ for ev in xml.etree.cElementTree.iterparse(StringIO('rubbish'), events=('start', 'end')): print ev }}} The above code should first print the two events (st

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: I am willing to maintain the maintainers file for 2.x with due diligence for the coming years. I think it has proven useful, and would like to see it in 2.6 up to 3.2 (all current four branches, since it’s arguably a documentation issue). Do I need to find a uni

[issue8188] Unified hash for numeric types.

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Committed the Decimal-to-Fraction comparisons in r81893. All numeric types should now compare nicely with each other. -- ___ Python tracker __

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-11 Thread Lars Gustäbel
Lars Gustäbel added the comment: I found the problem. As of r76780 the default for the TarFile.errorlevel argument changed from 0 (suppress errors and write them to the debug log instead) to 1 (raise exceptions for fatal extraction errors). This change was not backported to the 2.6 branch bac

[issue8971] Tkinter Litmus Test

2010-06-11 Thread R. David Murray
R. David Murray added the comment: Everyone who uses IDLE uses TKInter, and a lot of people use IDLE. In any case, any such proposal should be discussed on python-ideas first, followed by python-dev if you actually get a consensus about it. -- nosy: +r.david.murray resolution: -> rej

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file17626/issue8947.patch ___ Python tracker ___

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch, taking into account comments from merwok and exarkun on #python-dev: - remove doctests for infinity and nan, replace with a sentence explaining what happens for such inputs. - replace 'snAN' with saner spelling 'snan'. -- Added fil

[issue8972] subprocess.list2cmdline doesn't quote the & character

2010-06-11 Thread shypike
New submission from shypike : subprocess.py/list2cmdline should also put double quotes around strings that contain ampersands (&), but no spaces. If not, the Windows command processor will split the command into two separate parts. In short, '&' needs the same treatment as '|'. -- comp

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not sure if I missed this in the earlier discussion: is there a reason to prevent subclassing of timezone? -- ___ Python tracker ___ _

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Some comments from playing with this patch (without having looked at the implementation): - As noted above, the 'timezone' class can't be subclassed. Is this deliberate? I notice that Brett said "let users subclass as needed to add DST support" in msg10700

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: One more: there's a footnote marked in the docs (line 36 of datetime.rst), but no corresponding footnote as far as I can see. -- ___ Python tracker ___

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: And another minor doc issue: the docs still say: "The datetime module does not supply any concrete subclasses of tzinfo." -- ___ Python tracker __

[issue6641] strptime doesn't support %z format ?

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: It's a little awkward to review this patch independently of the issue 5094 patch. Can we work on issue 5094 first, and then come back to this one? -- ___ Python tracker _

[issue3129] struct allows repeat spec. without a format specifier

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch; I'll take a look. -- assignee: belopolsky -> mark.dickinson nosy: +mark.dickinson ___ Python tracker ___ _

[issue1697943] msgfmt cannot cope with BOM

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jun 11, 2010 at 10:23 AM, Mark Dickinson wrote: .. > Some comments from playing with this patch (without having looked at the > implementation): > thank you very much for your comments. As we are fine-tuning the timezone class, do you think it w

[issue8515] idle "Run Module" (F5) does not set __file__ variable

2010-06-11 Thread Tal Einat
Tal Einat added the comment: I believe IDLE runs modules via execfile(), so I would expect the behavior to be similar, and execfile() does not set __file__. Doing "Run Module" is also IMO equivalent to doing execfile(), so this behavior retains consistency. However, I would expect __file__ to

[issue3129] struct allows repeat spec. without a format specifier

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Patch looks great! Please apply (with suitable Misc/NEWS entry). Since the bug is fairly harmless, I think it's fine just to apply this to py3k, and not to backport to 2.x or to 3.1. I also noticed some dependence on undefined behaviour in prepare_s, but I

[issue3129] struct allows repeat spec. without a format specifier

2010-06-11 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> belopolsky resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-l

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have to stop replying to emails. There is no reason behind roundup remove ">" comments logic. Reposting my message: """ On Fri, Jun 11, 2010 at 10:23 AM, Mark Dickinson wrote: .. > Some comments from playing with this patch (without having looked a

[issue6641] strptime doesn't support %z format ?

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jun 11, 2010 at 10:43 AM, Mark Dickinson wrote: .. > It's a little awkward to review this patch independently of the issue 5094 > patch. >  Can we work on issue 5094 first, and then come back to this one? Sure. Unfortunately, I think I fixed a

[issue8973] Inconsistent docstrings in struct module

2010-06-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Module level pack, unpack etc. methods have similar functionality with Struct instance methods, but docs are different. The immediate issue is the lack of signature in the module level methods' docstrings. $ ./python.exe -m pydoc struct.Struct.pack

[issue8973] Inconsistent docstrings in struct module

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Two more bits: 1. "See struct.__doc__", while technically correct, is not user friendly. If you copy struct.__doc__ to >>> prompt, you get an ugly repr of a multiline string. I suggest s/struct.__doc__/help(struct)/. 2. For some reason struct.Struct

[issue8973] Inconsistent docstrings in struct module

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the reports; I'll look at this a little later. -- assignee: -> mark.dickinson ___ Python tracker ___ __

[issue5464] msgfmt.py does not work with plural form

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8502] proposal: encourage xgettext rather than pygettext.py in gettext docs

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Does the fixing of #5464 solve your problem? -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-li

[issue2504] Add gettext.pgettext() and variants support

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: The patch needs to be updated for the 3.x trunk (py3k branch), since the last 2.x version is already rc. Everyone, thanks for expressing interest for the development of Python, but posting “me too” messages does not further the discussion, and actually takes ti

[issue4391] optparse: use proper gettext plurals forms

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your patch. I have some remarks: 1) please produce a patch from the top level of a Python checkout (cf. http://www.python.org/dev/patches/); 2) wrap lines under 80 characters; 3) bug with %-formatting: the singular message takes one arg, the plural two

[issue1288056] pygettext - provide comments to help translators

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Translator comments seem to me nicer than contexts (http://bugs.python.org/issue2504), but I’m not sure which one is recommended when they overlap. I’m -1 on the same line restriction. Python style is to put comments on the previous line. The 2.x line does not

[issue8974] svnmerge errors in msgfmt.py

2010-06-11 Thread Éric Araujo
New submission from Éric Araujo : svnmerge for r81698 introduced incorrect print(sys.stderr, ...) calls. Attached patch fixes it. Apply with patch -p1. -- assignee: loewis components: Demos and Tools files: strange-print.diff keywords: patch messages: 107563 nosy: loewis, merwok priorit

[issue8975] Bug in cookiejar

2010-06-11 Thread Popa Claudiu
New submission from Popa Claudiu : Hello. This is my first report, sorry if I won't do it right. I found a bug in cookielib, which looks like this(a traceback): """C:\Python31\lib\http\cookiejar.py:1586: UserWarning: http.cookiejar bug! Traceback (most recent call last): File "C:\Python31\lib\

[issue8975] Bug in cookiejar

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your report. Can you copy the code provoking the bug? -- nosy: +merwok ___ Python tracker ___ __

[issue8971] Tkinter Litmus Test

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok resolution: rejected -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list m

[issue8971] Tkinter Litmus Test

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8971] Tkinter Litmus Test

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8975] Bug in cookiejar

2010-06-11 Thread Popa Claudiu
Popa Claudiu added the comment: """CHttp.__init__(self,1,proxy = shared.setts.currentGoogleProxy) self.timeout = shared.setts.cGglHttpTimeout self.proxy = globShare.currentGoogleProxy[globShare.currentGoogleIndex] if self.proxy:

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file16853/maintainers.rst ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file16854/maintainers.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file17629/maintainers.rst ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file17630/maintainers.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Updating the files. haypo, your move! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8975] Bug in cookiejar

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Could you provide a minimal usable script? We can’t run your excerpt to reproduce the bug, and reproducing is the first step to debugging. I think we’ll also need the site address, or the cookie header, or the cookies file that provoke the bug. -- ___

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a new patch, issue5094e.diff which addresses most of Mark's comments. I left out repr() because two opinions were voiced on IRC with respect to datetime. prefix. I would like to give it some more thought even though I am leaning towards

[issue6608] asctime does not check its input

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Downgrading further. If anyone has interest in supplying a patch, please step in. Otherwise I plan to add a note to documentation and leave the code as is. -- priority: critical -> low title: asctime causing python to crash -> asctime does not

[issue3129] struct allows repeat spec. without a format specifier

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: On second thoughts, I think I *would* like to see this backported to 2.7. Not to the maintenance branches, though. -- ___ Python tracker ___ _

[issue6608] asctime does not check its input

2010-06-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm... it's still a crash, though. I really think this should be fixed. Crashing on invalid input is bad. -- type: behavior -> crash ___ Python tracker ___

[issue8976] subprocess module causes segmentation fault

2010-06-11 Thread Chris Blazick
New submission from Chris Blazick : platform: Linux x86_64 (CentOS) kernel: 2.6.18-128.1.10.el5.centos.plus python version: 2.4.3 PyQt versin: 4.7.3 subprocess is generating a segmentation fault. I am running a proprietary quicktime generating script inside my own (Qt) script using the subproc

[issue2892] improve cElementTree iterparse error handling

2010-06-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: I added Misc/maintainers.rst in 2.7 (r81899). But I don't want to maintain it, so merwork, will have to send me your patches ;-) -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue2892] improve cElementTree iterparse error handling

2010-06-11 Thread Fredrik Lundh
Fredrik Lundh added the comment: Note that this was fixed in upstream 1.3 (and verified by the selftests), but the fix and test was apparently lost when that code was merged into 2.7. Since 2.7 is supposed to ship with 1.3, this is a regression, not a feature request. (But 2.7 is in rc, and

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: We’ve agreed on that :) Thanks. -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-11 Thread Thomas Heller
Thomas Heller added the comment: The commit that breaks the examples is revision 80761. Tested on WinXP 32 bit. Someone should test on Win 64bit too ;-). -- priority: normal -> release blocker ___ Python tracker

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-11 Thread Thomas Heller
Thomas Heller added the comment: Problem in py3k branch also. -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mai

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Some examples of functions using "s" format: * str.encode(encoding, errors), bytes.decode(encoding, errors): both arguments have to be unicode strings * compile(source, filename, mode, ...): filename and mode have to be unicode strings * crypt.crypt(word, s

[issue8515] idle "Run Module" (F5) does not set __file__ variable

2010-06-11 Thread Bruce Frederiksen
Bruce Frederiksen added the comment: No, IDLE compiles the module (with the 'compile' built-in using the 'exec' option) and then does an 'exec' on the code (in PyShell.py). It has several lines of code that it runs before this exec to prepare the environment that the code is run in. It appears

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Demur Rumed
New submission from Demur Rumed : A=[1,2,3] def f(x): A+=x, This throws an error. The solution: state "global a". I find it odd that augmented assignment should be viewed the same as assignment in descerning local variables. This patch repairs such to maintain a as a variable of the globa

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Demur Rumed
Demur Rumed added the comment: A note on the patch, ste->ste_tmpname... lines, along with changes to Lambda_kind, were not added by me. The additional newlines prior to symtable_visit_stmt's declaration are accidental, apologies. I'll avoid patching a snapshot and then pull the old version fr

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Demur Rumed
Changes by Demur Rumed : -- type: feature request -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: > I tried to reject types different than str for "z": > most tests of the test suite fail Wait, what? No. I modified the wrong line of code :-) The whole test suite pass without any error if "z" doesn't accept bytes anymore. -- _

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: This seems evil to me, when you consider the effect of this patch on immutable types: >>> A = 3 >>> def f(): ... A += 5 ... >>> f() >>> A 8 I find the possibility that a function can implicitly (i.e., without any 'global' declarations) mutate my global

[issue8976] subprocess module causes segmentation fault

2010-06-11 Thread R. David Murray
R. David Murray added the comment: Well, without a non-proprietary way to reproduce the failure it is going to be a little hard to debug. You could try debugging it with gdb. -- nosy: +r.david.murray stage: -> unit test needed ___ Python tracker

[issue8515] idle "Run Module" (F5) does not set __file__ variable

2010-06-11 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file17632/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Guido van Rossum
Guido van Rossum added the comment: It's not that much more evil than this: A = [] def f(x): A.append(x) print(A) # [] f(4) print(A) # [4] I've always thought this is a borderline case. -- nosy: +gvanrossum ___ Python tracker

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-11 Thread Florent Xicluna
New submission from Florent Xicluna : When Python is compiled without zlib support, the error message is not very helpful when trying to untar an archive. >>> tarfile.open('sample.tar.gz') tarfile.ReadError: file could not be opened successfully It happens when you run "python distribute_setup

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r81907 (trunk), r81908 (py3k), r81909 (2.6), r81910 (3.1). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Which message do you suggest? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: I commited ctypes_s_set.patch in Python 3.2 (r81911) because it does fix a real bug. -- ___ Python tracker ___

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Update ctypes_tests.patch against last changes: ctypes_tests-2.patch. -- Added file: http://bugs.python.org/file17634/ctypes_tests-2.patch ___ Python tracker __

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17613/ctypes_tests.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-11 Thread Florent Xicluna
Florent Xicluna added the comment: something like : raise CompressionError("zlib module is not available") -- ___ Python tracker ___ ___

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-11 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8515] idle "Run Module" (F5) does not set __file__ variable

2010-06-11 Thread Tal Einat
Tal Einat added the comment: Why doesn't execfile() set __file__? I would be surprised if this is due to an oversight by the Python devs. In both execfile and IDLE's "Run Module" I can't think of a reason not to set __file__, but perhaps this was intentional? Googling a bit hasn't brought up

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: True. I guess there's a mismatch either way around: currently, "A += [4]" and "A.append(4)" behave differently for (e.g.,) a list A. With the proposed change, "n += 3" and "n = n + 3" behave differently for a integer n. I'm not sure why I find the latter i

[issue8965] test_imp fails on OSX when LANG is set

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: I commited issue8965-test-1.diff (r81916) with a minor changes: .strip() => .rstrip() and use @unittest.skipUnless(). -- ___ Python tracker ___

[issue6608] asctime does not check its input

2010-06-11 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: How about checking the preconditions before calling asctime()? If the check fails, then we can raise an exception without crashing. -- ___ Python tracker ___

[issue8502] proposal: encourage xgettext rather than pygettext.py in gettext docs

2010-06-11 Thread jhg
jhg added the comment: It looks like msgfmt.py now parses 'msgid_plural' but pygettext.py does not produce these. It is still oblivious to plurals as produced by ngettext(). My originally proposed change to the documentation was to point people to the GNU xgettext/msgfmt tools rather than the

[issue8924] Error in error message in logging

2010-06-11 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk and release26-maint. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8502] proposal: encourage xgettext rather than pygettext.py in gettext docs

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: What about the more ambitious approach, fixing pygettext? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: I patched readline (r81918) and locale (r81914) modules to use PyUnicode_FSConverter(). They don't use "z" format anymore to parse a filename. I checked last functions using "z" format (not "z#" or "z*", only "z") and I think that it's ok ("z" can be patched

[issue8924] Error in error message in logging

2010-06-11 Thread Éric Araujo
Éric Araujo added the comment: Suggestion: To help people involved in the discussion or landing here from a Web search, you can write “fixed in rNNN” to make Roundup produce a link link this one: r81919 Thanks! -- nosy: +merwok stage: -> committed/rejected __

[issue8965] test_imp fails on OSX when LANG is set

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: One more patch to check sys.getfilesystemencoding() on any OS (r81920). -- ___ Python tracker ___ __

[issue8977] Globalize lonely augmented assignment

2010-06-11 Thread Guido van Rossum
Guido van Rossum added the comment: Because the latter (n += 1) is more fundamental, since it uses integers (arguably the most fundamental type). This is why we've never done it before. -- ___ Python tracker

[issue8976] subprocess module causes segmentation fault

2010-06-11 Thread Stefan Krah
Stefan Krah added the comment: > python version: 2.4.3 I'd suggest to try this with Python 2.6 or later. 2.4 and 2.5 are in security-fix only mode. -- nosy: +skrah versions: -Python 2.5 ___ Python tracker ___

[issue6608] asctime does not check its input

2010-06-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: That's what CERT recommends. Their code can be reused as is: int validate_tm(struct tm* time) { /* * The range of valid values of the tm_sec member is [0, 60] * inclusive (to allow for leap seconds). */ if (time->tm_sec < 0 || time->tm_sec

[issue6608] asctime does not check its input

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: I commited a first part of the patch: r81923 (3.2), r81924 (3.1). -- ___ Python tracker ___ ___ Pyth

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: "PyUnicodeObject*" is not the best choice for the description of the function, and I don't really like "PyUnicode". Can't we use C types in the function prototype and Python types in the description? Example: --- s (PyUnicodeObject* or None) [char *] Conv

[issue8951] PyArg_Parse*(): factorize code of 's' and 'z' formats, and 'u' and 'Z' formats

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +PyArg_Parse*(): "z" should not accept bytes ___ Python tracker ___ ___ Python-bugs-list m

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-11 Thread akira
akira <4kir4...@gmail.com> added the comment: Minor notes: msg107186: 1. The constructor now accepts only whole number of minutes in [-23:59, 23:59] range. rfc 3339 provides the following example: 1937-01-01T12:00:27.87+00:20 This represents the same instant of time as noon, January

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-11 Thread STINNER Victor
STINNER Victor added the comment: Ok. I commited the patch to set the default encoding to utf-8 on Windows: r81925. -- ___ Python tracker ___ ___

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-11 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

  1   2   >