Bob Chen added the comment:
I personally suggest httplib convert the url and other elements to be string,
at the begging of the class init.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22231
Hristo Venev added the comment:
My questions are:
When will SSLSocket.recv() raise SSLWantWriteError?
When will SSLSocket.send() raise SSLWantReadError?
According to my very basic knowledge abou the protocol, this will never happen.
--
___
Python
Serhiy Storchaka added the comment:
This is the same issue as issue18960. Here is backported patch with additional
test.
--
keywords: +patch
stage: needs patch - patch review
Added file:
http://bugs.python.org/file36442/source_encoding_second_line-2.7.patch
Samuel Charron added the comment:
This is a known issue, and will be resolved by improving documentation, I'm
closing this bug
Thanks !
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
New submission from Nick Coghlan:
Creating an environment with pyvenv or python -m venv in 3.4+ can be a bit
disconcerting, as it may take some time (especially on older machines).
It would be good if the command line utility displayed some kind of marking
while this operation was in
New submission from Nick Coghlan:
PEP 432 describes a plan to redesign how the interpreter startup sequence is
implemented.
This is a placeholder issue to be used to help track other problems which can't
easily be fixed without those changes.
--
components: Interpreter Core
messages:
Nick Coghlan added the comment:
Some more experiments, comparing an installed vs uninstalled Python. One
failure mode is that setting PYTHONHOME just plain breaks running from a source
checkout (setting PYTHONHOME to the checkout directory also fails):
$ ./python -m venv --without-pip
Vinay Sajip added the comment:
Should this be a change to ensurepip, then, or a change in pyvenv? My original
pyvenvex.py script at
https://gist.github.com/vsajip/4673395
shows progress information as the subprocess runs. However, it somewhat depends
on the verbosity of the underlying child
Nick Coghlan added the comment:
I'm not actually sure - it only occurred to me while filing the issue that
ensurepip was the likely culprit.
Donald, what do you think? Is virtualenv chattier here?
--
___
Python tracker rep...@bugs.python.org
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22257
___
___
Python-bugs-list mailing
Graham Dumpleton added the comment:
It is actually very easy for me to work around and I released a new mod_wsgi
version today which works.
When I get a Python home option, instead of calling Py_SetPythonHome() with it,
I append '/bin/python' to it and call Py_SetProgramName() instead.
Antoine Pitrou added the comment:
Le 23/08/2014 03:02, Hristo Venev a écrit :
When will SSLSocket.recv() raise SSLWantWriteError?
When will SSLSocket.send() raise SSLWantReadError?
According to my very basic knowledge abou the protocol, this will never
happen.
According to the OpenSSL
Keith Hughitt added the comment:
Although it would be nice if the behavior were normalized between positional
and optional args, it seems like doc patch would be the most straight-forward
at this point. The down-side is that I suspect many people will assume the
behavior for optional args,
New submission from Igor Pashev:
I've found on illumos-based OS that under some conditions python is unable to
open any files because set_inheritable() fails. This happens even when building
python when it cannot find (open) _sysconfigdata.py.
The problem is that set_inheritable() first
Serhiy Storchaka added the comment:
Here is my plan. First, we should resolve issue22236. Otherwise some tests will
be run with default root created with old wantobjects value. Then we should
introduce new test resource name as in Lilo's first patch (but wantobjects is
not correct name,
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +email
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22233
___
___
R. David Murray added the comment:
OK, we'll use issue 22232 to resolve the issue of email using splitlines.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22258
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
May be add a parameter to str.splitlines() which will switch behavior to split
on '\n', '\r' and '\r\n' only?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
Jon Poler added the comment:
Thanks, Brett!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22191
___
___
Python-bugs-list mailing list
Ben Roberts added the comment:
Thanks Antoine. Cheers :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
___
___
Python-bugs-list mailing
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22233
___
___
Serhiy Storchaka added the comment:
LGTM. Please commit.
--
assignee: - ronaldoussoren
nosy: +serhiy.storchaka
stage: patch review - commit review
versions: +Python 2.7, Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22255
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
I'm for get rid of from import without deprecation. Definitely this is not
part of API.
--
nosy: +serhiy.storchaka
stage: commit review - needs patch
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: - berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21391
___
___
Terry J. Reedy added the comment:
The grammar presented in the doc is intentionally slightly simplified from the
one actually used by the LL(1) parser. The parser has to know what type of
statement it is parsing after the first token or so, so it needs a separate
production (concept) for
Changes by Brian Kearns bdkea...@gmail.com:
--
files: fdopen-directory.patch
keywords: patch
nosy: bdkearns
priority: normal
severity: normal
status: open
title: fdopen of directory causes segmentation fault
type: crash
versions: Python 2.7
Added file:
Jayanth Koushik added the comment:
Oh ok. That makes sense.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22243
___
___
Python-bugs-list
Terry J. Reedy added the comment:
Unless there is already another issue for improving the doc, this should at
least be left open as a doc issue.
But I had the same thought as Serhiy, that we should at least optionally make
the current doc correct. Two possibilities:
newlines=False If true,
Jason R. Coombs added the comment:
I have no idea why that would be. I used the same syntax for the Action class
as ArgumentParser. From the latest tip:
.. class:: ArgumentParser(prog=None, usage=None, description=None, \
epilog=None, parents=[], \
paul j3 added the comment:
Maybe the problem is with the latest documentation build, not your patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13540
___
Serhiy Storchaka added the comment:
I don't understand why you say about latin-1. splitlines() supports linebreaks
outside latin-1 range.
[hex(i) for i in range(sys.maxunicode + 1) if len(('%cx' % i).splitlines())
== 2]
['0xa', '0xb', '0xc', '0xd', '0x1c', '0x1d', '0x1e', '0x85', '0x2028',
Zachary Ware added the comment:
I agree that #22236 should be resolved first. As for resource guarding the
'wantobjects = 0' tests, do we really need to? It takes a bit under 20 seconds
to run all of the tkinter tests on this machine, and I don't think 40 seconds
is an unduly long runtime
New submission from Zachary Ware:
The attached patch rearranges the tkinter tests and strips out all of their
custom test finding/loading code in favor of test discovery. The high points:
- Lib/tkinter/test/ - Lib/test/test_tkinter/,
Lib/tkinter/test/test_tkinter/ -
Zachary Ware added the comment:
This will need some reworking after #22236, which looks like it might make it
possible for 'setUpGUIModule' to go away by folding its contents into
AbstractTkTest.setUpClass.
--
dependencies: +Do not use _default_root in Tkinter tests
Stefan Krah added the comment:
That's what I meant. The issue here is that Python's libmpdec is not exposed
to third-party code at all. Also there should probably be a (thin?) API to get
at the underlying mpdec object from a cdecimal PyObject (apologies for the
poor
wording, I'm actually
Stefan Krah added the comment:
Thanks. I agree about 2.7 -- including 3.4 would perhaps make
external libmpdec management easier for Debian and Arch.
I'm not suggesting that we should always consider the distributors,
but this particular issue seems so minor.
--
New submission from Berker Peksag:
Thanks for the patch. Please use assertEqual instead of assert.
--
nosy: +berker.peksag
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22259
STINNER Victor added the comment:
The patch doesn't look correct. Ioctl() reduces the overhead in term of
syscalls (1 vs 2).
What is the errno value on failure? We should remember that ioctl() doesn't
work and fallback to fcntl(). It would be more portable. Similar check is
already done for
Terry J. Reedy added the comment:
I was not aware of the remainder of the undocumented behavior. Thanks for the
code that makes it clear .
linebreak (or linebreaks)=True means that splitting occurs on some
(approximation?*) of unicode mandatory linebreaks, as opposed to just the ascii
Roundup Robot added the comment:
New changeset 3ad59ed0f4f0 by Terry Jan Reedy in branch '3.4':
Issue #22232 (partial fix): update Universal newlines Glossary entry.
http://hg.python.org/cpython/rev/3ad59ed0f4f0
--
nosy: +python-dev
___
Python
Antoine Pitrou added the comment:
Le 23/08/2014 16:42, Stefan Krah a écrit :
That's what I meant. The issue here is that Python's libmpdec is not exposed
to third-party code at all. Also there should probably be a (thin?) API to
get
at the underlying mpdec object from a cdecimal PyObject
Terry J. Reedy added the comment:
Glossary fixed. I changed the components to Documention as you will handle
email elsewhere.
For library references: The key sentence currently used in all entries is This
method uses the universal newlines approach to splitting lines., where
*universal
Roundup Robot added the comment:
New changeset 5496bf8972b6 by Terry Jan Reedy in branch '2.7':
Issue #22243: fix except grammar in reference.
http://hg.python.org/cpython/rev/5496bf8972b6
New changeset a249f1f879be by Terry Jan Reedy in branch '3.4':
Issue #22243: fix except grammar in
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
stage: - resolved
status: open - closed
type: enhancement - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22243
Nick Coghlan added the comment:
Excellent! If I recall correctly, that works because we resolve the symlink
when looking for the standard library, but not when looking for venv
configuration file.
I also suspect this is all thoroughly broken on Windows - there are so many
configuration
Nick Coghlan added the comment:
I'll also be using this issue to track some of the ground work I plan to lay
this time. I found in my last attempt that the interpreter internals needed
some initial refactoring to take better advantage of C level state
encapsulation in different modules.
Nick Coghlan added the comment:
Just noting that issue 18093 was also part of that groundwork.
My previous attempt at a draft PEP 432 patch:
https://bitbucket.org/ncoghlan/cpython_sandbox/src/pep432_modular_bootstrap/?at=pep432_modular_bootstrap
That initial attempt ended up being abandoned
Graham Dumpleton added the comment:
I only make the change to Py_SetProgramName() on UNIX and not Windows. This is
because back in mod_wsgi 1.0 I did actually used to use Py_SetProgramName() but
it didn't seem to work in sane way on Windows so changed to Py_SetPythonHome()
which worked on
New submission from sbspider:
I was building the cpython code a while back, and noticed that the build system
was using msbuild, when
PCBuild\built.bad -e -d
was ran. Upon further investigation, it seems that the /m compiler flag is not
included. This flag would allow for concurrent builds,
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Ned Deily added the comment:
The attached patch should prevent the AttributeError exception when not using a
default Canvas. I now think the overall approach introduced in Issue11571 is
not the best. I plan to commit this fix for now but encourage more robust
solutions in the long term.
Vinod Kurup added the comment:
Patch attached to make the change that ncoghlan suggested.
--
keywords: +patch
nosy: +Vinod.Kurup
Added file: http://bugs.python.org/file36448/mywork.patch
___
Python tracker rep...@bugs.python.org
Ned Deily added the comment:
As identified in Issue22168, the changes introduced here do not work when the
user supplies a Canvas rather than relying on the turtle default. There is a
patch there that should solve that issue. But I now think that the original
approach was not an ideal
Roundup Robot added the comment:
New changeset 5a157e3b3c47 by Ned Deily in branch '2.7':
Issue #21166: fix typo in comment
http://hg.python.org/cpython/rev/5a157e3b3c47
New changeset 9b1bd9d42cc7 by Ned Deily in branch '3.4':
Issue #21166: fix typo in comment
paul j3 added the comment:
You need line continuation characters '\'
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None, \
type=None, choices=None, required=False, help=None, \
metavar=None)
--
Zachary Ware added the comment:
No need, you can supply it yourself :). Try 'PCbuild\build.bat -d -e /m'.
That won't work on 3.4, but will on 3.5+; I specifically made sure extra
arguments were passed along to msbuild when I rewrote PCbuild\build.bat a while
back just so that this would
Zachary Ware added the comment:
On the other hand, I did fail to document that little gem. It should be added
to the section about build.bat in PCbuild/readme.txt.
--
assignee: - docs@python
components: +Documentation -Build
nosy: +docs@python
resolution: not a bug -
stage: resolved
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: +Windows
title: Concurrent Build when using MsBuild - Document how to use Concurrent
Build when using MsBuild
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
sbspider added the comment:
Would you mind letting me do the honors? First time contributing and all that :P
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Zachary Ware added the comment:
Of course, I'll be happy to review and commit for you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
New submission from sbspider:
When trying to compile cpython, it puts dependencies like tkinter in the
directory above the hg directory. Since I have a highly defined directory
structure, this can become quite annoying. Therefore, I would like to propose
having the build system download the
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
___
___
Python-bugs-list
Arfrever Frehtes Taifersar Arahesis added the comment:
There are other checks:
Lib/distutils/command/build_ext.py:
# this keeps compatibility from 2.3 to 2.5
if sys.version 2.6:
USER_BASE = None
HAS_USER_SITE = False
else:
from site import USER_BASE
HAS_USER_SITE = True
Changes by sbspider rajsho...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36449/readme.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22200
___
Zachary Ware added the comment:
I tend to agree (see #17896, this issue is a duplicate), but I've not had
enough agreement to be comfortable going ahead with that move.
I've not tested it, but you could try moving the already-downloaded sources
into the folder you want (say, externals) and
Roundup Robot added the comment:
New changeset 4a6b71d8575e by Terry Jan Reedy in branch '3.4':
Issue #13540: add missing markup.
http://hg.python.org/cpython/rev/4a6b71d8575e
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
I don't understand why, but the change worked, and is consistent with similar
constructs in the same file. Pushed.
Jason -- security-fix-only versions do not get doc patches. They are released
as source only.
--
sbspider added the comment:
I uploaded the file, just checking if it hasn't come through.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Nick Coghlan added the comment:
Based on the latest round of bytes handling discussions on python-dev, I came
up with this updated proposal:
# Constant in the string module (akin to string.ascii_letters et al)
escaped_surrogates = bytes(range(128, 256)).decode('ascii',
Changes by Dan O'Reilly oreil...@gmail.com:
--
nosy: +dan.oreilly
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6721
___
___
Python-bugs-list
Zachary Ware added the comment:
Patch came through fine; you've done perfectly process-wise. I'll
post a review of the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Nick Coghlan added the comment:
Note: I dropped the has_escaped_bytes idea, as s != string.clean(s) is
functionally equivalent, albeit a bit more expensive if you don't actually want
the cleaned string)
--
___
Python tracker rep...@bugs.python.org
paul j3 added the comment:
While we are talking the Action class, the documentation isn't clear that the
'add_argument' method returns an Action object, specifically one the
subclasses. More than once, when answering Stackoverflow questions I've
recommended assigning this object to a
Changes by Brian Kearns bdkea...@gmail.com:
Removed file: http://bugs.python.org/file36444/fdopen-directory.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22259
___
Changes by Brian Kearns bdkea...@gmail.com:
Added file: http://bugs.python.org/file36450/fdopen-directory.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22259
___
78 matches
Mail list logo