Tokio Kikuchi tkiku...@users.sourceforge.net 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
Marc-Andre Lemburg m...@egenix.com added the comment:
Alexander Belopolsky wrote:
Alexander Belopolsky belopol...@users.sourceforge.net 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
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in r82322 and r82323.
Actually urllib.urlopen.info method return a mimetools.Message instance and a
HTTPMessage instance is used within httplib only. It is more internal purposes
to deal with headers with add_continue like methods
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3990
___
___
Python-bugs-list mailing list
Marc-Andre Lemburg m...@egenix.com added the comment:
Alexander Belopolsky wrote:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The bytes/string issu was a red herring: with pickle.load(open('27.bench',
'b')), I get the same stack trace as from command line
New submission from anatoly techtonik techto...@gmail.com:
os.chdir(path) is often used with os.getcwd() call and doesn't return anything.
It can return the name of the directory before the change.
prev = os.chdir(path)
...
os.chdir(prev)
Maybe it will also be possible to implement 'with'
Changes by Nick Coghlan ncogh...@gmail.com:
--
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8611
___
___
New submission from Martin Ellison martin.elli...@gmail.com:
Python 2.6.5 build fails on MSYS with the following messages
mar...@edward /c/Downloads/Python-2.6.5
$ make
gcc -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -
I. -IInclude -I./Include -DPy_BUILD_CORE -o
New submission from Alexander Myodov amyo...@gmail.com:
I am using Python 2.6.5/win32, and working with multiprocessing module, doing
that with Python interpreter embedded using Cython (if that may be related to
the problem).
While creating a subprocess and a Pipe to communicate with it, I've
David Kirkby david.kir...@onetel.net added the comment:
Thank you Mark for confirming what I found.
I understand your reservations about the code if you don't know of its
correctness. I must admit I don't myself. I don't have a clue how this _socket
module should be built.
But it is clear
Alexander Myodov amyo...@gmail.com added the comment:
Sorry for formatting above, a copypaste issue.
The lines 202-204:
win32.SetNamedPipeHandleState(
h2, win32.PIPE_READMODE_MESSAGE, None, None
)
The change that fixes the problem (at least for me):
try:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I don't think MSYS (or mingw32) is supported at all.
I'm even surprised that the build went so far.
--
assignee: - loewis
nosy: +amaury.forgeotdarc, loewis
___
Python tracker
New submission from Zsolt Cserna zsolt.cse...@morganstanley.com:
Python 2.7rc2
test_user_similar test in test_sysconfig fails for me. I think it's because I
have different --exec-prefix and --prefix specified. The test assumes that
get_config_var('base') is the part of the global_path =
Brian Curtin cur...@acm.org added the comment:
-0 for having os.chdir be responsible for the previous directory. I'm not too
much against this, but it's very easily done in it's current state.
-1 for making os.chdir into a context manager which reverts itself upon exit.
There are a number of
Martin Ellison martin.elli...@gmail.com added the comment:
I thought Python ran everywhere. That's what the documentation says.
Regards,
Martin
(m...@acm.org)
On 28 June 2010 21:00, Amaury Forgeot d'Arc rep...@bugs.python.org wrote:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9099
___
___
Python-bugs-list
Brian Curtin cur...@acm.org added the comment:
I thought Python ran everywhere. That's what the documentation says.
Python does *run* on Windows (when compiled with Visual Studio or gcc via
Cygwin), it just might not be setup to build with the MSYS compiler.
--
nosy: +brian.curtin
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in r82324, r82325, r82326, r82327.
Only the urlunsplit need the docstrings, I added that.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
New submission from anatoly techtonik techto...@gmail.com:
Quite often people use .json files for storing configuration. Having a
reference to json module from chapter 14. File Formats would be a good
pointer for those looking to .ini alternatives.
--
assignee: d...@python
components:
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
There are several issues that prevent
$ python3 Tools/pybench/pybench.py -s 27.bench -c 32.bench
from working.
1. There is a bug in _pickle that prevents 2.x pickles that contain classic
class instances from loading
Senthil Kumaran orsent...@gmail.com added the comment:
-1 on chdir returning a the directory name.
-1 on having it as context manager.
Both are non-intuitive and may not serve any utility value. This can be
verified by looking the code at the places where these functions are currently
used.
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
dependencies: +3.1 cannot unpickle 2.7-created pickle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9102
___
New submission from anatoly techtonik techto...@gmail.com:
Need API keyword to filter refused API proposals.
--
anatoly t.
--
messages: 108836
nosy: techtonik
priority: normal
severity: normal
status: open
title: API keyword
___
Python tracker
ipatrol ipatrol6...@yahoo.com added the comment:
What about urllib2? It's explicitly mentioned as the return value of .info()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3428
___
Benjamin Peterson benja...@python.org added the comment:
Please post on meta-tracker.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9103
anatoly techtonik techto...@gmail.com added the comment:
Oops. Wrong tracker http://psf.upfronthosting.co.za/roundup/meta/issue341
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9103
___
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
This is probably one example of many where pickling is only tested with _pickle
module if it is available rather than separately with C and Python
implementation. I am attaching a patch which implements one possible
anatoly techtonik techto...@gmail.com added the comment:
Brian, in case you remove previous directory - you will get the same exception
that in the following code.
prev = os.chdir(somepath)
os.rmdir(prev)
os.chdir(prev)
Senthil, your arguments are strange. Both use cases are at least useful
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9104
___
Domen Kožar ielect...@gmail.com added the comment:
I always used optparse like this, using the rargs (maybe this is not main
intention, but worked so far):
import optparse
parser = optparse.OptionParser()
parser.add_option('--test', action='store_true')
Option at 0x7f55bdb32dd0: --test
Antoine Pitrou pit...@free.fr added the comment:
It looks good on the principle. As you say, factoring out this kind of
machinery in test.support is probably the way to go.
--
___
Python tracker rep...@bugs.python.org
Senthil Kumaran orsent...@gmail.com added the comment:
That was a Documentation mistake. Thanks for pointing out.
Corrected it in revision 82334 and merged to other branches.
--
___
Python tracker rep...@bugs.python.org
Senthil Kumaran orsent...@gmail.com added the comment:
On Mon, Jun 28, 2010 at 04:50:12PM +, anatoly techtonik wrote:
I also can't see how can I verify you assumptions by looking at the code.
In the python source:
find -name *.py | xargs grep 'os.chdir'
gives 143 instances of its usage.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a patch which focuses on fixing _pickle behavior. I opened a
separate issue9102 to deal with pybench specific problems.
Marc-Andre,
I am reassigning this issue to myself and assigning issue9102 to you.
New submission from anatoly techtonik techto...@gmail.com:
Pickle warning about insecurity is located only at the second page near the
bottom of Relationship to other Python modules chapter. For me the proper
place for it is the first page of documentation.
--
assignee: d...@python
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
See also issue8855.
I believe Anatoly refers to
http://docs.python.org/py3k/library/pickle.html
I agree, the warning can be moved up so that it is visible on the first page in
typical rendering.
Note that there is
R. David Murray rdmur...@bitdance.com added the comment:
In addition, os functions tend to be thin wrappers around system functions, and
the system chdir does not return the cwd. Thus we'd be adding code to chdir
that would be executed every time it was called even though it would only be
New submission from anatoly techtonik techto...@gmail.com:
It seems that left side ToC menu will be more clear without numeric prefixes
from chapter on 3-.. nesting levels. How about to remove them?
For example - the ToC menu now starting from root level:
15.6. logging — Logging facility for
anatoly techtonik techto...@gmail.com added the comment:
Also http://docs.python.org/library/pickle.html
http://docs.python.org/library/logging.html#sending-and-receiving-logging-events-across-a-network
and
http://mail.python.org/pipermail/python-dev/2010-June/101179.html
The link to Nadia
Sridhar Ratnakumar sridh...@activestate.com added the comment:
On 2010-06-27, at 5:48 AM, Ronald Oussoren wrote:
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.
When building on
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17781/issue5180.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5180
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17788/issue5180-fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5180
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
stage: unit test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5180
___
S Arrowsmith si...@chiark.greenend.org.uk added the comment:
I've dug into it -- again -- and my original analysis still holds. Getting
consistent guess_extension() results across an explicit init() call depends on
dict.items() returning keys in the same order on two different dictionaries
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
In the new patch, issue9104.diff, I factored out import machinery into
test.support.import_module_implementations and added it to a a couple of other
test modules. I did not attempt to improve all pickle tests.
The
New submission from Krauzi krauzi_g...@yahoo.de:
Hi guys i have a big problem with my code:
PyModule_Create doesnt add any methods to the module (all methods are correctly
added to the PyMethodDef structure respective the PyModuleDef).
With python 2.6.5 everything works well (Py_InitModule used
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17793/issue9104.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9104
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Added file: http://bugs.python.org/file17794/issue9104.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9104
___
Terry J. Reedy tjre...@udel.edu added the comment:
The discussion on #152807 references two other closed tracker issues:
#1678339 Test case that currently fails
#1678345 Patch to change behavior - rejected because crippled behavior is
supposedly intentional and removing the change would slow
ThomasH thomas.bugzi...@gmx.net added the comment:
Still applies. Neither the 2.7 documentation has changed (judging from the
current online dev docs), nor the implementation (judging from current svn). So
my first two lists are still valid. I cannot comment on the third, as I don't
have a
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Good idea!
You can remove the doctest behavior. I don't think it is useful. But if you
remove it, make sure you add an usage message when no argument is given.
--
___
Python tracker
Sridhar Ratnakumar sridh...@activestate.com added the comment:
I tried patching setup.py to force linking to Apple's Tcl/Tk:
--- python/setup.py.original2010-06-28 11:40:26.0 -0700
+++ python/setup.py 2010-06-28 11:45:39.0 -0700
@@ -1682,6 +1682,15 @@
for F in
Alexandre Vassalotti alexan...@peadrop.com added the comment:
The code for import_module_implementations seems a bit fragile. Prefixing the
module name with an underscore might not always yield the name of the optimized
implementation. An explicit dictionary to map the Python and C
Senthil Kumaran orsent...@gmail.com added the comment:
Yes, I know httplib documentation needs improvement. There is a great deal of
documentation in the module itself. A lot can be .rst'ifed.
--
assignee: georg.brandl - orsenthil
nosy: +orsenthil
resolution: - accepted
stage: -
Alexandre Vassalotti alexan...@peadrop.com added the comment:
It's a documentation enhancement request. The updated documentation in Python 3
for pickle added most of the requested details.
--
resolution: - fixed
status: open - closed
___
Python
Martin v. Löwis mar...@v.loewis.de added the comment:
Martin (Ellison): What people are trying to say is that likely, nobody will be
working on this, and likely so for the next few years. So unless you volunteer
to provide a patch, I recommend to close the issue as won't fix. Unassigning
Alexandre Vassalotti alexan...@peadrop.com added the comment:
The new documentation for pickle in Python 3 fixes this.
I still believe we should outline the differences between pickle.py and
cPickle. But at this point, it's unlikely I will put the time to do it. Feel
free to open a new issue
ThomasH thomas.bugzi...@gmx.net added the comment:
Actually urllib.urlopen.info method return a mimetools.Message instance
But the urllib.rst documentation is still flawed:
The :meth:`info` method returns an instance of the class
:class:`httplib.HTTPMessage`
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Thank you for the nice investigative work!
I will try my best to review this patch by next week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5180
Casey McGinty casey.mcgi...@gmail.com added the comment:
This is how it gets in an invalid state. Not sure why you can't look at the
code and see the mistake.
There is no code in the
SMTPServere.__init__ method that catches the exception raised, caused by
the failed bind attempt. After the
Eric Smith e...@trueblade.com added the comment:
-1 on this functionality being in os, for the same reasons David mentions.
I find both of these behaviors useful and I have small utility functions of my
own that do the same (and ignore any errors). I'm not so sure they need to be
in stdlib,
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The issue tracker is not here to get help.
Please ask your question on the comp.lang.python newgroup, or the python-list
mailing list.
There, I think you will have to show part of your code; there will certainly be
several people
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Do I understand correctly that the issue is that python
Pickler class has dispatch attribute but C Pickler does
not?
Yes.
The add_dispatch_check-0.patch patch does not seem
to add class attribute, it adds an instance attribute
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9106
___
Alexandre Vassalotti alexan...@peadrop.com added the comment:
One easy fix for this would be to make InteractiveConsole use the string
__main__ instead of __console__. But other than that, I don't think we can
fix this within pickle.
--
___
Python
New submission from muzuiget muzui...@gmail.com:
platform: ubuntu 10.04 amd64, python 2.6.5 r265:79063
run below code
a = [{}, {}, {}]
b = [{}] + [{}] + [{}]
c = [{}] * 3
print a, len(a), type(a)
print b, len(b), type(b)
print c, len(c), type(c)
a[1][test] = 1234
b[1][test] = 1234
c[1][test]
Ezio Melotti ezio.melo...@gmail.com added the comment:
That's because with [{}] * 3 you get a list with 3 copies of the same object,
so all the elements in c refer to the same dict:
a = [{}, {}, {}]
b = [{}] + [{}] + [{}]
c = [{}] * 3
map(id, a)
[12850496, 12850784, 12850928]
map(id, b)
New submission from Neil Schemenauer nas-pythonb...@arctrix.com:
It looks like there is a bunch of legacy relative import cruft kicking around
in Python 3. The first thing I noticed is that __import__.__doc__ claims that
level=-1 is the default (i.e. use the Python 2 behavior). A little
Changes by Neil Schemenauer nas-pyt...@arctrix.com:
--
assignee: - brett.cannon
nosy: +brett.cannon -nas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9109
___
Changes by Eric Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9109
___
___
Python-bugs-list mailing
Brett Cannon br...@python.org added the comment:
Having level=-1 doesn't even work in Python 3 like it did in Python 2 (it seems
to just act as if level is 0), so yes the -1 code can be removed. Probably need
all values less than 0 to get rounded up to 0 for backwards-compatibility with
Changes by Brett Cannon br...@python.org:
--
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9109
___
___
Changes by Brett Cannon br...@python.org:
--
assignee: brett.cannon -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9109
___
___
Python-bugs-list
Neil Schemenauer nas-pyt...@arctrix.com added the comment:
I believe the latest problem reported has been fixed by SVN rev 80649.
--
assignee: - nascheme
nosy: -nas
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
New submission from Michael Foord mich...@voidspace.org.uk:
Patch to add a ContextDecorator class to contextlib. This allows context
managers that inherit from ContextDecorator (including using it as a mixin) to
be used as decorators as well as context managers.
Context managers inheriting
Antoine Pitrou pit...@free.fr added the comment:
Well, assuming you want to make it useful, I'd make that behaviour depend on a
command-line option, such that other actions can be added later.
--
nosy: +pitrou
___
Python tracker
Changes by Michael Foord mich...@voidspace.org.uk:
Added file: http://bugs.python.org/file17796/docs.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9110
___
Antoine Pitrou pit...@free.fr added the comment:
My patch attempts to emulate 2.x PyInstance_NewRaw with a call to
tp_alloc.
This is certainly the wrong thing to do. You could at least try
PyBaseObject_Type.tp_new (see object_new() in typeobject.c), but even this is
not necessarily right
Antoine Pitrou pit...@free.fr added the comment:
(and to follow on my example, I'd point that the unpickled instance is still an
instance of the right class:
type(x)
class '__main__.C'
)
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
An explicit dictionary to map the Python and C implementations may be a
better approach.
+1.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9104
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Here's one resolution:
1. Edit setup.py to make INCLUDE/LIB paths for OpenSSL use the SDKROOT (for
10.5+ compat):
[...]
search_for_ssl_incs_in = [/Developer/SDKs/MacOSX10.5.sdk/usr/include/ if
ON_SNOW_LEOPARD else /usr/include]
New submission from Miki Tebeka miki.teb...@gmail.com:
cmd.Cmd looks for help either by searching for help_XXX method or by the
docstring of do_XXX. The latter is not mentioned in the docs.
--
components: Library (Lib)
messages: 108883
nosy: tebeka
priority: normal
severity: normal
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Well, assuming you want to make it useful, I'd make that
behaviour depend on a command-line option, ..
OK, Antoine, you asked for it. :-)
issue9094.diff
--
Added file:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Jun 28, 2010 at 7:32 PM, Antoine Pitrou rep...@bugs.python.org wrote:
My patch attempts to emulate 2.x PyInstance_NewRaw with a call to
tp_alloc.
This is certainly the wrong thing to do. You could at least try
R. David Murray rdmur...@bitdance.com added the comment:
-1
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9106
___
___
Greg Ward g...@gerg.ca added the comment:
Is it too late for 2.7?
I have no idea.
It does look as though someone has written unit tests for distutils, so the
patch needs a test change too. Henrique?
--
stage: - unit test needed
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
If you can provide a short example that reproduces the problem it will be much
more likely to get fixed.
--
nosy: +r.david.murray
stage: - unit test needed
type: - behavior
___
Python
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I reproduced the problem in py3k (both protocol 2 and 3). See
issue1581183-test-py3k.py attached.
--
nosy: +alexandre.vassalotti, belopolsky
versions: +Python 3.2
Added file:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This functionality already exists.
If a string is returned [from __reduce__() method], the string should be
interpreted as the name of a global variable. It should be the object’s local
name relative to its module;
anatoly techtonik techto...@gmail.com added the comment:
R. David Murray rdmur...@bitdance.com added the comment:
-1
Why? Do you like wrapped menu entries three lines long?
--
___
Python tracker rep...@bugs.python.org
.:. brainsik spork-pyt...@theory.org added the comment:
Since the note is incorrect, it seems like it should be removed. What results
it is based on are you referring to and what complaints are you concerned
about?
--
___
Python tracker
Terry J. Reedy tjre...@udel.edu added the comment:
The supposed 'known weaknesses'. I have no particular opinion.
Anyway, we have your recommendation: remove the note.
I will let others defend it.
--
___
Python tracker rep...@bugs.python.org
92 matches
Mail list logo