[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 distutils.UnixCCompiler and 
distutils.command.build_ext modules set values for locating cygwin's python 
library that didn't agree or make sense during buildtime, so I revised them to 
agree and use build options that work.
(2) configuration and setup.py couldn't locate cygwin's ncurses headers, so I 
revised them to do that. I don't think I made that change as portable friendly 
as possible, so someone please check that and find a better way.

Your input is welcome.

--
Added file: http://bugs.python.org/file24395/patch.xz

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to timestamp in the time module
 - Rename _PyTime_AsFormat() to _PyTime_Convert()
 - Update the doc

--
Added file: http://bugs.python.org/file24396/time_decimal-7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
___diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -808,13 +808,16 @@ as internal buffering of data.
Availability: Unix.
 
 
-.. function:: fstat(fd)
+.. function:: fstat(fd, timestamp=None)
 
Return status for file descriptor *fd*, like :func:`~os.stat`.
 
Availability: Unix, Windows.
 
-.. function:: fstatat(dirfd, path, flags=0)
+   .. versionchanged:: 3.3
+  Added the *timestamp* argument.
+
+.. function:: fstatat(dirfd, path, flags=0, timestamp=float)
 
Like :func:`stat` but if *path* is relative, it is taken as relative to 
*dirfd*.
*flags* is optional and may be 0 or :data:`AT_SYMLINK_NOFOLLOW`.
@@ -1696,7 +1699,7 @@ Files and Directories
.. versionadded:: 3.3
 
 
-.. function:: lstat(path)
+.. function:: lstat(path, timestamp=None)
 
Perform the equivalent of an :c:func:`lstat` system call on the given path.
Similar to :func:`~os.stat`, but does not follow symbolic links.  On
@@ -1706,6 +1709,9 @@ Files and Directories
.. versionchanged:: 3.2
   Added support for Windows 6.0 (Vista) symbolic links.
 
+   .. versionchanged:: 3.3
+  The *timestamp* argument was added.
+
 
 .. function:: lutimes(path[, times])
 
@@ -1955,7 +1961,7 @@ Files and Directories
.. versionadded:: 3.3
 
 
-.. function:: stat(path)
+.. function:: stat(path, timestamp=None)
 
Perform the equivalent of a :c:func:`stat` system call on the given path.
(This function follows symlinks; to stat a symlink use :func:`lstat`.)
@@ -1975,6 +1981,11 @@ Files and Directories
* :attr:`st_ctime` - platform dependent; time of most recent metadata 
change on
  Unix, or the time of creation on Windows)
 
+   :attr:`st_atime`, :attr:`st_mtime` and :attr:`st_ctime` are :class:`float`
+   by default, or :class:`int` if :func:`os.stat_float_times` is ``False``. Set
+   the *timestamp* argument to get another :ref:`timestamp type
+   timestamp-types`.
+
On some Unix systems (such as Linux), the following attributes may also be
available:
 
@@ -2030,6 +2041,9 @@ Files and Directories
 
Availability: Unix, Windows.
 
+   .. versionchanged:: 3.3
+  Added the *timestamp* argument.
+
 
 .. function:: stat_float_times([newvalue])
 
@@ -2055,6 +2069,9 @@ Files and Directories
are processed, this application should turn the feature off until the 
library
has been corrected.
 
+   .. deprecated:: 3.3
+  Use *timestamp* argument of stat functions instead.
+
 
 .. function:: statvfs(path)
 
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -95,6 +95,14 @@ An explanation of some terminology and c
   | local time  | |
 |
   
+-+-+-+
 
+.. _timestamp-types:
+
+* Python supports the following timestamp types:
+
+  * :class:`int`
+  * :class:`float`
+  * :class:`decimal.Decimal`
+
 
 The module defines the following functions and data items:
 
@@ -118,7 +126,7 @@ The module defines the following functio
   Unlike the C function of the same name, there is no trailing newline.
 
 
-.. function:: clock()
+.. function:: clock(timestamp=float)
 
.. index::
   single: CPU time
@@ -135,16 +143,27 @@ The module defines the following functio
:c:func:`QueryPerformanceCounter`. The resolution is typically better than 
one
microsecond.
 
+   Return as a floating point number by default, set the *timestamp* argument
+   to get another :ref:`timestamp type timestamp-types`.
 
-.. function:: clock_getres(clk_id)
+   .. versionchanged:: 3.3
+  Added the *timestamp* argument.
+
+
+.. function:: clock_getres(clk_id, timestamp=float)
 
Return the resolution (precision) of the specified clock *clk_id*.
+   Return a floating point number by default, set the *timestamp* argument to
+   get another :ref:`timestamp type timestamp-types`.
+
 
.. versionadded:: 3.3
 
-.. function:: clock_gettime(clk_id)
+.. function:: clock_gettime(clk_id, timestamp=float)
 
Return the time of the specified clock *clk_id*.
+   Return a floating point number by default, set the *timestamp* argument to
+   get another :ref:`timestamp type timestamp-types`.
 
.. versionadded:: 3.3
 
@@ -213,12 +232,15 @@ The module 

[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 of the patch is that the FPU state is *always* 
switched on Windows prior to calling the dtoa.c functions;  is that right?

Things to think about:

 - can we avoid *writing* to the x87 / SSE control word if no change is 
necessary (as is currently done with the gcc code)?  We want to avoid 
unnecessary FPU pipeline flushes.

 - we need to make sure that the patch works on 64-bit.  There's a bit of text 
at:

http://msdn.microsoft.com/en-us/library/c9676k6h.aspx

   that suggests that in x64 mode, setting the precision is an error.

 - what happens if the x87 and SSE2 control words have different precisions?  
Does the patch restore both those precisions correctly?

 - in the patch, isn't new387controlword unused?

I'm not sure that this part of the patch can go into the maintenance branches 
(2.7, 3.2);  if this is a new feature (and I think it is, but I'm willing to be 
persuaded otherwise), it can only target 3.3.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13889
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 message is shown that the list will be
created, but after a few seconds the list isn't shown but IDLE is closed
instead.

Python version: Python 2.7.2+ (default, Oct  4 2011, 20:06:09) [GCC 4.6.1]
on linux2
Tk version: 8.5
IDLE version: 2.7.2

2012/2/2 Jeroen rep...@bugs.python.org


 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

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue13926
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 from httplib2. I thought, it was a new requirement. In 2.7, 
those args are not present. 

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13856
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 'default':
Issue #1813: merge changeset that reverts a glibc workaround for the
http://hg.python.org/cpython/rev/4244e4348362

New changeset 0b8917fc6db5 by Stefan Krah in branch '2.7':
Issue #1813: backport changeset that reverts a glibc workaround for the
http://hg.python.org/cpython/rev/0b8917fc6db5

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ca_file and ca_path. As you (or Martin)
prefer :-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13856
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 related 
obsolete code that had been left over from py3k transition. These 
removals/refactorizations have no operational effect, so the module still works 
the same way it has always worked in Py3k.

Should OptimizedUnicode be deprecated, too? In this case, it cannot be aliased 
to str, and _pysqlite_fetch_one_row() needs to raise a DeprecationWarning if 
OptimizedUnicode is used.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13921
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +pitrou
Added file: http://bugs.python.org/file24398/buildslave_install.sh

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13124
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 guess keeping the note is fine.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13921
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 packages,
not sure about Fedora).

Anyway, the current instructions are on the wiki:
http://wiki.python.org/moin/BuildBot
You could add your script or link to it there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13124
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

Steps to reproduce:

 help()

help modules

-- stall --

A blank Tk window suddenly appeared, which suggested that something loaded 
Tkinter. Digging deeper, the help utility in Lib/pydoc.py loads every single 
module found on in sys.path in order to get its __doc__ string. This is doing 
too much work as the purpose of modules is to give a list of available 
modules.

I modified ModuleScanner in pydoc.py so that loader.load_module doesn't get 
called. I set desc and path do hard-coded strings and now modules returns 
a list very quickly. A blank tkinter window still pops up, however.

--
components: +Library (Lib) -IDLE
nosy: +pje, serwy, terry.reedy
title: IDLE closes when requesting a list of available modules in the online 
help utility - pydoc - stall when requesting a list of available modules in 
the online help utility

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 dtrace patch except there is no phelper.

* pydtrace.d
  Same change as the dtrace patch except added PyFrameObject to probes.
  Instead of passing in fields like filename and function name, the systemtap
  scripts (not shown) use PyFrameObject and access the python data structures.
  The overhead for a systemtap probe is a single nop and PyFrameObject is
  possibly live at the probe point so the overhead will be minimal.  pydtrace.h
  is always generated since this file is different for dtrace and stap.

* ceval.c
  The only changes to ceval.c from the upstream version are the addition of the
  PYTHON_FUNCTION_ENTRY and PYTHON_FUNCTION_RETURN probes.
  PYTHON_FUNCTION_ENTRY is invoked directly since the overhead of the probe is
  less than the overhead of a conditional check.  The probe passes the
  PyFrameObject, as mentioned above, but nothing else.  Likewise for
  PYTHON_FUNCTION_RETURN.

systemtap tapset, not included in patch, will provide backtrace results such as:
 #0 main  at /.../python/celsius.py:19
 #1 module  at /.../python/celsius.py:3
 #2 celsius_to_farenheit (celsius:int ) at /.../python/celsius.py:7
and variable trace results such as:
 tuple atuple in celsius_to_farenheit at /.../python/celsius.py =  a, b, 
c,
 list alist in celsius_to_farenheit at /.../python/celsius.py = [ 1, 2, 3,]
 set aset in celsius_to_farenheit at /.../python/celsius.py = { 1, 2, 3,}
...

--
Added file: http://bugs.python.org/file24400/python-stap.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 __init__ that does that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.2
http://hg.python.org/cpython/rev/8b591a86fc91

New changeset c351536e804a by Petri Lehtinen in branch '2.7':
Document absoluteness of sys.executable
http://hg.python.org/cpython/rev/c351536e804a

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13402
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Charles-François Natali in branch '3.2':
Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
http://hg.python.org/cpython/rev/7b24dd587a7b

New changeset a0100852b6fe by Charles-François Natali in branch 'default':
Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
http://hg.python.org/cpython/rev/a0100852b6fe

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13817
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
month vs one.

example
In [2]: import os,time

In [3]: time.ctime(os.path.getmtime('file.cfg'))
Out[3]: 'Tue Dec 13 18:52:58 2011'

In [4]: time.ctime(os.path.getmtime('14d-1.log'))
Out[4]: 'Tue Feb  1 19:53:11 2011'

Is this expected behavior?

--
components: None
messages: 152475
nosy: Roger.Caldwell
priority: normal
severity: normal
status: open
title: Extra spaces in the output of time.ctime
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13927
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue13901
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13857
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue13918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue13817
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
__context__ and stop following exception chain; an exception means display this 
exception and stop following the exception chain.

--
Added file: http://bugs.python.org/file24401/raise_from_none_v6.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6210
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13857
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  - docs@python
components: +Documentation -None
nosy: +docs@python, eric.smith
versions: +Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13927
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the interactive help system? This is an open question to anyone.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 above, there is no way to tell what the culprit is. So if we 
do not disable 'modules', I thing it should just read directory names and 
forget about docstrings. In any case, output should be flushed as available if 
not now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12902
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be removed or severely changed to only list and not execute. There is no 
telling *what* might be on the search path.

I noted there that there are two issues: documenting help() better, and 
changing the behavior of help('modules') and that there is least a behavior 
bug. I am only leaving this issue open because of the report of IDLE crashing - 
which does not happen on Win7, 3.2. I know nothing of how IDLE executes on *nix 
and whether there is anything that might be done to at least exit more 
gracefully.

We might make this the 'change code' issue, though if code is change, some of 
the proposed doc change will become obsolete.

--
superseder:  - Clarify sentence in tutorial

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13926
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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(), ... to get a 
timestamp as a Decimal object - PEP 410: Use decimal.Decimal type for 
timestamps
Added file: http://bugs.python.org/file24402/time_decimal-8.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue13882
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue13882
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 '3.2':
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
http://hg.python.org/cpython/rev/6f6100a752ba

New changeset 84be86af9161 by Ned Deily in branch 'default':
Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.
http://hg.python.org/cpython/rev/84be86af9161

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13901
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13901
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 think this is definitely a bug
my fix:
def writable(self):
return self.connected and len(self.out_buffer)

another bug is more obscure, i'm not sure is it a bug or something should be 
handled by user(programmer)

the bug is also in asyncore.dispatcher_with_send class, and maybe also in 
asyncore.dispatcher class. asyncore.dispatcher uses unblocking socket to handle 
network missions, when we use the connect() method of dispatcher to establish 
the socket, it will call socket.connect_ex() method to create the connection, 
however, socket.connect_ex() may return 10035(EWOULDBLOCK) as it is an 
unblocking socket indicates that the connection creating is not finished yet, 
if we call dispatcher.connect() immediately after .connect(), socket error 
10057 may be raised, indicating that the socket is not established yet, then 
the asyncore main loop catches this exception, and calls handle_error(in my 
case i close the connection in handle_error so the connection which would be 
established with no problem breaks), i think there should be a connection state 
check in asyncore.dispatcher.send(), or at least in 
asyncore.dispatcher_with_send.send.

my fix for asyncore.dispatcher_with_send.send():
def send(self, data):
if self.debug:
self.log_info('sending %s' % repr(data))
self.out_buffer = self.out_buffer + data
if self.connected:# do not call send() if connection is
self.initiate_send()  # not established yet, just put data 
  # in buffer

for the second bug, to reproduce it, just create a unblocking socket to a 
remote, long delay port with socket.connect_ex and call send immediately

--
components: Library (Lib)
messages: 152494
nosy: adamhj
priority: normal
severity: normal
status: open
title: bug in asyncore.dispatcher_with_send
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13928
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
components: Library (Lib)
messages: 152495
nosy: fruch
priority: normal
severity: normal
status: open
title: fnmatch to support escape characters
type: enhancement
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13929
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
Added file: http://bugs.python.org/file24405/raise_from_none_v7.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6210
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 write all files regardless of if refactoring caused any changes.

This patch adds those three features.

Uploading it to the bugtracker in hope of it showing up with a code review link.

--
assignee: gregory.p.smith
components: 2to3 (2.x to 3.x conversion tool)
files: 2to3-output-to-new-dir-gps01.patch
hgrepos: 111
keywords: patch
messages: 152498
nosy: gregory.p.smith, twouters
priority: normal
severity: normal
stage: patch review
status: open
title: lib2to3 ability to output files into a different directory and alter 
their names
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file24406/2to3-output-to-new-dir-gps01.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13930
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com