[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: multiple inheritance should not be a problem: there can be only one "dominant base", which is 'int' in this case. someone with a debugger should step into this call to PyType_Ready() and see why it does not set the flag correctly (at the end of inherit_s

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch generally changes things like :option:`-e` to ``-e`` and -r N/:option:`--repeat=N` to ``-r N/--repeat=N`` which is what I understand GB to have said to do. :program:`python regrtest.py` :option:`test_spam.py` to :program:`python regrtes

[issue1062277] Pickle breakage with reduction of recursive structures

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As I explained in msg110617 under issue9269, it is possible that we can do better than simply detect reduce cycles and bail out. I am torn between two options: 1. Reject this patch and wait until a proper solution is found. 2. Admit that better is the

[issue7696] Improve Memoryview/Buffer documentation

2010-07-19 Thread Craig McQueen
Craig McQueen added the comment: I've seen the changes Mr Pitrou made, both for the 2.x and 3.x docs. That's a good improvement--thanks very much. -- ___ Python tracker ___

[issue1062277] Pickle breakage with reduction of recursive structures

2010-07-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2142] difflib.unified_diff(...) produces invalid patches

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: I feel adding a keyword argument to deal with such a case is not quiet worthy. I'd prefer not fix it for 2.x, and make its behavior consist with svn diff and other similar tools, as trentm said, "tools like "patch" will know how to use." -- __

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Does Numpy correctly call PyType_Ready()? As far as I can tell, it does: #define DUAL_INHERIT(child, parent1, parent2) \ Py##child##ArrType_Type.tp_base = &Py##parent2##ArrType_Type; \ Py##child##ArrType_Type.tp

[issue2142] difflib.unified_diff(...) produces invalid patches

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: Firstly, since this is marked as feature request, I updated the patch against py3k, to fix the problems found by BreamoreBoy. -- Added file: http://bugs.python.org/file18081/issue_2142_py3k_updated.diff ___ Python tracke

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-07-19 Thread Eli Bendersky
Eli Bendersky added the comment: Patch -- keywords: +patch Added file: http://bugs.python.org/file18080/issue9312.1.patch ___ Python tracker ___ _

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-07-19 Thread Eli Bendersky
New submission from Eli Bendersky : Due to a discussion on python-dev (Subject: "Markup of command-line options in Python's .rst documentation"), Georg Brandl checked in revision r82961 with a clarification of :option: markup which should only be used for Python interpreter's own flags. Howev

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-19 Thread Ray.Allen
Changes by Ray.Allen : Added file: http://bugs.python.org/file18079/json_py3k.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: I worked out two patches, one for trunk and one for py3k, both with tests, hope someone could do a reviewing. -- keywords: +patch nosy: +ysj.ray Added file: http://bugs.python.org/file18078/json_trunk.diff ___ Python tra

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +needs review stage: commit review -> patch review ___ Python tracker ___ ___ Python-bug

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a new patch, issue9308a.diff which fixes test_imp by introducing a new package, test.encoded_modules which currently contains a module encoded with iso-8859-1 and another with a somewhat more interesting encoding, koi8-r. I think it woul

[issue5993] python produces zombie in webbrowser.open

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Assigned as per maintainers list. -- assignee: -> georg.brandl nosy: +BreamoreBoy, georg.brandl versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Re-assigned as per maintainers list. -- assignee: fdrake -> orsenthil nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___

[issue2864] etree: Add XPath documentation

2010-07-19 Thread Matt Bone
Matt Bone added the comment: Here's a patch for 3.2 with some simple examples. They're under the ElementTree findall method. Maybe there should be similar examples for Element's find/findall methods? -- keywords: +patch nosy: +mbone Added file: http://bugs.python.org/file18076/xpath

[issue1170] shlex have problems with parsing unicode

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I believe the e-mail thread that culminated in r32284, "Implemented posix-mode parsing support in shlex.py", was "shellwords" from April 2003: http://mail.python.org/pipermail/python-dev/2003-April/034670.html I scanned through the messages, but could no

[issue1243730] Big speedup in email message parsing

2010-07-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1208304] urllib2's urlopen() method causes a memory leak

2010-07-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Pytho

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: Thanks for reviewing! > The name 'ensure_exist' for the new parameter strikes me as wrong, as well as > too long for something that will nearly always be set to True. The function > always ensures that the directory exists. The question is whether it is ok > that

[issue1170] shlex have problems with parsing unicode

2010-07-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/

[issue1170] shlex have problems with parsing unicode

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As discussed in msg110828 under issue9308, it is not clear whether logic identifying word characters in shlex is correct in presence of unicode. -- assignee: -> belopolsky keywords: +patch nosy: +belopolsky _

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder whether 3.x shlex working with unicode files is just incidental to 3.x string model and is not really correct. I think issue1170 is a better place to have this discussion. I'll add a comment there. -- nosy: -Alexander.Belopolsky ___

[issue9265] Incorrect name passed as arg[0] when shell=True and executable specified

2010-07-19 Thread Narnie Harshoe
Narnie Harshoe added the comment: David, working as fast at learning Python as I can and loving it! Stefan, thanks for the patches. Thanks guys, Narnie -- versions: -Python 3.2 ___ Python tracker ___

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: I upload two files (test.db and test_problem.db). The test.db is an SQLite which works ok (application/octet-stream), if I send it from: - gmail to my server - my server to gmail - yahoo to my server - my server to yahoo using my python program to send mail w

[issue9311] os.access can return bogus values when run as superuser

2010-07-19 Thread Garrett Cooper
New submission from Garrett Cooper : As seen in the nose bug [1], I stumbled upon an OS quirk with FreeBSD, where apparently (as superuser) due to the wording of the POSIX spec for access(2), it's considered free game to return 0 for the system call (True) for os.[RWX]_OK. Only python was aff

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread R. David Murray
R. David Murray added the comment: OK. In your previous message you said the problem came when you sent "from gmail" to your server. I guess that was a typo. If you write the file generated by your python program to a file instead of sending it through your SMTP server, is it already incorr

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: "If Python is the problem or the server! But how can I say that my server has a problem if when I send this same file from my server no any other the file arrives ok." The phrase above I want to say that when I send the same file using a mail client as Mail

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: Ok, let me try. I'm sending a mail using Python, as you can see the code in the first message. I'm sending a file which is a SQLite database. When I send the file from my SMTP server to any other or from any server to mine the file doesn't arrive as test.db a

[issue9278] rename 2to3 & pydoc to 2to3.py & pydoc.py

2010-07-19 Thread R. David Murray
R. David Murray added the comment: On a windows install you will find Tools/scripts/2to3.py and Tools/scripts/pydocgui.pyw. Do you think there is something more needed? -- ___ Python tracker _

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread R. David Murray
R. David Murray added the comment: Well, in the information you just gave you don't explain how Python is involved, so that would be a good place to start. -- ___ Python tracker ___

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: r.david.murray, if more info is needed, please send me what kind. -- ___ Python tracker ___ ___ Py

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: It's not just a bad configured server. If I send the file with a mail client the file is sent ok. But Im having a problem just with my server. For example: 1 - If i send the file attached here test.db (SQLite3) from a gmail server to a yahoo server, the e-mail

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list maili

[issue4753] Faster opcode dispatch on gcc

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is too late for 2.x now, closing. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread Murilo da Silva
Murilo da Silva added the comment: SOLVED!! MAIL SERVER BAD CONFIGURED. Thanks and sorry. -- status: open -> closed ___ Python tracker ___ __

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Éric Araujo
Éric Araujo added the comment: I shouldn’t edit bugs when tired, sorry for the noise. hg log tells me that those extra characters have been added in r32284 (2003) following bug #722686 by Gustavo Niemeyer following a discussion on “the mailing list”. Adjusting nosy. -- nosy: +niemeye

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > > Changes by Éric Araujo : > -- > nosy: +esr I don't think posix mode was added by ESR, but I cannot check ATM. -- nosy: +Alexander.Belopolsky ___ Python tracker _

[issue4804] Python on Windows disables all C runtime library assertions

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closed as stated committed r69495. -- nosy: +BreamoreBoy resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: jjlee's issue3704.patch has been committed to py3k (3.2) in r82985. It could still use backporting to 2.6, 2.7 and 3.1. -- resolution: -> accepted versions: -Python 3.2 ___ Python tracker

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +esr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue4770] binascii module, inconsistent behavior: some functions accept unicode string input

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Florent, could you add a NEWS entry as requested in msg98381, then we should be able to get this committed. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue3119] pickle.py is limited by python's call stack

2010-07-19 Thread Aaron Gallagher
Aaron Gallagher added the comment: Here's a patch that fixes the unit tests. A new test was added that tried to test the C implementation of this though none exists. -- keywords: +patch Added file: http://bugs.python.org/file18073/pickle4.patch ___

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Py_TPFLAGS_INT_SUBCLASS is an implementation detail, and extension modules should not have to be aware of it. Does Numpy correctly call PyType_Ready()? -- nosy: +amaury.forgeotdarc status: pending -> open ___

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Christian, Daniel, I take it that you're both still interested in this? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue9310] Intermittent failures in test_logging

2010-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1491804] Simple slice support for list.sort() and .reverse()

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: I can't see any sense in doing a patch review on this until there is agreement that the patch is actually needed. Having read the initially referenced thread on groups.google.de I'm not convinced that this is going to happen. -- nosy: +BreamoreBoy __

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Tracker eating python prompt prefixed lines is truly annoying. Here are the missing lines: >>> len(shlex(posix=True).wordchars) - len(shlex().wordchars) 62 >>> len([chr(i) for i in range(128, 256) if chr(i).isalnum()]) 71 -- __

[issue9310] Intermittent failures in test_logging

2010-07-19 Thread Stefan Krah
New submission from Stefan Krah : Seemingly random failures in test_logging on 2.6/ubuntu-wide. See: http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 2.6/builds/777 [fail] http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 2.6/builds/778 [ok]

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jul 19, 2010 at 4:33 PM, Éric Araujo wrote: .. > The shlex fix was reverted IIRC because Mark was unsure of the fix, since our > diff tools > try to be too clever and decode files, not showing us the bytes differences. Well, it is not clear what

[issue900092] hotshot.stats.load fails with AssertionError

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Who of our overworked volunteers is going to do the work, given that hotshot doesn't even feature on the maintainers list? -- status: pending -> open ___ Python tracker _

[issue900092] hotshot.stats.load fails with AssertionError

2010-07-19 Thread Brian Curtin
Brian Curtin added the comment: I don't think this should have been closed just yet. If the issue still exists in 2.x, it could still be fixed in the remaining 2.6 release, or any of the future 2.7 releases. You are right that it won't apply to 3.x since hotshot is gone there. -- nos

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2010-07-19 Thread Greg Hazel
Changes by Greg Hazel : -- nosy: +ghazel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Peter Donis
Peter Donis added the comment: Also, can someone please clear the spam flag on my msg110813? -- ___ Python tracker ___ ___ Python-bugs

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Peter Donis
Peter Donis added the comment: Uploading py3k version of doctest_testfile.txt as well, in case it's needed for testing. -- Added file: http://bugs.python.org/file18072/doctest_testfile.txt.py3k ___ Python tracker

[issue900092] hotshot.stats.load fails with AssertionError

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as hotshot is not maintained and is not documented in py3k. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Peter Donis
Peter Donis added the comment: Re msg110808, on thinking it over I realized it may not be so simple to get diff and patch to behave properly with a file like doctest_testfile.txt, where we want to intentionally mismatch newlines. We basically need to treat the file as binary rather than text

[issue1441984] Multiple simultaneous sendtos on AF_UNIX socket broken.

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- status: pending -> closed ___ Python tracker ___ ___ Python-bug

[issue1528167] Tweak to make string.Templates more customizable

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue1428655] Use PyOS_snprintf for static buffers

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue1515142] sgmllib should recover from unmatched quotes

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue1501979] syntax errors on continuation lines

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue1214879] Support non-file source/dest in marshal

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Peter Donis
Peter Donis added the comment: Uploaded a diff implementing the fix for the head of the py3k branch. Test passes on my Linux box: pe...@powerspec:~/.local/lib/python3.2/test> python3.2 Python 3.2a0 (py3k:82984, Jul 19 2010, 16:03:06) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type

[issue1149798] hotshot.runctx: builtins missing

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Closing as noone has responded. -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ _

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-07-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue2690] Precompute range length

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Nick, would you have time to work on this for 3.2, or should we target 3.3, or could somebody else take this over? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-07-19 Thread Alexander Dreyer
New submission from Alexander Dreyer : At the Sage Days 24 coding sprint the issue came up, that the setup.py install programs of several python-based tools pick the prefix-setting from ~/.pydistutils.cfg. http://trac.sagemath.org/sage_trac/ticket/9536 In order to get this right, we suggest t

[issue2528] Change os.access to check ACLs under Windows

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Tim, do you want more time to think about this, could we close as "won't fix" or what? -- ___ Python tracker ___ ___

[issue9204] The documentation of PyType_Type in py3k mentions types.TypeType

2010-07-19 Thread Tim Lesher
Tim Lesher added the comment: There are a number of similar mentions in the C API docs and index; attached is a patch that removes each. -- keywords: +patch nosy: +tlesher Added file: http://bugs.python.org/file18068/remove-extraneous-types.diff ___

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: I've again tried running the test against the 2.7 maintainance release and got:- ValueError: line 12 of the docstring for doctest_testfile.txt has inconsistent leading whitespace: 'This doctest verifies universal newline support; each command' Could another p

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Éric Araujo
Éric Araujo added the comment: This is not easy after all, kudos for taking care of that. The shlex fix was reverted IIRC because Mark was unsure of the fix, since our diff tools try to be too clever and decode files, not showing us the bytes differences. I don’t trust my editor either, nor t

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Patched the unit test, then ran the test before applying the fix which failed, after applying the fix the test ran successfully. Tested on Windows Vista 32 bit against 2.7 maintainance release. The patches are short and sweet, I see no reason why they can't

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It turns out that test_imp tests that pydoc.py is in iso-8859-1. This is not right. The test should use a dedicated file under Lib/test for that. -- ___ Python tracker ___

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In the attached patch, I've removed encoding cookies in all files listed in the message above except >> Lib/test/bad_coding.py:# -*- coding: uft-8 -*- >> Lib/test/badsyntax_3131.py:# -*- coding: utf-8 -*- >> Lib/shlex.py:# -*- coding: iso-8859-1 -*- The

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy nosy: +merwok resolution: -> accepted stage: -> needs patch versions: +Python 3.2 ___ Python tracker ___

[issue2454] sha and md5 fixer

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: I've successfully rerun the tests for 3.x having stripped the 'u' prefix. -- ___ Python tracker ___ _

[issue2454] sha and md5 fixer

2010-07-19 Thread Dave Malcolm
Dave Malcolm added the comment: The 'u' prefix went away in Python 3, use an unadorned '' or "" for a unicode value. $ python3 Python 3.1.2 (r312:79147, May 25 2010, 12:21:57) [GCC 4.4.3 20100422 (Red Hat 4.4.3-18)] on linux2 Type "help", "copyright", "credits" or "license" for more informati

[issue2521] ABC caches should use weak refs

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Patched the unit test, then ran the test before applying the fix which failed, after applying the fix the test ran successfully. Tested on Windows Vista 32 bit against 2.7 maintainance release. The patches are short and sweet, I see no reason why they can't

[issue4080] pyunit - display time of each test case - patch

2010-07-19 Thread Pawel Prokop
Pawel Prokop added the comment: I think that a delay time of calling a decorator is not important, because this should be constant in each test execution, so no matter. I shall be able to provide a patch in few days. Thanks -- ___ Python tracker

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-19 Thread John J Lee
John J Lee added the comment: My patch should be applied. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-07-19 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : On Mon, Jul 19, 2010 at 2:45 AM, Guido van Rossum wrote: > Sounds like a good idea to try to remove redundant cookies *and* to > remove most occasional use of non-ASCII characters outside comments > (except for unittests specifically trying to test Unic

[issue2454] sha and md5 fixer

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: The patch looks clean to me although I don't feel qualified to comment on the technical aspects. I've tested it on Windows Vista 32 bit against the 2.7 and 3.1 maintainance releases and py3k. The 2.7 run was fine, both 3.x runs failed. File "c:\release31-m

[issue459007] Document sys.path on Windows

2010-07-19 Thread Éric Araujo
Éric Araujo added the comment: using/windows.rst seems the best place to add comments from PC/getpathp.c, under the “Finding modules” section. -- ___ Python tracker ___ __

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-19 Thread Peter Donis
Peter Donis added the comment: I realized on comparing doctest-fixes2.diff with doctest-fixes1.diff that doctest-fixes2.diff doesn't capture the different newlines correctly, so patch on my machine wouldn't apply the diff (I had done testing from the modified svn checkout without reverting an

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jul 19, 2010 at 2:17 PM, Antoine Pitrou wrote: > .. These flags are primarily useful for C extension developers, there's > little point checking them from Python code. Of course there is: it helps debugging problems in types implemented in C.

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed and committed in revision 82977. And similar changes for py3k in revision 82983. -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue1777412] Python's strftime dislikes years before 1900

2010-07-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Add pure Python implementation of datetime module to CPython superseder: Add pure Python implementation of datetime module to CPython -> ___ Python tracker ___

[issue1777412] Python's strftime dislikes years before 1900

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Adding issue7989 as a dependency because one of the stated reasons for not calling system strftime from datetime directly is because pure python implementations cannot do the same. This of course can be resolved by exposing raw strftime in separate mod

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would probably be more useful to document them in the C API and put a reference to that in the inspect module docs. These flags are primarily useful for C extension developers, there's little point checking them from Python code. -- nosy: +pitrou v

[issue9304] unreproducible example in the memoryview documentation

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r82981. Thank you for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here are other similar flags that are not documented: /* These flags are used to determine if a type is a subclass. */ #define Py_TPFLAGS_INT_SUBCLASS (1L<<23) #define Py_TPFLAGS_LONG_SUBCLASS(1L<<24) #define Py_TPFLAGS_LIST_SUBCLASS

[issue7231] Windows installer does not add \Scripts folder to the path

2010-07-19 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Windows nosy: +srid type: behavior -> feature request versions: +Python 3.3 -Python 2.4, Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___

[issue9306] distutils: raise informative error message when cmd_class is None

2010-07-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok versions: -Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As I suspected, datetime not recognizing numpy.int_ as a valid input is a numpy issue. Unlike regular int subclasses, numpy.int_ does not have Py_TPFLAGS_INT_SUBCLASS flag set: >>> numpy.int_.__flags__ & (1<<23) 0 >>> class foo(int): pass ... >>> fo

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

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

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2010-07-19 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Is there a reason for not documenting Py_TPFLAGS_LONG_SUBCLASS (Py_TPFLAGS_INT_SUBCLASS in 2.x)? This flag is used in PyLong_Check, but neither this flag or its inheritance properties are explained anywhere in the docs. See also issue5476. -

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The forward compatibility on 2.7.1 version here is on the basis that > someone in 2.7 might be relying on Exception raised for Unicode string > "for the quote function". Again, the problem isn't compatibility. It is, simply, that we shouldn't add new features

  1   2   >