[issue9551] ConfigParser.SafeConfigParser.set fails when no value provided

2010-08-10 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


Removed file: http://bugs.python.org/file18460/ConfigParser.diff

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



[issue9551] ConfigParser.SafeConfigParser.set fails when no value provided

2010-08-10 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

Patch now includes a unit test.

--
Added file: http://bugs.python.org/file18466/ConfigParser.diff

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 heapq tries to import _heapq but, at this point, the build dir 
 (such as build/lib.linux-x86_64-3.2/) hasn't been added to sys.path

The problem only exists for developers, not for an installation copy of Python?

Another approach is to call required site code earlier (eg. rewrite it in C and 
execute it before loading the locale module).

--

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-10 Thread Antoine Pitrou

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

  heapq tries to import _heapq but, at this point, the build dir 
  (such as build/lib.linux-x86_64-3.2/) hasn't been added to sys.path
 
 The problem only exists for developers, not for an installation copy
 of Python?

This particular problem indeed (for developers and for buildbots - see
the weird test_heapq failures on some OS X buildbots).

 Another approach is to call required site code earlier (eg. rewrite it
 in C and execute it before loading the locale module).

Indeed, but since it calls sysconfig.get_platform(), I'm not sure how
much code would need to be rewritten in C.

--

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



[issue9253] argparse: optional subparsers

2010-08-10 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Seems like there's minimally the bug that argparse should currently throw an 
error if you add an argument after subparsers (since that argument will never 
be parsed under the current semantics).

I do believe that supporting an optional command like the git remote example 
is useful, but as RDM suggests, this probably won't go anywhere unless someone 
proposes a patch.

--

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



[issue9554] test_argparse.py: use new unittest features

2010-08-10 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

These all look like good changes to me. (I looked at the patch, but haven't 
tried applying it though.)

--

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



[issue9345] argparse wrap tests are sensitive to terminal size

2010-08-10 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Marking as duplicate of 9553 (which has a better description and a patch).

--
resolution:  - duplicate

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Indeed, but since it calls sysconfig.get_platform(), I'm not sure how
 much code would need to be rewritten in C.

Oh, the function is prefixed by the following comment:

# XXX This should not be part of site.py, since it is needed even when
# using the -S option for Python.  See http://www.python.org/sf/586680
def addbuilddir():

Issue #586680 was closed as wontfix.

--

Oh yes, sysconfig.get_platform() is complex :-/

Brett wrote If we think once can reliably add the directory based purely on 
whether it starts with build/lib., and ... (msg73411).

--

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



[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-10 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

The best solution would be to make sure that a few different column widths are 
tested. However, in the meantime, the tests do assume 80 columns, so I think 
it's correct to specify that using os.environ as suggested.

One problem with the proposed patch is that it makes the change globally, and 
we should be restoring the original setting after the end of the argparse tests.

--

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



[issue9345] argparse wrap tests are sensitive to terminal size

2010-08-10 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Actually closing this time. Duplicate of issue 9553.

--
status: open - closed

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



[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%203.x/builds/492

On this report, both implementations (Python and C) failed:

FAIL: test_send_signal (test.test_subprocess.POSIXProcessTestCase)
FAIL: test_send_signal (test.test_subprocess.ProcessTestCasePOSIXPurePython)

--

The problem is maybe that the SIGINT is ignored on these particular platforms 
(FreeBSD and Mac OS X). I worked on this topic recently (see issue #3137) and I 
cannot guarantee that exceptions are still ignored somewhere. I can investigate 
if you give me access to the platform.

My procedure was to run python in gdb, set a break point, and send the signal 
at different points until the KeyboardInterrupt is no more ignored anywhere.

--

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



[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-08-10 Thread Antoine Pitrou

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

 The problem is maybe that the SIGINT is ignored on these particular
 platforms (FreeBSD and Mac OS X). I worked on this topic recently (see
 issue #3137) and I cannot guarantee that exceptions are still ignored
 somewhere. I can investigate if you give me access to the platform.

These tests exist and pass on 2.7 and 3.1.

--

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



[issue1744382] Read Write lock

2010-08-10 Thread Yaakov Nemoy

Yaakov Nemoy loupgaroubl...@users.sourceforge.net added the comment:

Feel free to close this. I can't commit to maintaining this right now, if i 
ever find the time, i can reopen the issue.

--

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



[issue9555] transient crashes on x86 XP-4 buildbot: test_file, test_file2k, test_bsddb3

2010-08-10 Thread Florent Xicluna

New submission from Florent Xicluna florent.xicl...@gmail.com:

There's frequent crashes on the x86 XP-4 buildbot.

On 2.6:
 83915: # something crashed: test_file
 83913: success
 83743: # something crashed: test_file
 83738: success
 83721: success
 83718: # something crashed: test_file
 83704: success
 83691: # something crashed: test_file
 83688: # something crashed: test_file
 83687: # something crashed: test_file
 83674: # something crashed: test_file
 83657: # something crashed: test_file
 83656: # 1 failed: test_os
 83648: # 2 failed: test_os test_struct
 83642: # something crashed: test_bsddb3
 83637: # 1 failed: test_struct
 83634: # 1 failed: test_struct
 83632: success
 83628: success
 83627: # something crashed: test_bsddb3
 83626: # something crashed: test_file
 83625: # 1 failed: test_builtin
 83624: # 1 failed: test_builtin
 83623: success
 83539: # something crashed: test_bsddb3
 83532: success
 83520: success
 83519: # something crashed: test_file
 83518: # something crashed: test_file
 83517: # something crashed: test_file
 83515: success
 83512: # something crashed: test_file
 83502: ? something crashed: test_file
 83487: success
 83443: ? exception clean
 83420: # something crashed: test_file
 83414: ? exception svn
 83382: success
 83379: # something crashed: test_file
 83377: # something crashed: test_file
 83242: success
 83200: # something crashed: test_file
 83194: success
 83147: success
 83136: # something crashed: test_file
 83128: # something crashed: test_file
 83119: success

On 2.7:
 83928: # something crashed: test_bsddb3
 83925: success
 83920: success
 83917: success
 83909: success
 83907: success
 83893: # 1 failed: test_bsddb3
 83879: success
 83873: ? exception svn
 83858: success
 83856: # something crashed: test_bsddb3
 83836: # hung for 20 min: test_file2k
 83832: # something crashed: test_file2k
 83824: ? exception svn
 83820: # something crashed: test_file2k
 83806: success
 83782: # something crashed: test_bsddb3
 83773: success
 83769: success
 83765: ? exception svn
 83760: # something crashed: test_file2k
 83757: # failed slave lost
 83749: # something crashed: test_file2k
 83746: success
 83737: # something crashed: test_bsddb3
 83734: ? exception svn

The test is interrupted on the crash, and the last message is:
 - program finished with exit code -1073741819
   elapsedTime=184.398000
 - program finished with exit code -1073741819
   elapsedTime=383.852000
 - program finished with exit code -1073741819
   elapsedTime=1003.798000
 - program finished with exit code -1073741819
   elapsedTime=453.802000

(reports created with bbreport)

--
components: Tests
keywords: buildbot
messages: 113522
nosy: flox
priority: normal
severity: normal
status: open
title: transient crashes on x86 XP-4 buildbot: test_file, test_file2k, 
test_bsddb3
type: crash
versions: Python 2.6, Python 2.7

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



[issue9555] transient crashes on x86 XP-4 buildbot: test_file, test_file2k, test_bsddb3

2010-08-10 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

IIUC code -1073741819 (0XC005) is an acces violation.

Some other issues with same error code: #6869, #8849, ...

--

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



[issue9555] transient crashes on x86 XP-4 buildbot: test_file, test_file2k, test_bsddb3

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-10 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. fdr...@acm.org added the comment:

- Using _UNSET  similar in the docs is not good; there used to be a
  way to note a parameter as optional.  Not sure whether there is any
  more.

- Docs for methods which take vars/default should include a note
  indicating where to find the explanation, since reference docs are
  often read in a non-linear manner.

- This is a tortured way to only do something in a particular condition:

value = str(value) if value is not None else None

  These two lines are actually more readable, since it's clear that
  the branch is a no-op:

if value is not None:
value = str(value)

- _unify_boolean is a strange name; doesn't parallel _unify_values at
  all.

- Having _COMPATIBLE and _UNSET defined in the classes looks more
  painful than not; no need to change for this patch.  (Should be
  changed in some later cleanup.)  Moving the whole _unify_boolean /
  _boolean_states mess to a separate top-level function that can be
  used for the conversion is attractive.

--

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



[issue7182] For non-debug builds, the cygwinccompiler.py should define NDEBUG

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue1173134] improvement of the script adaptation for the win32 platform

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
assignee:  - tarek
components: +Windows
nosy: +tarek

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
assignee:  - d...@python
components: +Windows
nosy: +d...@python

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



[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue4032] distutils cannot recognize .dll.a as library on cygwin

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue5879] multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue2233] Makefile.pre.in contains extra slash before $(DESTDIR) which can cause Cygwin build to fail

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue7405] compiling python 3.1.1 using cygwin 1.7.0 and gcc 4.3.4

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue9503] print statement hangs Windows service

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue1708316] doctest work with Windows PyReadline

2010-08-10 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Windows

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



[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2010-08-10 Thread R. David Murray

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


--
versions:  -Python 3.3

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



[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 These tests exist and pass on 2.7 and 3.1.

Ok. In r78946, for the pure Python implementation, I only see the restoration 
of the signals which can be related to this issue.

--

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



[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-10 Thread R. David Murray

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

There's a handy utility for this in test.support: EnvironmentVarGuard.

--
nosy: +r.david.murray

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



[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2010-08-10 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

The logging module contains a TimedRotatingFileHandler that automaticly rotates 
the logfile after a specified interval.

This class misses an important feature: it is not possible to specify at what 
time the file should be rotated, unless that time is midnight.

My usecase: one of our customers works night shifts which means that rotating 
logfiles at midnight means that files get rotated halfway through a shift 
instead of at the end of one.

We'd like to be able to specify that logfiles get rotated at a specific time 
(such as 7:00AM).

--
components: Library (Lib)
messages: 113527
nosy: ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Specifying the time a TimedRotatingFileHandler rotates
type: behavior
versions: Python 3.2

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



[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2010-08-10 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
type: behavior - feature request

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



[issue9549] Remove sys.setdefaultencoding()

2010-08-10 Thread Éric Araujo

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

Is it possible to add a deprecation warning in 2.7 too? If not, at least a 
recommendation not to use it in the 2.7 docs? I am willing to write one or two 
paragraphs to explain why it’s a terrible idea.

--
nosy: +merwok

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



[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-10 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

I am away from the computer at the moment but doing my best to reply.

 - Using _UNSET  similar in the docs is not good; there used to be a
  way to note a parameter as optional.  Not sure whether there is any
  more.

I don't know where to look for something like it. How's 'range' documented?

 - Docs for methods which take vars/default should include a note
  indicating where to find the explanation, since reference docs are
  often read in a non-linear manner.

Agreed, will edit the patch.

 - This is a tortured way to only do something in a particular condition:
 
value = str(value) if value is not None else None
 
  These two lines are actually more readable, since it's clear that
  the branch is a no-op:
 
if value is not None:
value = str(value)

Right. Thanks, will include this.

 - _unify_boolean is a strange name; doesn't parallel _unify_values at
  all.

_convert_to_boolean?

 - Having _COMPATIBLE and _UNSET defined in the classes looks more
  painful than not; no need to change for this patch.  (Should be
  changed in some later cleanup.)  Moving the whole _unify_boolean /
  _boolean_states mess to a separate top-level function that can be
  used for the conversion is attractive.
 

Will do that in a separate patch. Are you aware that moving _boolean_states out 
of the class is slightly backwards incompatible? I say slightly because it's 
private after all.

--

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



[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-10 Thread J . David Ibáñez

J. David Ibáñez jda...@itaapy.com added the comment:

This issue has broken our build system too.

A bug has been fixed, but another one is open now.

If the MANIFEST file has been produced by distutils it should be
regenerated each time.  But if it has not been produced by distutils
then it should not regenerated.

The problem is how to make the distinction.  Maybe an special line at
the beginning of the MANIFEST file could identify that it has been
generated by distutils.

--
nosy: +jda...@itaapy.com

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



[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-10 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I agree with msg113530 and msg112371 that the current behavior is a bug: 
distutils is now too agressive because it recalculates the MANIFEST file even 
when distutils isn't the one that calculated it in the first place.

This is a functional regression w.r.t. earlier python releases.

--
status: closed - open

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



[issue9555] transient crashes on x86 XP-4 buildbot: test_file, test_file2k, test_bsddb3

2010-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Maybe is this duplicate of #9295?

--
nosy: +ocean-city

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



[issue9551] ConfigParser.SafeConfigParser.set fails when no value provided

2010-08-10 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. fdr...@acm.org added the comment:

Committed on the release27-maint branch as 83931.

--
keywords:  -needs review
resolution:  - accepted
status: open - closed

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



[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-10 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

I like the idea of a marker in a comment line in the MANIFEST, we can introduce 
this as a bug fix to avoid this regression

--

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



[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-10 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. fdr...@acm.org added the comment:

Even I think the leading underscore screams don't use this from
outside, doofus!

--

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



[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

I cannot crash python by above patch anymore... Strange.

 Is test_close_open_print_buffered the only test that fails?

It seem to be.

Is freeing the memory allocated for setvbuf() while close() running in another 
thread really safe?

--

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



[issue9557] test_mailbox failure under a Windows VM

2010-08-10 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

I get this failure in test_mailbox under Windows XP running in a qemu virtual 
machine:

==
FAIL: test_reread (test.test_mailbox.TestMaildir)
--
Traceback (most recent call last):
  File Z:\py3k\debug\lib\test\test_mailbox.py, line 764, in test_reread
assert not refreshed()
AssertionError

--

--
assignee: akuchling
components: Library (Lib), Tests
messages: 113538
nosy: akuchling, pitrou
priority: low
severity: normal
status: open
title: test_mailbox failure under a Windows VM
type: behavior
versions: Python 3.2

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



[issue9261] include higher (../../) dirs fails

2010-08-10 Thread Éric Araujo

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

I think disallowing .. is fine, so I’m assigning to myself to make sure I’ll 
take time later to check the docs.

--
assignee: tarek - merwok

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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Antoine Pitrou

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

Thanks Kristján, I've committed the patch with modified comments in r83932.
Unfortunately, the Windows buildbots are in a wreck, so this won't be checked 
immediately (I only have a single-core XP VM under which the patch ran fine).

--
assignee:  - pitrou
resolution:  - accepted
stage: patch review - committed/rejected
status: open - pending
title: Improve condition variable emulation on NT - New GIL: improve condition 
variable emulation on NT

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



[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

- above patch
+ above script

--

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



[issue5300] Distutils ignores file permissions

2010-08-10 Thread Éric Araujo

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


--
components: +Distutils2 -Distutils
versions: +Python 2.5, Python 2.6, Python 3.2

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



[issue9558] build_ext fails on VS8.0

2010-08-10 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:

test_build_ext fails on VS8.0.
 
==
ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
--
Traceback (most recent call last):
  File e:\python-dev\release26-maint\lib\distutils\tests\test_build_ext.py, li
ne 58, in test_build_ext
cmd.run()
  File e:\python-dev\release26-maint\lib\distutils\command\build_ext.py, line
340, in run
self.build_extensions()
  File e:\python-dev\release26-maint\lib\distutils\command\build_ext.py, line
449, in build_extensions
self.build_extension(ext)
  File e:\python-dev\release26-maint\lib\distutils\command\build_ext.py, line
531, in build_extension
target_lang=language)
  File e:\python-dev\release26-maint\lib\distutils\ccompiler.py, line 769, in
link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
  File e:\python-dev\release26-maint\lib\distutils\msvc9compiler.py, line 648,
 in link
raise LinkError(msg)
LinkError: command 'C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.exe
' failed with exit status 1104

--
assignee: tarek
components: Distutils, Windows
files: py3k_distutils_build_ext_on_VS8.patch
keywords: easy, patch
messages: 113541
nosy: ocean-city, tarek
priority: release blocker
severity: normal
stage: patch review
status: open
title: build_ext fails on VS8.0
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: 
http://bugs.python.org/file18467/py3k_distutils_build_ext_on_VS8.patch

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



[issue9558] build_ext fails on VS8.0

2010-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Is *release blocker* too strong?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9558
___
___
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-08-10 Thread Pablo Bitton

Pablo Bitton pablo.bit...@gmail.com added the comment:

I reproduced the problem with the latest patch, 
subprocess-timeout-py3k-v7.patch, on py3k on Linux.

Attached is the code to reproduce the problem and the resulting traceback.

--
Added file: http://bugs.python.org/file18468/tcpdump error.txt

___
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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

This commit also fixed test_thread.py crash on win2000. Thanks!

--
nosy: +ocean-city
status: pending - open

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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


--
status: open - pending

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



[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2010-08-10 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
status: pending - closed

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



[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2010-08-10 Thread Éric Araujo

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


--
resolution: fixed - wont fix
stage:  - committed/rejected

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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


--
status: pending - open
Removed message: http://bugs.python.org/msg113544

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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


--
nosy:  -ocean-city
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8411
___
___
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-08-10 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

PC/pyconfig.h: no more needed. fixed in posixmodule.c
Python/import.c: my patch was wrong. we should use _mkdir(const char*)
on windows. there is deprecated function mkdir(const char*), but it
doesn't take mode_t as parameter. so maybe it is unsafe to call with 
mkdir(dirpath, dirmode) on windows.

--

___
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



[issue9425] Rewrite import machinery to work with unicode paths

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I commited Py_UNICODE_strrchr.patch as r83933 after removing the useless start 
variable.

--

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



[issue9425] Rewrite import machinery to work with unicode paths

2010-08-10 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file18446/Py_UNICODE_strrchr.patch

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



[issue9559] mailbox.mbox creates new file when adding message to mbox

2010-08-10 Thread Chris Green

New submission from Chris Green ch...@isbd.co.uk:

When you call mailbox.mbox.add() the old mbox file is copied, the new file is 
modified and then renamed to the name of the'old' mbox file.

This breaks the way that many MUAs detect and manage new mail in an mbox, in 
particular I discovered this with mutt.  If the python process writing the mbox 
and mutt are on the same system writing a local file then you get the message 
Mailbox was externally modified. Flags may be wrong. from mutt (and various 
odd things can happen).  If mutt is reading the mbox over NFS then you get a 
Stale NFS file handle error.

This should be strongly noted in the documentation for mailbox.mbox, in 
addition it would be really nice if there was a mailbox.mbox.append() method 
which *really* appends the data to the end of the mbox rather than changing it 
completely.

Most MDAs (all?) do just append new mail to the end of the mbox and I feel that 
python should really try and do the same.

--
components: Library (Lib)
messages: 113547
nosy: chrisisbd
priority: normal
severity: normal
status: open
title: mailbox.mbox creates new file when adding message to mbox
type: behavior
versions: Python 2.7

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



[issue9425] Rewrite import machinery to work with unicode paths

2010-08-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

_PyFile_FromFdUnicode.patch: create _PyFile_FromFdUnicode() function. It will 
be used in import.c to open a file using an unicode filename.

For _PyFile_FromFd(), I kept the previous behaviour: clear the exception on 
PyUnicode_DecodeFSDefault() error.

For fileobject.h: I used the same style than unicodeobject.h, one argument per 
line with their name. I prefer to write the argument name because the header 
can be used as a quick documentation.

As _PyFile_FromFd(), name is optional (can be NULL) for _PyFile_FromFdUnicode().

--
Added file: http://bugs.python.org/file18469/_PyFile_FromFdUnicode.patch

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



[issue1744382] Read Write lock

2010-08-10 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - later
status: open - closed

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



[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-10 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

Lib/platform.py was created 7 years ago by r32391. _syscmd_file() docstring was 
never changed whereas it is inconsistent with the implementation:
---
def _syscmd_file(target,default=''):

 Interface to the system's file command.

The function uses the -b option of the file command to have it
ommit the filename in its output and if possible the -L option
to have the command follow symlinks. It returns default in
case the command should fail.


...
target = _follow_symlinks(target).replace('', '\\')
...
f = os.popen('file %s 2 %s' % (target, DEV_NULL))
...
---

It doesn't use -L option but use Python to follow the link, and use an regex to 
remove the filename.

Attached patch enables -b option to avoid problem with non-ascii filenames but 
ascii locale encoding (see #8611 and #9425) and updates the docstring.

--

To fix the non-ascii problem, I tried a different approach by using subprocess 
API which gives a bytes version of stdout and so avoid the encoding issue. But 
I commited the patch on python trunk (2.7) which had a bootstrap issue. py3k 
had no bootstrap issue, but the new patch (use -b option) is simpler.

Commits: r80166 (trunk), r80167 (py3k). Reverted: r80171+r80189 (trunk) and 
r80190 (py3k).

More details in the following mail thread:
http://mail.python.org/pipermail/python-checkins/2010-April/092092.html

--
files: _syscmd_file.patch
keywords: patch
messages: 113549
nosy: haypo, lemburg, pitrou
priority: normal
severity: normal
status: open
title: platform.py: use -b option for file command in _syscmd_file()
versions: Python 3.2
Added file: http://bugs.python.org/file18470/_syscmd_file.patch

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



[issue9555] transient crashes on x86 XP-4 buildbot: test_file, test_file2k, test_bsddb3

2010-08-10 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Right, it looks like a duplicate.

--
resolution:  - duplicate
status: open - closed
superseder:  - test_close_open_print_buffered(test_file) sometimes crashes

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



[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-08-10 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

See the transient failures on x86 XP-4 buildbot (2.6 and 2.7 only).

Issue #9555 closed as duplicate:
http://bugs.python.org/issue9555#msg113522

--
components: +Windows
keywords: +buildbot
nosy: +flox

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



[issue9561] distutils: set encoding to utf-8 for input and output files

2010-08-10 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

While working on #9425 (support non-ascii characters in python directory name 
with ascii locale), I wrote a patch for distutils.file_util(): set encoding to 
utf-8 and errors to surrogateescape. See the patch with comments at:
http://codereview.appspot.com/1874048/patch/1/9

(the patch is not enough, it should also patch *all* functions reading files)

I discussed with takek who told me that it is documented that distutils files 
have to be utf-8. I didn't found the documentation. I checked read_manifest() 
in sdist command: in Python2 and Python3, it uses open(name) syntax. It means 
that Python2 uses the binary API (bytes), whereas Python3 uses the text API 
(unicode characters) and Python3 relies on open() (TextIOWrapper) heuristic to 
*guess* the file encoding.

I think that it will be better to specify the encoding in Python3, and maybe 
use the text API in Python2.

Anyway, before going futher (work on patches), I would like the approval of 
distutils maintainer(s).

--
assignee: tarek
components: Distutils, Distutils2, Unicode
messages: 113552
nosy: haypo, merwok, tarek
priority: normal
severity: normal
status: open
title: distutils: set encoding to utf-8 for input and output files
versions: Python 3.2

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



[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-10 Thread Marc-Andre Lemburg

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

STINNER Victor wrote:
 
 New submission from STINNER Victor victor.stin...@haypocalc.com:
 
 Lib/platform.py was created 7 years ago by r32391. _syscmd_file() docstring 
 was never changed whereas it is inconsistent with the implementation:
 ---
 def _syscmd_file(target,default=''):
 
  Interface to the system's file command.
 
 The function uses the -b option of the file command to have it
 ommit the filename in its output and if possible the -L option
 to have the command follow symlinks. It returns default in
 case the command should fail.
 
 
 ...
 target = _follow_symlinks(target).replace('', '\\')
 ...
 f = os.popen('file %s 2 %s' % (target, DEV_NULL))
 ...
 ---
 
 It doesn't use -L option but use Python to follow the link, and use an regex 
 to remove the filename.
 
 Attached patch enables -b option to avoid problem with non-ascii filenames 
 but ascii locale encoding (see #8611 and #9425) and updates the docstring.

The patch looks good. Just one nit: could you please indent the doc-string
to match the original indentation ?

BTW: I had a look in my archive for platform.py, but couldn't find
where the symlink logic was changed to use Python's APIs instead.

 --
 
 To fix the non-ascii problem, I tried a different approach by using 
 subprocess API which gives a bytes version of stdout and so avoid the 
 encoding issue. But I commited the patch on python trunk (2.7) which had a 
 bootstrap issue. py3k had no bootstrap issue, but the new patch (use -b 
 option) is simpler.
 
 Commits: r80166 (trunk), r80167 (py3k). Reverted: r80171+r80189 (trunk) and 
 r80190 (py3k).
 
 More details in the following mail thread:
 http://mail.python.org/pipermail/python-checkins/2010-April/092092.html

The main reason why this doesn't work on trunk is that platform.py is
supposed to work for many different Python versions, since it's
original use case was to provide platform information to build systems
targeting multiple Python versions.

On Python3, the same is true, but only for the 3.x versions.

--
title: platform.py: use -b option for file command in _syscmd_file() - 
platform.py: use -b option for file command in  _syscmd_file()

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



[issue9526] 2 GB limit in array module

2010-08-10 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks for confirming, Stefan.

--

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



[issue9530] integer undefined behaviors

2010-08-10 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Applied issue9530_1.patch in r83936.

--

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



[issue9559] mailbox.mbox creates new file when adding message to mbox

2010-08-10 Thread R. David Murray

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


--
nosy: +akuchling
versions: +Python 3.1, Python 3.2

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



[issue8821] Range check on unicode repr

2010-08-10 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.6, Python 3.3

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



[issue9446] urllib2 tests fail when offline

2010-08-10 Thread Terry J. Reedy

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

I believe in our python-list discussion you identified the precise line that 
fails. Please copy it here.

--

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



[issue9562] Slightly misleading wording in documentation of dict.update

2010-08-10 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

The documentation of dict.update says that it accepts either another 
dictionary object or an iterable of key/value pairs (as a tuple or other 
iterable of length two) The parenthesized phrase is slightly misleading in 
that it could be interpreted as requiring the argument to be an iterable of 
length two, whereas the argument should be an iterable of iterables of length 2 
(if not a dictionary). Suggest rewriting in the plural:
(as tuples or other iterables of length two)

--
assignee: d...@python
components: Documentation
messages: 113557
nosy: MLModel, d...@python
priority: normal
severity: normal
status: open
title: Slightly misleading wording in documentation of dict.update
versions: Python 2.6, Python 2.7, Python 3.1

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



[issue9253] argparse: optional subparsers

2010-08-10 Thread Michael . Elsdörfer

Michael.Elsdörfer mich...@elsdoerfer.info added the comment:

To expand on my case from issue9540, I have a bunch of commands, each of which 
should enable a specific subset of options only available the individual 
command, but all of the commands share the same behavior in taking nargs='*' 
positional arguments:

./script.py --global-option command --command-option arg1 arg2 arg3

For example:

./backups.py -c /etc/tarsnap.conf make --no-expire job1 job2

If no positional arguments are given, all jobs defined in the config file are 
run. Or, in the above example, only job1 and job2 are run.

The positional arguments are the same for *all* commands. Now I can define them 
separately for each subparser, which is what I'm currently doing, but I kind of 
like having the global usage instructions (script.py -h) indicating the fact 
that positional arguments can be passed after the command. 

In fact, right now I'm able to sort of achieve this by defining the positional 
nargs arguments both globally (to have them show in usage) and in each 
subparser (to have them parsed). This wouldn't be possible anymore if argparse 
where to throw an error after adding arguments after a subparser, although 
probably a more correct behavior.

Anyway, while the two issues are clearly related, I don't think that the two 
are necessarily mutually exclusive. argparse could allow both optional 
subparsers (if no subparser matches), as well as pass control back to the 
parent parser once an already matched subparser is no longer able to handle 
further command line input. Or optionally, support defining subparsers as 
options only, so that positional arguments would always be handled by the 
parent parser.

Now, I can see how this could potentially become messy if we start talking 
about these positional arguments handled by the parent then being followed by 
more flags, which would then presumably also be handled by the parent etc. On 
the other hand, my use case doesn't seem that strange to me.

--

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



[issue8411] New GIL: improve condition variable emulation on NT

2010-08-10 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Great.  I hope you agree that it is simpler.  I'm afraid my explanations can be 
somewhat long-winded so I hope you found a better way to document my pseudo 
race condition.

--
status: pending - open

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



[issue9563] bad exception handling when giving no value to an option requiring one

2010-08-10 Thread Gwendal LE BIHAN

New submission from Gwendal LE BIHAN gwendal.lebihan@gmail.com:

Having created the parser this way:

optparser=OptionParser()
optparser.add_option(--share-dir,dest=share_dir,default=/usr/share)
options,args=optparser.parse_args()

And calling the program this way:

appname --share-dir

I get the following exception, which is not caught:

options,args=optparser.parse_args()
  File /usr/lib/python2.6/optparse.py, line 1394, in parse_args
stop = self._process_args(largs, rargs, values)
  File /usr/lib/python2.6/optparse.py, line 1434, in _process_args
self._process_long_opt(rargs, values)
  File /usr/lib/python2.6/optparse.py, line 1509, in _process_long_opt
option.process(opt, value, values, self)
UnboundLocalError: local variable 'value' referenced before assignment

--
components: Library (Lib)
messages: 113560
nosy: Gwendal.LE.BIHAN
priority: normal
severity: normal
status: open
title: bad exception handling when giving no value to an option requiring one
type: behavior
versions: Python 2.6

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



[issue9563] optparse: bad exception handling when giving no value to an option requiring one

2010-08-10 Thread Gwendal LE BIHAN

Changes by Gwendal LE BIHAN gwendal.lebihan@gmail.com:


--
title: bad exception handling when giving no value to an option requiring one 
- optparse: bad exception handling when giving no value to an option requiring 
one

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



[issue7335] int/long discrepancy when formatting zero with %.0d

2010-08-10 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Out of date for 2.x.

--
resolution:  - out of date
status: open - closed

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2010-08-10 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
keywords:  -easy

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



[issue9564] Test issue.

2010-08-10 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

Testing autonosy.   Please close as invalid.

--
assignee: tarek
components: Distutils
messages: 113562
nosy: mark.dickinson, merwok, tarek
priority: normal
severity: normal
status: open
title: Test issue.

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



[issue9564] Test issue.

2010-08-10 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Looks good.

--
resolution:  - invalid
status: open - closed

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



[issue3532] bytes.tohex method

2010-08-10 Thread Éric Araujo

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


--
nosy: +merwok

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



[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-10 Thread Éric Araujo

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


--
nosy: +merwok

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



[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-08-10 Thread Eric Smith

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

I agree with Steven: for the current tests we should specify (and restore) 80 
columns. We might want to add additional tests at different column widths.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2010-08-10 Thread Éric Araujo

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


--
nosy: +merwok

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



[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2010-08-10 Thread Éric Araujo

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

Adding the logging maintainer to nosy. (BTW Vinay, Misc/maintainers.rst says 
your roundup name is “vsajip”)

--
nosy: +merwok, vinay.sajip

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



[issue8834] Define order of Misc/ACKS entries

2010-08-10 Thread Alexander Belopolsky

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

Committed in r83937 (py3k) and r83938 (release31-maint).  The py3k version is 
now a superset of the lists in the maintenance branches. I don't want to 
generate any more commit traffic by bringing all branches in sync.  I'll leave 
it to the next committer who encounters a Misc/ACKS merge conflict which is now 
unlikely.

I am closing with a link to python-dev discussion that r83893 generated.

http://mail.python.org/pipermail/python-dev/2010-August/102960.html

--
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue9565] socket : accept() method not working

2010-08-10 Thread Hasan

New submission from Hasan captainm...@gmail.com:

hi, 

i am use the socket module in python. But accept() method not working and its 
not give me an error about this problem. for example i run the my scipt. When 
it comes to accept() method line, python is locks.

i use the ubuntu os. and python 2.6.5

pls, help me.

--
components: IDLE
files: server.py
messages: 113567
nosy: cmuse
priority: normal
severity: normal
status: open
title: socket :  accept() method not working
versions: Python 2.6
Added file: http://bugs.python.org/file18471/server.py

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



[issue9563] optparse: bad exception handling when giving no value to an option requiring one

2010-08-10 Thread R. David Murray

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

2.6 no longer receives bug fixes now that 2.7 is out.  Is this still a problem 
in 2.7?  (My testing indicates that it isn't.)

--
nosy: +r.david.murray
stage:  - unit test needed

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



[issue9565] socket : accept() method not working

2010-08-10 Thread R. David Murray

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

The bug tracker is not the place to get help in learning how to do socket 
programming, I'm afraid.  Try the python-list or python-tutor mailing lists, or 
#python on freenode IRC.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-10 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Great minds think alike.  I was just about to propose that functools.wraps add 
a standard attribute to point at the underlying function (on the theory that 
objects should be introspectable).  This would allow a standard way to get to 
the underlying unwrapped functions.

--
assignee: rhettinger - r.david.murray
nosy: +r.david.murray
priority: normal - low
resolution: fixed - 
status: closed - open

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



[issue9563] optparse: bad exception handling when giving no value to an option requiring one

2010-08-10 Thread Gwendal LE BIHAN

Gwendal LE BIHAN gwendal.lebihan@gmail.com added the comment:

I confirm. Fixed in Python 2.7.
I didn't have Python 2.7 installed since it's not in the Ubuntu repository yet.

--

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



[issue9433] regrtest.py -j 2 doesn't work on Windows: remove close_fds=True on Windows

2010-08-10 Thread Antoine Pitrou

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

Possible patch (checked to work in a Windows 7 VM):

Index: Lib/test/regrtest.py
===
--- Lib/test/regrtest.py(révision 83938)
+++ Lib/test/regrtest.py(copie de travail)
@@ -547,7 +547,8 @@
 popen = Popen([sys.executable, '-E', '-m', 'test.regrtest',
'--slaveargs', json.dumps(args_tuple)],
stdout=PIPE, stderr=PIPE,
-   universal_newlines=True, close_fds=True)
+   universal_newlines=True,
+   close_fds=(os.name != 'nt'))
 stdout, stderr = popen.communicate()
 # Strip last refcount output line if it exists, since it
 # comes from the shutdown of the interpreter in the 
subcommand.

--
stage: needs patch - patch review

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



[issue9566] Compilation warnings under x64 Windows

2010-08-10 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

A 64-bit build under Windows produces many compilation warnings, mostly related 
to lossy conversions between different int sizes.
Some of these warnings appear harmless after analysis (are MS 64 bit compilers 
pickier than their 32 bit counterparts?).
It would probably be spammy to open a separate issue per file.

5..\Python\pythonrun.c(1210) : warning C4267: '=' : conversion from 'size_t' 
to 'int', possible loss of data

5..\Python\Python-ast.c(3403) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3409) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3439) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3445) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3498) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3504) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3608) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3614) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3633) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3639) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3699) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3705) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3724) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3730) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3771) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3777) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3796) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3802) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3855) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3861) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3892) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(3898) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4016) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4022) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4041) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4047) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4092) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4098) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4117) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4123) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4167) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4173) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4192) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4198) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4253) : warning C4244: 'function' : conversion from 
'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4259) : warning C4244: 'initializing' : conversion 
from 'Py_ssize_t' to 'int', possible loss of data
5..\Python\Python-ast.c(4326) : warning C4244: 

[issue9566] Compilation warnings under x64 Windows

2010-08-10 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

This must be a duplicate report - this issue has been known for years, and 
Kristjan and others (including myself) volunteered to work on it, and did 
actually work on it.

I don't think it's necessary to have a bug report in the bug tracker for it. If 
you find a place that you would like to fix, just go ahead and fix it.

Please keep in mind the following principles:
- if a value can reasonably overflow an int, change the data type to something 
larger (typically Py_ssize_t)
- if the value can overflow in principle, but likely won't, and  it is 
difficult to fix the data type (e.g. because it's at a system interface), make 
a range check, raise a Python exception, and then SAFECAST the value.
- if the value shouldn't overflow (i.e. you are believe from the data flow or 
other invariants that it can't happen), use a safecast
- if you are certain that the value can't overflow (e.g. if you are converting 
the result of a sizeof of some structure), use a regular cast, along with a 
comment

This leaves us with a number of cases where there are pragmatic Python 
limitations (such as the data type for line numbers, or the number of values 
when building a tuple in source) which make it impossible to get overflows in 
the current implementation. Such limitations should be collected in some place, 
and then SAFECASTs should be added, along with asserts at startup (e.g. that a 
certain datatype has no more than 2 bytes).

--
nosy: +loewis

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



[issue665761] reduce() masks exception

2010-08-10 Thread Alexander Belopolsky

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


Added file: http://bugs.python.org/file18472/issue665761-py3k.diff

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



[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-10 Thread Alexander Belopolsky

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


--
assignee:  - belopolsky
nosy:  -Alexander.Belopolsky

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



[issue9253] argparse: optional subparsers

2010-08-10 Thread Éric Araujo

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

Stable releases don’t go into stable branches, so I’m editing versions. I also 
remove 3.3 since it doesn’t exist now, it means “this won’t go in 3.2”.

--
nosy: +merwok
versions:  -Python 2.7, Python 3.3

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



  1   2   >