[issue9089] PyNumber_Int is still mentioned in number protocol docs

2010-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks; I'll fix these.

--
assignee: d...@python -> mark.dickinson

___
Python tracker 

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



[issue8954] wininst regression: errors when building on linux

2010-06-27 Thread Georg Brandl

Georg Brandl  added the comment:

It certainly should be possible to build these installers, and if I understand 
your output correctly, an installer *was* built.  The warning is, after all, 
just a warning, and probably just the warning got added compared to 2.5, but 
the behavior is the same.

The platform name is a regression though.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue9027] add test_support.run_unittest command line options and arguments

2010-06-27 Thread Georg Brandl

Changes by Georg Brandl :


--
status: open -> closed

___
Python tracker 

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



[issue9078] Fix C API documentation of unicode

2010-06-27 Thread Georg Brandl

Georg Brandl  added the comment:

Committed as r82262.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue9059] Backwards compatibility

2010-06-27 Thread Georg Brandl

Georg Brandl  added the comment:

Please, do not feed the trolls.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue9064] pdb enhancement up/down traversals

2010-06-27 Thread Georg Brandl

Georg Brandl  added the comment:

Committed a slightly different patch in r82263.  Thanks for the idea!

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue9044] [optparse] confusion over an option and its value without any space in between

2010-06-27 Thread Georg Brandl

Georg Brandl  added the comment:

Yes, this is common behavior and should not change.

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

___
Python tracker 

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



[issue763708] Failures in test_macostools for --enable-unicode=ucs4

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This still is a problem, the Carbon wrappers assume that Py_UNICODE has the 
same representation as the Unicode type in Carbon and that is a 16-bit type.

--

___
Python tracker 

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



[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've committed a fix in r82272 (2.7), r82273 (3.2), r82274 (2.6), r82273 (3.1)

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> compile error

___
Python tracker 

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



[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Committed a fix in r82276 (2.7), r82277 (2.6), r82278 (3.2) and r82279 (3.1).

Please reopen the issue if you notice that the problem does not go away on the 
buildbots.

--
status: open -> closed

___
Python tracker 

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



[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Even when building using an SDK you can use frameworks in /Library/Frameworks 
because $SDKROOT/Library/Frameworks is a symlink to the real 
/Library/Frameworks.

--

___
Python tracker 

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



[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Applied to 2.6 (r82280), r82281 (3.2), r82282 (3.1).

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Marc-Andre: is this still relevant or did the fix for SDK support enough to fix 
the build.

BTW. Is this for OSX 10.4 instead of 10.3? AFAIK the compiler on 10.3 doesn't 
support SDKs at all.

--

___
Python tracker 

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



[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)

2010-06-27 Thread Ronald Oussoren

Changes by Ronald Oussoren :


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

___
Python tracker 

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



[issue7724] setup.py ignores SDK root on OSX

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This was committed a while back, I guess I forgot to close this issue.

--
resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue8577] test_distutils fails if srcdir != builddir

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

As r82005 fixed the problem this issue can be closed.

--
assignee: ronaldoussoren -> nobody
nosy: +nobody
status: open -> closed

___
Python tracker 

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



[issue9092] static behavior of local variables

2010-06-27 Thread Konstantin

New submission from Konstantin :

In [12]: def func(x=[]) :
   : L=x
   : L.append('a')
   : return L
   :

In [13]: func()
Out[13]: ['a']

In [14]: func()
Out[14]: ['a', 'a']

In [15]: func()
Out[15]: ['a', 'a', 'a']

In [16]: func()
Out[16]: ['a', 'a', 'a', 'a']

In [17]: x
---
NameError Traceback (most recent call last)

C:\Users\konstantin\ in ()

NameError: name 'x' is not defined

In [18]:

In [19]: L
---
NameError Traceback (most recent call last)

C:\Users\konstantin\ in ()

NameError: name 'L' is not defined

--
components: None
messages: 108789
nosy: Aslanidi
priority: normal
severity: normal
status: open
title: static behavior of local variables
type: behavior
versions: Python 2.5

___
Python tracker 

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



[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Committed the patch with some minor modifications in r82284 (2.7), r82285 
(2.6), r82286 (3.2), r82287 (3.1)

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type: crash -> behavior

___
Python tracker 

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



[issue8447] buildbot: test_httpservers failure (No module named operator)

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Bill: can you do some debugging on the buildbot itself? I cannot reproduce the 
problem locally.

--

___
Python tracker 

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



[issue9033] cmd module tab misbehavior

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The attached patch is a workaround for the issue, but isn't someone I'd want to 
commit without some serious cleanup.

As I noted when support for linking with libedit was merged it would be better 
to add a translation layer that translates GNU readline configuration lines to 
BSD libedit ones.

--
keywords: +patch
Added file: http://bugs.python.org/file17782/cmd.patch

___
Python tracker 

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



[issue9092] static behavior of local variables

2010-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

Please see the warning in this section of the tutorial:

http://docs.python.org/tutorial/controlflow.html#default-argument-values

--
nosy: +mark.dickinson
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue3485] os.path.normcase documentation/behaviour unclear on Mac OS X

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The comment is wrong, os.path.normcase should not return s.lower(), as the 
other issue notes the case sensitivity is filesystem dependent.  

Returning s.lower() will break code when dealing with paths that refer to an 
NFS share on a Linux server, or to a path on a local case sensitive file system.

IMHO The comment in posixpath should be changed to something like this:

# On MacOS X most but not all filesystems are case sensitive, which
# means that using normcase(p1) != normcase(p2) doesn't necessarily mean
# that the paths refer to different files.

The current comment gives the impression that a trivial should be applied, 
which isn't true.

--

___
Python tracker 

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



[issue8084] pep-0370 on osx duplicates existing functionality

2010-06-27 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The tests no longer fail.

--
status: open -> closed

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> lemburg
nosy: +lemburg

___
Python tracker 

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



[issue9083] At least some Tools utilities are still Python 2

2010-06-27 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Please keep the Python3 version of pybench compatible to Python 2.6 and 2.7.

--

___
Python tracker 

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



[issue9093] Tools/README is out of date

2010-06-27 Thread Alexander Belopolsky

New submission from Alexander Belopolsky :

Here is the list of subdirectories in Tools.  Here is the diff between 
directory listing and readme ('-' means no readme entry, '+' - no tool):

-buildbot
-ccbench
+audiopy
+compiler
 faqwiz
-framer
 freeze
 gdb
 i18n
-iobench
-msi
-pybench
 pynche
 scripts
-ssl
 unicode
 versioncheck
+webchecker
 world

--
assignee: d...@python
components: Documentation
messages: 108797
nosy: belopolsky, d...@python
priority: normal
severity: normal
stage: needs patch
status: open
title: Tools/README is out of date
type: feature request
versions: Python 3.2

___
Python tracker 

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



[issue9088] revert distutils to its 3.1 state

2010-06-27 Thread Éric Araujo

Éric Araujo  added the comment:

Can you explain this a bit, for those who weren’t at that summit you mention (I 
guess at EuroPython)?

(I took the liberty of rephrasing the title to make it IMO clearer)

--
components: +Distutils
nosy: +merwok
resolution:  -> accepted
title: revert distutils so it's like in 3.1 -> revert distutils to its 3.1 state

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I have found issue1634499 which deals with running pybench.  I suggest that we 
reopen that issue and move discussion of issue5180.diff there.

I really like the idea to keep single source for 2.x and 3.x pybench, but we 
need to add some machinery to run 2.x pybench under python3.x transparently.

Marc-Andre,

are you taking over the pybench or the _pickle issue?

--

___
Python tracker 

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



[issue9089] PyNumber_Int is still mentioned in number protocol docs

2010-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

Removed PyNumber_Int from docs (and Data/refcounts.dat;  though I suspect that 
file is far from up-to-date) in r82288.

--

___
Python tracker 

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



[issue8988] import + coding = failure (3.1.2/win32)

2010-06-27 Thread STINNER Victor

STINNER Victor  added the comment:

Did you read my first comment? "This bug is maybe related to #8611"

--

___
Python tracker 

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



[issue9089] PyNumber_Int is still mentioned in number protocol docs

2010-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

References to intobject.h and intobject.c removed in r88289 and r88290.

Thanks!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue9089] PyNumber_Int is still mentioned in number protocol docs

2010-06-27 Thread Mark Dickinson

Changes by Mark Dickinson :


--
stage: needs patch -> committed/rejected

___
Python tracker 

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



[issue9069] test_float failure on Solaris

2010-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

The gcc optimization bug was fixed (with impressive speed!) upstream.

I'm going to close this as 'won't fix'.  It's probably possible to find a 
workaround, but the issue is minor, apparently only affects one platform, and 
relates to a little-used method.  For people who want this fixed in their own 
Python builds, a fairly unintrusive workaround is to add 
'-fno-builtin-copysign' to the compiler flags, or to compile with version <4.4 
of gcc until the next bugfix release of gcc 4.4 or 4.5.

David: thanks for reporting this, and for all the followup.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue3485] os.path.normcase documentation/behaviour unclear on Mac OS X

2010-06-27 Thread Ezio Melotti

Ezio Melotti  added the comment:

Changing the function is better than changing the comment.
Although changing just the comment is better than leaving it unchanged.

--
versions: +Python 3.2 -Python 2.5

___
Python tracker 

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



[issue8667] Link to PEP 3147 from importlib docs

2010-06-27 Thread Brett Cannon

Brett Cannon  added the comment:

Sorry this took so long, Ashley. I applied your patch in r82300.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue1634499] Py3k: Fix pybench so it runs

2010-06-27 Thread Éric Araujo

Éric Araujo  added the comment:

Is this bug closed? (Bonus cookies points for mention of the revision)

--
nosy: +merwok

___
Python tracker 

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



[issue9094] Make python-m pickletools do something useful

2010-06-27 Thread Alexander Belopolsky

New submission from Alexander Belopolsky :

Attached patch makes python -m pickletools  print symbolic 
disassembly of a pickle to stdout.  If the idea is well received, I will add 
help option, usage string and possibly -o option to redirect output to a file.

I am not sure that current "run doctest" behavior is worth preserving given 
that one can always do python -m doctest Lib/pickletools.py instead.

--
assignee: belopolsky
components: Library (Lib)
files: pickletools.diff
keywords: easy, patch
messages: 108807
nosy: alexandre.vassalotti, belopolsky
priority: normal
severity: normal
stage: patch review
status: open
title: Make python-m pickletools do something useful
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file17783/pickletools.diff

___
Python tracker 

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



[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-06-27 Thread Brett Cannon

New submission from Brett Cannon :

Tools/scripts/reindent-rst.py already exists, so this should be simple to add.

--
components: Demos and Tools
keywords: easy
messages: 108808
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: patchcheck should handle extraneous whitespace in .rst files
type: feature request

___
Python tracker 

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



[issue7319] Silence DeprecationWarning by default

2010-06-27 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Merged the lot in r82314.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue7566] Add ntpath.sameopenfile support for Windows

2010-06-27 Thread Brian Curtin

Changes by Brian Curtin :


--
assignee:  -> brian.curtin
nosy: +brian.curtin
stage:  -> needs patch

___
Python tracker 

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



[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-06-27 Thread Benjamin Peterson

New submission from Benjamin Peterson :

get_code() returns marshal.loads(self.get_data()). If get_data() returns valid 
marhsal data that is not a code object, get_code() will explode when it tries 
to exec it with a TypeError not the expected ValueError.

--
assignee: brett.cannon
messages: 108810
nosy: benjamin.peterson, brett.cannon
priority: normal
severity: normal
status: open
title: importlib doesn't handle valid marshalled data with invalid semantics

___
Python tracker 

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



[issue9085] Version number inconsistency in email package

2010-06-27 Thread Tokio Kikuchi

Tokio Kikuchi  added the comment:

I filed this bug because I found email 4.0.2 in Python 2.5 was not suitable for 
the latest mailman 2.1.13 especially for Japanese environment.  It would be 
best if you can further bump the Python 2.6 email to 4.0.3 and that of 2.7 to 
4.0.4. (Or, 5.0.1 if there is significant change in the behaviour.)
Than you.

--

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

It looks like I was able to get to the root of the problem.  I am attaching two 
files that demonstrate the issue:


==> pickle-bug.py <==
import pickle
import sys
class Bug:
pass
bug = Bug()
f = open(sys.argv[1], 'w')
pickle.Pickler(f, protocol=0).dump(bug)
f.close()

==> unpickle-bug.py <==
import pickle
import sys
class Bug:
pass
bug = pickle._Unpickler(open(sys.argv[1], 'rb')).load() # works
print(bug)
bug = pickle.Unpickler(open(sys.argv[1], 'rb')).load() # doesn't
print(bug)

$ python2 pickle-bug.py /tmp/bug.pkl
$ python3 unpickle-bug.py /tmp/bug.pkl
<__main__.Bug object at 0x1006b6f40>
Traceback (most recent call last):
  File "unpickle-bug.py", line 7, in 
bug = pickle.Unpickler(open(sys.argv[1], 'rb')).load() # doesn't
_pickle.UnpicklingError: bad pickle data


The problematic pickle is really small, so I hope I'll report that I have a fix 
soon.

0: (MARK
1: iINST   '__main__ Bug' (MARK at 0)
   15: pPUT0
   18: (MARK
   19: dDICT   (MARK at 18)
   20: pPUT1
   23: bBUILD
   24: .STOP
highest protocol among opcodes = 0

--
assignee: lemburg -> 
Added file: http://bugs.python.org/file17784/pickle-bug.py

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


Added file: http://bugs.python.org/file17785/unpickle-bug.py

___
Python tracker 

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



[issue3428] httplib.HTTPMessage undocumented

2010-06-27 Thread ipatrol

ipatrol  added the comment:

This is still not fixed. Also, it would be nice to add the response code in 
somewhere as I don't see it in the stdlib epydoc pages

--
nosy: +ipatrol

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

As promised, here is the fix (issue5180-pickle.diff) for the "unpickle-bug.py" 
issue.   Unfortunately, it looks like more bugs remain.  27.bench is still not 
loadable.

--
stage:  -> unit test needed
Added file: http://bugs.python.org/file17786/issue5180-pickle.diff

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

The remaining bug is a bit harder.  If you try to run unpickle-bug-2.py on the 
same pickle, you get

$ python3 unpickle-bug-2.py /tmp/bug.pkl 
<__main__.Bug object at 0x1006a8f40>
Traceback (most recent call last):
  File "unpickle-bug-2.py", line 9, in 
bug = pickle.Unpickler(open(sys.argv[1], 'rb')).load() # doesn't
TypeError: ('__init__() takes exactly 2 arguments (1 given)', , ())


The problem is acknowledged in the source code of instantiate function in 
_pickle.c:

/* XXX: The pickle.py module does not create instances this way when the
 
   args tuple is empty. See Unpickler._instantiate(). */
 

Clearly, this is wrong because pickle.py way succeeds where _pickle does not.


PS: I did not mean to unassign MAL, but I think this is more of 
alexandre.vassalotti's issue.

--
assignee:  -> lemburg
Added file: http://bugs.python.org/file17787/unpickle-bug-2.py

___
Python tracker 

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



[issue9085] Version number inconsistency in email package

2010-06-27 Thread R. David Murray

R. David Murray  added the comment:

So you are saying that there are significant differences between the 2.5 email 
and the 2.6 email?  Can you give any details?

--
status: closed -> open

___
Python tracker 

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



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-27 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I am attaching a patch which makes python3 read 27.bench without errors.  I 
think this should be applied while a complete solution for unpickling old style 
class instances from text mode (protocol = 0) pickles is found.

--
Added file: http://bugs.python.org/file17788/issue5180-fix.diff

___
Python tracker 

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



[issue9085] Version number inconsistency in email package

2010-06-27 Thread Tokio Kikuchi

Tokio Kikuchi  added the comment:

I couldn't track down the bug but the symptom is that python 2.5 -- mailman 
2.1.13 combination make Japanese message 'mojibake'.  Using only email package 
for generating message cause no trouble as far as I can check, so the bug may 
be in mailman (with combination of python 2.5).

--

___
Python tracker 

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