[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, please ensure that server is returning a proper HTTP response. Test it against browser or curl and see if they work. If they work, then it needs to be investigated as why 'http.client' is not working. -- assignee: -> orsenthil nosy: +orsenthil

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
Bastian Kleineidam added the comment: To make the previous comment more precise: URLs where the scheme specific part begins with a digit are affected. -- ___ Python tracker ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Raymond, you can be assured that I'm not developing this patch, unless I'm told it has chances to be accepted. I don't like to waste my time. On a related note, your review of my other patches is appreciated. -- ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please cease development of this patch. It has been rejected. The peephole optimizer should be considered somewhat off-limits at this point and any further development efforts directed at an AST optimizer. -- resolution: -> rejected

[issue706263] print raises exception when no console available

2011-03-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: This is indeed reproducible in Python 2.7. The following unittest will expose it. However, patching sys.std* to None will break `print` statements to raise AttributeError in pythonw.exe programs, though it won't mysteriously break only after printing 4 kbytes

[issue968430] error flattening complex smime signed message

2011-03-11 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Alexander, my patch does 2 optimizations: doesn't insert a new constant if one already exist and removes unused constants after peephole is done. You patch seems to do only the latter. It's very similar, from a quick look at your patch: - My patch doesn't introd

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Okay, fixed in all relevant branches. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d676601fee6f by Senthil Kumaran in branch '3.1': Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex http://hg.python.org/cpython/rev/d676601fee6f -- ___ Python tracker

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Eugene, how does your optimization differ from the one proposed in issue2493? -- nosy: +belopolsky ___ Python tracker ___ ___

[issue11049] add tests for test.support

2011-03-11 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue9298] binary email attachment issue with base64 encoding

2011-03-11 Thread R. David Murray
R. David Murray added the comment: Unfortunately we don't have enough history information to determine who wrote the original _bencode function, although very likely it was Barry. As for the test, that seems to have been written during the python3 translation to make sure that the behavior i

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06cca90ff105 by orsenthil in branch 'default': Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex http://hg.python.org/cpython/rev/06cca90ff105 -- nosy: +python-dev ___

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread R. David Murray
R. David Murray added the comment: Well, it's still the case that the Python raw string syntax isn't going to change to not escape the quotes, because that would break far too many existing applications that depend on them being escaped. So a new string literal type would seem to be the only

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread Glenn Linderman
Glenn Linderman added the comment: @Graham: seems like the two primary gotchas are trailing \ and \" \' not removing the \. The one that tripped me up the most was the trailing \, but I did get hit with \" once. Probably if Python had been my first programming language that used \ escapes,

[issue11049] add tests for test.support

2011-03-11 Thread R. David Murray
R. David Murray added the comment: Gah. I always check to see if the patch uploaded before I delete my working copy, but this time I didn't :( :( I guess I'll come back to this during the sprints. -- ___ Python tracker

[issue11350] __setitem__()'s problem of dbm.dumb object pointed out by comments

2011-03-11 Thread R. David Murray
R. David Murray added the comment: Well, I don't think we are going to add an abort method in order to write a unit test, though it isn't completely out of the question. However, I've now looked at the code and the other comments in the file, and it is clear that great care is taken to allow

[issue11464] Call Mac API Crash via ctypes

2011-03-11 Thread yufun
yufun added the comment: thanks Ned and Ronald, I totally agree with you, I think it's a 32/64 issue. But, I'm not clear about the 32 and 64 bit in Python and don't know how to do let my code works, could you please explain more detail about that? -- _

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread R. David Murray
R. David Murray added the comment: If I'm remembering the discussion I read correctly, what the parser does is to parse the a regular string and a raw string in exactly the same way, but in the raw string case, it does not do the subsequent escape sequence replacement pass on the parsed strin

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread Graham Wideman
Graham Wideman added the comment: @Glenn Linderman: I too am usually quick to assume that "innocent fixes" may have serious unforeseen impacts, but in this case I'm not convinced. What would matter is to enumerate the current behavior, and of that what would be changed. You seem to have ha

[issue10665] Expand unicodedata module documentation

2011-03-11 Thread STINNER Victor
STINNER Victor added the comment: > The patch contains non-ascii chars that should be avoided (they break `make > pdf`). What is the error? Can't you fix the PDF generator instead? -- ___ Python tracker

[issue3080] Full unicode import system

2011-03-11 Thread STINNER Victor
STINNER Victor added the comment: See also #9319: when this issue will be fixed, it will be easier to fix #9319. -- ___ Python tracker ___ ___

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-03-11 Thread STINNER Victor
STINNER Victor added the comment: I'm working on #3080 which changes the import machinery to use Unicode instead of byte strings, and so it will be possible to fix this issue correctly. -- ___ Python tracker _

[issue11464] Call Mac API Crash via ctypes

2011-03-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is almost certainly not a bug in Python, but in the code in this issue. CGEventGetLocation() is a function that returns a CGPoint, while ctypes assumes that function returns value of C type int. The effect of this is that ctypes will create the wrong s

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Yes, my patch doesn't fix the regression, only a special case of -0. -- ___ Python tracker ___ ___ Py

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Eugene's patch looks like a correct fix to the regression. No, it's orthogonal. -- ___ Python tracker ___ __

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Eugene's patch looks like a correct fix to the regression. I'll review further in the next couple of days. Antoine, we need to further discuss your checkin to the peephole optimizer. I believe it was inappropriate. -- assignee: mark.dickinson ->

[issue11432] webbrowser.open on unix fails.

2011-03-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: subprocess in 3.2 bug from the looks of it. not sure if 2.7 or 3.1 are impacted at all, i'll remove them from the list after confirming. -- assignee: -> gregory.p.smith ___ Python tracker

[issue11403] Add some generated files in PC/ to .hgignore.

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thank you! -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11403] Add some generated files in PC/ to .hgignore.

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 350b956b3600 by Antoine Pitrou in branch '2.7': Issue #11403: add some MSVC-generated files to .hgignore http://hg.python.org/cpython/rev/350b956b3600 -- ___ Python tracker

[issue11403] Add some generated files in PC/ to .hgignore.

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset f040a34102de by Antoine Pitrou in branch '3.1': Issue #11403: add some MSVC-generated files to .hgignore http://hg.python.org/cpython/rev/f040a34102de New changeset b2a6d1a5e2cf by Antoine Pitrou in branch '3.2': Merge #11403 http://hg.python.org/c

[issue11473] upload command no longer accepts repository by section name

2011-03-11 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11473] upload command no longer accepts repository by section name

2011-03-11 Thread Jason R. Coombs
New submission from Jason R. Coombs : It appears that with Python 3.2 (Windows 64-bit), the distutils upload -r command no longer accepts the repository section name, but instead only attempts to parse it as a URL. This is a regression from Python 2.7. PS C:\Users\jaraco\projects\hgtools> pyth

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Thomas, can you clarify, does loading interns all constants in co_consts, or do you mean that they are mostly small numbers and the like? Without interning I think that in-memory size difference is even bigger than on-disk, as you get one entry in tuple and the

[issue11472] upload command fails to read auth information from .pypirc

2011-03-11 Thread Jason R. Coombs
New submission from Jason R. Coombs : It appears that distutils isn't loading the authentication information from .pypirc. I ran this test on Python 3.2 64-bit on Windows. PS C:\Users\jaraco\projects\hgtools> python -m pdb setup.py sdist upload > c:\users\jaraco\projects\hgtools\setup.py(7)() -

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: There's #4965 for that. Last time I tried there was some problem with it, maybe I'll try again in future. -- ___ Python tracker ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Eugene. As the person who designed, implemented, and maintains the peephole optimizer, I need to reject the patch. If better constant folding is wanted, the work needs to be done with AST, not with bytecode. I would welcome a patch. Thomas, thanks

[issue11432] webbrowser.open on unix fails.

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Is this a webbrowser or subprocess bug? Please add the corresponding expert from http://docs.python.org/devguide/experts to the nosy list. -- nosy: +eric.araujo versions: +Python 3.1 ___ Python tracker

[issue11447] test_pydoc refleak

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10716] Modernize pydoc to use CSS

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: I added a few comments for ccs_v3.diff on rietveld. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-11 Thread R. David Murray
R. David Murray added the comment: If you do a "def foo" in module bar.py, and have a class FooFoo in bar.py, and do: FooFoo.myfoo = foo and foo refers to an unbound variable, that variable will be looked up in bar.py's global name space. If instead the 'def foo' is in a module parrot.py, a

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 11, 2011 at 09:51:32PM +, Éric Araujo wrote: > If you can write a patch that cleans up the code and closes the > files without being too hard to review I'll try to do so tomorrow. -- ___ Pyt

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch posted for review at http://codereview.appspot.com/4274045/. Still have to do a review though :) -- ___ Python tracker ___ __

[issue11390] doctest: add cmdline parameters

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch type: -> feature request versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: If you can write a patch that cleans up the code and closes the files without being too hard to review, it could get committed soon. Then you could adapt your patch on the other bug and defend it. -- ___ Python track

[issue11471] If without else generates redundant jump

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Test case (needed some refactoring to avoid duplication). -- Added file: http://bugs.python.org/file21092/if_no_else_test.patch ___ Python tracker __

[issue11471] If without else generates redundant jump

2011-03-11 Thread Eugene Toder
New submission from Eugene Toder : If statement without else part generates unnecessary JUMP_FORWARD insn with jumps right to the next insn: >>> def foo(x): if x: x = 1 >>> dis(foo) 2 0 LOAD_FAST0 (x) 3 POP_JUMP_IF_FALSE 15

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Some info: http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.Why_is_the_modification_time_of_files_not_restored_on_checkout.3F and http://mercurial.808500.n3.nabble.com/Mercurial-s-treatment-of-directory-file-timestamps-td796168.html Related bug: ht

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Thomas Wouters added the comment: What is the actual performance impact of this change? As far as I can see the difference is almost entirely in .pyc (on-disk) size, as when loading most of these constants are interned anyway. Even the on-disk change is minimal - and I say that as a person wh

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 11, 2011 at 09:20:14PM +, Éric Araujo wrote: > your patch is not uncontroversial. The code is very ugly, but i think that somewhat reflects the code flow of the entire function. At least a bit. I've forced all mis-uses i could imagine

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: I’m afraid I don’t understand “Method's function”. Could you rephrase, or give a commented code example showing the bad behavior? -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Would you like to work on a patch? Guidelines are found at http://docs.python.org/devguide -- nosy: +eric.araujo, rhettinger versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 __

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Guido van Rossum
Guido van Rossum added the comment: This should not reuse DeprecationWarning but instead introduce a different warning, e.g. CompatibilityWarning. -- nosy: +gvanrossum ___ Python tracker _

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1099] Mac compile fails with pydebug and framework enabled

2011-03-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the call to libtool and always links the framework using gcc (as was already done for universal builds). With this patch I can build the framework using the following configure command-line on OSX 10.6: ../configure --with-pyde

[issue11428] with statement looks up __exit__ incorrectly

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: After a quick perusal of the PEP, there are no wrong definitions of context managers (IOW they define methods in a class, not attribute on an object), but the pseudo-code explaining how the statement works use things like “mgr.__enter__” instead of “type(mgr).__

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Sorry, accidentally removed the first patch. -1 on the second patch: there’s another issue for that, and your patch is not uncontroversial. -- Added file: http://bugs.python.org/file21089/getpass_fdclose.patch ___ Pyt

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Please do not mix issues. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread R. David Murray
R. David Murray added the comment: I think perhaps the language in the language reference is a bit misleading. The purpose of the raw string algorithm is that any characters in the string be copied literally into the string object. That is, \" "escapes" the " not so that you can write r"\""

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21079/getpass_fdclose.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue9935] Faster pickling of instances

2011-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue706263] print raises exception when no console available

2011-03-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue706263] print raises exception when no console available

2011-03-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9935] Faster pickling of instances

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff0220c9d213 by Antoine Pitrou in branch 'default': Issue #9935: Speed up pickling of instances of user-defined classes. http://hg.python.org/cpython/rev/ff0220c9d213 -- nosy: +python-dev ___ Python trac

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21087/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-l

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21088/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Don’t forget to remove the comments in codecs that are made obsolete by your changes. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21085/nonmethod-warn.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21087/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21086/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-l

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21086/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11179] ccbench doesn't work on 3.1/2.7

2011-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11179] ccbench doesn't work on 3.1/2.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 353032fd38e2 by Antoine Pitrou in branch '3.2': Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. http://hg.python.org/cpython/rev/353032fd38e2 New changeset 92b59654e71c by Antoine Pitrou in branch 'default': Issue #11179: Make ccben

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread Glenn Linderman
Glenn Linderman added the comment: I can certainly agree with the opinion that raw strings are working as documented, but I can also agree with the opinion that they contain traps for the unwary, and after getting trapped several times, I have chosen to put up with the double-backslash requir

[issue11469] Fix resource warning in test_trailers

2011-03-11 Thread Brian Curtin
Brian Curtin added the comment: FYI this was created during my PyCon talk...needed a non-dev account for the demo. -- nosy: +brian.curtin ___ Python tracker ___ ___

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Alex
Changes by Alex : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
New submission from Thomas Wouters : As discussed at the language summit at PyCon 2011, some code takes some liberties with setting class attributes to callable objects, like CFunctions, that (C)Python does not turn into methods. This is problematic because 1) CPython can't then turn that CFun

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +twouters -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10812] Add some posix functions

2011-03-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14a2d276b9ab by Ezio Melotti in branch 'default': #11446: merge with 3.2. http://hg.python.org/cpython/rev/14a2d276b9ab -- ___ Python tracker

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset eeef2f17a774 by Ezio Melotti in branch '3.2': #11446: merge with 3.1. http://hg.python.org/cpython/rev/eeef2f17a774 -- ___ Python tracker

[issue11469] Fix resource warning in test_trailers

2011-03-11 Thread brian.curtin.test
New submission from brian.curtin.test : There is an unclosed file in test_trailers. Attaching a patch to fix this. -- components: Tests files: test_trailers_resourcefix.diff keywords: patch messages: 130602 nosy: brian.curtin.test priority: normal severity: normal status: open title: Fix

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed1f7b3f2ff3 by Ezio Melotti in branch '3.1': #11446: fix incorrect PEP link. http://hg.python.org/cpython/rev/ed1f7b3f2ff3 -- nosy: +python-dev ___ Python tracker __

[issue11444] logging FileHandler.close should acquire its lock before closing stream

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6626c9fc28d by Vinay Sajip in branch '2.6': Reverted bug fixes for #11444 (fc4d045e3170) and #11424 (b9d76846bb1c), which should not have been made in this branch. http://hg.python.org/cpython/rev/d6626c9fc28d --

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
Bastian Kleineidam added the comment: Regarding the correctness of the Python 2.6 implementation: http://www.faqs.org/rfcs/rfc1738.html specifies URLs of the form : where the scheme specific part is allowed to consist only of digits. I agree that the example URL is not a good one and it is a

[issue11468] Improve unittest basic example in the doc

2011-03-11 Thread Ezio Melotti
New submission from Ezio Melotti : The current example[0] uses assertTrue(element in self.seq) but it would be better to use assertIn instead. The whole example could be changed to something simpler that uses only the assertTrue/assertEqual/assertRaises methods correctly, e.g.: import unitte

[issue11090] Doc errors for unittest in Python 3.1

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: addCleanup/doCleanups/startTestRun/stopTestRun are in 3.1 too and now they are documented as new in 3.1. I also removed the versionchanged note for __iter__ (0f9e5042907c). Test discovery, --failfast, --catch, --buffer are new in 3.2 and not documented on 3.1.

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also issue10812 which implements os.futimens(). -- ___ Python tracker ___ ___ Python-bugs

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: > Right now, the pattern is tokenize -> parse -> AST -> genbytecode -> > peephole optimization (which disassembles the bytecode, analyzed it > and rewrites it) -> final bytecode. The correct pattern is tokenize > -> parse -> AST -> optimize -> genbytecode -> pee

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: What kind of url is 'javascript:123' and how do you (/ we) say that python2.6 behavior was correct? -- assignee: -> orsenthil keywords: +patch ___ Python tracker __

[issue10461] Use with statement throughout the docs

2011-03-11 Thread SilentGhost
SilentGhost added the comment: Éric, I'm not sure about the first atexit.rst hunk. I thought the purpose of that code was to except IOError when no file is found. I'm not entirely sure why in the simplest case infile.read() would raise IOError. I'd think that eli's patch (file19667) would sui

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > _PyCode_AddObj() should be added to Include/code.h > Should it be declared as PyAPI_FUNC too? This will make it > unnecessarily exported (when patch in Issue11410 is merged), so I > wanted to avoid that. I guess we don't usually try to optimize that, but yo

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: +orsenthil, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: > _PyCode_AddObj() should be added to Include/code.h Should it be declared as PyAPI_FUNC too? This will make it unnecessarily exported (when patch in Issue11410 is merged), so I wanted to avoid that. btw, that you for reviewing the patch. -- __

  1   2   >