[issue14257] minor error in glossary wording regarding __hash__

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f146020d8e9 by Senthil Kumaran in branch '3.2': closes issue14257 - Grammatical fix http://hg.python.org/cpython/rev/0f146020d8e9 New changeset c5833f277258 by Senthil Kumaran in branch 'default': closes issue14257 - Grammatical fix http://hg.pyth

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-13 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, lxml also has support for parsing Unicode strings. It doesn't encode the input, however, but parses straight from the underlying buffer (after detecting the buffer layout etc. at module init time - and yes, I still haven't fixed this up for PEP393). The

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: Improved patch, according to eric.araujo's suggestions and mnewman's guidance. -- Added file: http://bugs.python.org/file24815/issue5758_fileinput_gzip_with_encoding_v2.patch ___ Python tracker

[issue12890] cgitb displays tags when executed in text mode

2012-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: Did this ever get committed? Is there anything left for me to do here? -- ___ Python tracker ___ ___ P

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-13 Thread Eli Bendersky
Eli Bendersky added the comment: Stefan, Thanks a lot for taking the time to review the patch. As you correctly say, the current pathch's goal is just to align with existing behavior in the Python implementation of ET. I understand the problem you are describing, but at least it's not a regr

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: I made the change suggested in the last comment, patch is attached. Trying to clean up any bugs I've got my name on! -- keywords: +patch Added file: http://bugs.python.org/file24816/makedirs_function.patch ___ Python t

[issue14281] Add unit test for cgi.escape method

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 757afb3af762 by Senthil Kumaran in branch '2.7': Fix closes Issue14281 - Test for cgi.escape by Brian Landers http://hg.python.org/cpython/rev/757afb3af762 New changeset 13922f6d87f2 by Senthil Kumaran in branch '3.2': 3.2 - Fix closes Issue14281 -

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: Documentation patch to outline the use of context manager protocol attached. Trying to cleanup any bugs with my name on them. -- keywords: +patch Added file: http://bugs.python.org/file24817/urllib_request_doc.patch __

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-13 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: -mcjeff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: The PEP 410 was rejected. See also the issue #13882. -- ___ Python tracker ___ ___ Python-bugs-list

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Vinay Sajip
Vinay Sajip added the comment: I cannot reproduce this, and in fact couldn't find anywhere in packaging in the default branch where a "distutils2" logger is set up. I used grep to look for "getLogger.*(distutils2|__name__)", could some other logic be in use to construct the logger name? Look

[issue1429] FD leak in SocketServer

2012-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: In an effort to walk through bugs in my nosy list, I dug into this and tried to reproduce it to no avail. Also, as the handle_error method is supposed to handle problems gracefully, calling shutdown on handle_error exception is probably questionable. I'd be ha

[issue14272] ast.c: windows compile error

2012-03-13 Thread Stefan Krah
Stefan Krah added the comment: Looks fixed in 6bee4eea1efa. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum added the comment: I'm not proposing that `timedelta` will use `Decimal` internally, but that it would handle the conversion to `float` itself, instead of the user having to do it. -- ___ Python tracker

[issue14286] xxlimited.obj: unresolved external symbol __imp__PyObject_New

2012-03-13 Thread Stefan Krah
New submission from Stefan Krah : Linking fails on Windows 64-bit. Perhaps Py_LIMITED_API ifdefs are missing. Creating library C:\Users\stefan\hg\cpython\PCbuild\\amd64\\xxlimited.lib and object C:\Users\stefan\hg\c python\PCbuild\\amd64\\xxlimited.exp

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-03-13 Thread Nir Soffer
Nir Soffer added the comment: As someone who has to develop on ARM OABI, I find this won't fix policy rather frustrating. If you happen to need this patch on 2.7, this is the same patch as arm-float2.diff, which can be applied cleanly to release 2.7.2. Changes from arm-float2.diff: - Remove

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah added the comment: I've looked at the latest patch: It seems that new_387controlword is not set if old_387controlword already has the desired precision and rounding mode. Attached is a revised patch that uses the same logic as the Linux version. A couple of remarks: - It would be

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: The proposition of using other C functions and changing the bdist_wininst code looks risky to me, especially as I don’t know how compatibility would be affected (see my previous message). We are free to improve the wininst code in distutils2, or discuss a repla

[issue8954] wininst regression: errors when building on linux

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: Sean: In msg135902 I am merely explaining why I removed 2.6 from the list of versions. Only 2.7, 3.2 and 3.3 can get fixed. If you look at my previous message or the list of dependencies, you can see that #10945 needs to be fixed first before I can review the p

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: > I can get code from anywhere I am afraid I don’t understand. Could you start again and explain what bug you ran into, i.e. what behavior does not match what the docs say? At present this report looks like it is saying “when I put random things in an internal

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think that's actually a bug in python-modernize, not in touch_import - or, rather, touch_import shouldn't be used to add future imports. Instead, I think there should be a touch_future function which adds a future import, taking into account that future im

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Unless another core dev wants to do a complementary review I will slightly tweak the patch and commit it. I need to finish waking up and eat some food before I do that :) Technically adding a new argument means that this is a new feature and cannot be

[issue12890] cgitb displays tags when executed in text mode

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: I’ll apply it shortly. -- assignee: -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time "spring forward"

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5c4b8ccca8b by Vinay Sajip in branch '2.7': Closes #14267: Corrected computation of rollover filename. http://hg.python.org/cpython/rev/a5c4b8ccca8b New changeset a1d9466441ff by Vinay Sajip in branch '3.2': Closes #14267: Corrected computation of

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-13 Thread Eli Bendersky
Eli Bendersky added the comment: I reviewed the patch in http://bugs.python.org/review/14202/show -- ___ Python tracker ___ ___ Pytho

[issue13885] CVE-2011-3389: _ssl module always disables the CBC IV attack countermeasure

2012-03-13 Thread Tomas Hoger
Tomas Hoger added the comment: Is the final patch going to enable empty fragments unconditionally and will ofter no way to disable them? curl did that recently and ended up adding option to allow users to disable empty fragments when they break compatibility: http://curl.haxx.se/docs/adv_201

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e9cc1a03365 by Victor Stinner in branch 'default': Close #14180: Factorize code to convert a number of seconds to time_t, timeval or timespec http://hg.python.org/cpython/rev/1e9cc1a03365 -- nosy: +python-dev resolution: -> fixed stage:

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed73006bac42 by Victor Stinner in branch 'default': Issue #14180: Remove commented code http://hg.python.org/cpython/rev/ed73006bac42 -- ___ Python tracker __

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: Attached patch changes timedelta constructor to accept decimal.Decimal. See also the issue #14180. -- keywords: +patch Added file: http://bugs.python.org/file24820/timedelta_decimal.patch ___ Python tracker

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: > Would the proposed change mean that a bdist_wininst built > with 3.2.0 won’t work with a patched 3.2.3? The installer doesn't use distutils to read its configuration, so such binary runs with any installed Python version. > bdist_msi decodes data read from

[issue10148] st_mtime differs after shutil.copy2

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #14127. -- nosy: +haypo resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: I'm lost in all issues related to os.stat/utime and nanosecond, here is a list: - #10148: duplicate - #11457: closed (was related the the rejected PEP 410) - #12904: closed, it was the first step to fix os.stat/os.utime - #13882: closed (implementation of th

[issue13964] os.utimensat() and os.futimes() should accept (sec, nsec), drop os.futimens()

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #14127. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.stat and os.utime: allow preserving exact metadata -> add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds ___ Python tracker

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Instead of changing touch_import, I propose to add a function similar to https://github.com/loewis/python-modernize/commit/0db885e616807d0cc6859b4035d81fd260b06a67 -- ___ Python tracker

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread STINNER Victor
STINNER Victor added the comment: The following changes has to be done to fix this issue: - add st_atime_ns, st_mtime_ns and st_ctime_ns fileds to os.stat() result: number of nanoseconds since Epoch (1970.1.1), an integer - change os.*utime*() functions (see below) - shutil.copystat() shoul

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum added the comment: Thanks for the patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: BTW, the MSDN documentation at http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx is a bit confusing. Question 1: when doing __control87_2(new, mask, &old, NULL), does the resulting value in old reflect the *new* FPU state or the old one? Que

[issue14217] text output pretends to be code

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: This issue does not apply to 2.7 docs because they lack the local/nonlocal assignment example; do you agree it would be good to backport that? Tshepang, if you find more instances of the same problem, please report them. Thanks! -- ___

[issue14287] sys.stdin.readline and KeyboardInterrupt on windows

2012-03-13 Thread Musashi Tamura
New submission from Musashi Tamura : I run z.py and press Ctrl-C. '' Traceback (most recent call last): File "z.py", line 7, in print(repr(x)) KeyboardInterrupt I think '' should not be printed. This sometimes occurs on Python 3.2.2 and 2.7.2 AMD64 on Windows7, but doesn't occur on ubu

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good. I don’t know if I should fix this in 3.3 with your patch or go back to the first idea of adding a copystat(src, dst) after the mkdir call. I just don’t know if it’s important that this behavior does not change in stable versions, or if it’s c

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: We didn’t give enough info, sorry. This bug is not reproducible with packaging, it only shows when using the distutils2 repository with Python 2.5, 2.6 or 3.1. I think it’s related to the absence of built-in handler of last resort. (packaging’s logger is name

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. - This function returns a file-like object with two additional methods from + This function returns a file-like object that supports the Context Manager + protocol, with two additional methods from The capitalization seems unneeded t

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1eaf6e899f02 by Victor Stinner in branch 'default': Issue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control() http://hg.python.org/cpython/rev/1eaf6e899f02 -- ___ Python

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx > Question 1: when doing __control87_2(new, mask, &old, NULL), does the > resulting value in old reflect the *new* FPU state or the old one? The new one, but I had to test th

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray added the comment: For 3.2 could we use the same fix, but without exposing the ability to *change* the encoding? That is, we use TextIOWrapper but always with the default None for encoding. It also occurs to me that this really exposes a weakness in the design. What if the

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah wrote: > > Stefan Krah added the comment: > > Mark Dickinson wrote: > > http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx > > Question 1: when doing __control87_2(new, mask, &old, NULL), does the > > resulting value in old reflect th

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: Larry, are you sprinting on this? I'd love to help. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Vinay Sajip
Vinay Sajip added the comment: > Yes, the whole package only uses one logger, and we don’t want to stop > messages: > the application (pysetup, pip, etc.) must be able to set the level.  I’ll > remove > the code that sets a level on the logger and write a test to make sure that a > client

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray added the comment: It also occurs to me that this fix makes the charset hook look rather odd. We could render it redundant by passing charset to open in the non-openhook case, and mark it deprecated. There is also a bug in the hook_encoding docs. It says the file is opened w

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: > I think you might mean "sets a level on the handler" - the logger should > still have the level set IIUC the logger should be set to DEBUG, otherwise even if e.g. pip wants to get INFO messages it won’t see them. Is that right? -- ___

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Éric Araujo
Éric Araujo added the comment: > For 3.2 could we use the same fix, but without exposing the ability to > *change* the encoding? > That is, we use TextIOWrapper but always with the default None for encoding. Yes! > It also occurs to me that this really exposes a weakness in the design. What

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb1c877a27f2 by Victor Stinner in branch 'default': Issue #14180: Fix another typo in kqueue_queue_control() http://hg.python.org/cpython/rev/cb1c877a27f2 -- ___ Python tracker

[issue14288] Make iterators pickleable

2012-03-13 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : A common theme in many talks last year about cloud computing was the need to suspend execution, pickle state, and resume it on a different node. This patch is the result of last year's stackless sprint at pycon, finally completed and submitted for

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am -0 on the feature and -1 on the implementation. Conversion from Decimal to float is explicit by design. Decimal gives the user fine control over rounding issues allowing for either exact arithmetics (trapping inexact operation) or one of several

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil added the comment: Ah, understood. I kind of like the idea of having the added functionality behind a custom callable, but if it's generally just a bug then copystat is a good solution, too. -- ___ Python tracker

[issue14062] UTF-8 Email Subject problem

2012-03-13 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: Hi msladek! I tried to reproduce your bug using Python 3.2.2 on MacOS X, but didn't manage - all worked fine. I used gmail both to send and receive the message, on SSL: smtpPort = '465' smtpSrv = 'smtp.gmail.com' As I'm no SMPTP nor email expert, I

[issue8536] Support new features of ZLIB 1.2.4

2012-03-13 Thread Jason Killen
Jason Killen added the comment: Given this is marked as good for a newbie and easy I figured I'd take a crack at it but I'm confused. As example I don't see where inflateReset2 would be useful. I don't see anywhere inflateReset is used and would need to be replaced by inflateReset2. I also

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 760cf150bb99 by Victor Stinner in branch 'default': Issue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed http://hg.python.org/cpython/rev/760cf150bb99 -- ___ Python tracker

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I don't want to remove os.futimens() and os.utimensat() because they add a > feature: UTIME_NOW and UTIME_OMIT flags. I'm not sure how this could work: UTIME_NOW and UTIME_OMIT have typically values such as ((1l << 30) - 2l) which could be mistaken as a ti

[issue1178863] Variable.__init__ uses self.set(), blocking specialization

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-13 Thread Brian Jones
Changes by Brian Jones : -- nosy: +r.david.murray -Brian.Jones ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14062] UTF-8 Email Subject problem

2012-03-13 Thread Michal Sladek
Michal Sladek added the comment: I tested the code again. Using Gmail SMTP server produces correct results, using server smtp.seznam.cz leads to a problem (I should mention here, that Seznam is the largest free mail provider in the Czech Republic). Here are the differences on receiving side.

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread Larry Hastings
Larry Hastings added the comment: > Larry, are you sprinting on this? I'd love to help. I am. Come on by--mi CPU es tu CPU! -- ___ Python tracker ___ _

[issue2843] New methods for existing Tkinter widgets

2012-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fresh patch for current 3.3 head is attached. -- keywords: +patch Added file: http://bugs.python.org/file24824/tknewmethods.diff ___ Python tracker

[issue2843] New methods for existing Tkinter widgets

2012-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Martin, please review and move it forward if ok. -- nosy: +loewis ___ Python tracker ___ ___ Python-

[issue10522] test_telnet exception

2012-03-13 Thread Jack Diederich
Jack Diederich added the comment: Either someone changed the test or I can't understand how the try/except/else could happen where 'conn' is undefined in the else. Either way, I'm marking it closed. -- resolution: -> out of date status: open -> closed __

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d69a2418d80 by Victor Stinner in branch 'default': Issue #14180: Fix an invalid rounding when compiler optimization are enabled http://hg.python.org/cpython/rev/9d69a2418d80 -- ___ Python tracker

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2012-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Push updated patch for tip (3.3) head -- nosy: +asvetlov Added file: http://bugs.python.org/file24825/issue_3835_2.diff ___ Python tracker ___ _

[issue14288] Make iterators pickleable

2012-03-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 246e681a4272 by Ned Deily in branch '3.2': Issue #14184: Increase the default stack size for secondary threads on http://hg.python.org/cpython/rev/246e681a4272 New changeset c00ac2b25048 by Ned Deily in branch 'default': Issue #14184: merge http://

[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-13 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Fix applied for 3.2.x (for release in 3.2.4) and default (for 3.3.0). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: -> crash ___ Python tracker

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-13 Thread Jason Killen
Jason Killen added the comment: I've generated a patch that checks to see if seen_greeting is set before processing other commands. This is the first time I've submitted a patch so if there is something more I need to do let me know. -- nosy: +Jason.Killen Added file: http://bugs.pyt

[issue7652] Merge C version of decimal into py3k.

2012-03-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Stefan, please feel free to commit the latest patch. -- ___ Python tracker ___ ___ Python-bugs-li

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2012-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I confirm: patch5219.diff solves the problem in linux box. -- nosy: +asvetlov ___ Python tracker ___ ___

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the responses. As far as I'm concerned, this is good to go into all 3 maintained branches. Having said that, the 2.7 and 3.2 branches are currently at release candidate stage, so I think we should wait until after the releases. -- __

[issue829370] math.signum(int)

2012-03-13 Thread Frank
Frank added the comment: Its true. Python needs it as every scientific programming language needs it. Its a matter of completeness. This is a deficit. -- nosy: +fkbreitl versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 _

[issue829370] math.signum(int)

2012-03-13 Thread Merlijn van Deen
Merlijn van Deen added the comment: numpy.sign does this: http://docs.scipy.org/doc/numpy/reference/generated/numpy.sign.html -- nosy: +valhallasw ___ Python tracker ___ _

[issue7652] Merge C version of decimal into py3k.

2012-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: > FWIW, I think we would be better off if this patch were merged in soon. +1 -- ___ Python tracker ___

[issue14289] Prebuilt CHM file on Docs download page

2012-03-13 Thread Nam Nguyen
New submission from Nam Nguyen : Before 2.7, one can easily find .CHM files in the Documentation download page. When 2.7 come out, the only way to get CHM files is downloading the Windows installers (EXE or MSI), installing it on Windows, and grabbing the CHM files. This is unwieldy. I am on

[issue14290] Importing script as module causes ImportError with pickle.load

2012-03-13 Thread Robert
New submission from Robert : I implemented a data-structure as an object in a script, let's call it objectScript.py. I'm using this data-structure in other scripts like so: from objectScript import data-structure Populating this data-structure requires quite a bit of time, so when I'm done wi

[issue829370] math.signum(int)

2012-03-13 Thread Frank
Frank added the comment: That's too much for too little. The math module should cover the basics. -- ___ Python tracker ___ ___ Pyt

[issue829370] math.signum(int)

2012-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: I disagree that this is useful enough to make it worth adding to the standard library. Between math.copysign and simple comparisons, I think all the common cases are well covered. And it's a simple one-line function: def signum(x): return (x > 0) - (x <

[issue10543] Test discovery (unittest) does not work with jython

2012-03-13 Thread Michael Foord
Michael Foord added the comment: Now fixed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14289] Prebuilt CHM file on Docs download page

2012-03-13 Thread Georg Brandl
Georg Brandl added the comment: The CHMs are already on the Python download page, along with the .msi installers. We can add a note to the docs download page that they are to be found there. -- nosy: +georg.brandl ___ Python tracker

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-13 Thread R. David Murray
New submission from R. David Murray : In Python2, this works: >>> from email.mime.text import MIMEText >>> m = MIMEText('abc') >>> str(m) 'From nobody Tue Mar 13 15:44:59 2012\nContent-Type: text/plain; charset="us-ascii"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\n\nab

[issue829370] math.signum(int)

2012-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: See also the (fairly) recent python-ideas discussion starting here: http://mail.python.org/pipermail/python-ideas/2010-April/007136.html -- ___ Python tracker __

[issue829370] math.signum(int)

2012-03-13 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker ___ ___ Pyth

[issue14062] UTF-8 Email Subject problem

2012-03-13 Thread R. David Murray
R. David Murray added the comment: It makes no sense that changing how Subject is generated would affect the later formatting of the mime header. There is no coupling that I'm aware of in the code. I notice that your handcrafted version uses uppercase for the charset and CTE code. Can you

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-13 Thread R. David Murray
R. David Murray added the comment: Thanks, Brian. (For the record, this is a bug in email6 code that hasn't been checked into trunk yet.) -- ___ Python tracker ___ ___

[issue2843] New methods for existing Tkinter widgets

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks both of you for the patches. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-03-13 Thread Nicholas Riley
New submission from Nicholas Riley : % python build-installer.py \ --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \ --universal-archs=intel \ --dep-target=10.6 Settings: * Source directory: /Users/nicholas/src/cpython * Build directory: /tmp/_py * SDK location: /Developer/SDKs/M

[issue2843] New methods for existing Tkinter widgets

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71041c0dedd5 by Martin v. Löwis in branch 'default': Issue #2843: Add new Tk API to Tkinter. http://hg.python.org/cpython/rev/71041c0dedd5 -- nosy: +python-dev ___ Python tracker

[issue829370] math.signum(int)

2012-03-13 Thread Frank
Frank added the comment: Mark, the convincing use-cases apear already on this page. People suggest the usage of numpy or the definition of all kinds of functions to accomplish this trivial task. But the users don't want to worry about this. They just want to use this function and not lose tim

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d731dcda2611 by Martin v. Löwis in branch 'default': Issue #3835: Refuse to use unthreaded Tcl in threaded Python. http://hg.python.org/cpython/rev/d731dcda2611 -- nosy: +python-dev ___ Python tracker <

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch! -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13507] Modify OS X installer builds to package liblzma for the new lzma module

2012-03-13 Thread Nicholas Riley
Nicholas Riley added the comment: The configure problem is soluble with --disable-dependency-tracking (it was the -M* options to gcc that caused the problem); something similar is used for SQLite. The attached patch should do it... -- keywords: +patch nosy: +nriley Added file: http:/

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-13 Thread Luke Macken
Luke Macken added the comment: Yep, that seems like the right solution. Thanks, Martin. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2012-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 505c3b7dc539 by Martin v. Löwis in branch 'default': Issue #5219: Prevent event handler cascade in IDLE. http://hg.python.org/cpython/rev/505c3b7dc539 -- nosy: +python-dev ___ Python tracker

[issue14288] Make iterators pickleable

2012-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM that a discussion on python-dev would be of value here. Iterators are a protocol, not a class; hence, the effort to make them all picklable is potentially endless. The effort would also always be incomplete because some iterators are difficult or in

  1   2   >