Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16901
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9740
___
___
Python-bugs-list
Jian Wen added the comment:
The following code shows how to use pts.
#!/usr/bin/env python
import os
import pty
import shlex
import time
_args = /usr/bin/ssh example.com
args = shlex.split(_args)
pid, child_fd = pty.fork()
if pid == 0:
# Child
os.execv(/usr/bin/ssh, args)
else:
New submission from Sowmya:
test_subprocess_jy fails with below error:
test test_subprocess_jy failed -- Traceback (most recent call last):
File
\'L:\\apps\\ascii\\jython\\70files\\current\\win\\Lib\\test\\test_subprocess_jy.py\',
line 13, in testDefaultEnvIsInherited
p1 =
New submission from icedream91:
I used Python 3.3.2 to try this problem: http://projecteuler.net/problem=23 ,
and I got a correct answer.
When I wanted to check how long it took, I found something strange:
When I ran 23.py directly, it showed that it took about 13s. But if I use
timeit
Changes by icedream91 icedrea...@gmail.com:
Removed file: http://bugs.python.org/file30633/23.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18252
___
icedream91 added the comment:
I used Python 3.3.2 to try this problem: http://projecteuler.net/problem=23 ,
and I got a correct answer.
When I wanted to check how long it took, I found something strange:
When I ran 23.py directly, it showed that it took about 13s. But if I use
timeit module,
New submission from Friedrich Spee von Langenfeld:
The modules in the standard library aren´t PEP( compliant. I´ve written a
script to change this. It uses autopep8.py (must be in the path) and is written
for Windows users.
--
components: Library (Lib)
files: autopepframework.py
Richard Oudkerk added the comment:
I think if you use timeit then the code is wrapped inside a function before it
is compiled. This means that your code can mostly use faster local lookups
rather than global lookups.
--
nosy: +sbt
___
Python
New submission from Archard Lias:
Accessing (just iterating or accessing in any way) the dict_proxy to the
attribute dictionary in the `MessageMeta` metaclass, results in a change of
type in any metaclass inheriting class definitions.
Reproducible in CPython versions (tested so far):
3.2.2
Jonas Borgström added the comment:
Patch updated to include tests and versionchanged tags
--
Added file: http://bugs.python.org/file30637/hmac2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18240
Christian Heimes added the comment:
Thanks for your update.
As far as I can tell you haven't signed our contributor agreement yet. Can you
please do so?
http://www.python.org/psf/contrib/
http://www.python.org/psf/contrib/contrib-form/
--
stage: needs patch - patch review
icedream91 added the comment:
I did some tests, Richard Oudkerk (sbt) is right. Thanks a lot.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18252
___
Jonas Borgström added the comment:
Of course. I've now signed and filed the agreement.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18240
___
Christian Heimes added the comment:
It may take a day or two until your signature makes it through red tape. I'll
get back to you. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18240
R. David Murray added the comment:
It looks like this bug belongs on the jython tracker at bugs.jython.org. (By
the way, it isn't clear if the problem is in the jython code or the test; the
stdlib Popen works as expected on Windows.)
--
nosy: +r.david.murray
resolution: - invalid
R. David Murray added the comment:
Sorry, but this is not the kind of change that we make to the codebase. It has
too many unintended consequences. (Large portions of the stdlib pre-date PEP8,
and thus are not PEP8 compliant.) We fix some thing when we modify the code
involved, but other
R. David Murray added the comment:
By the way, this kind of question is more suited to the python-list mailing
list (where you will in the general case get a faster answer anyway :)
--
nosy: +r.david.murray
stage: - committed/rejected
status: open - closed
Brett Cannon added the comment:
Do you mean sometimes there sometimes not because old code won't set it (yet)
or because you don't think it will always be appropriate to set the attribute
and thus people won't set it when available?
--
___
Python
Ronald Oussoren added the comment:
Is -Werror=statement-after-declaration the right solution anyway? This errors
out on just one of the incompatibilities between C89 and C99, although it is
one that is easy to get wrong accidentally.
Gcc (and clang) also support '-std=c89' that forces the
Changes by Richard Oudkerk shibt...@gmail.com:
--
stage: committed/rejected -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18252
___
___
Changes by Richard Oudkerk shibt...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18252
___
___
Ronald Oussoren added the comment:
I had a patch that only changed distutils.sysconfig.get_config_var('CFLAGS')
when not building python, but then noticed that this doesn't work: the setup.py
file for stdlib extensions fetches information from the toplevel sysconfig
file, not
New submission from Ronald Oussoren:
While working on a fix for #18211 I noticed two problems with the setup.py
that's used to build the stdlib extensions.
1) setup.py uses sysconfig instead of distutils.sysconfig. The sematics of the
two modules a slighty different.
2) The block of code
Ronald Oussoren added the comment:
The setup.py issues are in #18255.
--
dependencies: +CPython setup.py problems
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18211
___
R. David Murray added the comment:
I am in favor of adding meaningful attributes to stdlib exceptions. I've
always considered the lack of such an API a wart in Python, though an
understandable one (since exceptions started out as simple strings). But yeah,
while I hate to say it, this is
Christian Heimes added the comment:
Here is a simplified version of the C function. It uses y* or es# ascii to
parse the argument.
The check for trailing data ensures that the user gets an error message if she
tries to load a PEM string with multiple certs. She might expect that
Antoine Pitrou added the comment:
The check for trailing data ensures that the user gets an error
message if she tries to load a PEM string with multiple certs. She
might expect that add_ca_cert(pem) loads all PEM certs from the
string while in fact PEM_read_bio_X509() only loads the first
New submission from David Edelsohn:
Recent releases of AIX do not need to call pthread_init(). The function is
provided in libpthread.a for backward compatibility, but not declared in any
header. This patch adds a declaration, or it can be removed completely because
AIX 4.x no longer is
Changes by David Edelsohn dje@gmail.com:
--
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Changes by David Edelsohn dje@gmail.com:
--
versions: -Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Changes by David Edelsohn dje@gmail.com:
--
versions: +Python 2.7, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18238
___
David Edelsohn added the comment:
This needs to be backported to Python 2.7 as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18238
___
STINNER Victor added the comment:
This needs to be backported to Python 2.7 as well.
signal.sigwaitinfo() was added to Python 3.3 (and doesn't exist in Python 2).
--
resolution: - fixed
status: open - closed
___
Python tracker
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18255
___
___
Ronald Oussoren added the comment:
So much for obviously correct changes...
1) fix typo in import statement (from sysconfig import import ...)
2) setup.py uses sysconfig.get_path and that's not present in
distutils.sysconfig.
(Sigh..., why are there two modules with almost but not entirely
Ronald Oussoren added the comment:
I just noticed the patch is not good enough: python-config --cflags still
prints the -Werror flag because it is now a shell script and doesn't use
sysconfig data at all.
--
___
Python tracker
New submission from Ronald Oussoren:
Changeset c0370730b364 introduced a shell-script implementation of
python-config (see issue #16235). The older python implementation is still
present in $(srcdir)/Misc and generated by Makefile.pre.in.
--
messages: 191416
nosy: doko, ronaldoussoren
Ronald Oussoren added the comment:
Also, the shell-script version of python-config uses the -f option of readlink
and that option is not supported on OSX 10.8 (or older versions, I haven't
looked at the 10.9 beta yet)
Furthermore the entire readlink command is not present in HP-UX (and
alef added the comment:
Same error with Python 2.7.3 on AIX 6.1
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11192
___
Changes by David Edelsohn dje@gmail.com:
--
nosy: +David.Edelsohn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11192
___
___
Python-bugs-list
Christian Heimes added the comment:
I'm pondering about the error case cert already in hash table. There should
be a way to distinguish the error from other errors. I see three ways to handle
the case:
1) introduce SSLCertInStoreError exeption
2) ignore the error and do nothing
3) ignore the
Antoine Pitrou added the comment:
Le mardi 18 juin 2013 à 17:30 +, Christian Heimes a écrit :
Christian Heimes added the comment:
I'm pondering about the error case cert already in hash table. There
should be a way to distinguish the error from other errors.
I don't know if you've seen
Christian Heimes added the comment:
Yes, I have seen them. In fact OpenSSL has library, function and reason.
if ((ERR_GET_LIB(errcode) == ERR_LIB_X509)
(ERR_GET_REASON(errcode) == X509_R_CERT_ALREADY_IN_HASH_TABLE)) {}
I'm going for 3)
--
___
Changes by Christian Heimes li...@cheimes.de:
Added file: http://bugs.python.org/file30643/sslctx_add_cert5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18138
___
Brett Cannon added the comment:
Going to temporarily re-open to remind me to add better deprecation docs for
imp.load_module() to point to specific loader in importlib.machinery.
Should also add example usage as well.
--
status: closed - open
___
Jeremy Kloth added the comment:
It seems that the changes committed by Ezio are causing the AMD64 Windows
buildbot to hang in test_ttk_guionly.
A note that this buildbot is running as a service so no desktop is available.
The same test however is working (skipped successfully) on the 3.3
Changes by anatoly techtonik techto...@gmail.com:
--
nosy: +techtonik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
___
___
Python-bugs-list
Łukasz Langa added the comment:
Hello, Edward. First of all, thank you for correctly pointing out the problem.
We'll integrate your patch but first I'd like to have a unit test that
specifically shows why the secondonary `for` loop you introduced is necessary.
Currently if we change this:
anatoly techtonik added the comment:
There should be an easy way to restore file attributes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
___
Zachary Ware added the comment:
Jeremy, can you give me the output of a test run with issue17883-tmp-test.diff
applied? (Or just what a `python -m test -v test_ttk_guionly` gives with
..\tcltk\bin on the PATH)
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
dependencies: +PEP 442 implementation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17934
___
___
Arfrever Frehtes Taifersar Arahesis added the comment:
distutils.sysconfig module is theoretically deprecated in favor of sysconfig
module. It is better to fix sysconfig module than to switch back to
distutils.sysconfig module.
--
nosy: +Arfrever
Thomas Heller added the comment:
Brett, can these changes be merged into 3.3 also?
--
nosy: +theller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18058
___
Brett Cannon added the comment:
No because it would mean new functionality in a bugfix release.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18058
___
Roundup Robot added the comment:
New changeset f2e373ddfa00 by Antoine Pitrou in branch '3.3':
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
http://hg.python.org/cpython/rev/f2e373ddfa00
New changeset 7081859c1e20 by Antoine Pitrou in branch 'default':
Issue
Antoine Pitrou added the comment:
Fixed, thank you!
--
nosy: +pitrou
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7 -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18256
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
stage: - patch review
versions: -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18248
Terry J. Reedy added the comment:
The problem is the 'putenv' and 'getenv' appear to be parallel, and seem to be
documented as being parallel
Set the environment variable named key to the string value.
Return the value of the environment variable key if it exists,
but they are not. Getenv
Amaury Forgeot d'Arc added the comment:
LGTM. I checked in Makefile.am, and the list of platform-specific files is the
same.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18248
___
New submission from Zachary Ware:
The test package is almost to the point where I can run `PCbuild\python_d.exe
-m unittest discover Lib/test/ test_*.py` and get a useful result, the only
thing that still blows up is multibytecodec_support.py. I had not previously
noticed this problem due to
Jeremy Kloth added the comment:
(Note that the buildbot is 64-bit so the paths need to be tcltk64)
The test_ttk_guionly passed successfully *from the command-line*. It is
currently hung in that test from the buildbot scheduler *as a service*.
I do not know of a simple way to test changes via
Changes by Zachary Ware zachary.w...@gmail.com:
--
type: enhancement - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18258
___
___
STINNER Victor added the comment:
Update the patch to follow the API described in the PEP 445 (2013-06-18
22:33:41 +0200).
--
Added file: http://bugs.python.org/file30645/py_setallocators-7.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Both patches look good to me. Do you feel motivated to check if all formating
methods have a test? Here is a list of format methods:
PyUnicode_Format():
- 3.3, 3.4: formatchar() raises OverflowError if x MAX_UNICODE
- 2.7: formatchar() raises OverflowError if
STINNER Victor added the comment:
The patch looks good to me. It may be better to split it in two commits: fix
test_exec_valid_coding() in Python 3.3, cleanup test only in python 3.4. As you
want.
--
___
Python tracker rep...@bugs.python.org
New submission from David Edelsohn:
AIX provides sethostname() but it is not declared in any useful header. Fixed
as follows:
diff -r 626a8e49f2a9 Modules/socketmodule.c
--- a/Modules/socketmodule.cTue Jun 18 23:28:18 2013 +0200
+++ b/Modules/socketmodule.cTue Jun 18 20:17:37 2013
Roundup Robot added the comment:
New changeset 9f8efcd78d0d by Christian Heimes in branch '3.3':
Issue #18259: Declare sethostname in socketmodule.c for AIX
http://hg.python.org/cpython/rev/9f8efcd78d0d
New changeset 14748397fc57 by Christian Heimes in branch 'default':
Issue #18259: Declare
Christian Heimes added the comment:
Seems to work. I don't have root permission on the box so I can't actually test
if the function call succeeds.
% ./python
Python 3.4.0a0 (default:626a8e49f2a9, Jun 19 2013, 00:19:57)
[GCC 4.7.1] on aix7
Type help, copyright, credits or license for more
Roundup Robot added the comment:
New changeset ded443c603f0 by Brett Cannon in branch 'default':
Issue #17177: Clarify some deprecations
http://hg.python.org/cpython/rev/ded443c603f0
--
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17177
___
___
Python-bugs-list
New submission from Arfrever Frehtes Taifersar Arahesis:
TypeError occurs when handling errors in files with binary names.
configparser.* exceptions are expected.
This regression was introduced in Python 3.2.
$ cat /tmp/test1
[section]
[section]
$ cat /tmp/test2
[section]
option = value
option
New submission from Emcisq Zhao:
Visit http://docs.python.org/2.7/library/xml.dom.minidom.html, please notice
the first paragraph. The last sentence is should consider using the
xml.etree.ElementTree module for their XML processing instead. Shouldn't it be
should consider using the
Ronald Oussoren added the comment:
I don't agree. Distutils still uses distutils.sysconfig for configuration
information and setup.py wants to adjust that configuration, it should
therefore use distutils.sysconfig instead of the global one.
That said, it would be better to change distutils
74 matches
Mail list logo