[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Alexander:

 When a is mutable, a += b updates it in-place, so there is no ambiguity: the 
 type of a cannot change.  When you do a + b, there is no reason to treat a as 
 more deserving than b when selecting the type of the result

Does this means a += b is not the same as a = a + b? I'd think this can be 
seen as a pitfall for python.

--
nosy: +ysj.ray

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



[issue9319] segfault when searching modules with help()

2010-07-21 Thread Ron Adam

New submission from Ron Adam ron_a...@users.sourceforge.net:

help('modules spam') causes segfault.

When pydoc tries goes though the files it does the following in the 
ModuleScanner class.

(minimal example)

 for importer, modname, ispkg in pkgutil.walk_packages():
... if modname == 'test.badsyntax_pep3120':
... loader = importer.find_module(modname)
... 
Segmentation fault

Adding:

   if modname=='test.badsyntax_pep3120':
  continue

At the top of the for loop will suppress the segfault in pydoc by skipping that 
file.


A bit further probing narrowed it down to this...

 loader = pkgutil.get_loader('test.badsyntax_pep3120')
Segmentation fault

I'm not familiar with the pkgutil module so I didn't go further.

--
components: Library (Lib)
messages: 111009
nosy: ron_adam
priority: normal
severity: normal
status: open
title: segfault when searching modules with help()
type: crash
versions: Python 3.2

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



[issue5817] Right-click behavior from Windows Explorer

2010-07-21 Thread Tal Einat

Tal Einat talei...@gmail.com added the comment:

That makes sense. I think this issue can be closed.

For future reference, the original feature request has a benefit beyond not 
having a shell window open for every editor window. Opening different files in 
the same instance of IDLE allows running them in the same shell easily via Run 
Module. However, IMO this would be much too small a benefit compared to the 
effort required to achieve it.

--

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



[issue5817] Right-click behavior from Windows Explorer

2010-07-21 Thread Michael Kopinsky

Changes by Michael Kopinsky mkopin...@gmail.com:


--
status: open - closed

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



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

2010-07-21 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

On windows, I can only import nt, not posix, ce, os2.
 import posix
Traceback (most recent call last):
  File pyshell#0, line 1, in module
import posix
ImportError: No module named posix
 import nt
 dir(nt)
['F_OK', 'O_APPEND', 'O_BINARY', 'O_CREAT', 'O_EXCL', 'O_NOINHERIT', 
'O_RANDOM', 'O_RDONLY', 'O_RDWR', 'O_SEQUENTIAL', 'O_SHORT_LIVED', 
'O_TEMPORARY', 'O_TEXT', 'O_TRUNC', 'O_WRONLY', 'P_DETACH', 'P_NOWAIT', 
'P_NOWAITO', 'P_OVERLAY', 'P_WAIT', 'R_OK', 'TMP_MAX', 'W_OK', 'X_OK', 
'__doc__', '__name__', '__package__', '_exit', '_getfullpathname', 'abort', 
'access', 'chdir', 'chmod', 'close', 'closerange', 'device_encoding', 'dup', 
'dup2', 'environ', 'error', 'execv', 'execve', 'fstat', 'fsync', 'getcwd', 
'getcwdb', 'getpid', 'isatty', 'listdir', 'lseek', 'lstat', 'mkdir', 'open', 
'pipe', 'putenv', 'read', 'remove', 'rename', 'rmdir', 'spawnv', 'spawnve', 
'startfile', 'stat', 'stat_float_times', 'stat_result', 'statvfs_result', 
'strerror', 'system', 'times', 'umask', 'unlink', 'urandom', 'utime', 
'waitpid', 'write']
I guessed there might be some trickery because I say the ifdef Windows in 
posixmodule.c.

--

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



[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

The test is hard to write. The server is launched in a separate thread. Any 
ideas how to check os.environ there?

--

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



[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik

New submission from anatoly techtonik techto...@gmail.com:

Seems like os.environ is shared between multiple threads. This should be 
documented at least in threading chapters.

--
assignee: d...@python
components: Documentation
messages: 111013
nosy: d...@python, techtonik
priority: normal
severity: normal
status: open
title: os.environ is global for threads
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



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

2010-07-21 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

On Wed, Jul 21, 2010 at 3:32 AM, Terry J. Reedy rep...@bugs.python.org wrote:

 Terry J. Reedy tjre...@udel.edu added the comment:

 Discussion has continued on pydev thread mkdir -p in python. Some suggested 
 a new function. Others questioned the details of the new behavior. Guido 
 prefers the flag approach and imitation of mkdir -p.

 -1 on a new function (despite the constant-argument
 guideline) and +1 on a flag. If it weren't for backwards compatibility
 I'd just change os.makedirs() to act like mkdir -p period, but the
 last opportunity we had for that was Python 3.0.

 So, the patch should either leave behavior untouched or imitate -p behavior. 
 That to me says that the parameter passed to mkdirs should be propagated to 
 each mkdir call, as the 9299 patch does, and not set to a fixed value.

Hm. I wonder if os.mkdir() should not be left alone (so as to continue
to match the system call most exactly, as is our convention) and the
extra functionality added to os.makedirs() only.

--

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



[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Reid Kleckner

Reid Kleckner r...@mit.edu added the comment:

When I ported the patch I tested on trunk + Windows to py3k, I messed that 
stuff up.  I also had to fix a bunch of str vs. bytes issues this time around.  
On Windows, it uses TextIOWrapper to do the encoding, and on POSIX it uses 
os.write, so I have to do the encoding myself.  :p

This patch has been tested on Windows Vista and Mac OS X 10.5.

--
Added file: http://bugs.python.org/file18101/subprocess-timeout-py3k-v7.patch

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



[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Ok. os.environ seems to be shared between threads. Here is updated patch.

--
Added file: 
http://bugs.python.org/file18102/9272.CGIHTTPServer-poisons-os.environ.patch

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



[issue5804] Add an 'offset' argument to zlib.decompress

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The function returns different kind of data depending on the value of the last 
parameter. I don't like it at all.

Why is decompressobj not enough?

--
nosy: +amaury.forgeotdarc

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



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

2010-07-21 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I found in Modules/posixmodule.c that:


#if (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__))  
!defined(__QNX__)
#define INITFUNC PyInit_nt
#define MODNAME nt

#elif defined(PYOS_OS2)
#define INITFUNC PyInit_os2
#define MODNAME os2

#else
#define INITFUNC PyInit_posix
#define MODNAME posix
#endif


I also found the ce module in Python Windows CE 
(http://pythonce.sourceforge.net/) source: Modules/posixmodule.c, seeing 
http://docs.python.org/py3k/using/windows.html. This means the nt, os2, 
ce, posix module are all implemented in Modules/posixmodule.c.

--

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



[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

The patch and the tests look good. I could verify it too. I shall commit it.

--
assignee:  - orsenthil
resolution:  - accepted

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



[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread anatoly techtonik

New submission from anatoly techtonik techto...@gmail.com:

CGIHTTPServer looks for CGI files in '/htbin' directory. This never was a 
standard (in comparison to `cgi-bin`) and can be safely removed at least in Py3k

--
components: Library (Lib)
messages: 111020
nosy: techtonik
priority: normal
severity: normal
status: open
title: CGIHTTPServer cleanup htbin
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue9320] os.environ is global for threads

2010-07-21 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I'm not sure where you'd put this. The defining characteristic of threads is 
that _all_ objects are shared among them.

--
nosy: +eric.smith

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



[issue9320] os.environ is global for threads

2010-07-21 Thread Konstantin Zemlyak

Konstantin Zemlyak z...@zartsoft.ru added the comment:

Environment variables have always been process-wide. It doesn't deserve any 
special mention in threads documentation.

--
nosy: +zart

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



[issue9007] CGIHTTPServer supports only Python CGI scripts

2010-07-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

It was actual only for old Mac versions without popen2/popen3 calls. popenX 
calls were replaced with subprocess which should be available on MacOS.

--
status: open - closed

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



[issue1635741] Interpreter seems to leak references after finalization

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Yes, some objects are not cleaned in finalization.
This is not a problem in usual cases though, when the interpreter is
started only once.

--
nosy: +amaury.forgeotdarc

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



[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem

Ask Solem a...@opera.com added the comment:

At first glance, looks like there are a number of sites where you don't 
change the blocking calls to non-blocking calls (e.g. get()).  Almost all of 
the get()s have the potential to be called when there is no possibility for 
them to terminate.

I might recommend referring to my original termination.patch... I believe I 
tracked down the majority of such blocking calls.

I thought the EOF errors would take care of that, at least this has
been running in production on many platforms without that happening.

In the interest of simplicity though, I'm beginning to think that the right 
answer might be to just do something like termination.patch but to 
conditionalize crashing the pool on a pool configuration option.  That way 
the behavior would no worse for your use case.  Does that sound reasonable?

How would you shut down the pool then? And why is that simpler?

--

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



[issue1253] IDLE - Percolator overhaul

2010-07-21 Thread Tal Einat

Tal Einat talei...@gmail.com added the comment:

Note that at one point discussion of this issue was continued on the tracker 
page for issue1252.

--

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Alexander,

I propose an alternative patch (attached issue9317.2.diff). It uses:

with open(progname) as fp:
code = compile(fp.read(), progname, 'exec')
t.run(code)

Since the `run` method of Trace already accepts a code object and passes it to 
`exec`, I see no reason to do another `exec`.

This also fixes your 'traceme' problem, without introducing new module imports:


$ py3d -m trace -c -s traceme.py 
lines   cov%   module   (path)
1   100%   threading   
(/home/eliben/python_src/eliben-py3k/Lib/threading.py)
6   100%   traceme   (traceme.py)
[47526 refs]

--
Added file: http://bugs.python.org/file18103/issue9317.2.patch

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



[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem

Ask Solem a...@opera.com added the comment:

Btw, the current problem with termination3.patch seems to be that the 
MainProcess somehow appears in self._pool. I have no idea how it gets there. 
Maybe some unrelated issue that appears when forking that late in the tests.

--

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



[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-21 Thread Tal Einat

Tal Einat talei...@gmail.com added the comment:

After looking through the code and experimenting a bit, I propose the following:

The editor-on-startup config option should be removed. Running IDLE without 
arguments should open a shell. If IDLE is asked to open any files for editing, 
it should open just editor windows. IDLE should open both a shell window and 
one or more editor windows only when explicitly asked to do so on the command 
line.

If this is done, the -e option (open an editor) would tell IDLE to open an 
empty editor window if no files are asked to be opened for editing. If no other 
arguments are given, IDLE will open just an editor window (no shell window). 
The -i option (open a shell) would tell IDLE to open a shell window even if 
asked to open files for editing.

I think this is more obvious and easier to work with. It will also make the 
command line argument processing code simpler. And as a bonus we remove a 
config option :)

Thoughts? Comments? If there is agreements I will work up a patch.

--

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



[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Looks like tok-filename isn't set in PyTokenizer_FromFile:


Index: Parser/tokenizer.c
===
--- Parser/tokenizer.c  (revision 82984)
+++ Parser/tokenizer.c  (working copy)
@@ -818,6 +818,7 @@
 tok-cur = tok-inp = tok-buf;
 tok-end = tok-buf + BUFSIZ;
 tok-fp = fp;
+tok-filename = XXX;
 tok-prompt = ps1;
 tok-nextprompt = ps2;
 if (enc != NULL) {

--
nosy: +pitrou, skrah
priority: normal - high
resolution:  - accepted

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



[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Wed, Jul 21, 2010 at 11:43 AM, Eric Smith rep...@bugs.python.org wrote:

 I'm not sure where you'd put this. The defining characteristic of threads is 
 that _all_ objects are shared among them.

Where is this defining characteristic of threads is described?

--

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



[issue8258] Multiple Python Interpreter Memory Leak

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

It's actually the same issue as issue1635741

--
nosy: +amaury.forgeotdarc
resolution:  - duplicate
status: open - closed
superseder:  - Interpreter seems to leak references after finalization

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



[issue9320] os.environ is global for threads

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 I'm not sure where you'd put this. The defining characteristic of threads is 
 that _all_ objects are shared among them.
 Where is this defining characteristic of threads is described?

in http://docs.python.org/library/thread.html
...multiple threads of control sharing their global data space...

That's how threads are understood in all programming languages.

--
nosy: +amaury.forgeotdarc

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



[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The patch actually does 2 things:
- it prevents the usage of '=' in putenv, which is is good because the putenv() 
system call handles this badly.
- it will raise an error when unsetting a nonexistent variable. This is a 
change in behaviour which is not needed. (in a shell, the unset command will 
silently ignore missing variables)

Also, some unit tests would be appreciated

--
nosy: +amaury.forgeotdarc

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



[issue9320] os.environ is global for threads

2010-07-21 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Closing in agreement with Eric/Amaury.

--
nosy: +georg.brandl
resolution:  - works for me
status: open - closed

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



[issue5689] please support lzma compression as an extension and in the tarfile module

2010-07-21 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
stage:  - needs patch
versions: +Python 3.2 -Python 2.7, Python 3.1

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



[issue5411] add xz compression support to distutils

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

distutils2 uses tarfile now instead of external programs. Adding dependency on 
another bug.

--
dependencies: +please support lzma compression as an extension and in   the 
tarfile module
stage: unit test needed - needs patch
versions: +Python 2.5, Python 2.6, Python 3.2

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



[issue4714] print opcode stats at the end of pybench runs

2010-07-21 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
status: open - languishing
versions: +Python 3.2 -Python 3.0

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



[issue1492240] Socket-object convenience function: getpeercred().

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Heiko, are you still interested given msg50314?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7, Python 3.1

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



[issue6331] Add unicode script info to the unicode database

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Could someone with unicode knowledge take this review on, given that comments 
have already been made and responded to?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

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



[issue1677872] Efficient reverse line iterator

2010-07-21 Thread Mark Russell

Mark Russell mark_t_russ...@users.sourceforge.net added the comment:

I'll do a C version of the patch (hopefully in the next week or so).

--

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



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

2010-07-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Committed to py3k as r83016, release31-maint as r83017, and release27-maint as 
r83018.

Thanks for your help, everyone.

--
resolution:  - fixed
status: open - closed

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



[issue809163] Can't add files with spaces

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the report Antonio. I’m sorry noone replied before; bugs are triaged 
by volunteers and distutils had no dedicated maintainer in the previous years. 
This needs a test to make sure the bug still exists, and if confirmed a patch 
to fix it. I don’t have time right now but it will be done. Thanks again.

--
assignee:  - tarek
components: +Distutils2
nosy: +merwok, tarek
stage:  - unit test needed
versions:  -Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

Eli,

Your new patch makes perfect sense, but can you check of regular  
python invocation uses runpy these days. If it does, it may make sense  
to include it in trace at least optionally.

Also, does this fix the original problem?

--
nosy: +Alexander.Belopolsky

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



[issue9318] Py3k compilation on old MSVC

2010-07-21 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +brian.curtin, loewis

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



[issue9319] segfault when searching modules with help()

2010-07-21 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +benjamin.peterson

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



[issue828450] sdist generates bad MANIFEST on Windows

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the report, and sorry noone replied earlier. Could you perhaps make 
a diff against test_sdist.py to confirm this bug?

--
components: +Distutils2
nosy: +merwok
stage:  - unit test needed

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



[issue1052827] filelist.findall should not fail on dangling symlinks

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the report. The steps you described need to be turned into a unit 
test. Can someone provide a patch against py3k’s test_sdist.py?

--
assignee:  - tarek
components: +Distutils2
nosy: +merwok
stage:  - unit test needed
title: filelist.findall should use os.lstat - filelist.findall should not fail 
on dangling symlinks
versions:  -Python 2.5

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



[issue8286] distutils: path '[...]' cannot end with '/'

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Could you describe the steps leading to this message, preferably in the form of 
a unit test?

It looks like a bug in your MANIFEST.in to me, but we need a test to be sure. 
At worst it’s a bug in distutils, at best it needs a better error message.

--
nosy: +merwok
stage:  - unit test needed

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



[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

If it were to be removed it would have to go through the deprecation process.  
Does it cause any problems?  If not I'd say we should just leave it.

--
nosy: +r.david.murray
type:  - feature request
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.3

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



[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Sorry for the lag. There are a lot of bugs and Tarek is very busy. The steps 
you describe need to be turned in a new test in py3k’s test_sdist.

--
nosy: +merwok

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:


Your new patch makes perfect sense, but can you check of regular  
python invocation uses runpy these days. If it does, it may make sense  
to include it in trace at least optionally.


I'm not sure I understand what you mean by this. Could you please clarify?


Also, does this fix the original problem?


Alas, no.

--

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



[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

To be a little clearer: Since tok-filename is used as a flag in other
places, I'm not sure where to set it without breaking other things.
This is the location of the segfault and the following would fix it
(using a placeholder for the name):


Index: Parser/tokenizer.c
===
--- Parser/tokenizer.c  (revision 83019)
+++ Parser/tokenizer.c  (working copy)
@@ -582,6 +582,8 @@
 if (badchar) {
 /* Need to add 1 to the line number, since this line
has not been counted, yet.  */
+if (tok-filename == NULL)
+tok-filename = file;
 PyErr_Format(PyExc_SyntaxError,
 Non-UTF-8 code starting with '\\x%.2x' 
 in file %.200s on line %i, 

--

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



[issue6231] ElementInclude may drop text

2010-07-21 Thread Neil Muller

Neil Muller drnlmuller+b...@gmail.com added the comment:

The bug is still present in py3k trunk, the py3k patch still applies, and, as 
the bug has celebrated it's first birthday, all evidence suggests no-one else 
cares.

--
status: open - languishing
versions: +Python 3.2

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

On Jul 21, 2010, at 9:22 AM, Eli Bendersky rep...@bugs.python.org  
wrote:


 Eli Bendersky eli...@gmail.com added the comment:

 
 Your new patch makes perfect sense, but can you check of regular
 python invocation uses runpy these days. If it does, it may make sense
 to include it in trace at least optionally.


 I'm not sure I understand what you mean by this. Could you please  
 clarify?


Sorry, typing on the phone.  s/of/if/ in my message above. What I mean  
is that as far as I know, when you run a script from command line,  
python loads it using functions in runpy.  Arguably this means that  
these functions should show up in coverage.

--

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:


 Sorry, typing on the phone.  s/of/if/ in my message above. What I mean
 is that as far as I know, when you run a script from command line,
 python loads it using functions in runpy.  Arguably this means that
 these functions should show up in coverage.


As far as I understand, when you run:

py3d -m trace -C pickle-trace.d -c -m test_pickle.py

The first -m flag applies to the trace module. Python uses
runpy.run_module to load it, and then passes it its arguments (-C and
onwards).

Since runpy.run_module actually runs /before/ trace.py, trace.py has
no chance of setting its settrace hooks and trace runpy itself.

Moreover, since runpy is only the machinery to execute trace.py, does
it even make sense to include it in coverage?

What do you think?

--

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



[issue9057] Distutils2 needs a home page

2010-07-21 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee: tarek - merwok
resolution:  - accepted

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



[issue5135] Expose simplegeneric function in functools module

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Changes as Guido has stated that he wants a PEP.

--
nosy: +BreamoreBoy
stage: patch review - 
versions: +Python 3.3 -Python 2.7

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



[issue1343] XMLGenerator: nice empty/ elements

2010-07-21 Thread Neil Muller

Neil Muller drnlmuller+b...@gmail.com added the comment:

Updated version of the patch against current py3k svn (r83022) attached.

This is a combined patch, including the previous xml.sax.saxutil changes 
(including the 'short_empty_elements' keyword) and the new tests.

--
nosy: +Neil Muller
Added file: http://bugs.python.org/file18104/xml_short_empty_elements_py3k.diff

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



[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD

New submission from Dan OD dj...@cam.ac.uk:

Setting absolute paths for C source code files in setup.py breaks bdist_rpm

ext_modules=[Extension('foo', [os.path.abspath('src/foo.c')])],

results in bdist_rpm not including src/foo.c in the RPM, however

ext_modules=[Extension('foo', ['src/foo.c'])],

works just fine.

--
assignee: tarek
components: Distutils
messages: 111058
nosy: indiedan, tarek
priority: normal
severity: normal
status: open
title: bdist_rpm ext_modules absolute source path fail
type: behavior
versions: Python 2.7

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky rep...@bugs.python.org wrote:
..
 As far as I understand, when you run:

    py3d -m trace -C pickle-trace.d -c -m test_pickle.py

 The first -m flag applies to the trace module. Python uses
 runpy.run_module to load it, and then passes it its arguments (-C and
 onwards).

When I said run from command line, I meant something like

$ python Lib/test/test_pickle.py

I am not sure if this uses runpy machinery, but I suspect it does.

 The trace output should not include runpy calls that load the trace
module itself, but

$ python -m trace flags Lib/test/test_pickle.py

might show the runpy calls that occur when you run

$ python Lib/test/test_pickle.py

without tracing.   BTW, too bad that '-m' is taken, but I think
trace.py should grow a --run-module option so that you can trace
equivalents of python -m executions:

$ python -m trace flags --run-module test.test_pickle

 Moreover, since runpy is only the machinery to execute trace.py, does
 it even make sense to include it in coverage?

 What do you think?

I think you should ask python-dev. :-)  Note that most C/C++ coverage
tools do include  pre-main calls in coverage.  In case of C++, a lot
of things may happen before main().

Whatever the solution is, it should be unified between trace, profile,
and pdb modules.

--

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Eli,

At this point, I think it will be best to focus on unittests.  I am adding 
#9315 as a dependency here and will add a comment there.  I think once we have 
good unittest coverage the bug will become obvious.

--
dependencies: +The trace module lacks unit tests
nosy:  -Alexander.Belopolsky

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Also, when you get a chance, please separate the __main__ coverage bug into a 
separate issue and bring it up on python-dev.  We should get profile guys 
involved and I don't want them to be distracted by trace specific issues.

--

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



[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Examples in the documentation only use relative paths, so in my opinion the bug 
here is the silent failure.

Do absolute paths work for sdist or other bdists?

--
nosy: +merwok

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



[issue5758] fileinput.hook_compressed returning bytes from gz file

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

gzip.open() only implements the rb mode, and returns bytes.
fileinput could certainly wrap it with a io.TextIOWrapper.

Then the encoding issue arises.
fileinput.FileInput should grow an encoding parameter instead of always 
relying on the default encoding.

--
keywords: +easy
nosy: +amaury.forgeotdarc
versions:  -Python 2.7

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



[issue9315] The trace module lacks unit tests

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

I am adding 2.7.  It is ok to add tests to the stable series release AFAIK.  
Moreover, I believe the unittests should be written for 2.7 first.  Since 3.x 
port of trace was done without the benefit of a test suite, it is likely that 
there are many differences in behavior that should be eliminated.  (See 
issue9317.)

Please start with fine-graned white-box API tests.  These are easier because 
you don't need to set up external scripts, capture output, etc. Just create a 
Trace object in setUp and call its various methods in test cases.

--
assignee:  - belopolsky
components: +Tests -Library (Lib)
nosy: +belopolsky
stage:  - needs patch
type: behavior - feature request
versions: +Python 2.7

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



[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD

Dan OD dj...@cam.ac.uk added the comment:

I'm still ironing out the crinkles, but this has been working for

sdist
build (/install)
bdist_dumb

unfortunately I don't have access to a Windows machine to test the other two. A 
non-silent warning/error would keep me happy.

--

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



[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Eli Bendersky

New submission from Eli Bendersky eli...@gmail.com:

[This bug was discovered by Alexander Belopolsky, during the work on Issue 9317]

Bug report
**

The attached traceme.py file demonstrates the following problem:

With python 2.7:
$ python2 -m trace  -c -s traceme.py
lines   cov%   module   (path)
1   100%   threading   (Lib/threading.py)
6   100%   traceme   (traceme.py)

The first entry is clearly spurious, but traceme looks right.  With py3k, 
however, I get

$ python3 -m trace  -c -s traceme.py
lines   cov%   module   (path)
1   100%   threading   (Lib/threading.py)

No traceme line at all.

Analysis


When trace.py actually runs the script, it uses this code in 3.x:

   t.run('exec(%r)' % (script,))

instead of this code in 2.x:

t.run('execfile(%r)' % (progname,))

`exec` doesn't have the program name to attach to the code object created, and 
calls it 'string' by default. However, this file name is ignored by the trace 
module.

`execfile` doesn't exist in 3.x, so an alternative approach is needed.

Proposed solution
*

Instead of t.run as displayed above, use this code:

with open(progname) as fp:
code = compile(fp.read(), progname, 'exec')
t.run(code)

The code object created by `compile` attaches the program name and is 
executable by t.run (because t.run actually calls `exec` which can run the 
result of `compile`).

This solution fixes the problem:

$ py3d -m trace -c -s traceme.py 
lines   cov%   module   (path)
1   100%   threading   
(/home/eliben/python_src/eliben-py3k/Lib/threading.py)
6   100%   traceme   (traceme.py)

I'll attach a patch file that was creates vs. the latest trunk, with this fix.

--
files: traceme.py
messages: 111066
nosy: eli.bendersky
priority: normal
severity: normal
status: open
title: trace.py bug with the main file being traced
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18105/traceme.py

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



[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
components: +Library (Lib)
keywords: +patch
Added file: http://bugs.python.org/file18106/issue9323.1.patch

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



[issue6751] Default return value in ConfigParser

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The idea is fine (dict.get also has a 'default' parameter) but this patch is 
very incomplete:
- the enhancement should be applied to the three Parsers
- it needs unit tests.

--
nosy: +amaury.forgeotdarc

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

1. I've created Issue 9323 to address the bug with __main__, with the proposed 
patch. 

2. Agreed about the unit tests (Issue 9315). I'll try to get the basic testing 
framework for trace.py created over the weekend.

--

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



[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Wed, Jul 21, 2010 at 2:09 AM, Ray.Allen rep...@bugs.python.org wrote:
..
 Does this means a += b is not the same as a = a + b?

For immutable a, the two are practically the same, for mutable, they
are necessarily different.   This is explained in __iadd__
documentation:


These methods are called to implement the augmented arithmetic
assignments (+=, -=, *=, /=, //=, %=, **=, =, =, =, ^=, |=).
These methods should attempt to do the operation in-place (modifying
self) and return the result (which could be, but does not have to be,
self). If a specific method is not defined, the augmented assignment
falls back to the normal methods. For instance, to execute the
statement x += y, where x is an instance of a class that has an
__iadd__() method, x.__iadd__(y) is called. If x is an instance of a
class that does not define a __iadd__() method, x.__add__(y) and
y.__radd__(x) are considered, as with the evaluation of x + y.
  http://docs.python.org/reference/datamodel.html?#object.__iadd__

 I'd think this can be seen as a pitfall for python.

No.  Please see PEP 203 for the rationale.
http://www.python.org/dev/peps/pep-0203/

--

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



[issue1343] XMLGenerator: nice empty/ elements

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

The patch looks clean to me, applied small edits to change it from git to svn.  
Changed test_sax got 7 errors on run.  Changed saxutils 53 tests all passed.  
Can this please be committed.

--
stage: patch review - commit review

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



[issue5120] Disabling test_ttk_guionly on mac

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still a problem on OS X?

--
nosy: +BreamoreBoy

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



[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Looks good to me.

--

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



[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-07-21 Thread Dave Malcolm

Changes by Dave Malcolm dmalc...@redhat.com:


--
nosy: +dmalcolm

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



[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-21 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Keep in mind that, on OS X, there are two ways to invoke IDLE: one, by command 
line in a terminal window, and, two, by launching IDLE.app (explicitly, say by 
double-clicking on the app icon, or implictily, say by double-clicking on a .py 
file where IDLE.app is the default application for that file type).  With 
IDLE.app there is no opportunity for the user to specify command line options.  
I suspect that on OS X IDLE.app is used far more frequently than the command 
line.

--
nosy: +ned.deily

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



[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

[Copying msg111059 from issue9317]

On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky rep...@bugs.python.org wrote:
..
 As far as I understand, when you run:

py3d -m trace -C pickle-trace.d -c -m test_pickle.py

 The first -m flag applies to the trace module. Python uses
 runpy.run_module to load it, and then passes it its arguments (-C and
 onwards).

When I said run from command line, I meant something like

$ python Lib/test/test_pickle.py

I am not sure if this uses runpy machinery, but I suspect it does.

 The trace output should not include runpy calls that load the trace
module itself, but

$ python -m trace flags Lib/test/test_pickle.py

might show the runpy calls that occur when you run

$ python Lib/test/test_pickle.py

without tracing.   BTW, too bad that '-m' is taken, but I think
trace.py should grow a --run-module option so that you can trace
equivalents of python -m executions:

$ python -m trace flags --run-module test.test_pickle

 Moreover, since runpy is only the machinery to execute trace.py, does
 it even make sense to include it in coverage?

 What do you think?

I think you should ask python-dev. :-)  Note that most C/C++ coverage
tools do include  pre-main calls in coverage.  In case of C++, a lot
of things may happen before main().

Whatever the solution is, it should be unified between trace, profile,
and pdb modules.

--
assignee:  - belopolsky
nosy: +belopolsky

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



[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-21 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

I'm interested in getting this into 3.2. Thanks for bringing
the issue back on my radar.

--

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



[issue4510] ValueError for list.remove() not very helpful

2010-07-21 Thread Tim Lesher

Tim Lesher tles...@gmail.com added the comment:

It looks as if this has been addressed for list.index (aka issue #7252), in 
r76058.  The same fix could be applied for list.remove.

--

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



[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner

Reid Kleckner r...@mit.edu added the comment:

pytime.h looks like it got pasted into the file twice.  Other than that, it 
looks good to me and the tests pass on OS X here.

--

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



[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher

Tim Lesher tles...@gmail.com added the comment:

Added patch that replicates the change in r82035 for Visual Studio 2005 (VC8) 
builds.

--
nosy: +tlesher
Added file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff

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



[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The patch looks correct, it's now a matter of unit tests.
for example, I'd test the case where the length is around 1000..

--
nosy: +amaury.forgeotdarc

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



[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

With the latest patch on Windows Vista against 2.7 I got 12 EOFError errors 
instead of IOError.

--
nosy: +BreamoreBoy
versions: +Python 3.1

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



[issue8286] distutils: path '[...]' cannot end with '/' -- need better error message

2010-07-21 Thread Sridhar Ratnakumar

Sridhar Ratnakumar sridh...@activestate.com added the comment:

Repro steps on a Windows machine:

1. pip install --no-install django-navbar==0.2

Yes, it seems like a bug in the MANIFEST file of the django-navbar project 
(which is not mine) that seems to have been fixed in the subsequent 0.3 release.

 at best it needs a better error message.

+1

--
title: distutils: path '[...]' cannot end with '/' - distutils: path '[...]' 
cannot end with '/' -- need better error message
type: behavior - feature request
versions: +Python 3.2, Python 3.3 -Python 2.6

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



[issue6975] symlinks incorrectly resolved on Linux

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

swarecki or markon, are either of you interested in following up this issue?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

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



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2010-07-21 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage:  - patch review
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

issue8524 fixed a similar issue (the timeout of the initial socket was not 
passed to the ssl socket).
Can someone test again with a recent py3k build?

--
nosy: +amaury.forgeotdarc
resolution:  - out of date
superseder:  - SSL sockets do not retain the parent socket's attributes

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



[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Sorry for the noise, forgot to rebuild the code.  The tests run fine 543 tests 
ok, except I note that all the output is repeated 6 times, I don't understand 
this at all.

--

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



[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

issue9079a.diff doesn't compile on Windows - timeval isn't defined. You'd have 
to include Winsock2.h [0]. Adding something like the following within the 
HAVE_FTIME block would work...
#ifdef MS_WINDOWS
#include Winsock2.h
#endif

I don't currently have time to dig deeper into this stuff, but test_queue 
hangs. Running the suite without test_queue leaves 31 other failures and 
something hangs in the background so the test never completes. That was all 
done with issue9079a.diff applied, plus my winsock include.


[0] http://msdn.microsoft.com/en-us/library/ms740560(VS.85).aspx

--
nosy: +brian.curtin

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



[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Will polish the patch and commit.

--
assignee:  - pitrou
resolution:  - accepted
stage: patch review - commit review

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



[issue1441530] socket read() can cause MemoryError in Windows

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

I fail to see *why* the patch fixes the issue. You still have to allocate the 
big string when joining the parts.

--
nosy: +amaury.forgeotdarc

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



[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I've committed the new test in py3k (r83030) and 3.1 (r83033), and the full 
patch in 2.7 (r83031) and 2.6 (r83032). Thank you!

--
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed
versions: +Python 2.6 -Python 3.1, Python 3.2

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



[issue1441530] socket read() can cause MemoryError in Windows

2010-07-21 Thread Márcio Faustino

Márcio Faustino marciombfaust...@gmail.com added the comment:

Speaking for myself, I'm not using the attached patch, I'm using the simple fix 
I included in my previous reply which works perfectly to avoid getting a 
MemoryError exception thrown.

--

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



[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Regarding:
 The tests run fine 543 tests ok, except I note that all the output is
 repeated 6 times, I don't understand this at all.

This is normal, all array tests are run once per array type, and 6 different 
array types are being tested.

--

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



[issue8343] improve re parse error messages for named groups

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

A small but useful addition, patch looks OK to me

--
nosy: +amaury.forgeotdarc
resolution:  - accepted
versions: +Python 3.2 -Python 2.6, Python 2.7

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



[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2010-07-21 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

This is a request for changing the current behavior on Unix, and I
doubt this is going to happen, since it could break existing code.

On a side note, there are already two ways get the desired output:


 Popen(gcc --version, shell=True)
gcc (GCC) 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3) ...


 p = Popen([gcc, --version], stdout=PIPE)
 p.stdout.read()
b'gcc (GCC) 4.1.3 20080623 (prerelease) ...

--
nosy: +skrah
resolution:  - rejected
stage: patch review - committed/rejected
status: open - pending
type: behavior - feature request

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



[issue8035] urllib.request.urlretrieve hangs

2010-07-21 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

This URL does not seem to return a 302 code. Is there another example?

--
nosy: +amaury.forgeotdarc

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



[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Committed with a minor change.  (There is no need to keep the source file open 
during the trace run.)  See r83035 (r83037 in release31-maint.)

I will open a separate issue to discuss a possible RFE related to msg111074.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue7980] time.strptime not thread safe

2010-07-21 Thread David Fraser

Changes by David Fraser dav...@sjsoft.com:


--
nosy: +davidfraser

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



[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-21 Thread David Fraser

Changes by David Fraser dav...@sjsoft.com:


--
nosy: +davidfraser

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



[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
status: open - closed

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



[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Interesting.  As far as I can tell, struct timeval should not be used unless 
HAVE_GETTIMEOFDAY is defined:

+#ifdef HAVE_GETTIMEOFDAY
+typedef struct timeval _PyTime_timeval;
+#else
+typedef struct {
+time_t   tv_sec;   /* seconds since Jan. 1, 1970 */
+long tv_usec;  /* and microseconds */
+} _PyTime_timeval;
+#endif

Brian, where do you get undefined symbol error?

--

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



[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner

Reid Kleckner r...@mit.edu added the comment:

I think you used 'struct timeval *' in the function definition instead of 
'_PyTimeVal *'.

--

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



[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-21 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Is anyone interested in giving this a final review?  I would like to check this 
in unless someone objects or needs time to review.

--

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



[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Here are the errors I get:

Error   104 error C2037: left of 'tv_sec' specifies undefined struct/union 
'timeval'c:\python-dev\py3k\Python\pytime.c  46 pythoncore
Error   105 error C2037: left of 'tv_usec' specifies undefined struct/union 
'timeval'   c:\python-dev\py3k\Python\pytime.c  47 pythoncore

--

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



  1   2   >