Richard Jones richardjo...@optushome.com.au added the comment:
The patch to test_smtplib.py no longer applies since trunk is now py3k. I'm
looking into it - and seeing whether the mock socket work I implemented for
test_smtpd.py will have any common code. I'm hitting some fun areas of
Mattelaer olivier.mattel...@uclouvain.be added the comment:
Thanks a lot for the fix.
On 02-août-10, at 01:58, R. David Murray wrote:
R. David Murray rdmur...@bitdance.com added the comment:
Thanks, Éric. Fixed.
--
___
Python tracker
Tal Einat talei...@gmail.com added the comment:
I think we are in agreement :)
Regarding the warning message, I was referring only to the case that the syntax
highlighter fails completely and raises an exception. I'm not even sure if that
can happen, but in case it does an informative message
Changes by Dirkjan Ochtman dirk...@ochtman.nl:
--
nosy: +djc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8688
___
___
Python-bugs-list mailing
Zaar Hai haiz...@gmail.com added the comment:
Exactly.
Thank you.
On Mon, Aug 2, 2010 at 1:59 AM, Georg Brandl rep...@bugs.python.org wrote:
Georg Brandl ge...@python.org added the comment:
The issue in the iniparse tracker has been closed as fixed now, so I assume
the problem was on that
Marc-Andre Lemburg m...@egenix.com added the comment:
Note that pickle deliberately does not support serializing code objects.
This is a security feature and should not be broken !
If you need to pickle such objects, you can easily register handlers that take
care of this.
--
nosy:
Łukasz Langa luk...@langa.pl added the comment:
Good questions, thanks! The answers will come useful for documentation and
later hype :)
READING CONFIGURATION FROM A DATA STRUCTURE
---
This is all about templating a decent set of default values. The
Éric Araujo mer...@netwok.org added the comment:
Sorry for the long delay without reply. Thank you for the report, I’ll look
into it in the following weeks. In distutils2, I think clean could use the
configure command (#8254) or maybe it’ll be simpler to just
set_undefined_options from build.
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
___
___
Éric Araujo mer...@netwok.org added the comment:
Can you still reproduce in 3.1 and 3.2?
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4636
___
Éric Araujo mer...@netwok.org added the comment:
Tarek, can this bug be fixed or is it outdated? IOW, is bdist_rpm officially
discouraged or do you still accept bugfixes for it?
--
nosy: +merwok
versions: +Python 3.2
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
The bug has been fixed in 2.3, apparently it’s a doc bug now, so reassigning.
--
assignee: tarek - d...@python
nosy: +d...@python, merwok
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
Well, the patch was technically useless since, as mentioned, unicode strings
are terminated by a NUL character by design.
There are two things to keep in mind:
Changes by Marc-Andre Lemburg m...@egenix.com:
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8821
___
Éric Araujo mer...@netwok.org added the comment:
Could you run ipy.exe setup.py build, then set DISTUTILS_DEBUG in the
environment and run ipy.exe
setup.py install?
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - tarek
components: +Distutils
nosy: +merwok, tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1644987
___
Éric Araujo mer...@netwok.org added the comment:
I agree with Victor. Use 3.1 if you don’t depend on unported libraries, else
explicitly encode with sys.stdout.encoding or set PYTHONIOENCODING in the
environment.
--
resolution: - out of date
stage: unit test needed -
Éric Araujo mer...@netwok.org added the comment:
get_config has moved to sysconfig, which is now a top-level module, and site is
fixed.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
You appear to be requesting two things:
1. Determine the Windows version by looking at sys.getwindowsversion() rather
than relying on the ver command line tool.
2. Use lsb_release to fetch the release name on Linux systems that support
Éric Araujo mer...@netwok.org added the comment:
Closing in two weeks if there is no additional information. Please reopen if
needed.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7299
Éric Araujo mer...@netwok.org added the comment:
(Rationale for this resolution: On #3143, it was used to remind us to change a
setting in Doc/conf.py after the switch to a new version of Sphinx with the new
feature.)
--
resolution: invalid - remind
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +Make installed scripts executable on windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue870479
___
Antoine Pitrou pit...@free.fr added the comment:
* Unicode objects are NUL-terminated, but only very external APIs
rely on this (e.g. code using the Windows Unicode API). Please
don't make the code in unicodeobject.c itself rely on this
subtle detail.
That's wishful thinking,
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8821
___
___
Python-bugs-list
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk:
pulldom.SAX2DOM raises a TypeError if it encounters a processing instruction
before the root element of an XML document.
It is valid to have a processing instruction before the root node of a document
(and SAX2DOM's superclass,
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
My recommendation is that SAX2DOM is deprecated and removed from the standard
library rather than fixing this issue. The class is currently undocumented, has
weird behaviour, and is unused within the Python standard library, so I
Ray.Allen ysj@gmail.com added the comment:
David Murray, where is the patch?
--
nosy: +ysj.ray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
Doug Hellmann doug.hellm...@gmail.com added the comment:
Yes, that doc change is clear. Thanks!
--
nosy: +ted.turocy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9444
___
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
This is a security feature and should not be broken !
Can you explain this?
I don't think I agree, since an attacker can always serialize whatever they
feel like. It's the person doing the deserialization that has to be
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
* Unicode objects are NUL-terminated, but only very external APIs
rely on this (e.g. code using the Windows Unicode API). Please
don't make the code in
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r83523.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9209
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r83523.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7781
Marc-Andre Lemburg m...@egenix.com added the comment:
Jean-Paul Calderone wrote:
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
This is a security feature and should not be broken !
Can you explain this?
I don't think I agree, since an attacker can always serialize
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in revision 83521 (py3k) and 83522 (release31-maint).
I made slight modifications to the patch to include non-iterable values,like
int, for default too.
If you feel the documentation could be made better, please suggest the wordings
Georg Brandl ge...@python.org added the comment:
Fixed (also for cProfile) in r83524.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9428
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
By adding default support for unpickling code objects, you can trick
the unpickling code into executing serialized code:
This doesn't sound correct to me.
You can *already* trick unpickling code into executing serialized code.
Antoine Pitrou pit...@free.fr added the comment:
But all that is off-topic for this ticket, since codecs
operate on Py_UNICODE* buffers together with a size parameter
and relying on those buffers being NUL-terminated is bound to
cause problems.
That's right. Then perhaps a fixed patch can
Georg Brandl ge...@python.org added the comment:
Duplicate of #1690103.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6436
Georg Brandl ge...@python.org added the comment:
This won't get backported now that 2.7 is in maintenance.
--
nosy: +georg.brandl
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk:
When running tests with -v, the test runner prints out the docstring of each
test method, if present, and falls back to the method name if it's not present.
Test methods wrapped with @expectedFailure do not print out their
Georg Brandl ge...@python.org added the comment:
Fixed the test cases and committed them in r83527.
--
nosy: +georg.brandl
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3821
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
Provided a patch to demonstrate this issue.
Demonstrates that docstrings aren't copied to the decorator function.
--
keywords: +patch
Added file: http://bugs.python.org/file18321/unittest_failing_test.patch
Matt Giuca matt.gi...@gmail.com added the comment:
OK, I finally had time to review this issue again.
Firstly, granted the original fix broke a test case, shouldn't we figure out
why it broke and fix it, rather than just revert the change and continue
relying on this tenuous assumption?
Changes by Mark Smith mark.sm...@practicalpoetry.co.uk:
Removed file: http://bugs.python.org/file18321/unittest_failing_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9454
___
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
Removed the failing test patch, because it didn't demonstrate what I thought it
did. Unwrapped tests also don't have docstrings, because they are instances of
the TestCase, not references to the function.
--
Marc-Andre Lemburg m...@egenix.com added the comment:
Jean-Paul Calderone wrote:
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
By adding default support for unpickling code objects, you can trick
the unpickling code into executing serialized code:
This doesn't sound
R. David Murray rdmur...@bitdance.com added the comment:
Morning does make a difference. Revised patch that also works at the top level
of a module. (Let's see if I can manage to actually attach it this time...)
--
keywords: +patch
Added file:
Brian Curtin cur...@acm.org added the comment:
The test added here is crashing my Windows 7 x64 machine on py3k in debug mode.
It hangs indefinitely in release mode. This isn't occurring with the
buildbots...
(Sorry for not reporting this sooner...I came to see the status and apparently
the
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
Closed this issue. The initial report was in error -- it turns out I can't even
read my own console. I'm an idiot :)
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
Without patch, I don't see how this issue can be moved forward.
Adding a list of such Unicode term definitions would at best cause additional
confusion and only address people knowledgable in the Unicode field.
Note that Python's use of
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - d...@python
nosy: +d...@python
stage: - needs patch
versions: +Python 2.6, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1581182
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
For example:
exar...@boson:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more information.
class x(object):
... def __reduce__(self):
...
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Aug 2, 2010 at 9:25 AM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
You can *already* trick unpickling code into executing serialized code. You
don't need
this feature in order to be able to do it.
R. David Murray rdmur...@bitdance.com added the comment:
Right, the join behavior is correct. But the definition of a *default* (aka
sentinel) value is that it is returned *unchanged*. It is counter intuitive
that if you pass a list of strings as a default, that what you get back is
those
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9454
___
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
R. David Murray rdmur...@bitdance.com added the comment:
Woops, sorry for making you nosy on a closed issue, Michael. Apparently I
can't read either.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
Jean-Paul Calderone wrote:
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
For example:
exar...@boson:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type help, copyright, credits
Catherine Devlin fredv8vi...@liquidid.net added the comment:
Attached a unit test patch corresponding to Ted's patch.
http://bugs.python.org/file18320/argparse_test.patch
--
nosy: +catherine
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Aug 2, 2010 at 10:05 AM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
Without the definition of class x on the receiving side, there
would be no exploit.
You are mistaken. Try adding del x (or del evil in
Antoine Pitrou pit...@free.fr added the comment:
I think methods should be picklable just like global functions are, that is, by
pickling a tuple of the fully-qualified class name (mymodule.myclass), method
name (mymethod), and self.
--
___
Python
Marc-Andre Lemburg m...@egenix.com added the comment:
M.-A. Lemburg wrote:
Jean-Paul Calderone wrote:
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
For example:
exar...@boson:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type help,
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Aug 2, 2010 at 10:11 AM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
Hmm, I just tried the code and it seems that you're right:
The pickle string does not contain a reference to class x,
but only the
Marc-Andre Lemburg m...@egenix.com added the comment:
Alexander Belopolsky wrote:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Aug 2, 2010 at 10:11 AM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
Hmm, I just tried the code and it seems that
Antoine Pitrou pit...@free.fr added the comment:
Apparently this may have become Windows-specific at some point. I can't
reproduce under Linux with Python 2.6.5, 2.7 or 3.2.
I get a strange warning with -v under 2.7, though:
$ touch b.py ~/cpython/27/python -v a.py 21 | grep b.py
#
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
I also like Antoine's idea of pickling the function/method name instead of
the whole code object.
I like it too. That's why I suggested it in the first comment on the ticket
(read the linked code). I guess Alexander likes it
Ray.Allen ysj@gmail.com added the comment:
In my opinion, the set's operator should be a bit more liberal and accept any
collections.Set instances. Given collections.Set is an ABC and isinstance(set,
collections.Set) is True, the set methods should(strong recommended) follow all
the
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
Added a patch to increase code coverage for the pulldom module to 90%.
This patch also includes 3 'expectedFailure' tests that I believe indicate
erroneous behaviour, associated with issues #9453 (SAX2DOM doesn't like
processing
Antoine Pitrou pit...@free.fr added the comment:
There's already issue558238 on the same topic.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Aug 2, 2010 at 10:32 AM, Jean-Paul Calderone
rep...@bugs.python.org wrote:
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
I also like Antoine's idea of pickling the function/method name instead
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue558238
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
___
Python-bugs-list mailing
Ray.Allen ysj@gmail.com added the comment:
+1 on generalize the dbm.gnu and gbm.ndbm, and also dbm.dumb. All of them
should follow the Collections.MutableMapping ABC. I will work out a patch to
fix this.
--
nosy: +ysj.ray
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8634
___
___
Python-bugs-list mailing
Georg Brandl ge...@python.org added the comment:
Doc review: Small typo, Flase vs False. Also, exceptions are raised rather
than thrown in Python land (same for the docstring). Both exception
references should be :exc:`OSError`.
Otherwise, looks fine to me.
Raising priority; this should go
Antoine Pitrou pit...@free.fr added the comment:
Yes, I think we have a consensus on this point. Note, however that
since unbound methods have been removed in 3.x, it is not trivial to
find a fully qualified name of a method anymore.
I suppose only bound methods should be pickleable:
class
Antoine Pitrou pit...@free.fr added the comment:
Let's continue the discussion on issue9276.
--
nosy: -merwok
resolution: - duplicate
status: open - closed
superseder: - pickle should support methods
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +hinsen, loewis, obamausa8, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
Note, however that since unbound methods have been removed in 3.x, it is not
trivial to find a fully qualified name of a method anymore.
This is a rather sad loss of functionality.
--
Barry A. Warsaw ba...@python.org added the comment:
You have about 5 hours as of this writing to apply the doc patch for Python
2.6.6 rc1 and then it will be too late to get it into Python 2.6.6 (though I
might make an exception for doc-only patches like this, for post rc1).
While I haven't
Changes by Barry A. Warsaw ba...@python.org:
--
priority: release blocker - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9264
___
___
Barry A. Warsaw ba...@python.org added the comment:
Georg committed this patch to the 2.6 tree, and besides, this is doesn't seem
like a blocking issue, so I'm kicking 2.6 off the list and knocking the
priority down.
--
priority: release blocker - high
versions: -Python 2.6
Georg Brandl ge...@python.org added the comment:
It *is* a feature request. The signature of functions implemented in C is
currently not exposed to introspection.
--
nosy: +georg.brandl
type: behavior - feature request
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I'll try to meet the deadline. :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9264
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Oh, this is not assigned to me. Terry, do you need help with this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9264
James William Pye x...@jwp.name added the comment:
Would it be possible to require the embedding application to define the
Py_FatalError symbol?
Admittedly, it would be nice to not have the callback installation code. =\
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
This sounds like a good idea but why the strange semantics of needing it to be
defined before calling PyInitialize()?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
The security issue mentioned previously has been known for years. And, it is
easy to protect against. See
http://docs.python.org/py3k/library/pickle.html#restricting-globals
Also I am against adding pickling support to code
W. Trevor King wk...@drexel.edu added the comment:
As a workaround until the patch gets included, you can import this monkey patch
module.
--
nosy: +labrat
Added file: http://bugs.python.org/file18325/minidom.py
___
Python tracker
James William Pye x...@jwp.name added the comment:
I guess it seemed so unlikely that (C) extensions should be installing the
callback that installation should be restricted pre-Py_Initialize(); the area
completely controlled by the embedding app.
However, I have no strong attachment to that.
Antoine Pitrou pit...@free.fr added the comment:
If you want to slice into a writable buffer, you can use a memoryview:
b = io.BytesIO(babc)
m = mmap.mmap(-1, 10)
b.readinto(memoryview(m)[5:])
3
m[:]
b'\x00\x00\x00\x00\x00abc\x00\x00'
This only works on 3.x, though.
As for changing the
Piotr Meyer an...@smutek.pl added the comment:
On Sun, Aug 01, 2010 at 12:27:50AM +, Ãric Araujo wrote:
Ãric Araujo mer...@netwok.org added the comment:
Does the bug still exist in 3.2 (branch named py3k in subversion)? Do
the patch still apply? (The workflow is to patch the version
Senthil Kumaran orsent...@gmail.com added the comment:
David, your suggested description was much better.
Modified the documentation in r83529 and r83530.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Fixed with your patch in r83531.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7372
___
Catherine Devlin fredv8vi...@liquidid.net added the comment:
I'm attaching a unit test patch that does something vaguely like Steven
suggests. It definitely needs review.
Also, I'm assuming that it's OK to specify *fewer* metavars than nargs, just
not more... but I'm not sure about that.
Georg Brandl ge...@python.org added the comment:
I added a note to the docs in r83536.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8578
___
Georg Brandl ge...@python.org added the comment:
Should be fixed in r83538.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6928
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I backported this to 2.6 in r83537 in order to fix #7092. I used a leading
underscore on _check_py3k_warnings to make it private because no new features
should be added to 2.6.
--
___
Python
Georg Brandl ge...@python.org added the comment:
Current status: no lawsuit yet.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2716
___
___
Changes by James William Pye jw...@users.sourceforge.net:
--
nosy: -jwpye
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1195571
___
___
1 - 100 of 160 matches
Mail list logo