Georg Brandl ge...@python.org added the comment:
One could also argue that on SIGINT, the program is not killed but
interrupted by the signal :)
What about ... killed by an unhandled signal ...?
--
nosy: +georg.brandl
___
Python tracker
Bob Ippolito b...@redivi.com added the comment:
The test in the patch assumes a specific iteration order for the dict h,
changing the dict to have only one key would fix this problem with the test.
--
___
Python tracker rep...@bugs.python.org
Bob Ippolito b...@redivi.com added the comment:
The test also repeats an equivalent dict to h in the check function.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10019
___
Bob Ippolito b...@redivi.com added the comment:
I just applied a version of this patch with corrections to the tests here:
http://code.google.com/p/simplejson/source/detail?r=234
--
___
Python tracker rep...@bugs.python.org
Robert Rohde ro...@robertrohde.com added the comment:
It's Windows 7 Ultimate (64-bit) on a very high end system.
I don't think it would be very practical to distribute a 2 GB test file.
Though I might be able to get it to a couple people if someone wanted to really
study the issue.
Though
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Thank you. Committed in r85315(py3k), r85318(release27-maint).
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9978
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I modified the patch slightly to avoid potential hang.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9978
___
Antoine Pitrou pit...@free.fr added the comment:
Ah, sorry for closing, then. You are right, this is a genuine issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10041
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Can you reproduce it by executing this?
format(0.15256118774414062, .2f)
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10047
umaxx m...@umaxx.net added the comment:
@BreamoreBoy: what do you man by taking this forward?
The patch is there. Since three years now, no one else seems to be interested.
I personally do not have any interest in this anymore as I just do not use
Python for this stuff anymore since a long
Antoine Pitrou pit...@free.fr added the comment:
There are a couple of things I don't understand:
+* :class:`~email.generator.Generator` will convert message bodies that
+ have a :mailheader:`ContentTransferEncoding` of 8bit and a known charset to
+ instead have a
Antoine Pitrou pit...@free.fr added the comment:
I wanted to go forward with this and so I've committed the patch in r85321. If
you're concerned about the lack of support for IP addresses, you can open a new
issue (and even provide a patch!). Thank you.
--
resolution: - fixed
stage:
Antoine Pitrou pit...@free.fr added the comment:
Can you show a snippet of the code (or descrive it in detail) that processes
the GzipFile? Right now it's not obvious which operations you are doing.
--
components: +Library (Lib) -Windows
nosy: +pitrou
stage: unit test needed -
Antoine Pitrou pit...@free.fr added the comment:
Here is the API addition I would suggest for the http.client module:
Add two new keyword arguments `context` and `check_hostname` to
HTTPSConnection; `context` would allow to pass a SSLContext instance for
certificate checking and other options
New submission from Antoine Pitrou pit...@free.fr:
The urllib.request documentation intermingles old 2.x urllib (FancyURLopener,
etc.) with urllib2-inherited (*Handler, build_opener, etc.) primitives without
making any distinction. This makes it rather confusing for the reader to figure
out
Nick Coghlan ncogh...@gmail.com added the comment:
I've been pondering the idea of adopting a more conservative approach here,
since there are actually two issues:
1. Properly quoted URLs are transferred as pure 7-bit ASCII (due to
percent-encoding of everything else). However, most of the
New submission from Hrvoje Nikšić hnik...@gmail.com:
I find that I frequently need the null (no-op) context manager. For example,
in code such as:
with transaction or contextlib.null():
...
Since there is no easy expression to create a null context manager, we must
resort to
Changes by Hrvoje Nikšić hnik...@gmail.com:
--
components: +Library (Lib)
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
___
New submission from Antoine Pitrou pit...@free.fr:
3.x urllib.request still has a lot of stuff inherited from 2.x urllib:
URLopener, FancyURLopener, the urlretrieve implementation (perhaps others?).
Ideally, urlretrieve should be reimplemented using urlopen or build_opener, and
the other
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
title: Add the null context manager to contextlib - Add a no-op (null)
context manager to contextlib
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
Michael Foord mich...@voidspace.org.uk added the comment:
+1
Looks like a reasonable use case.
--
nosy: +michael.foord, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
___
Michael Foord mich...@voidspace.org.uk added the comment:
Patch is missing tests and documentation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
About your patch:
- __enter__() might return self instead of None... i don't really know which
choice is better. with Null() as x: works in both cases
- __exit__() has no result value, pass is enough
- I don't like Null name, I
Éric Araujo mer...@netwok.org added the comment:
I also find the Null/_null/null affair confusing.
--
nosy: +eric.araujo
stage: - patch review
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
Antoine Pitrou pit...@free.fr added the comment:
@contextlib.contextmanager
def null():
yield
Do we really need to add this to the stdlib?
Previous proposals to add an identity function or no-op function have
always be refused. This one seems even less useful.
--
nosy: +pitrou
New submission from Michał Górny mgo...@gentoo.org:
I was reported an issue where the user was unable to install my package [1]
using python3.1. I was able to guess the issue comes from locale being set to
POSIX and reproduce it.
It seems that the reasons are utf8-encoded characters in the
Hrvoje Nikšić hnik...@gmail.com added the comment:
Thank you for your comments.
@Michael: I will of course write tests and documentation if there is indication
that the feature will be accepted for stdlib.
@Antoine: it is true that a null context manager can be easily defined, but it
does
Antoine Pitrou pit...@free.fr added the comment:
@Antoine: it is true that a null context manager can be easily
defined, but it does requires a separate generator definition, often
repeated in different modules. This is markedly less elegant than
just using contextlib.null() in an
R. David Murray rdmur...@bitdance.com added the comment:
Generator converts 8bit bodies into 7bit bodies by applying an appropriate 7bit
CTE. The reason it does this is that the output of Generator will often be
passed to some other Python library function (most often smtplib) that can only
Antoine Pitrou pit...@free.fr added the comment:
Generator converts 8bit bodies into 7bit bodies by applying an
appropriate 7bit CTE. The reason it does this is that the output of
Generator will often be passed to some other Python library function
(most often smtplib) that can only handle
Nick Coghlan ncogh...@gmail.com added the comment:
The difference here is the one pointed out in the original post: for a
function, you usually only care about having a value, so if you don't want to
call it, you can just swap in a None value instead. If you need an actual
callable, then
Hrvoje Nikšić hnik...@gmail.com added the comment:
That is what we are using now, but I think a contextlib.null() would be useful
to others, i.e. that its use is a useful idiom to adopt. Specifically I would
like to discourage the duplicated code idiom from the report, which I've seen
all
R. David Murray rdmur...@bitdance.com added the comment:
Even if smtplib accepted bytes (it currently does not), *Generator* is still
producing unicode, and should produce valid unicode and still insofar as
possible preserve the meaning of the original message. This means unicode acts
as if
Antoine Pitrou pit...@free.fr added the comment:
Even if smtplib accepted bytes (it currently does not),
That sounds like a critical failure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4661
R. David Murray rdmur...@bitdance.com added the comment:
I can only fix one package at a time :)
And in case it isn't clear, the Generator produces ASCII-only unicode, which
is in many ways a rather strange API, is one of the chief motivations for
email6.
--
Hrvoje Nikšić hnik...@gmail.com added the comment:
I considered using a variable, but I went with the factory function for two
reasons: consistency with the rest of contextlib, and equivalence to the
contextmanager-based implementation.
Another reason is that it leaves the option of adding
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5117
___
R. David Murray rdmur...@bitdance.com added the comment:
Here is the final pre-alpha patch. This one includes the BytesFeedParser class
and a test.
Unless there are objections I'd like to commit this. Believing the code needs
a more thorough review would be a valid objection :)
--
Jason Baker amnorv...@gmail.com added the comment:
I like that phrasing. I think it would be a good idea to mention that this
includes SIGINT by default, just to be explicit.
--
___
Python tracker rep...@bugs.python.org
Thomas Klausner t...@giga.or.at added the comment:
# python2.6
Python 2.6.6 (r266:84292, Sep 23 2010, 08:13:08)
[GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5
Type help, copyright, credits or license for more information.
format(0.15256118774414062, .2f)
'0.15'
--
R. David Murray rdmur...@bitdance.com added the comment:
After RM approval on irc, committed in r85322, with some additional doc fixes
but no code changes relative to the last patch posted here.
I'm leaving this open because I still want to try to improve the handling of
non-ascii bytes in
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment:
Does this always happen with a particular feed? Could you provide us with a
configuration that reproduces the problem?
Also, as R. David Murray asked, does this happen with 2.7?
--
nosy: +rbp
Antoine Pitrou pit...@free.fr added the comment:
Here is a preliminary patch for http.client. I think it would be good to have
local tests using a custom HTTPS server, too.
--
keywords: +patch
Added file: http://bugs.python.org/file19162/httpcli.patch
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Evan,
all your comments make sense, so I prepared a new patch about it.
I decided to go with the first option and adding a note about the possible
different strings.
Regards,
Sandro
--
versions: +Python 3.2 -Python 2.6
Added
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
I took the freedom to refresh this patch, clarifying the first Val's addition
(as requested by Éric) and reformat the whole system() section to wrap a column
80.
Regards,
Sandro
--
nosy: +sandro.tosi
Added file:
Changes by Sandro Tosi sandro.t...@gmail.com:
--
versions: +Python 3.2 -Python 2.6, Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7642
___
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment:
FWIW, the problem still occurs on the most recent release31-maint checkout (as
of r85323), and does not happen on py3k (3.2a2).
--
nosy: +rbp
___
Python tracker rep...@bugs.python.org
Pascal Chambon chambon.pas...@gmail.com added the comment:
Is that normal to have two methods test_full_traceback_is_full at the same
place, in full_traceback.patch / r.david.murray / 2010-08-04 02:32 ?
format_exception should have the same semantic as print_exception indeed.
--
Changes by Stephen J. Turnbull step...@xemacs.org:
--
nosy: +sjt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9873
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Oct 7, 2010 at 3:37 PM, Raymond Hettinger
rep...@bugs.python.org wrote:
..
I'll update the docs with an equivalent that works and that has a comment
showing when the
StopIteration is raised and caught.
In this
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
kiorky,
Thank you for the updated patch, but since it implements a new feature, it
cannot be applied to 2.x series. I am +1 on removing year 1900 limitation
from datetime.strftime in 3.x, but you need to consider how
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Does anyone want to weigh in on this? I am merging in the issue812369 nosy
list.
I would like to either apply gc-import.patch or close this as superseded by
issue812369.
--
keywords: +needs review -patch
nosy:
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4775
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9866
___
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment:
If I'm understanding this correctly, this fails on 3.1 and not (although,
actually, it does) on py3k/3.2 because:
* pprint._safe_key.__lt__ checks rv = self.obj.__lt__(other.obj) and falls
back to id comparison if rv is
Patrick Strawderman patr...@zope.com added the comment:
Fair enough, but there is a great deal of existing code that already
uses cStringIO.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10045
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I need to correct myself: datetime.today() is not an alternative spelling of
date.today(), but rather a function returning current datetime which subtly
different from datetime.now().
--
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
stage: - needs patch
type: - feature request
versions: -Python 2.7, Python 3.1, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8902
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment:
Armin: this has the problem that, if the object you're trying to compare is a
class, self.obj.__lt__ expects a different number of parameters (i.e., it
expects the instance). See issue 10017 . Testing with works.
--
nosy:
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
here attached a patch for this bug. I hope the format / = / == / != / = /
is clearly understandable as an alternative sequence of different operations.
Regards,
Sandro
--
keywords: +patch
nosy: +sandro.tosi
Added file:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Refuse the temptation to hypergeneralize ;-)
Also refuse the temptation to double the size of the docs (more != better).
In the case of min/max, the pure python versions may add some value in showing
that the first match is
Stephen Hansen me+pyt...@ixokai.io added the comment:
FWIW, this still happens on the latest of /branches/py3k, when LANG does not
match up to the enforced fs encoding-- which for me happened when I ran the
buildslave under launchd.
I was finally able to reproduce it, and after doing so,
Stephen Hansen me+pyt...@ixokai.io added the comment:
This issue seems to be the cause of issue4388 -- and cmdline_encoding-2.patch
fixes it, fwiw.
--
nosy: +ixokai
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9992
R. David Murray rdmur...@bitdance.com added the comment:
No, that would be a bug, thanks.
Also thanks for reminding me about this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
STINNER Victor victor.stin...@haypocalc.com added the comment:
FWIW, this still happens on the latest of /branches/py3k,
when LANG does not match up to the enforced fs encoding
ixokai has the bug on Snow Leopard x86.
--
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
We should probably just make reference to the collections.Set() abstract API
instead of listing out all operations.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
The important point is that we have to use the same encoding to decode
and encode command line arguments.
I don't think I agree with this. It's only important when you run a Python
interpreter using subprocess, but the point of using
Antoine Pitrou pit...@free.fr added the comment:
For the record, this can be now reproduced under Linux by forcing different
locale and filesystem encodings:
$ PYTHONFSENCODING=utf8 LANG=ISO-8859-1 ./python -m test.regrtest test_cmd_line
[1/1] test_cmd_line
test test_cmd_line failed --
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
A simpler change would to replace:
rv = self.obj.__lt__(other.obj)
with
rv = type(self.obj).__lt__(self.obj, other.obj)
--
nosy: +amaury.forgeotdarc
___
Python tracker
Terry J. Reedy tjre...@udel.edu added the comment:
You initial link
I only see one entry, Thread (class in threading), which points to
http://docs.python.org/library/threading.html#threading.Thread
as it should. I do not see a duplicate link nearby.
I have no idea what ', [1]' is supposed to
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello Raymond,
thanks for the review. I've reworked the patch to refer to Collections.Set (but
is there a way to make that reference a link to the description of Collections
ABCs?) and so I've also removed all the examples, leaving only the
Terry J. Reedy tjre...@udel.edu added the comment:
Questions should be asked on python-list or other discussion forums, not nere.
If this were a feature-request, it would need a realistic use-case. If the
implied change were requested, I would think it should be rejected as
conflicting with
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The '^' corresponds to the __xor__ magic method.
snip from _abcoll.py:
def __xor__(self, other):
if not isinstance(other, Set):
if not isinstance(other, Iterable):
return
Terry J. Reedy tjre...@udel.edu added the comment:
This is a bug report in that there is a discrepancy between the grammar in the
doc and the behavior. Laxiness can lead to portability problems if CPython is
lax compared to a normal reading of the spec and another implementation takes
the
Terry J. Reedy tjre...@udel.edu added the comment:
3.1 has the same problem (and the same results as above)
Assuming behavior is not changed, please suggest a specific rewording that you
would be happy with and that is not too verbose.
--
components: +Documentation
nosy: +terry.reedy
Antoine Pitrou pit...@free.fr added the comment:
Cert generation script committed in r85327.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1051
Terry J. Reedy tjre...@udel.edu added the comment:
Please ask for help with installation and usage on the python-list mailing
list, which is also mirrored on the gmane.comp.python.general newsgroup at
news.gmane.org and the comp.lang.python usenet newsgroup. This issue tracker is
for python
Éric Araujo mer...@netwok.org added the comment:
Looks good. (Before committing, one space should be changed to two spaces
after a full stop in the first diff hunk.)
--
assignee: georg.brandl - d...@python
nosy: +d...@python
stage: - patch review
title: [patch] Minor improvement in
Terry J. Reedy tjre...@udel.edu added the comment:
The usual way to set a module variable by name, rather than
setattr(modules[__name__], 'name', 'value')
is
globals()['name'] = 2
name
2
Issues of working with external names, such as from database columns, has been
discussed several times on
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Perhaps replace equivalent with based on or some such. This is a very minor
nit and likely of interest to no one except the OP.
--
priority: normal - low
___
Python tracker
Stephen Hansen me+pyt...@ixokai.io added the comment:
I'm still getting this error on the release27-maint branch on my Snow Leopard
slave, and the issue8445.diff fixes it: will this fix be backported?
I tested issue8445.diff and it applies cleanly, and fixes the issue.
--
nosy:
Stephen Hansen me+pyt...@ixokai.io added the comment:
BTW, release31-maint appears to have the same issue, its fouling up that build
on my slave too. I tried applying the ttk3k.patch but it didn't apply cleanly,
and I'm completely ignorant of TK so can't really figure out what's different
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
You initial link
I only see one entry, Thread (class in threading), which points to
http://docs.python.org/library/threading.html#threading.Thread
as it should. I do not see a duplicate link nearby.
It used to be there. Please
R. David Murray rdmur...@bitdance.com added the comment:
I like 'allframes', so I changed to that. The updated patch also adds the
allframes parameter to format_exception.
In going over the tests I realized that I'm not sure the output for the case of
chain=True is correct. Opinions? If it
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
issue2636-20101009.zip is a new version of the regex module.
It appears from a posting in python-list and a closer look at the docs that
string positions in the 're' module are limited to 32 bits, even on 64-bit
builds. I think
Gregory P. Smith g...@krypto.org added the comment:
looks harmless to me. though i think issue812369 looks okay as well at first
glance.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1545463
Gregory P. Smith g...@krypto.org added the comment:
0001-update-GC-shutdown-patch.patch looks sane to me at first glance. any
other opinions?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue812369
88 matches
Mail list logo