[issue13756] Python3.2.2 make fail on cygwin

2012-02-02 Thread Luis Marsano
Luis Marsano luis.mars...@gmail.com 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

[issue13922] argparse handling multiple -- in args improperly

2012-02-02 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +bethard, eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13922 ___ ___

[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 victor.stin...@haypocalc.com 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

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

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you propose a robots.txt file? -- nosy: +georg.brandl, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13924 ___

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

2012-02-02 Thread Jeroen
Changes by Jeroen dario...@gmail.com: -- 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 ___

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

2012-02-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2012-02-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13924 ___ ___

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

2012-02-02 Thread Jeroen
New submission from Jeroen dario...@gmail.com: 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

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

2012-02-02 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com 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

[issue1813] Codec lookup failing under turkish locale

2012-02-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue1813] Codec lookup failing under turkish locale

2012-02-02 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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. --

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

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

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

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

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

2012-02-02 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13921 ___

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

2012-02-02 Thread Stephen White
Changes by Stephen White stephen-python@randomstuff.org.uk: -- nosy: +Stephen.White ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13817 ___

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

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should OptimizedUnicode be deprecated, too? I'd say just undocument it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13921 ___

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

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Should OptimizedUnicode be deprecated, too? I'd say just undocument it. Even remove the note from the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13921

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

2012-02-02 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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:

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

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

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

2012-02-02 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file24399/buildslave_install.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___

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

2012-02-02 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file24398/buildslave_install.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___

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

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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

[issue13405] Add DTrace probes

2012-02-02 Thread Stan Cox
Stan Cox s...@redhat.com 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

[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 p...@telecommunity.com 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

[issue13402] Document absoluteness of sys.executable

2012-02-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-02 Thread Roger Caldwell
New submission from Roger Caldwell ro...@monkey.net: 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

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

2012-02-02 Thread toggtc
toggtc tog...@gmail.com 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

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

2012-02-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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). --

[issue13918] locale.atof documentation is missing func argument

2012-02-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue13918] locale.atof documentation is missing func argument

2012-02-02 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com 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

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

2012-02-02 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. Christoph, thanks for the report. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6210] Exception Chaining missing method for suppressing context

2012-02-02 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us 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

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

2012-02-02 Thread Ezra Berch
Ezra Berch ezrabe...@mac.com 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). -- ___

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

2012-02-02 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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: -

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

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should calling modules automatically iterate over all submodules or should it return just a list of top level modules? -- ___ Python tracker rep...@bugs.python.org

[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 p...@telecommunity.com 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 rep...@bugs.python.org http://bugs.python.org/issue13926

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

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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

[issue12902] help(modules) executes module code

2012-02-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[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 tjre...@udel.edu 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

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

2012-02-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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(),

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

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24372/time_decimal-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

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

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24396/time_decimal-7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

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

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24378/time_decimal-6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

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

2012-02-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24403/time_decimal-8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

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

2012-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24402/time_decimal-8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

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

2012-02-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2012-02-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-02 Thread Ned Deily
Ned Deily n...@acm.org 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: -

[issue13405] Add DTrace probes

2012-02-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list

[issue13928] bug in asyncore.dispatcher_with_send

2012-02-02 Thread adamhj
New submission from adamhj ada...@gmail.com: 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

[issue13929] fnmatch to support escape characters

2012-02-02 Thread Israel Fruchter
New submission from Israel Fruchter israel.fruch...@gmail.com: 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 /?

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

2012-02-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: asctime() docs say it's a 24 char string. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13927 ___

[issue6210] Exception Chaining missing method for suppressing context

2012-02-02 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us 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 ...'

[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 g...@krypto.org: 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