[issue21720] "TypeError: Item in ``from list'' not a string" message

2014-07-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21720] "TypeError: Item in ``from list'' not a string" message

2014-07-03 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-03 Thread Sangeeth Saravanaraj
Sangeeth Saravanaraj added the comment: I am convinced that the code is wrong. It was written with wrong assumptions. But Python 2.7 behaves differently compare to Python 3.4. I am not expecting the same behavior in Python 2.7 as in Python 3.4 but I am expecting that some form of exception is

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-07-03 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailma

[issue21915] telnetlib.Telnet constructor does not match telnetlib.Telnet.__init__ docstring

2014-07-03 Thread Garrett Cooper
New submission from Garrett Cooper: telnetlib.Telnet.__init__ supports keyword arguments, but the documentation for 2.7.8 ( https://docs.python.org/2/library/telnetlib.html ) claims they're non-keyword arguments. The py3k docs are much better ( https://docs.python.org/3/library/telnetlib.html

[issue21915] telnetlib.Telnet constructor does not match telnetlib.Telnet.__init__ docstring

2014-07-03 Thread Garrett Cooper
Changes by Garrett Cooper : -- versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1425127] os.remove OSError: [Errno 13] Permission denied

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: Please pretend I didn't leave off the actual os.remove call at the end of my second example that bypasses the issue. -- ___ Python tracker __

[issue21914] Create unit tests for Turtle guionly

2014-07-03 Thread Lita Cho
Lita Cho added the comment: I forgot to make it a patch. Created it as a patch for convenience. -- keywords: +patch Added file: http://bugs.python.org/file35847/test_turtle_guionly.patch ___ Python tracker

[issue21914] Create unit tests for Turtle guionly

2014-07-03 Thread Lita Cho
Lita Cho added the comment: I created tests for the gui portion of Turtle. This file combines both me and Ingrid's work that is specifically the gui tests. -- Added file: http://bugs.python.org/file35846/test_turtle_guionly.py ___ Python tracker

[issue21914] Create unit tests for Turtle guionly

2014-07-03 Thread Lita Cho
New submission from Lita Cho: Create unit tests for the Turtle library, specifically on their gui commands. -- components: Library (Lib), Tkinter messages: 59 nosy: Lita.Cho, jesstess priority: normal severity: normal status: open title: Create unit tests for Turtle guionly versions:

[issue1425127] os.remove OSError: [Errno 13] Permission denied

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: Similar reference regarding the same basic behavior: http://blogs.msdn.com/b/oldnewthing/archive/2012/09/07/10347136.aspx Short version: Indexing and anti-virus tools prevent deletion from occurring. Longer version: DeleteFile (and all the stuff that ultimate

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Andy Maier added the comment: PS: The v4 patch does not address comments f) and h) from msg04, and it seems to me they do not need to be addressed. -- ___ Python tracker ___

[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: So you want it to raise the same exception that is raised in Python 3.4? Either way, I don't think this is a deadlock (to get a deadlock, you'd have to have contested locks; this lock is being acquired only once). You're explicitly violating the rules of using

[issue2057] difflib: add patch capability

2014-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to agree with starting on PyPI if indeed there is not something there now. -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Uploaded issue12067-expressions_v4.diff to improve the unicode footnote 3, and to revert to using the term "lexicographical" for sequences (after learning that it applies there as well). Also, this version was produced using "hg diff" to make it properly reviewabl

[issue13946] readline completer could return an iterable

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: I agree the design requiring it to pass the same information over and over is a bit odd (I've occasionally had cause to "borrow" some of ipython's niftyness for a plain Python terminal, and making custom completers work is one of the more awkward parts of the

[issue21910] File protocol should document if writelines must handle generators sensibly

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: +1. I've been assuming writelines handled arbitrary generators without an issue; guess I've gotten lucky and only used the ones that do. I've fed stuff populated by enormous (though not infinite) generators created from stuff like itertools.product and the lik

[issue14709] http.client fails sending read()able Object

2014-07-03 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing "return" in HTTPConnection.send() ___ Python tracker ___ __

[issue14709] http.client fails sending read()able Object

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a response to this please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker ___ ___

[issue21913] Possible deadlock in threading.Condition.wait() in Python 2.7.7

2014-07-03 Thread Sangeeth Saravanaraj
New submission from Sangeeth Saravanaraj: Python version 2.7.7 Mac OS Darwin Kernel Version 13.2.0 I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a threading.Condition() and acquires() it! The progr

[issue14566] run_cgi reverts to using unnormalized path

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a response to this security issue please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: If any of these actually return borrowed references, I'd consider it a serious documentation bug to not mention it. New reference semantics are the default, and while it's best to call them out, it can be assumed in most cases. Returning borrowed references wi

[issue18212] No way to check whether Future is finished?

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: Ugh. Left out a key word: "I see this as making it even easier to do threading *badly*, rather than a legitimate improvement." -- ___ Python tracker _

[issue18212] No way to check whether Future is finished?

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: Have an idea for a name? It already has a done method, which happens to cover the case of a Future having completed successfully, completed due to an exception or having been cancelled. Simply calling it "finished()", "completed()" etc. isn't markedly differen

[issue14483] inspect.getsource fails to read a file of only comments

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Sean we're sorry for the delay in getting back to you. -- nosy: +BreamoreBoy, yselivanov ___ Python tracker ___

[issue14453] profile.Profile.calibrate can produce incorrect numbers in some circumstances

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Adam sorry about the delay in getting back to you. @Georg can you comment on the patch please. -- nosy: +BreamoreBoy, georg.brandl versions: +Python 3.5 -Python 2.6, Python 3.1, Python 3.2, Python 3.3 ___ Python trac

[issue14418] Document differences in SocketServer between Python 2.6 and 2.7

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Geoffrey sorry about the delay in getting back to you. -- nosy: +BreamoreBoy, pitrou ___ Python tracker ___

[issue14345] Document socket.SOL_SOCKET

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: I think this would be worth doing. All I could find out about SOL_SOCKET is that it's an int and has a value of 65535, at least on 3.4.1, Windows 7 32 bit. -- nosy: +BreamoreBoy type: -> behavior versions: +Python 3.4, Python 3.5 _

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: David, as a more generalized solution: Do you think it's possible to make some kind of mechanism in Python that would change the way that an exception is constructed based on whether it's used for control flow or not? I know that it's a bit far-fetched, but if we

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread R. David Murray
R. David Murray added the comment: The development team is not monolithic, and we are all people, with differing opinions (and Mark is Mark). As has been pointed out, there is people-load for development and maintenance associated with any change, so a mature project has a natural tendency to

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: Josh, I agree with most of what you're saying. (Except the tips about debugging are not helpful, the point is to get the information as quickly as possible without having to make code modifications if possible.) I can totally understand a reaction of "Your idea is

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: As I said, the main reason is that every feature has to start at minus 100 points. It's not that your idea is bad, it's that it has to be sufficiently good to warrant the risks that come with any code churn, no matter how small. "Simple and obvious" does not m

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Ram I won't be making any more comments as it's quite clear to me that you have no empathy at all with the core devs. -- ___ Python tracker ___

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: Mark, again I'm finding myself saying things that are obvious to all of us: You can figure out that "tuple index out of range" means you asked for an item bigger than the size of the tuple, but it might be very helpful for debugging to say the number of item that

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: If a programmer can't work out from "IndexError: tuple index out of range" what is going on they should give up programming. Personally I'd close this now with resolution "complete waste of core dev time". -- nosy: +BreamoreBoy type: behavior -> enhanc

[issue14336] Difference between pickle implementations for function objects

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: I couldn't find the code referenced in the changeset in the new _pickle.c. However I did find the comment that I've pasted below so I believe this issue only applies to 2.7. /* The old cPickle had an optimization that used switch-case statement dispatching

[issue21868] Tbuffer in turtle allows negative size

2014-07-03 Thread Lita Cho
Changes by Lita Cho : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21868] Tbuffer in turtle allows negative size

2014-07-03 Thread Lita Cho
Changes by Lita Cho : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-07-03 Thread Michael Foord
Michael Foord added the comment: So the proposed fix does the backslashreplace for errors and then re-decodes, allowing the encode in the stream to work. That seems like a good fix. -- ___ Python tracker _

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: Josh... The reason I gave all these examples of where Python gives detailed error messages, is not so you'd explain the obvious reason, which is that it makes it easier to debug, figure out what's wrong with your program, and fix it. The reason I gave these exampl

[issue21868] Tbuffer in turtle allows negative size

2014-07-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I looked at this and marked it as high priority (crashes are an unacceptable outcome). The patch looks fine but I haven't had a chance to test it yet. If it passes muster, I'll apply it shortly (I'm overseas traveling this week). In the meantime, can you

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: TypeError also should be more specific because it can occur for a multitude of reasons; along with stuff like AttributeError, it's one of those exceptions that could arise from multiple causes on a single line of code, none of them obvious. For the specific ca

[issue12854] PyOS_Readline usage in tokenizer ignores sys.stdin/sys.stdout

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Albert sorry about the delay in responding to this. -- nosy: +BreamoreBoy type: -> behavior versions: +Python 3.4, Python 3.5 ___ Python tracker __

[issue2057] difflib: add patch capability

2014-07-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this should be done. Python is primarily a language with a standard library, not a command-line development toolkit. We should avoid "mission creep". There are plenty of mature, robust, full-featured solutions already available. For exampl

[issue20663] Introduce exception argument to iter

2014-07-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: +1; I've had several cases where I'd have used something like this (for the exact purpose mentioned, to destructively consume an input iterable). I don't think it's more or less useful than the sentinel version, which is convenient for iterating a file by bloc

[issue14121] add a convenience C-API function for unpacking iterables

2014-07-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Regarding the redundancy, I don't think the C API should be expanded unnecessarily. Also, PyTuple_GET_ITEM() and its kin are very old, widely used, and very fast. I don't see a need to upset that apple cart. -- nosy: +rhettinger _

[issue12513] codec.StreamReaderWriter: issues with interlaced read-write

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Codecs gurus FYI. -- nosy: +BreamoreBoy, doerwalter, lemburg type: -> behavior versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue21868] Tbuffer in turtle allows negative size

2014-07-03 Thread Lita Cho
Lita Cho added the comment: Hey Raymond, just wanted to ping you to see if you had a chance to review this patch yet. Thanks! -- ___ Python tracker ___ _

[issue19279] UTF-7 to UTF-8 decoding crash

2014-07-03 Thread STINNER Victor
STINNER Victor added the comment: I suggest to close the issue. It's "just" another way to crash Python 3.2, like any other bug fix. Python 3.2 does not accept bug fixes anymore. -- ___ Python tracker

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: Raymond: I do take your point about performance, and I understand that if this results in a performance problem, then that's a good argument to not include this feature. But I'm baffled as to why you're asking me regarding this feature "Why? Is there any known us

[issue20663] Introduce exception argument to iter

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: I understand. Personally I think it'll be useful enough (and more useful to me than the builtin `sentinel`), but maybe that's just me. And I guess Terry liked it too. I don't know whether other people would like it as well. --

[issue16188] Windows C Runtime Library Mismatch

2014-07-03 Thread rlinscheer
rlinscheer added the comment: Quite frankly, I'm beyond caring now. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue11924] Pickle and copyreg modules don't document the interface

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Jesús can you provide a patch for this? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker _

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-03 Thread Zachary Ware
Zachary Ware added the comment: Hmmm, I was just reloading the page to post a patch I'd worked up, and lo and behold there's already one here! Here's mine anyway; you can use any parts of it that you like, Berker. There are a couple of not-quite-related changes in test_tools that might be be

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-03 Thread Zachary Ware
Zachary Ware added the comment: Hmmm, I was just reloading the page to post a patch I'd worked up, and lo and behold there's already one here! Here's mine anyway; you can use any parts of it that you like, Berker. There are a couple of not-quite-related changes in test_tools that might be be

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-03 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg17 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21911] "IndexError: tuple index out of range" should include the requested index and tuple length

2014-07-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why? Is there any known use case? The IndexError exception is commonly used for control flow. Slowing down the instantiation to add an index that no one really needs would be a waste. This exception has been around for 20+ years -- if they were an actua

[issue20663] Introduce exception argument to iter

2014-07-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Your suggestion and an example appears to have been taken directly from the itertools recipes: def iter_except(func, exception, first=None): """ Call a function repeatedly until an exception is raised. Converts a call-until-exception interface to an

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16188] Windows C Runtime Library Mismatch

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not aware of any similar problems being reported with any Python version so can this be closed "not a bug" as was #14608 ? -- nosy: +BreamoreBoy ___ Python tracker

[issue15722] PEP 3121, 384 Refactoring applied to decimal module

2014-07-03 Thread Stefan Krah
Stefan Krah added the comment: Yes, python-ideas is probably better. -- I just noticed that the total slowdown is even 40% if the global variable "cached_context" is also placed into the module state (as it should). -- ___ Python tracker

[issue18747] Re-seed OpenSSL's PRNG after fork

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Is this really an enhancement request or should it be a security issue? Which versions if any actually need work doing on them? -- nosy: +BreamoreBoy ___ Python tracker __

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: For future reference how do I find out if this has been applied to 3.2? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16037] httplib: header parsing is unlimited

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Is any further work needed on this and similar issues #16038, #16040, #16041, #16042 and #16043 ? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Uploaded issue12067-expressions_v3.diff for the 3.5 tip. Please review. -- ___ Python tracker ___ ___ Py

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Changes by Andy Maier : -- versions: +Python 3.5 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file35843/issue12067-expressions_v3.diff ___ Python tracker ___ __

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread R. David Murray
R. David Murray added the comment: The review link will also appear if the patch is generated via hg diff with diff.git turned *off*. You will note that both existing patches use --git, which omits parent changeset information, so our system can't figure out what to apply them against in orde

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Ah! I was somehow suspecting that. Thanks for clarifying! I'll prepare a patch. To correct my earlier message, the best place to link for comparisons is probably the Conparisons subchapter of the Expressions chapter in the reference. See also issue12067. ---

[issue15014] smtplib: add support for arbitrary auth methods

2014-07-03 Thread R. David Murray
R. David Murray added the comment: Thanks, Milan. I made some tweaks...mostly documentation and code style (your code style wasn't wrong, I just have some slightly different preferences with regards to line folding). I also eliminated the authobjects test method, since I didn't see that it a

[issue15014] smtplib: add support for arbitrary auth methods

2014-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42917d774476 by R David Murray in branch 'default': #15014: Add 'auth' command to implement auth mechanisms and use it in login. http://hg.python.org/cpython/rev/42917d774476 -- nosy: +python-dev ___ Pyth

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Hi, I'd like to revive this issue. IMHO, the changes in issue12067-expressions_v2.diff go too far. I don't think that deleting the entire section about the details of comparing objects of the same type makes sense. I agree with Terry's statement in msg170936 that

[issue19279] UTF-7 to UTF-8 decoding crash

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: To repeat the question do we or don't we fix this in 3.2? -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue21051] incorrect utf-8 conversion with c api

2014-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2014-07-03 Thread Zachary Ware
Zachary Ware added the comment: With the popup-supression context manager from #11732 in use and the buildbots using the regrtest '-n' option, I think we're at the point of being "fixed enough" and vote to close this issue. I'll leave the final decision to someone with a deeper understanding

[issue21185] heapq fails to print in sorted order for certain inputs

2014-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: > Still, I suggest adding this behavior to the documentation. It is already in the documentation. For example, https://docs.python.org/2/library/logging.html#logging.Formatter.format https://docs.python.org/2/howto/logging.html#optimization This behaviour has bee

[issue15722] PEP 3121, 384 Refactoring applied to decimal module

2014-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: This sounds like a question for python-dev (or perhaps python-ideas). -- ___ Python tracker ___ ___ Py

[issue14069] In extensions (?...) the lookbehind assertion cannot choose between the beginning of string and a letter

2014-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: I believe this is not a bug. As the error says a look-behind requires the pattern to have a fixed length. In re.search(r'(?<=(a|b))(\w+)', 'abc').groups() the two possible patterns in the look behind are "a" and "b", both with length 1. In re.search(r'(?<=(^|$))(

[issue21151] winreg.SetValueEx causes crash if value = None

2014-07-03 Thread Zachary Ware
Zachary Ware added the comment: Thanks to Dave for the report, eryksun for the suggestion, and John for the patch! I'm not sure why the test case doesn't fail on a regular test run on Python 3; it looks like BYTE *data starts out as NULL when Python is not in interactive mode, which makes no

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: > Why do the patches attached to this issue not have a "review" link? because > both (2.7 and 3.2) patches do not line up with the current > 2.7 and 3.x tip, both hunks get rejected. The "review" link only appears if the patch applies cleanly on the "default" b

[issue21151] winreg.SetValueEx causes crash if value = None

2014-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2e6c33ce3e9 by Zachary Ware in branch '2.7': Issue #21151: Fixed a segfault in the _winreg module. http://hg.python.org/cpython/rev/f2e6c33ce3e9 New changeset 0c5a1835af91 by Zachary Ware in branch '3.4': Issue #21151: Fixed a segfault in the winre

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Jonas Diemer
Jonas Diemer added the comment: 2014-07-03 16:42 GMT+02:00 Vinay Sajip : > > I "forked" logging and am catching exceptions during the string > formatting > > That might work with Jython and invalidated objects, but in the case of > e.g. CPython (where the objects can't be invalidated/garbage col

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Just out of curiosity: Why do the patches attached to this issue not have a "review" link? Also, both (2.7 and 3.2) patches do not line up with the current 2.7 and 3.x tip, both hunks get rejected. Comments on both patches: 1. It would be helpful if the text "Ea

[issue21905] RuntimeError in pickle.whichmodule when sys.modules if mutated

2014-07-03 Thread Olivier Grisel
Olivier Grisel added the comment: New version of the patch to add an inline comment. -- Added file: http://bugs.python.org/file35841/pickle_whichmodule_20140703.patch ___ Python tracker

[issue21755] test_importlib.test_locks fails --without-threads

2014-07-03 Thread Berker Peksag
Berker Peksag added the comment: > Does it not work in this context Yes, it doesn't work after 34d65746d5ca because LOCK_TYPES is an empty dict (test_util.test_both() can't find the 'Frozen' and 'Source' keys in it) when Python is built without threads. -- ___

[issue10485] http.server fails when query string contains addition '?' characters

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue14301] xmlrpc client transport and threading problem

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Kees sorry for the delay in getting back to you. @Martin can you comment on this please. -- components: +Library (Lib) -None nosy: +BreamoreBoy, loewis ___ Python tracker

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: > but it means that the string formatting is always done Not if you use logger.isEnabledFor(level) as a guard to avoid unnecessary work :-) > I "forked" logging and am catching exceptions during the string formatting That might work with Jython and invalidated o

[issue21905] RuntimeError in pickle.whichmodule when sys.modules if mutated

2014-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds fine, but you should at least add a comment explaining the list() call. -- nosy: +alexandre.vassalotti, pitrou stage: -> patch review type: crash -> behavior ___ Python tracker

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Jonas Diemer
Jonas Diemer added the comment: Thanks for the explanation. Throughput is a valid reason. Your workaround does of course work, but it means that the string formatting is always done, even if the message is filtered out. Is this delayed logging behavior documented in any way (maybe I have overr

[issue14293] Message methods delegated via __getattr__ inaccessible using super().

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @David I believe this is one for your TODO list. -- components: +email -Library (Lib) nosy: +BreamoreBoy, barry type: -> behavior versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: > I don't see a reason to defer the formatting to the actual output of the > messages (other than the current implementation of logging). The current implementation of logging is like that for a reason, even though you may not see it - it defers doing work until

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

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: FWIW the same occurs on Windows 7 with 3.5.0 but given there are known differences between Windows and *nix is this really an issue? -- nosy: +BreamoreBoy ___ Python tracker __

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread R. David Murray
R. David Murray added the comment: The decision as to whether or not to pass the message along to the next stage is made at numerous points in the pipeline. -- ___ Python tracker __

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone comment please as I'm not brave enough to touch the C code or docs. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue14121] add a convenience C-API function for unpacking iterables

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Apparently not :) -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue14124] _pickle.c comment/documentation improvement

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a patch review on this please -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a reply to this please as I don't understand enough about sqlite3 to comment. -- nosy: +BreamoreBoy title: sqlite3 module ignores placeholers in CREATE TRIGGER code -> sqlite3 module ignores placeholders in CREATE TRIGGER code _

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: On Windows 7 206 codecs tests passed and 4 skipped with the patch included. -- keywords: +patch nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file35840/Issue14014.diff

  1   2   >