[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-16 Thread Mark Dickinson

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

Thanks, Antoine.  I'll investigate.

--

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-16 Thread Mark Dickinson

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

Looks like Benjamin already fixed the refleak in r76319, r76320.

--

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



[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-11-16 Thread Thomas Courbon

Thomas Courbon hart...@yahoo.fr added the comment:

It seems that there wasn't work on that issue (which look complicated by
the way). I'll wait, there is so much other aspects of a web framework
to play with :)
Thank anyway for the pointer.

--

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



[issue3881] IDLE won't start in custom directory.

2009-11-16 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

This patch had unintended consequences; see #6906

--

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



[issue1616979] cp720 encoding map

2009-11-16 Thread Alexander Belchenko

Alexander Belchenko bia...@users.sourceforge.net added the comment:

As the author of original patch I want to note that it seems your merged
patch does not update the documentation (list of standard encodings).

Please, update the docs as well.

--

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



[issue7329] global statements outside functions/methods should raise SyntaxError

2009-11-16 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

The compiler doesn't know how the code is going to be used apart from 
the mode parameter:

py c=compile(x=1,,exec)
py import dis
py dis.dis(c)
  1   0 LOAD_CONST   0 (1)
  3 STORE_NAME   0 (x)
  6 LOAD_CONST   1 (None)
  9 RETURN_VALUE
py c=compile(global x; x=1,,exec)
py dis.dis(c)
  1   0 LOAD_CONST   0 (1)
  3 STORE_GLOBAL 0 (x)
  6 LOAD_CONST   1 (None)
  9 RETURN_VALUE

The generated code is different, and I may exec it at global or local 
scope, with different results. 

compile would require a new mode, different from exec, to 
mean compile this as a module at global scope; forbid global 
statements

If not, this would become invalid:

def foo():
  c=compile(global x; x=1,,exec)
  exec c

since -at the compile phase- the code is indistinghishable from a 
module.

Also, since PEP3003 has been approved (moratorium), language changes 
like this will have to wait a few years.

--
nosy: +gagenellina

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

Oh, Tarek, something I missed in your last comment - for the Build
Timing key, it should probably permit the value to be either 0 or 1,
just as the current test does.  Just in case someone happens to have
build timing turned on.

--

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



[issue7309] crasher in str(Exception())

2009-11-16 Thread Walter Dörwald

Walter Dörwald wal...@livinglogic.de added the comment:

 I'm not sure what the functions should do when start and end are
 out of range.

 I think the best approach would be to prevent these values to be out of
 range in the first place. 

The start and end values should be clipped, just like normal slices in
Python do:

 [2**30:2**30+1]
''

 I agree there's not much value in making the attributes read/write,
 but it looks like all of the exceptions allow it, so I don't really
 want to make these exceptions the only ones that are different.

Exception attributes *must* be read/write, because the codecs create an
exception object once, and then uses this exception object to
communicate multiple errors to the callback. PEP 293 states: Should
further encoding errors occur, the encoder is allowed to reuse the
exception object for the next call to the callback.

--
nosy: +doerwalter

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



[issue7309] crasher in str(Exception())

2009-11-16 Thread Eric Smith

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

Thanks, Walter. I'll finish my patch, then.

--

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



[issue1616979] cp720 encoding map

2009-11-16 Thread Amaury Forgeot d'Arc

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

I think it is, see r74006 and
http://docs.python.org/dev/library/codecs.html#standard-encodings
(this is the doc for the future 2.7 version)

--

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



[issue1616979] cp720 encoding map

2009-11-16 Thread Alexander Belchenko

Alexander Belchenko bia...@users.sourceforge.net added the comment:

OK, thanks.

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé

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

I made a test on my Express edition on the FullScreen value, but I
don't have a Build Time one.

Do you have a FullScreen key ?

can you run this in a shell, to see what value you get for FullScreen, 
and for build time ? (I find it strange that this one has a space btw, I
couldn't find a key with a space on my side)

 from distutils.msvc9compiler import Reg
 path = r'Software\Microsoft\VisualStudio\9.0'
 Reg.get_value(path, ufullscreen)
 Reg.get_value(path, ubuild timing)

If you get a value for fullscreen, we can have the same test for VC9 and
VCExpress.

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

The Build Timing key (not Build Time) is the only one at all under
HKCU/VisualStudio/9.0/VC (and actually the only key under the entire
HKCU/VisualStudio tree) on both my XP and Win7 new VS 2008 installation.
 I can't rule out it being part of SP1 which I included in the install,
though I found references on the web to it earlier than that.

It's strange though, because I've also verified that key on the older XP
build slave that was installed with VC Express (and never was installed
with the full version, nor did I use any service packs other than what
was part of VC Express), so I'm a bit surprised that you don't have it
in your install.

I don't have Fullscreen keys in that tree, although I did find a
Fullscreen key under HKCU/Software/Microsoft/VCExpress/9.0 just on my
express installation on XP.  It's possible that key only gets created
when you actually run Visual Studio (which I generally don't on
buildbots), but I suspect the path would differ between express and regular.

There's nothing else that looks viable under HKCU, at least related to
Visual Studio.  All of my other brand-new-install keys are under HKLM
instead, but there's a larger divergence between express and standard. 
It appears that on VC express most keys end up under
HKLM/Software/Microsoft/VCExpress/9.0, while under VS 2008 standard
they're the same path but VisualStudio instead.

Another choice that might be pretty safe as an alternate possibility,
but you have to be willing to separate the express and standard checks,
is the HKLM/Software/Microsoft//9.0/ApplicationID key.   is
VCExpress or VisualStudio and that's also the value of that key.

Alternatively, as siblings to the ApplicationID key, I have two keys
that have common values between the express and standard installs:
EnablePreloadCLR and RestoreAppPath are both 1 in all installs.  I'm
guessing both represent boolean flags so accepting either 0 or 1 would
work, but that's a guess, so the ApplicationID key may be a better choice.

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

Oh, BTW, you were missing the VC part of the path in your test.  But if
I run the same code with that corrected on my Win7 box, I get:

 from distutils.msvc9compiler import Reg
 path = r'Software\Microsoft\VisualStudio\9.0'
 Reg.get_value(path, ufullscreen)
Traceback (most recent call last):
  File stdin, line 1, in module
  File D:\python\2.6\lib\distutils\msvc9compiler.py, line 62, in get_value
raise KeyError(key)
KeyError: u'fullscreen'
 path = r'Software\Microsoft\VisualStudio\9.0\VC'
 Reg.get_value(path, ubuild timing)
0

I get the same results on my XP+VS 2008 box but also on my XP + VC
Express box.  (E.g., fullscreen doesn't work on any of them)

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé

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

Ok so, can you confirm this is working on your side ?

VisualStudio 9:

 from distutils.msvc9compiler import Reg
 path = r'Software/Microsoft/VisualStudio/9.0'
 Reg.get_value(path, uapplicationid)
'VisualStudio'
 import _winreg
 HKCU = _winreg.HKEY_CURRENT_USER
 'VisualStudio' in Reg.read_keys(HKCU, r'Software\Microsoft')
True


VCExpress 9: (works for me on Windows XP - VC ++9.0 Express edition)

 from distutils.msvc9compiler import Reg
 path = r'Software/Microsoft/VCExpress/9.0'
 Reg.get_value(path, uapplicationid)
'VCExpress'
 import _winreg
 HKCU = _winreg.HKEY_CURRENT_USER
 'VisualStudio' in Reg.read_keys(HKCU, r'Software\Microsoft')
True

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

Yes to both examples (the first on my VS 2008 full installs on XP and
Windows 7, and the second on my XP with VC++ Express).

Two caveats (that I don't think invalidates the result) though.

First, I can't use forward slashes in the path I supply to
Reg.get_value, they have to be backslashes.  But I'm running the tests
under a Python 2.6.x, so perhaps this was changed in a later release.

At least in my case, the results of Reg.get_value() are unicode strings,
not regular strings.  I thought perhaps your code was under Python 3.x,
but then I saw you were still using uapplicationid so I'm not sure.

--

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



[issue7293] test_msvc9compiler test_reg_class failure on new Windows box

2009-11-16 Thread Tarek Ziadé

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

Ooops my bet, that's a typo, it's backlashes you are right.


I'll change the test now, thanks a lot for all the feedback !

--
priority:  - normal
resolution:  - accepted

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



[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-16 Thread Moriyoshi Koizumi

Moriyoshi Koizumi mozo+pyt...@mozo.jp added the comment:

Sorry, I don't quite have an idea on the part these patches reenable
the bug. The script of the first message yields exactly the same result
both with the original 2.6.4 and the patched.  Assuming the weirdness
you referred to is different from 5890, I'd say the workaround
introduced by the original patch to property class didn't correctly
avoid the issue in the first place. I mean the fix should be fixed anyhow.

--

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



[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-16 Thread R. David Murray

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

Well, I haven't worked with boost or any other extension class that
defines a subclass of property.  If MyProp is such a subclass, would
print Fro.baz.__doc__ print Get a baz in 2.6.2 but raise an error in
2.6.3/4, or would it print None?

Regardless of which one it does, I think there is a better fix than
patching the original patch in this issue, assuming I can code it and
get approval to apply it.

On the other hand, the suggested 'refix' may be appropriate for 2.6.5.

--

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



[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar sridh...@activestate.com:


--
nosy: +srid

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



[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread ivank

ivank i...@ludios.org added the comment:

The bug on the Twisted side may be of interest:
http://twistedmatrix.com/trac/ticket/3964

--
nosy: +ivank

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



[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone

New submission from Jean-Paul Calderone exar...@divmod.com:

initgroups(2) is a function for initializing the aux group id list from
site-specific configuration (typically /etc/groups, but not necessarily).

Attached is a patch based on some code from Zope, expanded to have a
test and some docs.  Presumably Zope will be happy to use this function
from the stdlib once they can depend on a version of Python which
includes it.  Twisted would like to as well.

I wasn't able to test the autoconf related parts of the patch as I don't
have easy access to autoconf 2.61.

I also can't run regrtest.py in my environment for some reason.  It
fails to import some names from test_support.  So I didn't run the unit
test that I added, either.

--
components: Library (Lib)
files: initgroups.patch
keywords: patch
messages: 95348
nosy: exarkun
severity: normal
status: open
title: Add initgroups to the posix/os modules
versions: Python 2.7
Added file: http://bugs.python.org/file15345/initgroups.patch

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



[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Gareth Doutch

New submission from Gareth Doutch gareth.dou...@gmail.com:

I have a problem with an xml file locking after read and/or write.

I have a short sample code with unit test available here:
http://bugs.jython.org/file741/lock.py

Below are the
outputs from Jython and CPython (v 2.5.4).
 
I am using Jython 2.5.1 on Windows XP and java version 1.6.0_16.

jython lock.py
E
==
ERROR: runTest (__main__.TestDelete)
--
Traceback (most recent call last):
  File W:\testTeam\SIT\JySit\sit\scripts\lock.py, line 73, in tearDown
os.remove(self.fileName)
  File C:\jython2.5.1\Lib\os.py, line 342, in remove
raise OSError(0, couldn't delete file, path)
OSError: [Errno 0] couldn't delete file: 'C:\\testdir\\test.xml'
 
--
Ran 1 test in 0.454s
 
FAILED (errors=1)
 
 
python lock.py
.
--
Ran 1 test in 0.015s
 
OK


The problem can be cured by applying the changes as per file:
http://bugs.jython.org/file742/ElementTree.py

--
components: Windows, XML
messages: 95349
nosy: gdoutch
severity: normal
status: open
title: XML file locking in Jython 2.5 (OSError on Windows)
type: behavior
versions: Python 2.5

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



[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Gareth Doutch

Gareth Doutch gareth.dou...@gmail.com added the comment:

This is on the Jython list:
http://bugs.jython.org/issue1479

--

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



[issue7302] Wrong link to Python Language Mapping Specification

2009-11-16 Thread Georg Brandl

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

Thanks, fixed in r76326.

--
resolution:  - fixed
status: open - closed

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



[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-11-16 Thread Mark Dickinson

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

Merged to py3k in r76328.

--

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



[issue7286] odd exec() behavior or documentation

2009-11-16 Thread Georg Brandl

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

The docs already contain the following note:

   .. note::

  The default *locals* act as described for function :func:`locals`
below:
  modifications to the default *locals* dictionary should not be
attempted.
  Pass an explicit *locals* dictionary if you need to see effects of the
  code on *locals* after function :func:`exec` returns.

--
resolution:  - works for me
status: open - closed

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



[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

2009-11-16 Thread Mark Dickinson

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

ocean-city, now that lld and llu support has been added, could you 
retest this patch (offt_formats.patch) for me?

--
Added file: http://bugs.python.org/file15346/offt_formats.patch

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



[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread Michał Pasternak

Michał Pasternak michal@gmail.com added the comment:

I hit that bug with Twisted too - I tried to use AMP: 
http://twistedmatrix.com/trac/ticket/3931

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6906
___
___
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

2009-11-16 Thread Mark Dickinson

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

In Python 2.x we have:

 %.0d % 0
''
 %.0d % 0L
'0'

In Python 3.x:

 %.0d % 0
'0'

I think the 2.x behaviour for int comes directly from C's sprintf 
behaviour:  section 7.19.6.1, p8 of the C99 standard says:

The result of converting a zero value with a precision of zero is no 
characters.

I'm not sure which the more sensible behaviour is, but in 2.x, int and 
long should behave in the same way.  Fixing long to behave like int 
seems both simplest and least likely to break existing code.

--
components: Interpreter Core
messages: 95356
nosy: eric.smith, mark.dickinson
priority: normal
severity: normal
status: open
title: int/long discrepancy when formatting zero with .0d
type: behavior
versions: Python 2.6, Python 2.7

___
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



[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-11-16 Thread Giampaolo Rodola'

Giampaolo Rodola' billiej...@users.sourceforge.net added the comment:

Can you attach the 3.x patch so that I can test it myself?
I tried to apply the current 2.x patch against the 3.x trunk but I get 
conflicts.

--

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



[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Amaury Forgeot d'Arc

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

A unit test would be appreciated. It should check that the output looks
like a dict.

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7310
___
___
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

2009-11-16 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
title: int/long discrepancy when formatting zero with .0d - int/long 
discrepancy when formatting zero with %.0d

___
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



[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com added the comment:

In case anyone is concerned about licensing issues, please see
https://mail.zope.org/pipermail/zope-dev/2009-November/038289.html

--

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



[issue7268] 2to3 execfile conversion changes behavior

2009-11-16 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

I've fixed underlying compile() newline problem in the trunk and py3k.
However, I think that change is big enough that I don't want to to
backport it. I'm leaving this open to think about what to do with 2to3
in this situation.

--
priority:  - normal
resolution: invalid - 
status: closed - open

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



[issue7336] threading module not properly handling shutdown

2009-11-16 Thread R. Tyler Ballance

New submission from R. Tyler Ballance ty...@monkeypox.org:

Receiving a traceback when shutting down an interpreter with threads 
spawned inside of it:

Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 497, in __bootstrap
self.__bootstrap_inner()
  File /usr/lib/python2.6/threading.py, line 538, in __bootstrap_inner
(self.name, _format_exc()))
  File /usr/lib/python2.6/traceback.py, line 235, in format_exc
etype, value, tb = sys.exc_info()
AttributeError: 'NoneType' object has no attribute 'exc_info'


According to mzz on #Python:

17:29  mzz rtyler: I think this is worth a bug report. If you look up 
threading.py:538 you'll find (assuming our line numbers match) that bit 
of code actually goes out of its way to deal with the shutdown problem 
I mentioned, but then it calls into the traceback module, which doesn't.

--
components: Interpreter Core
messages: 95361
nosy: rtyler
severity: normal
status: open
title: threading module not properly handling shutdown
type: crash
versions: Python 2.6

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



[issue7336] threading module not properly handling shutdown

2009-11-16 Thread Marien Zwart

Changes by Marien Zwart m_zw...@123mail.org:


--
nosy: +marienz

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



[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Philip Jenvey

Philip Jenvey pjen...@underboss.org added the comment:

The test should skip when not hasattr(os, 'initgroups') since it's 
optional

--
nosy: +pjenvey

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



[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com added the comment:

Good point.  Updated patch attached.

--
Added file: http://bugs.python.org/file15347/initgroups-2.patch

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



[issue7336] traceback module not properly printing exceptions on interpreter shutdown

2009-11-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
components: +Library (Lib) -Interpreter Core
nosy: +gps, jyasskin
priority:  - normal
stage:  - needs patch
title: threading module not properly handling shutdown - traceback module not 
properly printing exceptions on interpreter shutdown
type: crash - behavior
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue1757126] [PATCH] Fix ptcp154 encoding cyrillic_asian alias

2009-11-16 Thread Philip Jenvey

Philip Jenvey pjen...@underboss.org added the comment:

fixed in r76337, r76338

--
resolution:  - fixed
status: open - closed

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



[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

2009-11-16 Thread Philip Jenvey

Changes by Philip Jenvey pjen...@underboss.org:


--
assignee:  - pjenvey
nosy: +pjenvey
versions: +Python 2.7, Python 3.2 -Python 2.5

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



[issue1087] py3k os.popen result is not iterable, patch attached

2009-11-16 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

While I was working on EnvironTests I found 'test_os_popen_iter' (added
in r58912) and I don't see why it is there.
Christian, did you put it in the wrong place by mistake or is it somehow
related to os.environ?
(the test should also use unittest.skipUnless(os.path.exists(/bin/sh))
instead of the 'if')

--
nosy: +ezio.melotti

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



[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file15327/issue7310.diff

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



[issue7310] Unhelpful __repr__() in os.environ

2009-11-16 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

New patch that includes a unittest.

I was also considering to replace the repr() with something that looks
like _Environ({dict-here}). That will still contain all the information
and also clarify that os.environ is not just a simple dict. (Even if
it's probably not relevant, if we want eval(repr(os.environ)) to work,
the repr() should also include the other args accepted by the _Environ()
constructor.)

If you think this is a good idea I can make a new patch, otherwise, if
the current patch is fine, I'll commit it as it is.

--
Added file: http://bugs.python.org/file15348/issue7310.diff

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