Brett Cannon br...@python.org added the comment:
I'm still leary of supporting any form of DST. A proper DST implementation
would need to have some conditional code to account for the datetime object
passed into dst, and yet the version you have prototyped doesn't handle it. So
a proper
New submission from jurjen Bos j.bos-inter...@xs4all.nl:
If you use an authentication manager from urllib2, it will submit user code and
password if authentication fails.
However, if the password is wrong, the authentication manager will happily try
again, again with the same password.
A
Senthil Kumaran orsent...@gmail.com added the comment:
There was a fix made in issue8797, which adopts a retry approach before failing
for wrong password. This is present for Basic Auth and Digest Auth, so the
problem wont be faced. Jurjen, do you have any comments before I mark this as
jurjen Bos j.bos-inter...@xs4all.nl added the comment:
Yep you're right. In that thread they are talking about the exact same problem
as I was having. Obviously, I didn't find that one when I was looking for the
problem in the database before I posted this.
I do have my doubts about the 5
Henri Salo he...@nerv.fi added the comment:
Please note that there is other similar examples as well. Even on the same page.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
Senthil Kumaran orsent...@gmail.com added the comment:
Okay, so there is another negative vote 5 retries in the basic auth.
But yeah, this bug can be marked duplicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8894
Senthil Kumaran orsent...@gmail.com added the comment:
Duplicate of issue8797
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8894
___
jurjen Bos j.bos-inter...@xs4all.nl added the comment:
I would like to point out that this is not going to work if someone visits more
than 5 sites with the same authentication manager. This would have to be
documentated, at least.
We could fix this by putting the retry counter in the
Henri Salo he...@nerv.fi added the comment:
We should review all of these:
install/index.rst: python setup.py build --build-base=/tmp/pybuild/foo-1.0
install/index.rst: python setup.py install --install-base=/tmp
install/index.rst:would install pure modules to :file:`{/tmp/python/lib}` in
New submission from Jean-Michel Fauth wxjmfa...@gmail.com:
I was confused about the newline argument/attribute
in the misc. classes of the io module until I realize
there is a spelling issue between the docs and the
real implementation. (Py 2.6.5, Py2.7b2). Py 3.x not
tested.
sys.version
2.7b2
Marc-Andre Lemburg m...@egenix.com added the comment:
R. David Murray wrote:
R. David Murray rdmur...@bitdance.com added the comment:
For various reasons the email module has a table of character sets. What
might be most effective would be for the email module to look a character set
Antoine Pitrou pit...@free.fr added the comment:
You should write your patch against Python 3.x (py3k).
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
anatoly techtonik techto...@gmail.com added the comment:
On Fri, Jun 4, 2010 at 1:11 AM, Éric Araujo rep...@bugs.python.org wrote:
Sorry for writing when tired. Clearer first sentence: If it does not change
the code to match the docs or to fix a regression from an older version, it’s
a
Tarek Ziadé ziade.ta...@gmail.com added the comment:
community members should be able to vote on patches
*or* the core dev responsible for the development of the incriminated package,
which is me for distutils. This is an improvement, not a feature, and this
won't make it to 2.7.
While
Tarek Ziadé ziade.ta...@gmail.com added the comment:
by the way, I am not sure what you call a binary sirting of zip files (since
two equivalent zip files can have different metadata) but if you mean comparing
a unzip -l output, you could use zipinfo instead, to sort the output.
Overall, you
Éric Araujo mer...@netwok.org added the comment:
“This is an improvement, not a feature”
I used the two terms with the same meaning :)
Do we add this to distutils in 3.2 and distutils2 too?
--
___
Python tracker rep...@bugs.python.org
Forest Bond for...@alittletooquiet.net added the comment:
I haven't yet touched Python 3.0, and may not have time to dig in at the
moment. It wouldn't be suitable to provide a patch against 2.7?
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I haven't yet touched Python 3.0, and may not have time to dig in at
the moment. It wouldn't be suitable to provide a patch against 2.7?
2.7 is almost in release candidate phase, which means it's much too late
for new features now.
--
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. Could you check the docs for 3.1 and 3.x trunk (py3k)
too?
--
assignee: - d...@python
components: +Documentation -IO
nosy: +d...@python, merwok
stage: - needs patch
title: newline arg/attribute in the module io -
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +tim_one
stage: - patch review
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8893
___
Antoine Pitrou pit...@free.fr added the comment:
The patch looks harmless to me, although I'm not sure we're guaranteeing any of
the behaviour you are expecting.
Éric, the buffering layer in 3.x is not libc-based, and therefore shouldn't
exhibit this particular issue.
--
R. David Murray rdmur...@bitdance.com added the comment:
This is as documented:
http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines
The keyword argument is named 'newline', the attribute is named 'newlines'.
The attribute does not record what was passed to the newline
Forest Bond for...@alittletooquiet.net added the comment:
Okay, I'll submit against py3k.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
anatoly techtonik techto...@gmail.com added the comment:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
community members should be able to vote on patches
*or* the core dev responsible for the development of the incriminated
package, which is me for distutils.
This is said in the
Forest Bond for...@alittletooquiet.net added the comment:
Should the module be called rfc2388 or should it go into email.mime as
formdata? It seems odd to put something HTML/HTTP related into email.mime, but
maybe that would be fine. In any case, httplib docs should probably point to
this
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3243
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
I think it belongs in the http package.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
R. David Murray rdmur...@bitdance.com added the comment:
+1 for putting retry control on the password manager. Probably the default
should be set to 1. If I understand correctly, it is the password manager that
would be prompting the user for a new password, if someone chose to implement
Forest Bond for...@alittletooquiet.net added the comment:
As http.formdata?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Christophe Kalt pyt...@ote.taranis.org added the comment:
This is on Solaris 10, but I also see it on Solaris 8 w/ Python 2.4.
Just tried Python 3.6.1, and it doesn't seem to have that problem.
Python 2.7b2 has the problem.
--
___
Python tracker
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I use well-defined development toolchain for working with binary files
that can detect insignificant change in some kind of binary data like
timestamps in .zip archive, but comparing moving blocks is a disaster.
Please explain us how you
Christophe Kalt pyt...@ote.taranis.org added the comment:
Antoine:
I'm not sure what the expected behaviour should be either, this is certainly
for others more familiar with Python than I to decide. Although I am certainly
annoyed that the current behaviour differs between Solaris and Linux.
Éric Araujo mer...@netwok.org added the comment:
Seems good to me, as long as the module docstring clearly stats whether it’s
useful for the client side, the server side or both.
BTW, isn’t there overlap with cgi.FieldStorage?
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
It would be nice if Python process could allow me to maintain my own
patched version of Python stdlibs so that I can use it instead of main
stdlib and quickly switch between them.
It’s free software, you have the right to copy, edit and release
Éric Araujo mer...@netwok.org added the comment:
It would be nice if Python process could allow me to maintain my own
patched version of Python stdlibs so that I can use it instead of main
stdlib and quickly switch between them.
It’s free software, you have the right to copy, edit and release
Changes by Éric Araujo mer...@netwok.org:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8891
___
___
Python-bugs-list mailing list
Unsubscribe:
Forest Bond for...@alittletooquiet.net added the comment:
Hi,
Patch attached. Let me know what needs fixing.
I had to fix a bug in email.encoders for my tests to pass. I have not run the
full test suite at this point (need to build py3k to do that, maybe I'll have
time later today, but if
Forest Bond for...@alittletooquiet.net added the comment:
Éric,
Sorry, I just read your message.
I'll post a new patch with a module docstring.
I believe cgi.FieldStorage is only useful for parsing (i.e. on the server
side). MIMEMultipartFormData is for generating multipart/form-data
Senthil Kumaran orsent...@gmail.com added the comment:
Agree to single retry for Basic Auth. We are just dealing with
BasicAuthentication here, so that's why we did not have in the
HTTPPasswdManager. But, let me consider that viewpoint too.
--
status: closed - open
Forest Bond for...@alittletooquiet.net added the comment:
Here's a new patch.
--
Added file: http://bugs.python.org/file17547/http_formdata.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
Éric Araujo mer...@netwok.org added the comment:
Would you please open another issue for the email fix? Bonus points if you test
it on trunk too, since release candidate happens in some days :)
Do you people think we could unify client and server-side code in the new
module (with an alias
Forest Bond for...@alittletooquiet.net added the comment:
Hm, there is one issue. The example in the docstring wouldn't work.
You have to get the headers *after* the body, because the boundary isn't
generated until the body has been. So this would work:
body = msg.get_body()
headers =
anatoly techtonik techto...@gmail.com added the comment:
I use well-defined development toolchain for working with binary files
that can detect insignificant change in some kind of binary data like
timestamps in .zip archive, but comparing moving blocks is a disaster.
Please explain us
Éric Araujo mer...@netwok.org added the comment:
I think Takek asked more for a description of the diff algo (e.g.
“compare the CRC”, “compare all files”, etc.), not the UI of one tool.
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
On Fri, Jun 4, 2010 at 3:10 PM, Éric Araujo rep...@bugs.python.org wrote:
It would be nice if Python process could allow me to maintain my own
patched version of Python stdlibs so that I can use it instead of main
stdlib and quickly
Forest Bond for...@alittletooquiet.net added the comment:
New patch:
* Renames class to FormData.
* Replaces method get_body with get_request_data to simplify semantics.
* Drops changes to email.encoders. I'll create a new ticket to deal with that
bug. Note that tests here fail without that
Jean-Michel Fauth wxjmfa...@gmail.com added the comment:
2010/6/4 R. David Murray rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
This is as documented:
http://docs.python.org/dev/3.0/library/io.html#io.TextIOBase.newlines
The keyword argument is named
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Other logging cases contained /tmp/ has now been removed, the missing
parenthesis added and the result checked in to trunk (r81684).
I'll keep the issue open for the cases which remain in the other documentation.
but remove myself from
Éric Araujo mer...@netwok.org added the comment:
Thanks for the listing Henri. Not all of these examples have to be changed;
I’ll review them in some days if you want.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file17549/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8895
___
Éric Araujo mer...@netwok.org added the comment:
Could you think of a way to improve the docs on that point?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8895
___
New submission from Forest Bond for...@alittletooquiet.net:
Ran into this while tackling issue3244. Encoded payload members should not be
bytes. In the case of base64, we should have an ascii string.
--
components: Library (Lib)
files: python-email-encoders-base64-str.patch
keywords:
Forest Bond for...@alittletooquiet.net added the comment:
See issue8896 for email.encoders fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
Éric Araujo mer...@netwok.org added the comment:
Related: bytes vs. str for base64 encoding in email, #8896
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +l0nwlf, r.david.murray
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8896
___
Forest Bond for...@alittletooquiet.net added the comment:
I don't think Python trunk has the encoders issue, as that is related to the
base64 moving to the bytes type.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Jun 3, 2010 at 3:19 PM, Mark Dickinson rep...@bugs.python.org wrote:
..
Aren't there valid timezones that are offset by more than 12 hours from UTC?
Indeed, Christmas Island uses UTC+14.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Merging in issue7584 nosy list.
--
nosy: +durban, l0nwlf, r.david.murray, techtonik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5094
Changes by Dirkjan Ochtman dirk...@ochtman.nl:
--
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6312
___
___
Henri Salo he...@nerv.fi added the comment:
Please review the changes for the quality of the documentation. There probably
is still more places to change. References can be made to:
http://docs.python.org/library/tempfile.html#tempfile.mkstemp
--
Changes by Henri Salo he...@nerv.fi:
--
title: Module logging has dangerous examples - Modules have dangerous examples
in documentation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
R. David Murray rdmur...@bitdance.com added the comment:
This is a duplicate of issue 4768. Could you attach your patch to that issue,
please?
--
assignee: - r.david.murray
superseder: - email.generator.Generator object bytes/str crash - b64encode()
bug?
Forest Bond for...@alittletooquiet.net added the comment:
Attaching patch from reported duplicate issue8896.
--
nosy: +forest_atq
Added file:
http://bugs.python.org/file17551/python-email-encoders-base64-str.patch
___
Python tracker
Forest Bond for...@alittletooquiet.net added the comment:
Duplicate. See issue4768.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8896
___
Forest Bond for...@alittletooquiet.net added the comment:
Note that my patch is roughly the same as the original posted by haypo.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4768
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It seems to me that we should not try to produce an RFC 3339 compliant
date string from a naive datetime. It will be practical to accept
that restriction once issue 5094 is resolved.
Does this mean that t.rfcformat()
Tal Einat talei...@users.sourceforge.net added the comment:
This goes down into _json.scanstring. Looking at the C code for
scanstring_unicode, the strict parameter allow control characters inside
strings: if strict is zero then literal control characters are allowed. From
the code itself
Tal Einat talei...@users.sourceforge.net added the comment:
This goes down into _json.scanstring. Looking at the C code for
scanstring_unicode, strict=False allows control characters inside strings: if
strict is zero then literal control characters are allowed. From the code
itself (current
R. David Murray rdmur...@bitdance.com added the comment:
I see I didn't think it through far enough.
Given this, it seems that the Atom standard is saying, if you don't know your
actual UTC offset, you can't generate a valid ATOM timestamp. Which sorta
makes sense, though you'd think they'd
R. David Murray rdmur...@bitdance.com added the comment:
Victor: you could always name it best_effort_at_atomic_rename :)
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8828
R. David Murray rdmur...@bitdance.com added the comment:
Mark, any objection to my putting this patch in now, and then we'll fix the
aliases implementation in 3.2?
--
versions: +Python 3.1, Python 3.2 -Python 2.5
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I'm still leary of supporting any form of DST. A proper DST
implementation would need to have some conditional code to
account for the datetime object passed into dst, and yet the
version you have prototyped doesn't
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +tim_one
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5094
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Yes, but yours was better formatted, so I used it :) Thanks for the patch.
Applied in r81685 to py3k, and r81686.
--
resolution: accepted - fixed
stage: patch review - committed/rejected
status: open - closed
Ezio Melotti ezio.melo...@gmail.com added the comment:
I added a test for the 'ignore' error handler. I will commit the patch before
the RC unless someone has something against it.
To summarize, the patch updates PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629,
so:
1) Invalid sequences are now
R. David Murray rdmur...@bitdance.com added the comment:
@garazi111: if you have an example where quopri fails, please open a new issue
for it. I suspect you are right that there is a problem there.
--
___
Python tracker rep...@bugs.python.org
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in r81687, r81688, r81689 and r81690.
Yes, I see that before the original change was made any chuncked encoding went
through _read_chunked which close the resp before returning. So, here for HEAD,
the resp is closed thus fixing the
Dirkjan Ochtman dirk...@ochtman.nl added the comment:
Might be useful to have a test for this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6312
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Fixed in r81692, r81694.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8864
___
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch is now out of date; merge.py got merged into msi.py.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5467
Senthil Kumaran orsent...@gmail.com added the comment:
I saw the earlier tests was closing it explicitly. Removed that and added a
test which verifies the closed resp obj. Thanks.
--
___
Python tracker rep...@bugs.python.org
New submission from Thomas Jollans tho...@jollans.com:
The sunau module, essentially, doesn't work. This looks like a problem with
the bytes/unicode transition of str in Python 3.x vs Python 2:
Python 3.1.2 (r312:79147, Apr 15 2010, 15:35:48)
[GCC 4.4.3] on linux2
Type help, copyright,
Marc-Andre Lemburg m...@egenix.com added the comment:
R. David Murray wrote:
R. David Murray rdmur...@bitdance.com added the comment:
Mark, any objection to my putting this patch in now, and then we'll fix the
aliases implementation in 3.2?
No. Please open a new issue targeting Python
Jean-Michel Fauth wxjmfa...@gmail.com added the comment:
2010/6/4 Ãric Araujo rep...@bugs.python.org
Ãric Araujo mer...@netwok.org added the comment:
Could you think of a way to improve the docs on that point?
--
Quick and dirty answer.
I have ~10 years experience with Python
Martin v. Löwis mar...@v.loewis.de added the comment:
This is now fixed in r81697 and r81698.
--
resolution: - fixed
status: open - closed
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5464
R. David Murray rdmur...@bitdance.com added the comment:
This is off topic for this issue, but what you just reported makes no sense to
me. TextIOWrapper calls the encoder corresponding to the specified encoding in
its write method.
That said, it is true that the IO docs are currently a
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Issue #1667546 is more ambitious than this. I propose a very simple patch
which makes tm_zone and tm_gmtoff available on systems with
HAVE_STRUCT_TM_TM_ZONE defined (Linux and BSD variants). The additional fields
are
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Added file: http://bugs.python.org/file17555/issue1647654a.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1647654
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Following the python-dev consensus, I have now added a warning to the 2.7
installer that this will be the last release supporting Windows 2000.
I still think that we should not bump the SDK version above 500 for 2.7.
Changing the SDK level
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
The time.struct_time class is missing class and field docstrings:
time.struct_time.__doc__ is None
True
time.struct_time.tm_year.__doc__ is None
True
This is significant because it is not obvious that field values
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the patch. Committed as r81701, r81702, r81703 and r81704.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6470
R. David Murray rdmur...@bitdance.com added the comment:
Patch committed to trunk in r81705. Leaving issue open pending porting to the
other branches, but I've also opened issue 8898 to further change things so
that codecs becomes the sole authority for aliases in 3.2.
--
resolution:
Brett Cannon br...@python.org added the comment:
For the allowable range, follow the datetime docs as someone might be relying
on that specification already.
As for the ongoing DST debate, it seems we either need to say that since we
cannot properly support all possible datetimes properly we
Shashwat Anand anand.shash...@gmail.com added the comment:
from email.charset.ALIASES most of them failed to be recognize by codecs module.
for i in email.charset.ALIASES.keys():
... try:
... codecs.lookup(i)
... except LookupError:
... print(Not recognized by codecs :
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The timedelta(seconds=0.6112295) example is handled correctly because 0.6112295
sec is not half way between two nearest microseconds:
abs(0.6112295 - 0.6112290) == abs(0.6112295 - 0.6112300)
False
The fact that it
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The half-way check should be done with decimal arihmetics, but the result is
the same:
x = Decimal(0.6112295)
abs(x - Decimal('0.6112290')) == abs(x - Decimal('0.6112300'))
False
--
Georg Brandl ge...@python.org added the comment:
Patch review:
* Quite a few lines are pretty long. Please stay below 80 chars/line.
* There are trailing spaces in two member docs.
* The range notation is inconsistent. [first, last] or [first, last+1) is what
we generally use.
* if cannot be
Mark Dickinson dicki...@gmail.com added the comment:
The timedelta(seconds=0.6112295) example is handled correctly
No, it's not! It's being rounded *up* where it should be being rounded *down*.
because 0.6112295 sec is not half way between two nearest microseconds
Exactly. The actual
Marc-Andre Lemburg m...@egenix.com added the comment:
Shashwat Anand wrote:
Shashwat Anand anand.shash...@gmail.com added the comment:
from email.charset.ALIASES most of them failed to be recognize by codecs
module.
for i in email.charset.ALIASES.keys():
... try:
...
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Please see fixes in issue8899.diff.
* Quite a few lines are pretty long. Please stay below 80 chars/line.
Fixed.
* There are trailing spaces in two member docs.
Fixed.
* The range notation is inconsistent. [first,
1 - 100 of 127 matches
Mail list logo