[issue9288] Disambiguate :option: and :cmdoption:

2010-07-19 Thread Georg Brandl
Georg Brandl added the comment: The docs on :option: should now be clear in r82961. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-07-19 Thread Mark Dickinson
Mark Dickinson added the comment: I notice (again) that these failures occur on the 2.6 and 3.1 buildslaves (where the debug build includes the -O2 compilation flag), but not the 2.7 or py3k buildslaves. So again this looks like a compiler optimization bug. This should really be reported ups

[issue4111] Add Systemtap/DTrace probes

2010-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 19 Jul, 2010, at 1:07, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > If any RedHat/Fedora people are tuned in, can you give us an update on > Systemtap/DTrace support in RedHat/Fedora python? I understand that one of > th

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

2010-07-19 Thread Ray.Allen
New submission from Ray.Allen : As discussed in python-dev mailing list, something should be add to os.mkdir() and os.makedirs() to simulate the shell's "mkdir -p" function, that is, suppress the OSError exception if the target directory exists. Here is a patch against py3k, with code, test a

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

2010-07-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-07-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I don't think this can go into 2.7. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2010-07-19 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file18059/mkdir_py3k.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[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: I update the patch since an problem is found in doc/library/os.rst. -- Added file: http://bugs.python.org/file18060/mkdir_py3k.diff ___ Python tracker __

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : http://docs.python.org/library/profile.html ...while it is, for example, for hotshot module: http://docs.python.org/library/hotshot.html#hotshot.Profile Profile class contains some useful methods which are surely worth mentioning, like print_stat() and r

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

2010-07-19 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : Rejecting invalid input seems better in this case. This was changed in issue1285086. Can we preface the normal fast path with something like: if s is None: raise TypeError('can only quote strings') It used to raise: Traceback (most recent

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

2010-07-19 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9302] Distutils document problem?

2010-07-19 Thread Ray.Allen
New submission from Ray.Allen : The distutils api document for class Extension: http://docs.python.org/dev/py3k/distutils/apiref.html#distutils.core.Extension Among the argument, in fact, the type of the arguments "sources", "include_dirs", "library_dirs", "libraries", "runtime_library_dirs" m

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

2010-07-19 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: The fast path was intended to return the empty string. When s is None, it should return a TypeError. -- assignee: -> orsenthil resolution: -> accepted ___ Python tracker ___

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: I guess this is intended not documented: http://docs.python.org/dev/py3k/library/profile.html#extensions-deriving-better-profilers Here it said: "The Profile class of both modules, profile and cProfile, were written so that derived classes could be developed to ex

[issue9185] os.getcwd causes infinite loop on solaris

2010-07-19 Thread Zsolt Cserna
Zsolt Cserna added the comment: I confirm that test_posix passes after applying the patch issue9185-2.patch on solaris 8. Thank you. Now solaris and openbsd have a clean os.getcwd() implementation. -- ___ Python tracker

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, I understood that you would prefer to leave the mask. Could I > apply the second version of the patch? It looks ok to me. -- ___ Python tracker

[issue8917] Segmentation error happens in Embedding Python.

2010-07-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think this issue is duplicates of Issue6869. So I'm closing... -- nosy: +ocean-city resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue6869] Embedded python crashed on 4th run, if "ctypes" is used

2010-07-19 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: +tanaga ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Senthil, have you read my comment on python-checkins? Couldn't this have been fixed without introducing a new API in a bugfix branch? -- nosy: +pitrou ___ Python tracker ___

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: I just checked your comment in the checkins list. I saw this is as bug-fix, which was leading to change in the signature of the quote function, still in backward compatible way. Should we still not do it? I understood only feature requests and behavior ch

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I understood only feature requests and behavior changes are disallowed > in bug-fix branch. Well, isn't it a new feature you're adding? -- ___ Python tracker

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: >From http://mail.python.org/pipermail/python-checkins/2010-July/095350.html: > Looking at the issue (which in itself was quite old), you could as well > have fixed the robotparser module instead. It isn't an issue with robotparser. The original reporter found it v

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: > Well, isn't it a new feature you're adding? You had a function which raised a confusing and unintentional KeyError when given non-ASCII Unicode input. Now it doesn't. That's the bug fix part. What I assume you're referring to as a "new feature" is the new argum

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's definitely a bug in urllib A bug in what way? Up to 2.6 (*), the docs state nothing about the type of the "string" parameter. (*) http://docs.python.org/release/2.6.5/library/urllib.html#urllib.quote I think everyone assumed that the parameter should b

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

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

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Oh right, I didn't notice that. Closing this out as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Well, my understanding was Type:behavior was a bug fix and Type: feature request was a new feature request, which may change some underlying behavior. I thought this issue was on the border. The robotparser using this might be just one usage indicator, but h

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, my understanding was Type:behavior was a bug fix and Type: > feature request was a new feature request, which may change some > underlying behavior. I thought this issue was on the border. The original issue is against robotparser, and clearly states a

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Michael Schwarz
New submission from Michael Schwarz : The Python sqlite module currently uses some deprecated API [0] of SQLite. These are functions that have a counterpart with _v2 appended to their name. The SQLite query planner will not use certain optimizations when using the old API. For example, as docu

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Mon, Jul 19, 2010 at 11:25:30AM +, Antoine Pitrou wrote: > If we were following you, we would add "encoding" and "errors" > arguments to any str-accepting 2.x function, so that it can also > accept unicode strings. That's certainly not a reasonable solut

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ghaering nosy: +ghaering stage: -> needs patch versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ _

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Gerhard Häring
Gerhard Häring added the comment: Yes, the sqlite module uses the old API, and is written to work with older SQLite releases and their respective bugs as well. Using the new API will mean requiring newer SQLite releases. If we do this, then this is the chance to remove all the obscure backwar

[issue9302] Distutils document problem?

2010-07-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9189] Improve CFLAGS handling

2010-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 9 Jul, 2010, at 20:55, Jeffrey Yasskin wrote: > > Jeffrey Yasskin added the comment: > > Oops. Thanks for telling me. Fixed in r82753. I'm pretty sure this patch broke universal builds on OSX. Not the python build itself, but building 3th-party extensi

[issue9298] binary email attachment issue with base64 encoding

2010-07-19 Thread R. David Murray
R. David Murray added the comment: Can you try this against 3.1 from svn (or py3k from svn)? A bug was fixed that might be relevant. Alternatively a unit test that demonstrates the problem would be most helpful. -- assignee: -> r.david.murray nosy: +r.david.murray stage: -> unit t

[issue9298] binary email attachment issue with base64 encoding

2010-07-19 Thread R. David Murray
Changes by R. David Murray : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: > I think everyone assumed that the parameter should be a "str" object > and nothing else. Apparently some people used it accidentally with > some unicode strings and it "worked" until these strings contained > non-ASCII characters. I don't consider use of Unicode

[issue9297] SMTP with Sqlite3 file attached problem

2010-07-19 Thread R. David Murray
R. David Murray added the comment: "It crashed" is not enough information to diagnose your problem or whether or not there is a Python bug here. Can you provide additional information please? A minimal test case that reproduces the problem would be best. -- nosy: +r.david.murray __

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

2010-07-19 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file18016/issue9265.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Now one of the major goals of Python 2.6/2.7 is to allow the writing > of code which ports smoothly to Python 3. Unicode support is a major > issue here. I understand the argument. But 2.7 is a bugfix branch and shouldn't receive new features, even backports.

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

2010-07-19 Thread R. David Murray
R. David Murray added the comment: Stefan: patch looks good to me in principle, but it looks like you made it against 2.7, and we commit to py3k first now. The test does not work correctly on py3k because of a bytes/string issue, but I'm not clear on why the problem happens (I haven't looked

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, the email gateway of Roundup ate half of my snippets. Here they are again: >>> zlib.compress(u"ha") 'x\x9c\xcbH\x04\x00\x013\x00\xca' >>> zlib.compress(u"hà") Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can

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

2010-07-19 Thread R. David Murray
R. David Murray added the comment: Adding some people to nosy: Bob, who wrote the code, and Antoine and Benjamin who were involved in the update and probably have an opinion on the correct fix. (c.f.: Issue4136) -- nosy: +benjamin.peterson, bob.ippolito, pitrou, r.david.murray stage:

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

2010-07-19 Thread Isaac Morland
Isaac Morland added the comment: This exact issue has already been discussed in Issue 1675. -- nosy: +ijmorlan ___ Python tracker ___

[issue1675] Race condition in os.makedirs

2010-07-19 Thread Isaac Morland
Isaac Morland added the comment: This is again being discussed in Issue 9299. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1764286] inspect.getsource does not work with decorated functions

2010-07-19 Thread Ray.Allen
Ray.Allen added the comment: I don't think this patch is correct, because we don't know if the closure[0] is the wrapped function, consider the following case: def fun(): abc = 1 def fun2(): print(abc) print(inspect.getsource(fun2)) In this case, the __closure__ of fun2 is

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

2010-07-19 Thread Isaac Morland
Isaac Morland added the comment: How different is this issue from Issue 1608579, Issue 1239890, Issue 1223238, and Issue 1314067? -- ___ Python tracker ___ _

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

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: TypeError sounds right indeed. Patches welcome (even better with tests). -- stage: unit test needed -> needs patch versions: +Python 3.1, Python 3.2 ___ Python tracker

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

2010-07-19 Thread Peter Donis
Peter Donis added the comment: I saw that this issue was bumped and re-tested against the current trunk (r82970). A further change in doctest_testfile.py was needed to make the test pass when called from regrtest.py: the test importer for the loader.get_data test case now stores the absolute

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

2010-07-19 Thread Doug Hellmann
Doug Hellmann added the comment: Bob fixed this in simplejson under ticket 82 (http://code.google.com/p/simplejson/issues/detail?id=82). -- ___ Python tracker ___ __

[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: If I understander correctly, Issue 1608579, Issue 1239890, Issue 1223238, and Issue 1314067 all deal with the case that the intermediate directories already exists during creating them caused by race condition, but if the target directory(the leaf directory) alrea

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

2010-07-19 Thread R. David Murray
R. David Murray added the comment: Hmm. I didn't intentionally remove the older patch, but it's probably not worth the effort to restore it. -- ___ Python tracker ___ _

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca added the comment: OK sure, there are some other things broken, but they are mostly not dealing with string data, but binary data (for example, zlib expects a sequence of bytes, not characters). Just one quick point: > urllib.urlretrieve("file:///tmp/hé") > UnicodeError: URL u'fil

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-19 Thread R. David Murray
R. David Murray added the comment: I'm guessing this problem doesn't occur in 3.x? If so, the quick fix would be to have the registry code catch UnicodeError instead of UnicodeEncodeError. That may be the correct fix anyway. The "fun" part of this bug is going to be creating a unit test for

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

2010-07-19 Thread Matthew Barnett
Matthew Barnett added the comment: This has already been reported in issue #3511. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9298] binary email attachment issue with base64 encoding

2010-07-19 Thread Vance Unruh
Vance Unruh added the comment: Here's code that attaches the pdf file the two different ways. Both attachments are OK when I read the mail on OSX, but one is corrupt when read with Windows Mail on Vista. I wasn't sure what to do with the actual sending of the mail to the server. You'll have t

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

2010-07-19 Thread Stefan Krah
Stefan Krah added the comment: David, thanks for all the comments! - The string/bytes issue was caused by the fact that p.stdout is only opened in text mode when universal_newlines=True. Committed fix in r82971, r82972, r82973 and r82974. I'll close this issue if all buildbots are ok. --

[issue9189] Improve CFLAGS handling

2010-07-19 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Oops, sorry about that. Is the fix to change LDSHARED to LDSHARED= $(CC) $(PY_LDFLAGS) -bundle -undefined dynamic_lookup ? -- ___ Python tracker __

[issue9185] os.getcwd causes infinite loop on solaris

2010-07-19 Thread Zsolt Cserna
Zsolt Cserna added the comment: I confirm that test_posix passes after applying the patch issue9185-2.patch on solaris 8. Thank you. Now solaris and openbsd have a clean os.getcwd() implementation. -- ___ Python tracker

[issue9304] unreproducible example in the memoryview documentation

2010-07-19 Thread Carl Chenet
New submission from Carl Chenet : Hi, In the current documentation at http://docs.python.org/library/stdtypes.html#memoryview, the first example announces : >>> v = memoryview('abcefg') >>> v[1] 'b' >>> v[-1] 'g' >>> v[1:4] >>> str(v[1:4]) 'bce' Trying to reproduce this example I got : $

[issue8911] regrtest.main should have a test skipping argument

2010-07-19 Thread Jerry Seutter
Changes by Jerry Seutter : -- assignee: -> jerry.seutter nosy: +jerry.seutter ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: Patched files work fine on Windows against the 2.7 maintainance branch. doctest (doctest) ... 66 tests with zero failures doctest (test.test_doctest) ... 440 tests with zero failures They fail on py3k, it's a unicode problem that's nothing to do with this patch.

[issue9185] os.getcwd causes infinite loop on solaris

2010-07-19 Thread Stefan Krah
Stefan Krah added the comment: Thanks for testing! - Fix also backported to release26-maint in r82975. Closing this one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9105] pickle security note should be more prominent

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch does not apply to py3k. Also, when you generate patches please do so from the root directory of the branch. For example, tutorial/inputoutput.rst should be patched as Doc/tutorial/inputoutput.rst. Thanks. -- ___

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

2010-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since this is a library issue, it can go into 3.2. It is definitely a feature request, hence not in 2.7. Code that depends on the exception suppression would crash on an earlier release. http://mail.python.org/pipermail/python-dev/2010-July/102027.html Guido s

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

2010-07-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +draghuram, gagenellina, gvanrossum, zooko ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4499] redefinition of TILDE macro on AIX platform

2010-07-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I've located the following patch in our ActivePython source tree. $ cat src/patches/3.1/general/aix_tilde.patch --- Include/token.h.orig2008-10-08 11:51:52.0 -0700 +++ python/Include/token.h 2008-10-08 11:52:53.0 -0700 @@ -7,6

[issue1675] Race condition in os.makedirs

2010-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The precipitating issue for this and #9299 are different: parent race leading to error versus tail existence leading to error. However, both patches address both issues. See #9299 for my comparison of this patch and that. I am consolidating nosy lists there.

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

2010-07-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: What do you mean by 'commands'? Being able to type '2to3' instead of '2to3.py' on *nix? Want me to open a new feature request for Windows support - perhaps by including a 2to3.bat/pydoc.bat (similar to idle.bat) in C:\PythonXY\Scripts? The idea is to let

[issue9305] Don't use east/west of UTC in date/time documentation

2010-07-19 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : I am opening this to supersede issue7229. See discussion following msg107148. In many places offsets representing the difference between local time and UTC are described as minutes or seconds east or west of UTC. This is not correct because UTC is

[issue9304] unreproducible example in the memoryview documentation

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

[issue9304] unreproducible example in the memoryview documentation

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

[issue8917] Segmentation error happens in Embedding Python.

2010-07-19 Thread tanaga
tanaga added the comment: Thanx Hirokazu Yamamoto!! (arigato gozaimasu) I was insufficient when search. I searched keywords "segment ctype" that didn't match :( -- ___ Python tracker __

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

2010-07-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Current I see this: File "/opt/ActivePython-2.7/lib/python2.7/distutils/dist.py", line 806, in get_command_class klass = self.cmdclass.get(command) AttributeError: 'NoneType' object has no attribute 'get' more context: https://bugs.launchpad.net/pyr

[issue9305] Don't use east/west of UTC in date/time documentation

2010-07-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Manual entry for time.daylight can be misleading ___ Python tracker ___ ___ Python-

[issue7229] Manual entry for time.daylight can be misleading

2010-07-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After reading the new wording on a formatted page, I don't like the proposed changes: """ time.altzone When daylight is nonzero, altzone specifies the offset of the local DST timezone, in seconds west of UTC. This is negative if the local DST timezone

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

2010-07-19 Thread Mark Lawrence
Mark Lawrence added the comment: The two latest patch files were missing TestDifflib from run_unittest. Having shown that the tests failed if test_difflib only was patched, then patch difflib against the 3.1 maintainance and py3k branches, the former passed ok and the latter failed. Could s

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

2010-07-19 Thread Peter Donis
Peter Donis added the comment: You'll probably want someone else to confirm, but for the record, my testing was on a Linux box (SuSE 11.2) using Python 2.7 built from the SVN trunk: pe...@powerspec:~/.local/lib/python2.7/test> uname -a Linux Powerspec 2.6.31.12-0.2-desktop #1 SMP PREEMPT 2010-

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Stefan Krah
Stefan Krah added the comment: Antoine, thanks! Committed in r82966, r82968, r82969 and r82970. Could we fix the unicodeobject.c bug on the fly? I think the patch should do, unless non-ascii digits are supported. But in that case several other changes would be needed. -- Added file: h

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

2010-07-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: .py extension is intended for pure-Python modules, not for Python scripts. -- nosy: +Arfrever ___ Python tracker ___ __

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: There are two points here: First, is it a desired behavior of quote function in 2.7? IMO, it is. In the discussions of issue3300, I think, it was decided that quote handling of unicode strings may be backported. Behaviour wise the modified version still ret

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Eric, is the unicode patch ok for you? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9304] unreproducible example in the memoryview documentation

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, it should be `v[1:4].tobytes()` instead. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Eric Smith
Eric Smith added the comment: Yes, the unicode patch looks okay to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[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

[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. -

[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

[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

[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

[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 ___

[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

[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 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

[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

[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 ___

[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

[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.

[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

[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 ___ __

  1   2   >