Hagen Fürstenau hfuerste...@gmx.net added the comment:
but I think it is a bug
I think it is either a feature request (make NoneType picklable) or a
documentation issue (document that it's not).
--
nosy: +hagen
___
Python tracker
Tomas Hoger tho...@redhat.com added the comment:
This is not really the same thing as issue 946373. That one seems to be
about adding script's directory as the first thing in sys.path.
Comments there seem to mix both interactive ('' in sys.path) and
non-interactive
Georg Brandl ge...@python.org added the comment:
Patch looks good, committed with test in r74020.
--
assignee: christian.heimes - georg.brandl
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Actually popen() isn't documented anymore in the 3.1 docs. However, I
don't know about the real deprecation status. Benjamin?
--
assignee: georg.brandl - benjamin.peterson
nosy: +benjamin.peterson
Georg Brandl ge...@python.org added the comment:
I moved the link target to the built-in functions section in r74021.
For the other issue, I wanted to restructure the builtins docs anyway
for a long time, this will be part of it.
--
resolution: - fixed
status: open - closed
Georg Brandl ge...@python.org added the comment:
Since this will be handled by Sphinx, it is not an issue for this tracker.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3341
Georg Brandl ge...@python.org added the comment:
I'm not sure which items you refer to. The only unlinked items I see
are some with subterms, where the parent term has no index entry.
--
resolution: - works for me
status: open - pending
___
Python
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r74022.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6481
___
Christoph Burgmer cburg...@ira.uka.de added the comment:
Casing algorithms should follow Section 3.13 Default Case Algorithms
in the standard itself, not UTR#21.
See
http://www.unicode.org/Public/5.2.0/ucd/DerivedCoreProperties-5.2.0d11.
Unicode 5.2. A nice mail on the Unicode mail list has a
New submission from tq0fqeu tq0f...@gmail.com:
To create a instance of Class Person
[code]
rosss = Person('ross')
rosss.sayHi()
rosss.howMany()
[/code]
It's OK
But
[code]
ross = Person('ross')
ross.sayHi()
ross.howMany()
[/code]
It has exception, get that:
Exception AttributeError: 'NoneType'
R. David Murray rdmur...@bitdance.com added the comment:
You examples both work for me. Please go to python-list or python-tutor
for help debugging your code. In particular you need to learn more
about __del__ and why you probably don't want to be using it.
Mark Dickinson dicki...@gmail.com added the comment:
This has to do with the order that things are deleted/cleaned-up on
interpreter shutdown. In the reported case, it just happens that the
'Person' entry in the globals() dict is deleted *before* __del__ is called
on the last Person
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Well, Errors should never pass silently.
In this case, it is possible to replace Person.population by
self.__class__.population.
This said, it could be interesting to cleanup modules in a more
predictive way, for example in the reverse
R. David Murray rdmur...@bitdance.com added the comment:
I can confirm the issue with syslog-ng, and also that it works fine with
FreeBSD's syslogd.
That said, in the googling I did I ran across code from another project
that splits log lines at newlines and also if the logged line is too
Benjamin Peterson benja...@python.org added the comment:
I have no idea either. It seems os.popen is now a hacked up to use
subprocess, so it seems intentional to keep it. Guido, you made this
change; is os.peopen supposed to be gone in 3.x?
--
nosy: +gvanrossum
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
What's your platform? I could reproduce this on windows. And I found
attached patch can workaround this.
--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file14506/ctypes_workaround.patch
Jesse Noller jnol...@gmail.com added the comment:
committed r74023 on trunk
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6433
___
___
Changes by Jesse Noller jnol...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6433
___
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Added file: http://bugs.python.org/file14507/ctypes_workaround_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6493
___
Guido van Rossum gu...@python.org added the comment:
I am guessing the reason to keep os.popen() (albeit now reimplemented
using subprocess) is that it is a convenient wrapper for a common use case
and also familiar. I see no problem with this. (Indeed the big problem
was with the
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
By the way, shouldn't the various posix.spawnv* functions be officiall
deprecated as well?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Jim Garrison jgarri...@troux.com added the comment:
To clarify:
... it should never alter the content of (i.e. insert whitespace into)
existing text elements that contain non-whitespace characters.
--
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Do we want to support this? What is the use of a static build?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1327594
Mark Dickinson dicki...@gmail.com added the comment:
Thanks again, casevh! The patch looks good. I've added to it a bit,
though---see issue6431.patch. In detail:
- don't use subtraction with unknown types for , =, , =; this is
dangerous, since the unknown type may well do a lossy
Martin v. Löwis mar...@v.loewis.de added the comment:
I think it would be nice to support it, atleast in the C files (not
necessarily, but possibly, in the project files as well).
The point of a static Python library is that you can embed it into an
application without requiring an additional
New submission from Georg Brandl ge...@python.org:
Thanks, committed in r74028.
--
nosy: +georg.brandl
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6482
Hagen Fürstenau hfuerste...@gmx.net added the comment:
Seems like this has already been fixed as issue 1385.
--
nosy: +hagen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6473
___
Mitchell Model m...@acm.org added the comment:
doh. sorry. I was in a reading mode, not a using mode, and wasn't
thinking of the entries as links, though of course I use them that way
all the time. The pages just seemed oddly sprinkled with black items.
All I said is that I couldn't find any
Mark Matusevich mark...@users.sourceforge.net added the comment:
It looks like the severity of this problem is underestimated here.
A programmer working with a significant amount of data (e.g SciPy user)
and uses OOP will face this problem. Most OOP designs result in
existence of some loops
Jeffrey Yasskin jyass...@gmail.com added the comment:
The fallback behavior in Fraction was meant to demonstrate the suggested
fallback behavior for user-defined types. In particular, the idea was
that all Reals would (by default) be comparable to each other, even if
they didn't know about
David Goodger good...@python.org added the comment:
r74028 changes the logic of the code. The finally clause always
executes, regardless of whether or not an exception was raised. The
previous behavior only executed when there was an exception.
I don't know if the previous logic was correct,
David Goodger good...@python.org added the comment:
To clarify my last message: the log message for r74028 ('simplify
except: raise to finally:') implies a nonexistent equivalence.
So was the log message in error, or the change itself?
--
___
Python
New submission from Sridhar Ratnakumar sridh...@activestate.com:
Both pathname2url and url2pathname are in the urllib.request module,
but 2to3 thinks they are in urllib.parse module.
sridh...@double:~/tmp/eric1$ cat foo.py
from urllib import pathname2url, url2pathname
New submission from Walter Arrighetti riemann.ch...@gmail.com:
In the Digital Intermediate (DI) post-production world, as well as in
digital cinema/film technologies, video frames -especially those coming
from a film scanner- are stored in sequences of image files, whose two
primary formats are
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Attaching fix. Might have to merge to 2.6/2.7
--
keywords: +patch
Added file: http://bugs.python.org/file14511/fix6496.patch
___
Python tracker rep...@bugs.python.org
krawyoti krawy...@yahoo.com added the comment:
Georg, please note that os.popen *is* documented in 3.1. See attached
screen shot.
--
Added file: http://bugs.python.org/file14509/docs.png
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
That is not really a documentation for the function, but a pointer to a
section in which there is no documentation for popen.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Very true. Since there was no indication that the previous version was
faulty, reverted in r74029.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6482
Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6487
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
[Jeffrey]
In particular, the idea was that all Reals would (by default) be
comparable to each other, even if they didn't know about each other.
Understood, but I don't think this is an attainable goal. I don't see
any reasonable way to
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Indeed, the provided test file passes on all python versions I have.
Iain, does this script fail on some version?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Jeffrey Yasskin jyass...@gmail.com added the comment:
If you think it's better, I'm happy to make the other tradeoff.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6431
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
applied with r37952 (trunk), r37953 (2.6) and r37978 (py3k, docstrings
only). Thanks for the patch!
--
resolution: accepted - fixed
status: open - closed
___
Python tracker
Case Van Horsen cas...@gmail.com added the comment:
On Thu, Jul 16, 2009 at 11:34 AM, Mark Dickinsonrep...@bugs.python.org wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Thanks again, casevh! The patch looks good. I've added to it a bit,
though---see issue6431.patch. In
New submission from Rogi r...@linuxmail.org:
From teh docs:
http://docs.python.org/c-api/veryhigh.html
int Py_Main(int argc, char **argv)¶
The main program for the standard interpreter. This is made
available for programs which embed Python. The argc and argv parameters
should be prepared
Ezio Melotti ezio.melo...@gmail.com added the comment:
Now (Python2.7a0 trunk:74029) there are 3 more tests that fail because
zlib is not available: test_multiprocessing, test_xmlrpc and test_docxmlrpc.
--
title: test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available -
R. David Murray rdmur...@bitdance.com added the comment:
Note that this bug is also of concern to Ubuntu. See for example
https://bugs.launchpad.net/python/+bug/94130.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
New submission from Ezio Melotti ezio.melo...@gmail.com:
I'm working on #6026 and I noticed that the patch for #6267 introduced
an import gzip in Lib/xmlrpclib.py in r73638.
gzip tries to import zlib, and if it's not available the import fails.
This led to 3 new tests failures in the trunk:
Ezio Melotti ezio.melo...@gmail.com added the comment:
xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer cannot be imported
after r73638 if zlib is missing, see #6499.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
Raphaela rakeka_mo...@hotmail.com added the comment:
I'm having the same problem. The source of the problem seem to be in
PyRun_InteractiveOneFlags(). It prints and clears the last error.
--
nosy: +Rakeka
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
The 3 new failures (test_multiprocessing, test_xmplrpc and
test_docxmlrpc) were introduced in r73638 and I opened a new issue about
that (#6499). I'll wait to see if and how they should be fixed (and
possibly open a new issue for them).
The
Senthil orsent...@gmail.com added the comment:
This is actually fixed in Py2.7 and I am trying to get it Py3.2 before
marking this as fixed.
Based on the comments, should this be backported to Py2.6?
--
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
components: +Interpreter Core
priority: - release blocker
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6415
___
Brett Cannon br...@python.org added the comment:
OK, fixed in r12412 for pydotorg sans the IRC stuff (don't feel
comfortable pointing people that way when IRC is not under our control).
Thanks for the fixes, Ezio.
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6449
___
___
Brett Cannon br...@python.org added the comment:
Here is a patch for test_warning to test for the failure. Hirokazu, since
you found the fix, do you want to do the commit, or do you want me to
handle it since this will need to be applied to all active branches?
--
assignee:
56 matches
Mail list logo