DDarko added the comment:
I understand, in that case:
/cpython/file/default/Lib/smtplib.py
760c760,761
self.rset()
---
try: self.rset()
except: pass
Solves the problem.
--
___
Python tracker
Ezio Melotti added the comment:
I suspect it's automatically set for issues reported via email
Apparently it's set automatically on new issues if no other component is
specified, even if the issue is created from the web interface.
--
___
Python
Mark Dickinson added the comment:
There was a related discussion on python-ideas a while back:
http://mail.python.org/pipermail/python-ideas/2010-July/007733.html
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
Stefan Krah added the comment:
test_threaded_import also takes around 5 min on Windows. I think
we should go for 0.1 on all platforms.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15599
Michele Orrù added the comment:
Reviewed with Ezio.
--
Added file: http://bugs.python.org/file27272/issue8425.1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
___
Sreenivas added the comment:
Hi All,
I was able to solve the problem.I reinstalled the python overwriting the lib
packages of the previously installed Python.I was not overwriting it before
because I was afraid that I would lose my pyserial and cx_Freeze lib files.But
it was still there and
New submission from Erich Seifert:
It seems the recent changes to Modules/pyexpat.c made the boolean 'flag' for
UseForeignDTD mandatory although it was optional in previous Python releases.
According to the docs the usage is UseForeignDTD([flag]), but calling
UseForeignDTD without arguments
Ezio Melotti added the comment:
Here's a patch.
--
assignee: docs@python - ezio.melotti
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file27273/issue15979.diff
___
Python tracker rep...@bugs.python.org
Christian Heimes added the comment:
Confirmed!
In Ubuntu's Python 2.7.3 and 3.2.3 UseForeignDTD() can be called without an
argument. The hg versions of 2.7, 3.2 and 3.3 require one argument. The change
smells like a regression for all affected Python versions.
Antoine, it looks like you
Ezio Melotti added the comment:
This seems to be the changeset that introduced the regression b878df1d23b1.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16012
___
Christian Heimes added the comment:
I've created a patch with a simple test case.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file27274/issue16012.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Ah, that's true. Too bad it wasn't tested for :(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16012
___
___
Antoine Pitrou added the comment:
I don't think there's a need for two separate examples sections (one basic
examples and one examples).
Also, you say a couple of times The equivalent can be achieved from the
:ref:`python-interface`, but that's not true since the command-line interface
Christian Heimes added the comment:
Don't feel bad. The final hasn't been released yet. :)
Here is a slightly different patch for 3.2 and 2.7.
--
Added file: http://bugs.python.org/file27275/issue16012_py32.patch
___
Python tracker
Ezio Melotti added the comment:
The first example shows the basic usage and it's right at the beginning, all
the other advanced examples are at the bottom.
About the autocalibration you are right, I'll rephrase the sentence (see also
#6422).
--
Serhiy Storchaka added the comment:
$ ./python.exe -m timeit -s s= set(range(2000)); l = set(range(2000));
s=s-l
You are measure empty loop.
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
Roundup Robot added the comment:
New changeset 22ddf77e0497 by Christian Heimes in branch '3.2':
Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
http://hg.python.org/cpython/rev/22ddf77e0497
New changeset 3e0d632ce910 by Christian Heimes in branch '2.7':
Issue #16012:
Christian Heimes added the comment:
Erich, thank you very much for your bug report. Your report made it right in
time for the upcoming 3.3.0 final release.
Here you are, Georg.
--
assignee: - georg.brandl
resolution: - fixed
stage: patch review - committed/rejected
status: open -
Georg Brandl added the comment:
Fixed in release clone as b907f99272c5.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16012
___
Stefan Krah added the comment:
I'm glad I found this. Without the long incantation _decimal is
seriously miscompiled on SPARC/Solaris 10/Sun Studio 12.3. I was
using just ...
./configure --without-gcc CFLAGS=-m64 LDFLAGS=-m64
..., and that seems to trigger an optimizer bug that produces
New submission from Armin Rigo:
A small bug of cvs.reader():
list(csv.reader(['foo:'], delimiter=':', quotechar=''))
[]
Adding strict=True doesn't change anything. This is caused by the opening
quote not followed by anything, which causes the error to be silently ignored
and the last line
R. David Murray added the comment:
Well, a bare except is almost always a bad idea, and certainly is in this case.
I'll create a patch for this if no one beats me to it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16005
Stefan Krah added the comment:
Closing since this an OS bug.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16008
New submission from Ramchandra Apte:
In http://docs.python.org/py3k/license.html#mersenne-twister, the link
http://www.math.keio.ac.jp/ matumoto/MT2002/emt19937ar.html is not complete
because there is a space in it.
--
assignee: docs@python
components: Documentation
messages: 171125
New submission from Ramchandra Apte:
In http://docs.python.org/py3k/tutorial/interpreter.html#interactive-mode , the
header shown is Python 3.2 (py3k, Sep 12 2007, 12:21:02). Python 3.2 was no
made in Sep 12 2007, so it could not be compiled at that time.
It should be a correct date or the
Roundup Robot added the comment:
New changeset 5f19c505ecea by Ezio Melotti in branch '2.7':
#16014: fix broken link.
http://hg.python.org/cpython/rev/5f19c505ecea
New changeset 74b4c8c2894f by Ezio Melotti in branch '3.2':
#16014: fix broken link.
http://hg.python.org/cpython/rev/74b4c8c2894f
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
___
Python tracker
New submission from Ramchandra Apte:
In http://docs.python.org/dev/howto/ipaddress.html, I think there should be one
author field with Peter Moody and Nick Coghlan on the right side.
--
assignee: docs@python
components: Documentation
messages: 171129
nosy: docs@python, ramchandra.apte
New submission from Ramchandra Apte:
In http://docs.python.org/py3k/tutorial/stdlib.html#internet-access , from
urls should be from URLs.
--
assignee: docs@python
components: Documentation
messages: 171130
nosy: docs@python, ramchandra.apte
priority: normal
severity: normal
status:
Roundup Robot added the comment:
New changeset 063a052af878 by Ezio Melotti in branch '2.7':
#16017: capitalize URLs.
http://hg.python.org/cpython/rev/063a052af878
New changeset d7455cceb917 by Ezio Melotti in branch '3.2':
#16017: capitalize URLs.
http://hg.python.org/cpython/rev/d7455cceb917
Ezio Melotti added the comment:
Fixed, thanks for the report.
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 2.7, Python 3.3
Ezio Melotti added the comment:
I think it's OK to have two.
--
nosy: +ezio.melotti
resolution: - rejected
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 2.7, Python 3.2
___
Python tracker
Ezio Melotti added the comment:
Looks like the version got updated but not the rest, even the 3.3 doc has the
same date.
--
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
Ramchandra Apte added the comment:
The later lines also needs to be updated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16015
___
___
Ramchandra Apte added the comment:
In http://docs.python.org/dev/tutorial/introduction.html, there is an ... line
which is impossible in that case:
Variables must be “defined” (assigned a value) before they can be used, or an
error will occur:
# try to access an undefined variable
... n
Ramchandra Apte added the comment:
Oops! The last message should be in a new issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16015
___
___
Changes by Ramchandra Apte maniandra...@gmail.com:
--
title: impossible ... line in tutorial - Incorrect startup header in tutorial
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16015
___
New submission from Ramchandra Apte:
In http://docs.python.org/dev/tutorial/introduction.html, there is an ... line
which is impossible in that case:
Variables must be “defined” (assigned a value) before they can be used, or an
error will occur:
# try to access an undefined variable
... n
Changes by Ramchandra Apte maniandra...@gmail.com:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16018
___
Ezio Melotti added the comment:
I'm not sure it's worth updating it, it will probably get outdated again when
new versions are released. Also this is just an example, the actual header and
dates might be different depending on the version/.OS/compiler.
--
versions: +Python 3.2,
Ezio Melotti added the comment:
Is it?
Python 3.2.3 (default, May 3 2012, 15:54:42)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
# try to access an undefined variable
... n
Traceback (most recent call last):
File stdin, line 2, in module
NameError:
Roger Serwy added the comment:
A re-install fixed the issue for OP caused by what appeared to be a corrupt
/Lib directory. I'm closing this issue.
--
resolution: - works for me
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Ramchandra Apte:
In http://docs.python.org/py3k/tutorial/stdlib2.html#logging , a text output
has Python highlighting; it should be text highlighting
This is incorrectly highlighted text:
WARNING:root:Warning:config file server.conf not found
ERROR:root:Error occurred
New submission from Ramchandra Apte:
In http://docs.python.org/py3k/tutorial/stdlib2.html#logging , some code in a
code sample is missing .
The code is:
unsearched = deque([starting_node])
def breadth_first_search(unsearched):
node = unsearched.popleft()
for m in gen_moves(node):
Roundup Robot added the comment:
New changeset ce943bce76c9 by Ezio Melotti in branch '2.7':
#16019, #16020: fix syntax highlight.
http://hg.python.org/cpython/rev/ce943bce76c9
New changeset 101354f95a07 by Ezio Melotti in branch '3.2':
#16019, #16020: fix syntax highlight.
Roundup Robot added the comment:
New changeset ce943bce76c9 by Ezio Melotti in branch '2.7':
#16019, #16020: fix syntax highlight.
http://hg.python.org/cpython/rev/ce943bce76c9
New changeset 101354f95a07 by Ezio Melotti in branch '3.2':
#16019, #16020: fix syntax highlight.
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 2.7, Python 3.2, Python 3.3
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 2.7, Python 3.2, Python 3.3
New submission from Ramchandra Apte:
In the table:
case-preserving case-destroying
+---+--+
case-sensitive | most Unix flavors | brr |
+---+--+
Chris Jerdonek added the comment:
Thanks for the report. Minor clarification for future reference. Subsequent
lines should begin with ... (when doctest-style is used):
def breadth_first_search(unsearched):
... node = unsearched.popleft()
etc.
--
nosy: +chris.jerdonek
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +tim_one
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16021
___
___
New submission from Ramchandra Apte:
In What's New in Python 3.3, there is a note:
Note: Beta users should be aware that this document is currently in draft form.
It will be updated substantially as Python 3.3 moves towards release, so it’s
worth checking back even after reading earlier
Ramchandra Apte added the comment:
This issue still does not appear to be fixed - looking at
http://hg.python.org/cpython/file/101354f95a07/Doc/tutorial/stdlib2.rst .
And sorry, the URL should be
http://docs.python.org/py3k/tutorial/stdlib2.html#tools-for-working-with-lists.
--
Ezio Melotti added the comment:
The code didn't have any output, so I created a separate code block with
regular Python highlight -- no need to add /... there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16020
Michele Orrù added the comment:
woops, sry. Re-posting the benchmark, with three tests: the first one proposed
(@abacabadabacaba) with very large sets; another one with smaller sets.
$ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l =
set(range(2000)) s-=l
100 loops, best of 3:
New submission from Zellmeyer:
IDLE do not response and you have to force to quit when you type the bad
combination ctrl-shift-5.
I find it on my macbook when i try do type a [ character and type the bad
combination by mistake because the keyboard are not exactly the same as the
iMac.
Ronald Oussoren added the comment:
What version of OSX do you use?
Do you have ActiveState TCL installed, and if so, which version?
Does 'Ctrl+Shift+5' insert a special character in the keyboard layout you use?
BTW. I cannot reproduce this on my machine (OSX 10.8.2) with a recent snapshot
New submission from Larry Hastings:
You know how you start pulling on a thread and before you notice you've
unraveled the whole sweater? I meant to do a simple *one line* fix on the docs
and wound up with a nearly-300-line diff. I claim it's all an improvement,
though I'm willing to change
New submission from Serhiy Storchaka:
The proposed patch corrects a few markup errors in the zipfile documentation
and adds a few relevant hyperlinks.
--
assignee: docs@python
components: Documentation
files: doc_zipfile-3.3.patch
keywords: patch
messages: 171157
nosy: docs@python,
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - patch review
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Mark Dickinson added the comment:
Is this really necessary? I suggest closing this as 'wont fix'.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16021
___
Serhiy Storchaka added the comment:
$ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l =
set(range(2000)) s-=l
s is empty set after first loop. Try this:
$ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l =
set(range(2000,2000+2000)) s-=l
--
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15963
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16024
___
Serhiy Storchaka added the comment:
Michele, in any case you patch is not preserve set identity.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: -easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
___
___
Python-bugs-list
New submission from Peter Eisentraut:
The documentation for the csv.DictReader constructor is
.. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None,
dialect='excel', *args, **kwds)
but the implementation is
def __init__(self, f, fieldnames=None, restkey=None,
Michele Orrù added the comment:
What do you mean by does not preserve set identity? Because I see:
$ ./python.exe
Python 3.3.0rc2+ (default:178f9042af81+, Sep 24 2012, 18:54:31)
[GCC 4.2.1 Compatible Apple Clang 2.1 (tags/Apple/clang-163.7.1)] on darwin
Type help, copyright, credits or
New submission from Marc-Andre Lemburg:
pkgutil is used by runpy to run Python modules that are loaded via the -m
command line switch.
Unfortunately, this doesn't work for frozen modules, since pkgutil doesn't know
how to load their code object (this can be had via imp.get_code_object() for
Serhiy Storchaka added the comment:
Sorry, I was wrong.
I think that the proposed changes should be applied in
set_difference_update_internal() directly.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
Marc-Andre Lemburg added the comment:
Correction: the helper function is called imp.get_frozen_object().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16027
___
Mark Dickinson added the comment:
Closing. This doesn't appear to have caused any confusion in the 11 years
since the PEP was written.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16027
___
Neal Parikh added the comment:
Thanks for passing along the thread, it was interesting. Oddly, it seemed to
die off with no real resolution.
I realize it is now too late to change __contains__ to return a non-boolean
value, but for reference, the reason I wanted to return something different
New submission from Erik Allik:
This is either a bug, or a very weird but undocumented feature/caveat.
def fn1():
while True:
try:
raise Exception()
finally:
pass
def fn2():
while True:
try:
raise Exception()
finally:
Mark Dickinson added the comment:
This *was* a documented feature until very recently; it looks as though a
recent doc change inadvertently removed it from the documentation. See
http://hg.python.org/cpython/rev/bef098bd3fa5
and the associated issue, issue 14167.
--
nosy:
Mark Dickinson added the comment:
I think something went wrong with this doc change. The docs used to say:
If the :keyword:`finally` clause raises another exception or executes a
:keyword:`return` or :keyword:`break` statement, the saved exception is lost.
Now we have:
If there is a
Mark Dickinson added the comment:
See also issue 16021. Re-opening this issue for reconsideration.
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
Mark Dickinson added the comment:
Bah. Issue 16028; sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
___
___
Python-bugs-list
Yury Selivanov added the comment:
Can you close this one? It's already merged.
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
___
Yury Selivanov added the comment:
I'll open another issue and will attach a patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
___
___
Mark Dickinson added the comment:
Yury: I don't think there's any need for yet another issue; this one will do
(or if you prefer, attach the patch to issue 16028.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
Yury Selivanov added the comment:
OK.
Attaching the patch. Please review.
--
Added file: http://bugs.python.org/file27280/finally_doc_patch.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
Erik Allik added the comment:
It looks to me that it was not removed from the doc but explicitly changed to
say that 'break' does not cause the exception to be discarded, unless I'm
misunderstanding it:
1.20 +:keyword:`finally` clause is executed. If there is a saved exception
1.21
Mark Dickinson added the comment:
Hmm. Yes, true. Either way, it's the docs that need to be fixed rather than
the behaviour.
Thanks for catching this!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16028
Yury Selivanov added the comment:
see the issue 14167
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16028
___
___
Roundup Robot added the comment:
New changeset 485902ecf0ee by Mark Dickinson in branch '3.2':
Issue #14167: restore statement about breaks in finally clauses.
http://hg.python.org/cpython/rev/485902ecf0ee
New changeset f5ed3a5440b2 by Mark Dickinson in branch 'default':
Issue #14167: merge fix
Mark Dickinson added the comment:
Thanks for the quick fix! Patch applied to 3.2 and 3.3
The 2.7 commit also introduced an incorrect statement about exception chaining;
I'll look at fixing that.
--
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset f51d11405f1d by Mark Dickinson in branch '2.7':
Issue #14167: restore statement about breaks in finally clauses; remove
statement about exception chaining.
http://hg.python.org/cpython/rev/f51d11405f1d
--
Mark Dickinson added the comment:
Reclosing.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14167
___
Mark Dickinson added the comment:
That portion of the documentation has been restored. Closing this issue.
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
resolution: - fixed
status: open - closed
versions: +Python 3.2, Python 3.3
Serhiy Storchaka added the comment:
A shorter example:
import csv
list(csv.reader(['foo,']))
[]
--
nosy: +storchaka
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16013
New submission from akira:
import sys
from pickle import dumps, loads
r = xrange(sys.maxsize)
len(r) == sys.maxsize
True
pr = loads(dumps(r))
len(pr) == len(r)
False
pr
xrange(0)
r
xrange(9223372036854775807)
It breaks multiprocessing module:
Mark Dickinson added the comment:
The bug is (not surprisingly) in range_reduce in Objects/rangeobject.c, where
return Py_BuildValue((O(iii)), Py_TYPE(r),
should be
return Py_BuildValue((O(lll)), Py_TYPE(r),
But in writing tests for this bug, I fell over another one:
import sys
Mark Dickinson added the comment:
Here's the fix. There's a commented out test, which fails because of the
second xrange bug (or something closely related to it).
--
keywords: +patch
Added file: http://bugs.python.org/file27282/issue16029.patch
___
Mark Dickinson added the comment:
Removing 2.6: this isn't a security issue.
--
stage: - patch review
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16029
___
STINNER Victor added the comment:
Do you need this PEP?
http://www.python.org/dev/peps/pep-0335/
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16011
___
1 - 100 of 143 matches
Mail list logo