[issue8659] ABS(x) == 0 can be simplified to x == 0

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks! Fixed in r80961 (trunk) and r80962 (py3k). BTW, are there any particular commit messages or news entries that indicate a switch to two's complement? I've looked for these in the past, but not found them. -- nosy: +mark.dickinson resolution:

[issue8659] ABS(x) == 0 can be simplified to x == 0

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: I found: - Long integer shift/mask operations now simulate 2's complement to give more useful results for negative operands in Misc/HISTORY, for the Python 0.9.6 release. That's different, though: it's about Python's semantics, not C's. It's orthogonal t

[issue7724] setup.py ignores SDK root on OSX

2010-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Committed to the trunk in r80963. I'm not closing this yet because the patch needs to be ported to 3.2 at least, and preferably 2.6 and 3.1 as well. -- ___ Python tracker __

[issue7724] setup.py ignores SDK root on OSX

2010-05-08 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing because the patch in issue 7724 fixes this problem. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8510] update to autoconf2.65

2010-05-08 Thread Matthias Klose
Matthias Klose added the comment: the update to 2.65 on the py3k branch only did show whitespace changes, applying these changes to the trunk. r80964: require autoconf-2.65 -- ___ Python tracker _

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Daniel Stutzbach wrote: > > New submission from Daniel Stutzbach : > > Currently, Python can be built with an internal Unicode representation of > UCS2 or UCS4. To prevent extension modules compiled with the wrong Unicode > representation from linking,

[issue8659] ABS(x) == 0 can be simplified to x == 0

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, now I understand :) r2604 introduced a scheme where for a negative PyLongObject x with n digits, the value stored in x->ob_size was -1-n. A little like ones' complement, but unrelated to anything to do with the platform integer representation. So at th

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Committed to the trunk in r80967. Reducing the priority because this is no longer a release-blocker for the next 2.7 release. -- priority: release blocker -> normal ___ Python tracker

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: And committed to 3.2 in r80968 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue8514] Add fsencode() functions to os module

2010-05-08 Thread STINNER Victor
Changes by STINNER Victor : -- title: Create fsencode() and fsdecode() functions in os.path -> Add fsencode() functions to os module ___ Python tracker ___ __

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: > I think your partA patch makes sense. I can fix part A and B in two commits. > It would benefit from fsencode/fsdecode functions rather > than manually doing the 'surrogateescape' thing everywhere. I choosed to drop the idea of fsdecode() (patch for part A

[issue8510] update to autoconf2.65

2010-05-08 Thread Matthias Klose
Matthias Klose added the comment: r80965: Replace AC_HELP_STRING with AS_HELP_STRING r80966: s/AC_AIX/AC_USE_SYSTEM_EXTENSIONS/ r80969: convert all obsolete AC_TRY_* macros to AC_*_IFELSE r80970: Avoid autoconf warning: Assume C89 semantics that RETSIGTYPE is always void -- __

[issue8514] Add fsencode() functions to os module

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: Commited: r80971 (py3k), blocked by r80972 (3.1). -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8490] asyncore test suite

2010-05-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I have adjusted the failing tests in r80895 and r80930 which now pass on Solaris. It seems Solaris has two problems: - OOB data (aka handle_expt) doesn't work, but I'm not too worried about this as it's very rarely used. In past there have been proposals

[issue8657] urlparse.urlunsplit should be smarter about +

2010-05-08 Thread Dan Buch
Dan Buch added the comment: Is simply adding 'git+' entries comprehensive enough? I'd have said the same thing about the addition of the 'svn+' entries, fwiw :) Is adding hardcoded entries like this the preferred way to extend urlparse? -- nosy: +meatballhat ___

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: > And committed to 3.2 in r80968 This commit introduced a regression: http://www.python.org/dev/buildbot/all/builders/AMD64 Ubuntu wide 3.x/builds/1055 == FAIL: test_get_scheme_names (test.t

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: Update the patch to use os.fsencode(). -- Added file: http://bugs.python.org/file17261/issue8513_partA-fsencode.patch ___ Python tracker ___ ___

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-08 Thread Georg Brandl
Georg Brandl added the comment: The section titled "Private Variables" was updated fairly recently to be more in line with the Python philosophy. In its current form (which I verified to be present at e.g. http://docs.python.org/tutorial/classes#private-variables) I don't think it needs to b

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose a different approach: 1. add a flag to PyModuleDef, indicating whether the module was built in UCS-2 or UCS-4 mode. Then let the interpreter refuse the load the module, instead of having the dynamic linker do so. 2. provide a mode for the header fi

[issue8660] py3k weakref documentation mentions the long built-in type

2010-05-08 Thread Daniel Urban
New submission from Daniel Urban : There is a sentence in the weakref module's documentation: "Other built-in types such as tuple and long do not support weak references even when subclassed" But there is no "long" type in py3k. -- assignee: d...@python components: Documentation message

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > I propose a different approach: > > 1. add a flag to PyModuleDef, indicating whether the module was built in > UCS-2 or UCS-4 mode. Then let the interpreter refuse the load the module, >

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Tested in revision 79643. Still needs docs. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-05-08 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Test committed revision 80974. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue4171] SSL handshake fails after TCP connection in getpeername()

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: Looks good to me. I definitely think this should go into 2.7 as well; total_seconds has only seen the light of day in the beta releases so far, so it's unlikely we'd break anyone's code with this change. (And IMO this is a bugfix, not a feature.) It might

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: If you want a second (third?) opinion, we could ask Antoine. -- nosy: +pitrou ___ Python tracker ___ ___

[issue6715] xz compressor support

2010-05-08 Thread Bernhard Reiter
Changes by Bernhard Reiter : -- nosy: +ockham-razor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6715] xz compressor support

2010-05-08 Thread Brian Curtin
Changes by Brian Curtin : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2010-05-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Is this is still desirable? If so I can work on a patch for ftplib which provides a finer error handling in case of disconnection while sending QUIT and updates tests which should be modified to fit in the newer test suite. --

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2010-05-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2010-05-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Is this still desirable? If so I can work on a patch for ftplib which provides a finer error handling in case of disconnection while sending QUIT and updates tests which should be modified to fit in the newer test suite. -- ___

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: [Antoine declines to offer an opinion.] Committed to py3k in r80979. I moved the Misc/NEWS entry from the 'Library' section to the 'Extension Modules' section. Leaving open for the 2.7 backport. -- ___ Python tra

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> accepted versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 5:03 AM, Marc-Andre Lemburg wrote: > If you can propose a different method of reliably protecting against > mixed Unicode build module loads, that would be great. We could then > get rid off the wrapping altogether. The following code

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Documented revision 80980. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > > On Sat, May 8, 2010 at 5:03 AM, Marc-Andre Lemburg > wrote: >> If you can propose a different method of reliably protecting against >> mixed Unicode build module loads, that would be gre

[issue7724] setup.py ignores SDK root on OSX

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ronald, I've reverted the patch since it broke compilation on almost every buildbot, and we're close to beta2 release. -- nosy: +benjamin.peterson stage: committed/rejected -> commit review ___ Python tracker

[issue8660] py3k weakref documentation mentions the long built-in type

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80983. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8661] FAQ item 2.25 is unclear

2010-05-08 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : The item "How do I prepare a new branch for merging?" is unclear about which branch needs to be prepared. It could be the source branch or the destination branch. In #python-dev, I learned that it's probably the destination branch being discussed her

[issue8514] Add fsencode() functions to os module

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why does this have no tests? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-l

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 10:16 AM, Marc-Andre Lemburg wrote: > Are you sure this doesn't get optimized away in practice ? I'm sure it doesn't get optimized away by gcc 4.3, where I tested it. :) > Sure, though, I don't see how this relates to C code relying >

[issue8661] FAQ item 2.25 is unclear

2010-05-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7724] setup.py ignores SDK root on OSX

2010-05-08 Thread Stefan Krah
Stefan Krah added the comment: Just to save you some time investigating, it broke the build because of missing parentheses in setup.py: if sys.platform == 'darwin' and dir.startswith('/System') or dir.startswith('/usr') -- nosy: +skrah ___ Python t

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> Are you sure this doesn't get optimized away in practice ? > > I'm sure it doesn't get optimized away by gcc 4.3, where I tested it. :) Did you mean to include the hunk from msg105295 as part of the patch? If so, wouldn't that defeat the whole point of the

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Documentation can always be updated later. -- nosy: +benjamin.peterson priority: release blocker -> normal ___ Python tracker ___ ___

[issue8661] FAQ item 2.25 is unclear

2010-05-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I would also suggest a re-ordering of FAQ entries in this manner: 1st What tools do I need to merge between branches? 2nd How do I merge between branches? And then, How do I prepare a new branch for merging? With the explanation/clarification. -

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 8:07 AM, Martin v. Löwis wrote: > 1. add a flag to PyModuleDef, indicating whether the module was built in > UCS-2 or UCS-4 mode. Then let the interpreter refuse the load the module, > instead of having the dynamic linker do so. > 2.

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed test_sysconfig.py in r80986. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 11:02 AM, Martin v. Löwis wrote: > Did you mean to include the hunk from msg105295 as part of the patch? > If so, wouldn't that defeat the whole point of the patch? My intention is to offer two compilation modes to extension authors:

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: > In most cases that will Just Work, without requiring the module writer > to modify their PyModuleDef. I'd rather modify PyModuleDef_Base, to include a flags field, and perhaps put the api version into it, as well. That's an ABI change, unfortunately, but suc

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 11:20 AM, Martin v. Löwis wrote: > I'd rather modify PyModuleDef_Base, to include a flags field, and > perhaps put the api version into it, as well. That's an ABI change, > unfortunately, but such a flags field may turn out useful, anyw

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > > On Sat, May 8, 2010 at 10:16 AM, Marc-Andre Lemburg > wrote: >> Are you sure this doesn't get optimized away in practice ? > > I'm sure it doesn't get optimized away by gcc 4.3, where I

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Docstrings committed revision 80990. -- stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue8636] enumerate() test cases do not cover optional start argument

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80991. Thanks for the patch. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Sat, May 8, 2010 at 11:35 AM, Marc-Andre Lemburg wrote: > One of the more important cases you are missing is the > argument parser in Python: Thanks. I've had my head buried in c-api/unicode.html and unicodeobject.h. > Py_UNICODE *x; > Py_ssize_t y; > P

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: I also have my doubts about the other 'goto error' lines in PyType_Ready, but I haven't figured out how to trigger those gotos in normal code. Trying to figure out how to clean up properly on error in PyType_Ready is making my head hurt. As a quick fix, we c

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Timothy Pederick
New submission from Timothy Pederick : This code behaves as expected: >>> ' '.join('cat') 'c a t' This code does not: >>> b'\x00'.join(b'cat') Traceback (most recent call last): ... b'\x00'.join(b'cat') TypeError: sequence item 0: expected bytes, int found Instead, you have to do somethin

[issue8301] Putting a function in a unittest.TestSuite doesn't work

2010-05-08 Thread Michael Foord
Michael Foord added the comment: Committed revision 80997. -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not a very useful thing to join a single string, though. -- nosy: +pitrou ___ Python tracker ___ __

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : Distutils fails logging characters which are not part of the "default encoding": http://www.python.org/dev/buildbot/builders/AMD64%20Ubuntu%20wide%203.x/builds/1062/steps/compile/logs/stdio [...] File "/home/buildbot/cpython-ucs4-nonascii-\u20ac/3.x.pitro

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: In Unicode-agnostic mode, instead of leaving Py_UNICODE, PyUnicodeObject, and many functions undefined, I wonder if it would be sufficient to declare Py_UNICODE like this: struct PY_UNICODE_TYPE; typedef struct PY_UNICODE_TYPE Py_UNICODE; That would allow

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

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

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Build on the os._execvpe unittest I added in py3k r81001. Protected functions are perfectly fine things to unittest. -- ___ Python tracker _

[issue8547] unittest test discovery can fail when package under test is also installed globally

2010-05-08 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Brett Cannon
Brett Cannon added the comment: While the bytes-returning-int semantics might be annoying in this case, but as you point out, Timothy, it's too late to change this. -- nosy: +brett.cannon resolution: -> wont fix status: open -> closed ___ Python tr

[issue8630] Keepends param in codec readline(s)

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think this can qualify as a bug fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think your patch looks good Brett. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Timothy Pederick
Timothy Pederick added the comment: Brett: Well, I was more thinking along the lines of making join() recognise when it's been passed a bytes object, rather than changing the semantics of indexing bytes. That would be a bit overdramatic! But if it's wontfix, it's wontfix. Antoine: Yes, the s

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: > In Unicode-agnostic mode, instead of leaving Py_UNICODE, > PyUnicodeObject, and many functions undefined, I wonder if it would > be sufficient to declare Py_UNICODE like this: Sounds good. -- ___ Python tracker

[issue8664] py_compile.compile() should consistently create parent directory of target file

2010-05-08 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Currently when cfile argument of py_compile.compile() is None, then path to target file is automatically calculated and parent directory of target file is created. If the same path of target file is explicitly passed as cfile argument

[issue8664] py_compile.compile() should consistently create parent directory of target file

2010-05-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +patch Added file: http://bugs.python.org/file17263/python-issue8664.patch ___ Python tracker ___ ___

[issue6507] Enhance dis.dis to autocompile codestrings

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: disassemble_str should be private with an underscore. -- ___ Python tracker ___ ___ Python-bugs-l

[issue8664] py_compile.compile() should consistently create parent directory of target file

2010-05-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> barry nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread Mark Dickinson
Mark Dickinson added the comment: Ronald, r80967 makes test_site fail on my machine, with the following output: == FAIL: test_getsitepackages (__main__.HelperFunctionsTests) -

[issue8665] "make pycremoval" fails

2010-05-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is probably because you remove the directory while find is walking it: $ make pycremoval find . -name '*.py[co]' -exec rm -f {} ';' find . -name '__pycache__' -exec rmdir {} ';' find: `./Lib/http/__pycache__': No such file or directory find: `./Lib/unitt

[issue8664] py_compile.compile() should consistently create parent directory of target file

2010-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Looks good. Applied in r81005. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
New submission from Tim Chase : Patch to update ConfigParser.py so that the .get* methods can take an optional parameter rather than raising exceptions. Usage: cp = ConfigParser(...) # ... value = cp.get('MySection', 'MyOption', default='some default') i = cp.getint('MySecton', 'MyInt'

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
Tim Chase added the comment: For some reason, the diff didn't attach to the previous message. -- ___ Python tracker ___ ___ Python-bug

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Tim Chase
Tim Chase added the comment: Trying a 3rd time to attach the diff (this time from Safari instead of FF) -- keywords: +patch Added file: http://bugs.python.org/file17264/ConfigParser.diff ___ Python tracker

[issue6507] Enhance dis.dis to autocompile codestrings

2010-05-08 Thread Daniel Urban
Daniel Urban added the comment: Done. Attached new patch as issue6507_2_priv.diff. -- Added file: http://bugs.python.org/file17265/issue6507_2_priv.diff ___ Python tracker ___ __

[issue8084] pep-0370 on osx duplicates existing functionality

2010-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'll look into this in the morning. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> unit test needed versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list

[issue8642] json.loads description

2010-05-08 Thread Éric Araujo
Éric Araujo added the comment: Seems ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Éric Araujo
Éric Araujo added the comment: I don’t know if this feature request should be discussed on python-ideas first. Do you have real use cases for this, is it just a nice-to-have thing? If it’s accepted, I have some remarks about the patch: - 2.7 is feature-frozen, so you’ll need to target the py3k

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-05-08 Thread Éric Araujo
Éric Araujo added the comment: I think you mean http://docs.python.org/library/urlparse.html#urlparse.urlparse Dave, perhaps you were looking at an older version? Doc fixes for maintainance branches are welcome. -- nosy: +merwok ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: What is your locale and your locale encoding? distutils use ASCII but I'm not sure that your locale encoding is ASCII, because Python fails to start if the locale is ASCII and the path contains a non ASCII character. See also issue #8611: "Python3 doesn't sup

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 8, 2010 at 10:07 AM, Mark Dickinson wrote: .. > I definitely think this should go into 2.7 as well;  total_seconds has only > seen the light of day > in the beta releases so far, so it's unlikely we'd break anyone's code with > this change.

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17266/issue8644.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue8644] timedelta.total_seconds needlessly inaccurate, especially for negative timedeltas

2010-05-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17267/issue8644.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I answered on IRC, this is on a buildbot environment. Compiling from the command line works fine, but not from the buildbot environment. >From the command line, the locale is as following: $ locale LANG=en_GB.UTF-8 LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.U

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this might be more interesting: $ cat | ./python -i Python 3.2a0 (py3k:81010, May 8 2010, 23:25:47) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.getpreferredencoding() 'UTF-8' >>

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Anyway, regardless of the actual stdout encoding, distutils should be able to log messages without crashing, IMO. -- ___ Python tracker ___ ___

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: Conditions to reproduce the bug: don't use make -j N (unset MAKEFLAGS), stdout and stderr should be be TTY => use make 2>&1|cat. -- ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Éric Araujo
Éric Araujo added the comment: Another long-standing encoding bug was fixed: It was impossible to use e.g. an author name with non-ASCII characters. The fix makes distutils use UTF-8. Of course, it’s more complicated to choose an encoding for terminal I/O. -- nosy: +merwok __

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Committed to trunk in r81012. though as this missed 2.7beta2 its possible that will be rejected and this becomes a 3.x only feature. I'm porting to py3k now. -- versions: +Python 3.2 ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread Éric Araujo
Éric Araujo added the comment: (I wrote before I saw Victor’s reply) Does it work with PYTHONIOENDODING set to UTF-8? -- ___ Python tracker ___ _

[issue8663] Failed compile in a non-ASCII path

2010-05-08 Thread STINNER Victor
STINNER Victor added the comment: If the standard output is not a TTY, Python uses ASCII encoding for sys.stdout: ./python -c "import sys;print(sys.stdout.encoding)"|cat => ascii. This issue remembers me: #8533 (regrtest: use backslashreplace error handler for stdout). -- __

  1   2   >