Martin v. Löwis added the comment:
It's a bug; thanks for pointing this out. I always suspected that there was
something wrong, but never found the time to look into it.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
New submission from klo uo:
I noticed this issue, while trying to compile Cython extension, when source
file is in path with spaces. Extension wouldn't compile because LIBDIR is
passed to MinGW g++ (though not to gcc) or MSVC compilers unquoted. I tracked
the problem to distutils/build_ext.py
New submission from Sworddragon:
On my system (Linux 64 Bit) I figured out that python 3 needs a little more
memory than python 2 and it is a little bit slower. Here are some examples:
sworddragon@ubuntu:~$ execution-time 'python2 -c print\(0\)'
0.21738
sworddragon@ubuntu:~$ execution-time
STINNER Victor added the comment:
That's definitely something which needs discussion
(at not only on the tracker, I would could bring it up on python-dev).
I agree, I started a thread on python-dev mailing list:
https://mail.python.org/pipermail/python-dev/2013-January/123552.html
--
Ramchandra Apte added the comment:
What is the problem?
Python 3 uses more memory because many things that were earlier ASCII strings
in Python 2 are Unicode strings. Same reason for performance AFAIK.
--
nosy: +ramchandra.apte
___
Python tracker
Georg Brandl added the comment:
The performance you're measuring here is mostly startup, i.e. loading all
necessary modules. On Python 3, there is more to load, e.g. the filesystem
encoding, therefore startup takes a little longer.
There are efforts to improve startup time, see e.g. #16101.
Ramchandra Apte added the comment:
Can you fix the bare except?
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16907
___
klo uo added the comment:
Can you fix the bare except?
...
except ImportError:
pass
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16907
Ramchandra Apte added the comment:
Here's a patch on revision 75fe7f5fda9a (I did it on a trip without an internet
connection)
There might be some mistakes of this type:
I incorrectly changed instances like this
`
try:
something
except:
close file
raise
`
to
`
try:
something
Ramchandra Apte added the comment:
Sorry, I entered the wrong filename for the patch and so it didn't get
attached. Now I have attached it.
--
keywords: +patch
Added file: http://bugs.python.org/file28647/patch.patch
___
Python tracker
Prashant Kurnawal added the comment:
When are you planning to submit a fix for it..? This bug will be fixed in
python3.3 and a new version of python3.3 will be released..? Or it will be
fixed in python3.4..?
--
___
Python tracker
Serhiy Storchaka added the comment:
get_ext_fullpath() has no relations to this bug. The bug is probably in spawn()
functions, perhaps in _nt_quote_args() or something like. It looks as Windows
specific bug (Posix passes command arguments as a list, not joining it into
string).
--
Serhiy Storchaka added the comment:
Unhappy Rietveld hasn't recognize your patch. I have regenerated it.
--
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file28648/bare_except.patch
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Version 4 looks good to me!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5066
___
___
Python-bugs-list mailing
New submission from Olof Johansson:
Hi,
The urlparse library's netloc attribute is today further split into the
following attributes: username, password, hostname, port. The attributes
preceding the @ (username, password) are refered to in RFC 3986 [1] as
userinfo, the format of which is
Richard Oudkerk added the comment:
try:
_MAXFD = os.sysconf(SC_OPEN_MAX)
-except:
+except ValueError:
_MAXFD = 256
os.sysconf() might raise OSError. I think ValueError is only raised if
_SC_OPEN_MAX was undefined when the module was compiled.
--
nosy: +sbt
Serhiy Storchaka added the comment:
See my comments on Rietveld.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16261
___
___
Python-bugs-list
Zachary Ware added the comment:
Version 4 replaces test_main() with unittest.main()
--
Added file: http://bugs.python.org/file28650/issue16852.v4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16852
Changes by Christian Heimes li...@cheimes.de:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3073
___
Lars Buitinck added the comment:
Any reason why this issue is still open? I just got a lot of compiler warnings
when building Numpy, so this isn't just relevant to C++ programmers.
(Btw., I did RTFM: the issue's Resolution is accepted but that option is not
documented.)
--
nosy:
Jesús Cea Avión added the comment:
Brian, is this supported in Solaris 10 or Solaris 11?.
How can I actually try it?. I use Solaris on servers, and have Solaris 10/11
virtual machines in my laptop but never ever used sound under Solaris...
Also, I am unsure about this being a new feature
Christian Heimes added the comment:
Let's try this again for 3.4
--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: fixed - out of date
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3073
___
___
Zachary Ware added the comment:
Here's version 2 of the patch, which converts the doctests to a standard
testcase and removes test_main().
--
Added file: http://bugs.python.org/file28651/test_bisect_fix.v2.diff
___
Python tracker
Zachary Ware added the comment:
Patch v2, in which test_main() goes away.
--
Added file: http://bugs.python.org/file28652/test_asyncore_fix.v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16896
Serhiy Storchaka added the comment:
Want to make a few warnings. Accepting your confirmation may take a long time.
And it is very unlikely that your patch can be applied as a whole. The
maintainers of the individual modules can apply it by parts.
--
Lars Buitinck added the comment:
Redid the patch.
--
Added file: http://bugs.python.org/file28653/constness.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9369
___
Amaury Forgeot d'Arc added the comment:
libffi still has no support for _Complex.
Did you try with a pure Python solution, like the one suggested in
http://objectmix.com/python/112374-re-ctypes-c99-complex-numbers.html
--
nosy: +amaury.forgeotdarc
Zachary Ware added the comment:
Version 2 removes test_main() and associated ``tests`` list.
--
Added file: http://bugs.python.org/file28654/test_array.v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16888
Roundup Robot added the comment:
New changeset 3e18ccaa537e by Benjamin Peterson in branch '3.3':
correct static string clearing loop (closes #16906)
http://hg.python.org/cpython/rev/3e18ccaa537e
New changeset 0c04ed40eeaf by Benjamin Peterson in branch 'default':
merge 3.3 (#16906)
New submission from Zachary Ware:
Version 2 replaces test_main() with unittest.main().
--
Added file: http://bugs.python.org/file28655/test_bufio_fix.v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16898
Serhiy Storchaka added the comment:
Docs update needed.
Perhaps some other functions which accepts char* (i.e.
PyObject_CallMethodObjArgs or PyDict_GetItemString) should be fixed.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Lars Buitinck added the comment:
Oops, forgot to save changes to Doc/c-api/object.rst.
PyObject_CallMethodObjArgs takes a PyObject*, mustn't that be non-const for
reference counting to work?
PyDict_GetItemString already has const, just not in refcounts.dat. Fixed.
--
Added file:
New submission from Zachary Ware:
Patch looks good to me. Thank you, Berker!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16905
___
___
Changes by Trent Nelson tr...@snakebite.org:
--
nosy: +trent
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16902
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Georg, now Tools/unicode/mkstringprep.py is broken in all Python 3 branches (it
not usable at all, under 3.2 it even raises SyntaxError). Do you object against
fixing it in 3.2 and 3.3?
--
nosy: +georg.brandl
___
Serhiy Storchaka added the comment:
If no one objects I will commit this next week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13454
___
___
Georg Brandl added the comment:
I'd like to see a review first. I don't have time to do it myself right now
though.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
Serhiy Storchaka added the comment:
If no one objects I will commit this next week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
___
___
brian-cameron-oracle added the comment:
OSS is the default audio system in Solaris 11 and 12. In Solaris 10 and
earlier, the sunaudio (or SADA) interfaces are still used. You can only test
this if you are using Solaris 11 or later, on a machine with a sound card
supported by OSS.
I would
Georg Brandl added the comment:
No need to hurry; no one apparently needs it anyway, and if there is a change
let Martin review it before commit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15239
Jesús Cea Avión added the comment:
Brian, then this module should be compiled only under Solaris 11 and up and,
presumably, OpenSolaris/Illumos derivatives.
Does your patch compiles cleanly under previous Solaris versions?.
I am +1 to consider this a bugfix. Any other python-dev opinion?
PS:
Serhiy Storchaka added the comment:
OK. Perhaps I will prepare similar patches for ntpath and macpath.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
___
Martin v. Löwis added the comment:
klo.uo: can you kindly provide a working (or, rather, failing) example? A
trivial hello-world kind of package could do, along with a report what path
you unpacked it in, and what error you get.
Your patch is not applicable to Python, since it requires the
brian-cameron-oracle added the comment:
Correct, OSS should work out-of-the-box on Solaris 11 and up since it is
the default audio system there. OSS was also integrated into OpenSolaris, so
it is probably the most sensible audio plugin to use there also. Some
end-users may build and install
New submission from Zachary Ware:
This patch fixes discovery for test_bytes.py. That fix changes
string_tests.py, which breaks test_unicode.py and test_userstring.py, so those
two files have been changed as well. All three test files also use
unittest.main() now instead of test_main().
Changes by Zachary Ware zachary.w...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16910
___
___
Python-bugs-list
Senthil Kumaran added the comment:
If it does go in, due the RFC requirement, then it would be only in 3.4
(default branch) and the feature may not be backported. Without reading the RFC
section, I have an intuitive -1 for this proposal because the suggestion may be
a corner case rather than
Jesús Cea Avión added the comment:
The problem with your approach is that different Solaris release could support
different flags. So I rather prefer specific #ifdef's.
I wonder about compiling OSS module under Solaris without OSS support.
Compiling a module acting as NULL is OK, compiling a
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16904
___
___
Python-bugs-list
brian-cameron-oracle added the comment:
Sure, doing multiple #ifdef's makes sense. Do you need me to provide an
updated patch, or is this something easier for someone who has commit access to
the source code repository to just go ahead and do.
I would think this Module would fail to compile
Hynek Schlawack added the comment:
I will review this first thing tomorrow.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6975
___
___
Roundup Robot added the comment:
New changeset be8e6b81284e by Charles-François Natali in branch 'default':
Issue #16876: Optimize epoll.poll() by keeping a per-instance epoll events
http://hg.python.org/cpython/rev/be8e6b81284e
--
nosy: +python-dev
Guido van Rossum added the comment:
- How shall we go forward? I've made a variety of small changes to the Tulip
version (selector.py) now. Can you work those into a fresh unified patch for
CPython 3.4?
- I tried making a single combined kqueue call in register(), and it caused the
SSL
Éric Araujo added the comment:
I think this is a duplicate report; could you please search for an existing
open report for the same bug?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16907
Éric Araujo added the comment:
Code patch looks good, but for tests, I prefer to run subprocesses with the
options and output I want, instead of changing the expected results depending
on the python-running-tests’ options (and thus, having two tests into one, but
always running only one).
klo uo added the comment:
klo.uo: can you kindly provide a working (or, rather, failing)
example? A trivial hello-world kind of package could do, along
with a report what path you unpacked it in, and what error you get.
As mentioned in opening thread, this doesn't happen with Cython's
hello
klo uo added the comment:
I found two similar issues:
1. distutils compiler not handling spaces in path to output/src files:
http://bugs.python.org/issue4508
with patches for unix compiler and cygwin compiler
2. Distutils does not put quotes around paths that contain spaces when
compiling
Changes by Charles-François Natali neolo...@free.fr:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16876
Charles-François Natali added the comment:
- How shall we go forward? I've made a variety of small changes to the
Tulip version (selector.py) now. Can you work those into a fresh unified
patch for CPython 3.4?
Yes, but I think we could wait a little, to make sure the API is good
enough to
New submission from Ronnie Ghose:
Running the example given in the docs gives the following:
In [8]: socket.getaddrinfo('www.python.org',80)
Out[8]:
[(2, 1, 6, '', ('82.94.164.162', 80)),
(2, 2, 17, '', ('82.94.164.162', 80)),
(2, 3, 0, '', ('82.94.164.162', 80)),
(10, 1, 6, '',
Changes by Ronnie Ghose ronnie.gh...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16911
___
___
Ronnie Ghose added the comment:
sorry - my error. accidentally omitted somethings
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16911
___
___
Changes by Ronnie Ghose ronnie.gh...@gmail.com:
--
nosy: -docs@python, sghose
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16911
___
___
Guido van Rossum added the comment:
On Wed, Jan 9, 2013 at 12:47 PM, Charles-François Natali
rep...@bugs.python.org wrote:
- How shall we go forward? I've made a variety of small changes to the
Tulip version (selector.py) now. Can you work those into a fresh unified
patch for CPython 3.4?
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16911
___
___
Guido van Rossum added the comment:
I've fixed the signal handling issue. Please check Tulip revision
1c4db3d1a688:
http://code.google.com/p/tulip/source/detail?r=1c4db3d1a68874dc22c84f9c1c376c5371037f09
--
___
Python tracker
Guido van Rossum added the comment:
And the next Tulip rev renames Key to SelectorKey.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16853
___
Serhiy Storchaka added the comment:
PyObject_CallMethodObjArgs takes a PyObject*, mustn't that be non-const for
reference counting to work?
Then refcounts.dat wrong.
PyDict_GetItemString already has const, just not in refcounts.dat. Fixed.
There are a lot of char* arguments in
Stefan Krah added the comment:
Nick, I'm adding you to the nosy list since this issue seems related to PEP 432.
Quick summary: Globals are used in unicodeobject.c before they are initialized.
Also, Unicode objects are created before PyType_Ready(PyUnicode_Type) has been
called.
This happens
New submission from fenrirsoul:
When 10.14+10.1 is typed, it's result is 20.242 and when 10.24+10.2
is typed, it's result is 20.438, i just found these two occurences.
--
components: None
messages: 179495
nosy: fenrirsoul
priority: normal
severity: normal
Ezio Melotti added the comment:
See http://docs.python.org/3/tutorial/floatingpoint.html
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
See also
http://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16912
Changes by John O'Connor tehj...@gmail.com:
--
nosy: +jcon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16398
___
___
Python-bugs-list mailing
Changes by John O'Connor tehj...@gmail.com:
--
nosy: +jcon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16465
___
___
Python-bugs-list mailing
Nick Coghlan added the comment:
There should still be a check in tp_new (IIRC) that calls PyType_Ready on
unready types.
While doing something systematic about this kind of problem is part of the
rationale of PEP 432, that won't help earlier versions.
--
Jesús Cea Avión added the comment:
Brian, this patch would try to compile OSS module on any Solaris machine, even
if not OSS support is provided. That is, compilation would fail in that case.
That is not acceptable. Some kind of OSS detection is needed.
--
STINNER Victor added the comment:
There is another way to set close-on-exec flag on a file descriptor: ioctl(fd,
FIOCLEX, 0); (and ioctl(fd, FIONCLEX, 0); to unset the flag). It is
interesting because it avoids the need to get the flags before setting new
flags (old | FD_CLOEXEC): 1 syscall
Frank Wierzbicki added the comment:
Making these into real unit tests and switching the patch to 3.3 should be no
problem. Is 2.7 still open for changes to tests? I might back port to 2.7 as
well so that I can delete the customized Jython test in 2.7.
--
Roger Serwy added the comment:
The attached patch changes %%s to %%r. This should handle file names containing
quotes automatically.
Ramchandra's point of using a subprocess instead would fix the issue as well.
That would require changing print_window in Lib/idlelib/IOBinding.py
Terry's
Roger Serwy added the comment:
See also issue12274.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16829
___
___
Python-bugs-list mailing list
Stefan Krah added the comment:
Nick Coghlan rep...@bugs.python.org wrote:
There should still be a check in tp_new (IIRC) that calls PyType_Ready on
unready types.
Indeed there is one in type_new(), but that isn't used here AFAICS. If
you apply this patch and start up python, there are many
brian-cameron-oracle added the comment:
I'm not sure how to write such OSS detection code. I do know that
OSS is only on Solaris systems that have this OSS-specific file:
/usr/include/sys/soundcard.h
So that's probably the best way to check and it should work even on Solaris 10
if OSS is
Jesús Cea Avión added the comment:
Brian, Linux has that include file too. So, yes, I think that detection would
be appropiate. If we could confirm that all platforms with OSS support have
that file, we could have something :-).
If not, or we are not sure, just check for that file *IF* the
Jesús Cea Avión added the comment:
For user installed packages, the usual path would be
/usr/local/include/sys/soundcard.h. So, maybe check both paths. Do you agree?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16902
Roundup Robot added the comment:
New changeset 6f71e6aa9041 by Ezio Melotti in branch '3.3':
#16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now
work with unittest test discovery. Patch by Zachary Ware.
http://hg.python.org/cpython/rev/6f71e6aa9041
New changeset
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16852
Chris Jerdonek added the comment:
Attached is a proposed patch.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file28663/issue-16406-1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16406
Changes by Roy Smith r...@panix.com:
--
nosy: +roysmith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14452
___
___
Python-bugs-list mailing list
Chris Jerdonek added the comment:
It turns out that there is already a test case:
http://hg.python.org/cpython/file/05183ce544be/Lib/test/test_argparse.py#l799
(at the line ('', NS(foo=[])),)
I've updated the patch with a note to reflect this.
--
Added file:
Roundup Robot added the comment:
New changeset f32cb5389a4b by Ezio Melotti in branch '3.3':
#16897: test_bisect now works with unittest test discovery. Initial patch by
Zachary Ware.
http://hg.python.org/cpython/rev/f32cb5389a4b
New changeset cfd8d99ae645 by Ezio Melotti in branch 'default':
Ezio Melotti added the comment:
Fixed, thanks for the patch!
While I was at it I also added the other example from the doc.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16897
Roundup Robot added the comment:
New changeset 4976bf1d751c by Ezio Melotti in branch '3.3':
#16896: test_asyncore now works with unittest test discovery. Patch by Zachary
Ware.
http://hg.python.org/cpython/rev/4976bf1d751c
New changeset e7a965a075f5 by Ezio Melotti in branch 'default':
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16896
Roundup Robot added the comment:
New changeset 1538307c06c0 by Ezio Melotti in branch '3.3':
#16888: test_array now works with unittest test discovery. Patch by Zachary
Ware.
http://hg.python.org/cpython/rev/1538307c06c0
New changeset 16c58eeca0f8 by Ezio Melotti in branch 'default':
#16888:
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16888
Roundup Robot added the comment:
New changeset 09d4b690b504 by Ezio Melotti in branch '3.3':
#16898: test_bufio now works with unittest test discovery. Patch by Zachary
Ware.
http://hg.python.org/cpython/rev/09d4b690b504
New changeset 9a6e28350645 by Ezio Melotti in branch 'default':
#16898:
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16898
___
Changes by John O'Connor tehj...@gmail.com:
--
nosy: +jcon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1508475
___
___
Python-bugs-list mailing
Changes by John O'Connor tehj...@gmail.com:
--
nosy: +jcon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11695
___
___
Python-bugs-list mailing
101 - 200 of 214 matches
Mail list logo