[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: r87564 (py3k), r87565 (release31-maint) and r87566 (release27-maint). Just a Note. These kind of minor changes have many a times resulted in regression for developers who relied upon previous bad behavior. I have added NEWS to explain this change clearly a

[issue8618] test_winsound fails when no playback devices configured

2010-12-28 Thread Brian Curtin
Brian Curtin added the comment: This isn't failing in manual runs of regrtest -uall on that machine. -- status: open -> pending ___ Python tracker ___ ___

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch for commit review. I added an underscore prefix to all new macros. This way I am not introducing new features and we will have a full release cycle to come up with better names. i would just note that "next" terminology is cons

[issue5672] Implement a way to change the python process name

2010-12-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Just for the record, I was about to try to do this, when I realized that > exposing prctl requires expecting a variable number of arguments with > variable types. > It turns out providing a Python wrapper for such a kind of C API is just a > pain. > There'

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-28 Thread Brian Curtin
Brian Curtin added the comment: Oops, sorry. Fixed in r87561. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-12-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg wrote: .. >  * this version should be slightly faster and is also easier to read: > > #define Py_UCS4_READ_CODE_POINT(ptr, end) \ .. >      Py_UNICODE_JOIN_SURROGATES((ptr)++, (ptr)++) : \ .. >   I haven

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: See also http://semanchuk.com/philip/sysv_ipc/: "System V IPC for Python - Semaphores, Shared Memory and Message Queues" -- ___ Python tracker ___

[issue5672] Implement a way to change the python process name

2010-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > If somebody would provide a patch that adds prctl to the posix module, > that would be fine with me - we have a long tradition of exposing all > available system calls if somebody wants them. Just for the record, I was about to try to do this, when I reali

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Ethan Furman
Ethan Furman added the comment: > I'm talking about the exception raised from the except block. So was I -- why should this: try: x = y / z except ZeroDivisionError as exc: raise InvalidInput() be different from this: try: x = divide_and_conquer(y, z) except ZeroDivisionError as

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Tests now fail on windows XP: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/3874/steps/test/logs/stdio os.symlink() may raise NotImplementedError, and test.support.can_symlink() should catch it. -- stage: committed/reje

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-28 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101229.zip is a new version of the regex module. It now compiles the pattern quickly. -- Added file: http://bugs.python.org/file20185/issue2636-20101229.zip ___ Python tracker

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-28 Thread Jacques Grove
Jacques Grove added the comment: Here is a somewhat crazy pattern (slimmed down from something much larger and more complex, which didn't finish compiling even after several minutes): re.compile("(?:(?:[23][0-9]|3[79]|0?[1-9])(?:[Aa][Aa]|[Aa][Aa]|[Aa][Aa])??(?:[Aa]{3}(?:[Aa]{4})?|[Aa]{3}(?:[A

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > And what if the exception is raised from a subroutine? > > Well, if I have it surrounded by a try/except block, presumably I'm > aware that an exception could be raised. ;) I'm talking about the exception raised from the except block. -- ___

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: See also #5725. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Ethan Furman
Ethan Furman added the comment: > And what if the exception is raised from a subroutine? Well, if I have it surrounded by a try/except block, presumably I'm aware that an exception could be raised. ;) And if I'm aware that an exception could be raised, it may also be possible that I want to

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > and, finally, if all I have is > > except ValueError as exc: > raise AttributeError("blah") > > I just get the normal, previous context free, traceback. And what if the exception is raised from a subroutine? -- ___

[issue5672] Implement a way to change the python process name

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

[issue10785] parser: store the filename as an unicode object

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: Version 2 of the patch: - remove filename attribute from perrdetail and tok_state structure in PGEN mode, and add a comment to explain why - rename filename_obj to filename - indenterror() no longer print the input filename in PGEN mode -- Added fil

[issue10785] parser: store the filename as an unicode object

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: When testing my patch, I found and fixed two bugs in pgen: - r87557: PGEN was not defined to compile pgenmain.c and printgrammar.c - r87558: pgen error was ignored on "make Parser/pgen.stamp" (when executing pgen to compile the grammar) -- _

[issue10785] parser: store the filename as an unicode object

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: > maybe a more elegant solution than changing the type conditional > on PGEN can be found In pgen, the filename is only used to display the following warning, in indenterror(): : inconsistent use of tabs and spaces in indentation In pratical, this warnin

[issue10716] Modernize pydoc to use CSS

2010-12-28 Thread Ron Adam
Ron Adam added the comment: Here is a tentative start on this. (css_v1.diff) The css file is much better. It's shorter, simpler and validated. The header and navbar panel use it in the new server. Added a markup call to the topic page contents. (The same markup call is already used for th

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Ethan Furman
Ethan Furman added the comment: >> During handling of the above exception, another exception occurred: >> >> This is a blatant falsehood -- another exception did not occur, a >> different exception was raised. > > This doesn't make any difference in any other context, so why would it > here?

[issue10785] parser: store the filename as an unicode object

2010-12-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I like the idea, but I don't like the trend that parser code continues to diverge from pgen. I understand that most of the Python runtime is not available to pgen, but maybe a more elegant solution than changing the type conditional on PGEN can be foun

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > During handling of the above exception, another exception occurred: > > This is a blatant falsehood -- another exception did not occur, a > different exception was raised. This doesn't make any difference in any other context, so why would it here? If only t

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-28 Thread Jacques Grove
Jacques Grove added the comment: Thanks, issue2636-20101228a.zip also resolves my compilation speed issues I had on other (very) complex regexes. Found this one: re.search("(X.*?Y\s*){3}(X\s*)+AB:", "XY\nX Y\nX Y\nXY\nXX AB:") produces a search hit with stock python 2.6.5 regex library, but

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Ethan Furman
Ethan Furman added the comment: > Besides, if you are writing library code (as opposed to application > code), you shouldn't care at all how tracebacks are displayed, should > you? I care when it lies: During handling of the above exception, another exception occurred: This is a blatant false

[issue8618] test_winsound fails when no playback devices configured

2010-12-28 Thread Brian Curtin
Brian Curtin added the comment: Looks like this might be an issue with the Windows Server 2008 build slave. I restarted it last night and a bunch of builds after that have failed due to this test. -- resolution: fixed -> stage: committed/rejected -> status: closed -> open _

[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-28 Thread Brian Quinlan
Brian Quinlan added the comment: Fixed in r87556. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[issue10766] optparse uses %s in gettext calls

2010-12-28 Thread Éric Araujo
Éric Araujo added the comment: argparse is not new if you consider that it’s present in 2.7. -- ___ Python tracker ___ ___ Python-bug

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-28 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101228a.zip is a new version of the regex module. It now compiles the pattern quickly. -- Added file: http://bugs.python.org/file20182/issue2636-20101228a.zip ___ Python tracker

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2,3.1,2.7: r87553, r87554, r87555 -- assignee: -> terry.reedy components: +Library (Lib) resolution: -> fixed status: open -> closed type: -> behavior ___ Python tracker

[issue9824] SimpleCookie should escape commas and semi-colons

2010-12-28 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r87550. Since the only application that would trip up would be one not using SimpleCookie to read SimpleCookie generated cookies *and* that doesn't implement unescaping (in which case it wasn't really handling SimpleCookie cookies, was

[issue6027] test_xmlrpc_net fails when the ISP returns "302 Found"

2010-12-28 Thread R. David Murray
R. David Murray added the comment: See also issue 6533. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1772833] -q (quiet) option for python interpreter

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: No, pure ignorance -- should be fixed in r87549. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10764] sysconfig and alternative implementations

2010-12-28 Thread Michael Foord
Michael Foord added the comment: No, issue 9878 can't be implemented for Python 2.7 whereas the issues other implementations have with sysconfig *could* still be resolved in 2.7 as a bugfix. (Specifically for IronPython on Mac OS X it would mean not assuming that being on a posix platform mea

[issue10764] sysconfig and alternative implementations

2010-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed -- resolution: -> duplicate status: open -> closed superseder: -> Avoid parsing pyconfig.h and Makefile by autogenerating extension module ___ Python tracker _

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2010-12-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10774] test_logging leaves temp files

2010-12-28 Thread Éric Araujo
Éric Araujo added the comment: Great, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10788] test_logging failure

2010-12-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : This on the Windows Server 2008 buildbot: (http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x) Re-running test 'test_logging' in verbose mode test_flat (test.test_logging.BuiltinLevelsTest) ... FAIL test_nested_explicit (te

[issue10764] sysconfig and alternative implementations

2010-12-28 Thread Éric Araujo
Éric Araujo added the comment: I suggest this bug is superseded by #9878. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1772833] -q (quiet) option for python interpreter

2010-12-28 Thread Éric Araujo
Éric Araujo added the comment: Is it on purpose that no sys.flags attribute has been added for quiet? -- nosy: +eric.araujo versions: +Python 3.2 -Python 2.6 ___ Python tracker __

[issue6027] test_xmlrpc_net fails when the ISP returns "302 Found"

2010-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 on simply removing this test. *.xmlrpc.com look(s) totally unmaintained. -- nosy: +pitrou ___ Python tracker ___

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-28 Thread Brian Curtin
Brian Curtin added the comment: Checked in a small doc update in r87547. Removes the part about os.symlink not being available, and mentions the OSError. -- ___ Python tracker _

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2010-12-28 Thread David Kremer
New submission from David Kremer : Could you please add the exact form of the distribution, because it's rather confusing in the current form. In this url, the role of k and theta is precised with a formula : [http://tinyurl.com/24jxfrk]* It seems that in [http://docs.python.org/library/rando

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-28 Thread Michael Foord
Michael Foord added the comment: Actually I can't see a good reason why not to just lookup the *current* sys.stderr at instantiation time instead of binding at import time as is the current behaviour. Patch with tests will make it more likely that this change goes in sooner rather than later

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-28 Thread Michael Foord
Michael Foord added the comment: TextTestRunner is initialised with a stream to output messages on that defaults to sys.stderr. The correct way to redirect messages is to construct it with a different stream. If you want a redirectable stream then construct the runner with a stream that del

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-28 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +michael.foord versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed backports: r87540 (3.1) r87541 (2.7) r87546 (2.6) -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: r87544 (release27-maint) and r87545 (release31-maint). -- status: open -> closed ___ Python tracker ___ __

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this in r87542 in (py3k). unescape is undocumented helper method, so no docs are added. There was already an issue ( Issue6662) on malformed charref handling and it is fixed. -- resolution: -> fixed stage: patch review -> committed/rejected

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-28 Thread Brian Curtin
Brian Curtin added the comment: Thanks for having a look. Checked in with the suggested changes to r87539. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: Examples of programs using SysV semaphores: http://firebird.cvs.sourceforge.net/viewvc/firebird/firebird2/src/jrd/isc_sync.cpp?revision=HEAD&view=markup (Firebird, search "#ifdef USE_SYS5SEMAPHORE" sections) https://github.com/mono/mono/blob/master/mono/io-lay

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: Informations about SysV semaphores: - functions: semget(), semop(), semctl(), ftok() - http://perldoc.perl.org/IPC/SysV.html - http://beej.us/guide/bgipc/output/html/multipage/semaphores.html -- ___ Python tracker

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread David Beazley
David Beazley added the comment: Thanks everyone for looking at this! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r87537. Thanks Amaury for your review! I also removed some ugly (implicit) conversions from test_struct. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread David Beazley
David Beazley added the comment: As a user of Python 3, I would like echo Victor's comment about fixing the API right now as opposed to having to deal with it later. I can only speak for myself, but I would guess that anyone using Python 3 already understands that it's bleeding edge and that

[issue6210] Exception Chaining missing method for suppressing context

2010-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not sure how that's going to help as I don't want my library code > to be responsible for printing out exceptions, I just want them to > print reasonably -- and it seems very unreasonable to have the > exception I'm converting /from/ show up in the traceba

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Since the Release Manager agrees with the change, I withdraw my objection. I have three remarks to the patch: - Some examples in the documentation should be fixed: http://docs.python.org/dev/py3k/library/struct.html#examples >>> pack('ci', '*', 0x121314

[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87536. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue10670] Provide search scope limits

2010-12-28 Thread Georg Brandl
Changes by Georg Brandl : -- Removed message: http://bugs.python.org/msg123928 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10739] Subprocess behavior on Windows

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: I agree that this belongs in the makefile docs. Fixed in r87535. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2010-12-28 Thread Georg Brandl
Changes by Georg Brandl : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10708] Misc/porting should be folded in to the development FAQ

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Same for Misc/SpecialBuilds. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list maili

[issue10781] minidom Node.writexml method doesn't manage encoding parameter correctly

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87532. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10742] memoryview.readonly attribute is not documented

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Added in r87531. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10767] Lib/test/crashers/README is out of date

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87530. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10768] Bug in scrolledtext

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87527. Terry, the reason why calling example() interactively failed is the strange way __doc__ is imported -- it is None in your case and that causes the Tkinter type error. I fixed this as well. -- nosy: +georg.brandl resolution: -> fixed

[issue10777] xml.etree.register_namespace dictionary changed size during iteration

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks, this should be fixed in r87526. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue10784] os.getpriority() and os.setpriority()

2010-12-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Looks good. Would there be a point in making any of the parameters optional? No. The API should look exactly as it does on the system level. Anybody calling these functions should know how call them. -- ___ Pyth

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: I agree this automatic conversion is broken and should be fixed. Not sure if emitting a DeprecationWarning now and fixing it 18 months later is the right thing, especially since DeprecationWarnings are now silent. As Victor says, the incompatibility is explicit

[issue10784] os.getpriority() and os.setpriority()

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Looks good. Would there be a point in making any of the parameters optional? -- nosy: +georg.brandl ___ Python tracker ___ _

[issue2775] Implement PEP 3108

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Alas, too late for 3.2 now. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bug

[issue10679] "make altinstall" may clobber OS provided scripts

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Committed in r87525. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue9824] SimpleCookie should escape commas and semi-colons

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10766] optparse uses %s in gettext calls

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Hmm, argparse is new, so that is a different story. Not so sure about optparse, so I would not put this into 3.2. -- ___ Python tracker ___ ___

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: By all means. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Fine with me to fix this API during beta. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10773] "Building C and C++ Extensions on Windows" documentation shows 2.x way of initializing module

2010-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r87524. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread STINNER Victor
STINNER Victor added the comment: Amaury> At this point a feature change seems unlikely, Amaury> but it's not too late to emit a DeprecationWarning. I prefer to break the API today than having to maintain a broken API for 10 or 20 years :-) And we have a very small user base using Python 3, it

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But there are probably working usages with unicode strings out there. For example, I've seen code like struct.pack('<6sHHBBB', 'GIF87a', ...) Do you suggest to make this 3.1 code stop working in 3.2? In any case, the 'c' format should probably be changed

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: >> At this point a feature change seems unlikely, Amaury, it is not too late to fix anything that's broken. New features are out, but we are free to fix anything hosed this badly. -- ___ Python tracker