[issue13930] lib2to3 ability to output files into a different directory and alter their names

2012-02-02 Thread Gregory P. Smith
New submission from Gregory P. Smith : In order for lib2to3 to be integrated into parts of our workflow at work we need it to be able to write converted code out to new directory and modify the filename in the process. While doing that, it is very convenient if it can also write all files reg

[issue6210] Exception Chaining missing method for suppressing context

2012-02-02 Thread Ethan Furman
Ethan Furman added the comment: PEP 409 has been accepted. :) Attached is the latest patch implementing it, with the (hopefully ;) final changes. Because Ellipsis is now the default value for __cause__, 'raise ... from Ellipsis' is treated the same as 'raise ...' -- Added file: htt

[issue13927] Extra spaces in the output of time.ctime

2012-02-02 Thread Georg Brandl
Georg Brandl added the comment: asctime() docs say it's a 24 char string. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bu

[issue13929] fnmatch to support escape characters

2012-02-02 Thread Israel Fruchter
New submission from Israel Fruchter : fnmatch to support escape characters: like that: >>> name = "Document[Ver.2].doc" >>> pattern = "*\[Ver.2\]*" >>> fnmatch.fnmatch(name, pattern) True that's also fix glob module: >>> pattern = "ipconfig /\?" >>> glob.glob(pattern) "ipconfig /?" --

[issue13928] bug in asyncore.dispatcher_with_send

2012-02-02 Thread adamhj
New submission from adamhj : i found 2 relative bugs in asyncore.dispatcher_with_send class: one is in the asyncore.dispatcher_with_send.writable(): def writable(self): return (not self.connected) or len(self.out_buffer) why is a not connected connection writable? i think this is def

[issue13405] Add DTrace probes

2012-02-02 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-02-02 Thread Ned Deily
Ned Deily added the comment: Modified support.py in test_distutils for 2.7 (for 2.7.3), 3.2 (for 3.2.3), and 3.3, as well as in test_packaging for 3.3, to skip shared library fixing for Mac OS X. -- assignee: tarek -> ned.deily resolution: -> fixed stage: -> committed/rejected statu

[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 41cabdff2686 by Ned Deily in branch '2.7': Issue #13901: Prevent test_distutils failures on OS X with --enable-shared. http://hg.python.org/cpython/rev/41cabdff2686 New changeset 6f6100a752ba by Ned Deily in branch '3.2': Issue #13901: Prevent test

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
STINNER Victor added the comment: Oops, win32_pyclock() was disabled (for tests) in patch version 8. Fixed in version 9. -- Added file: http://bugs.python.org/file24404/time_decimal-9.patch ___ Python tracker ___

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24402/time_decimal-8.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24403/time_decimal-8.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
STINNER Victor added the comment: (Resend patch version 8 without the git diff format to support review on Rietveld.) -- Added file: http://bugs.python.org/file24403/time_decimal-8.patch ___ Python tracker __

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24378/time_decimal-6.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24396/time_decimal-7.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24372/time_decimal-5.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-02 Thread STINNER Victor
STINNER Victor added the comment: As expected, size_t is too small on Windows 32 bits. Patch version 8: _PyTime_t uses Py_LONG_LONG if available, instead of size_t, for numerator and denominator. -- title: Add format argument for time.time(), time.clock(), ... to get a timestamp as a

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is essentially a duplicate of #12092. For the OP there, the stall happens because something on Gnome pops up a configuration GUI and, I presume, waits for response. I am thinking now that 'modules' is simply a bad idea and should be removed or seve

[issue12902] help("modules") executes module code

2012-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: #13902 is essentially a duplicate of this and I may close it. I am thinking now that executing unknown amounts of unknown code from unknown modules is a really bad idea. If a module just crashes the system, as happened with the OP of the above, there is no way

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy added the comment: You're right. The pkgutil.walk_packages method called from ModuleScanner seems to be importing the submodules. I should have said that in the last message. I'll try to be clearer. What should the correct behavior be when entering "modules" in the interactive hel

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: I don't have the code you're talking about in front of me; just wanted to give you a lead on the likely cause. -- ___ Python tracker ___ __

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy added the comment: Should calling "modules" automatically iterate over all submodules or should it return just a list of top level modules? -- ___ Python tracker __

[issue13927] Extra spaces in the output of time.ctime

2012-02-02 Thread Eric V. Smith
Eric V. Smith added the comment: That's definitely the expected behavior. It's the same as the C library version of ctime(). But I couldn't find it documented in the Python docs, so I'm changing this to a documentation issue. Thanks for the report. -- assignee: -> docs@python compo

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-02-02 Thread Ezra Berch
Ezra Berch added the comment: Sorry, I guess I wasn't clear. The trailing-newlines issue was an issue with the conditional expression ncoghlan suggested. It's fixed in the patch I submitted (and covered by the tests). -- ___ Python tracker

[issue6210] Exception Chaining missing method for suppressing context

2012-02-02 Thread Ethan Furman
Ethan Furman added the comment: Latest version of PEP is on python-dev; here is the latest patch. Summary: For __cause__ we are replacing the old special value of None with Ellipsis: Ellipsis means check __context__ for an exception to display; None means ignore __context__ and stop followi

[issue13817] deadlock in subprocess while running several threads using Popen

2012-02-02 Thread Charles-François Natali
Charles-François Natali added the comment: Committed. Christoph, thanks for the report. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker __

[issue13918] locale.atof documentation is missing func argument

2012-02-02 Thread Cédric Krier
Cédric Krier added the comment: Indeed I find it useful to use to get a Decimal instead of a float. So I was wondering if I can rely on it or not in my application? -- status: pending -> open ___ Python tracker __

[issue13918] locale.atof documentation is missing func argument

2012-02-02 Thread Georg Brandl
Georg Brandl added the comment: I don't think that argument needs to be documented. It's just there because somebody thought that copying 3 lines from atof into atoi was a bad idea. -- nosy: +georg.brandl resolution: -> wont fix status: open -> pending __

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-02-02 Thread Georg Brandl
Georg Brandl added the comment: IMO removing trailing newlines is not acceptable. You could use splitlines(keepends=True) to keep final newlines (but then the default function that determines lines to indent needs to ignore these newlines). -- ___

[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-02-02 Thread toggtc
toggtc added the comment: Thank you for analysis and explanations, Ned. In addition, the -L(whitespace) is not allowed in Apple's GCC. GNU's GCC is OK. (I checked it using both GCC 4.2) So, your solution is right. -- ___ Python tracker

[issue13927] Extra spaces in the output of time.ctime

2012-02-02 Thread Roger Caldwell
New submission from Roger Caldwell : Hi. I found this today and thought I would report. I could not find anywhere that it was expected behavior. When using time.ctime() to convert a date which only has 1 digit in the day position it returs a string with 2 spaces after the month vs one. exa

[issue13817] deadlock in subprocess while running several threads using Popen

2012-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3649173d093 by Charles-François Natali in branch '2.7': Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix http://hg.python.org/cpython/rev/c3649173d093 New changeset 7b24dd587a7b by Charles-François Natali in branch '

[issue13402] Document absoluteness of sys.executable

2012-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fdcda5b74317 by Petri Lehtinen in branch '3.2': Document absoluteness of sys.executable http://hg.python.org/cpython/rev/fdcda5b74317 New changeset 8b591a86fc91 by Petri Lehtinen in branch 'default': Merge branch 3.2 http://hg.python.org/cpython/re

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: The problem might be that you're iterating over more than just the top level; if you look for submodules then the parent package has to be imported... and that might make that window load, if there's module-level code in the package __init__ that does that. ---

[issue13405] Add DTrace probes

2012-02-02 Thread Stan Cox
Stan Cox added the comment: This is a subset of the dtrace patch and consists of the minimal functionality needed by systemtap. The only files that are changed from upstream sources are as follows. * configure/configure.in * Makefile.pre.in * pyconfig.h.in Same changes as the dtrace patch ex

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy added the comment: I tried this and while IDLE didn't crash, it stalled when running with and without a subprocess. I then tried running this from the regular python interpreter and it stalled there as well. This is not a problem with IDLE, but a problem with pydoc itself. Steps

[issue13124] Add "Running a Build Slave" page to the devguide

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here's a terse shell script that IMO even moderately experienced admins > will prefer to the current version. I'm sure some admins will prefer using their system's packages (I think buildbot is packaged for Debian/Ubuntu, I see it in Mageia's packages, not su

[issue13124] Add "Running a Build Slave" page to the devguide

2012-02-02 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file24398/buildslave_install.txt ___ Python tracker ___ ___ Python-bugs-list mai

[issue13124] Add "Running a Build Slave" page to the devguide

2012-02-02 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file24399/buildslave_install.txt ___ Python tracker ___ ___ Python-bugs-list maili

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 02 février 2012 à 16:43 +, Petri Lehtinen a écrit : > Petri Lehtinen added the comment: > > > > Should OptimizedUnicode be deprecated, too? > > > > I'd say just undocument it. > > Even remove the note from the patch? Well, I guess keeping the n

[issue13124] Add "Running a Build Slave" page to the devguide

2012-02-02 Thread Stefan Krah
Stefan Krah added the comment: Here's a terse shell script that IMO even moderately experienced admins will prefer to the current version. I'm not sure if the devguide is the right place for this, since non-devs are very welcome to set up buildbots. -- nosy: +pitrou Added file: http://

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: > > Should OptimizedUnicode be deprecated, too? > > I'd say just undocument it. Even remove the note from the patch? -- ___ Python tracker __

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should OptimizedUnicode be deprecated, too? I'd say just undocument it. -- ___ Python tracker ___ __

[issue13817] deadlock in subprocess while running several threads using Popen

2012-02-02 Thread Stephen White
Changes by Stephen White : -- nosy: +Stephen.White ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +patch Added file: http://bugs.python.org/file24397/issue13921.patch ___ Python tracker ___ _

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a patch. It changes OptimizedUnicode to be an alias for PyUnicode_Type and adds a note to the documentation for porters from 2.x that it has no effect on py3k. The patch removes/refactors all OptimizedUnicode and allow_8bit_chars related obsolete co

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For this issue, modifying the xmlrpc.client to support ssl context and > making a HTTPConnection with context object is present may be way to > go. xmlrpc is higher level than http.client, so you might also adopt the urllib approach of passing ca_file and ca_

[issue1813] Codec lookup failing under turkish locale

2012-02-02 Thread Stefan Krah
Stefan Krah added the comment: I've upgraded the Fedora buildbot to Fedora-16. The specific glibc workaround should not be necessary any more. So the test will now fail again on all systems that a) have the bug and b) the tr_Tr locale. -- ___ Pytho

[issue1813] Codec lookup failing under turkish locale

2012-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a55ffb6c1993 by Stefan Krah in branch '3.2': Issue #1813: Revert workaround for a glibc bug on the Fedora buildbot. http://hg.python.org/cpython/rev/a55ffb6c1993 New changeset 4244e4348362 by Stefan Krah in branch 'default': Issue #1813: merge chan

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2012-02-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am sorry. I see that with context object in 3.x, verification is being done. The CA certs can be pointed to using load_verify_locations. As the author had in this patc tothe pass on addition ca_certs and ca_reqs to wrap_socket in ssl from httplib2. I thou

[issue13926] IDLE closes when requesting a list of available modules in the online help utility

2012-02-02 Thread Jeroen
New submission from Jeroen : When using IDLE (2.7.2) in Ubuntu 11.10 the following error occurs: When the online help utility in IDLE is started (by entering the help() commando), it should be possible to get a list of all available modules by typing "modules". When I do so a message is shown th

[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2012-02-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13889] str(float) and round(float) issues with FPU precision

2012-02-02 Thread Mark Dickinson
Mark Dickinson added the comment: > Hi Marc, the changes to the pythoncore.vcproj Visual-Studio file define > the > HAVE_VC_FUNC_FOR_X87 symbol. Okay, makes sense. I was distracted by the spurious reordering of in the diff for pythoncore.vcproj. Just to be clear, the intent of the patch is

[issue13926] IDLE closes when requesting a list of available modules in the online help utility

2012-02-02 Thread Jeroen
Changes by Jeroen : -- components: IDLE nosy: Jeroen priority: normal severity: normal status: open title: IDLE closes when requesting a list of available modules in the online help utility type: behavior versions: Python 2.7 ___ Python tracker

[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you propose a robots.txt file? -- nosy: +georg.brandl, pitrou ___ Python tracker ___ ___ Python

[issue13882] Add format argument for time.time(), time.clock(), ... to get a timestamp as a Decimal object

2012-02-02 Thread STINNER Victor
STINNER Victor added the comment: Patch version 7: - Drop datetime.datetime and datetime.timedelta types - Conversion to decimal now uses a context with 1 digit to compute exponent=1/denominator to avoid issue on t.quantize(exponent) - Rename the "format" argument to "timestamp" in the time m

[issue13922] argparse handling multiple "--" in args improperly

2012-02-02 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +bethard, eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue13756] Python3.2.2 make fail on cygwin

2012-02-02 Thread Luis Marsano
Luis Marsano added the comment: Got it to build. Unpack the Python (3.2.2) source package and apply this patch to get a package that builds on Cygwin (1.7.9), eg: xz -d patch.xz && tar -xJf Python-3.2.2.tar.xz && patch -p0 -i patch Changes: (1) The Makefile, makesetup, and distutils.UnixCCompi