Martin v. Löwis mar...@v.loewis.de added the comment:
It's in PEP 3121, but it never made it to the documentation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15081
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I can reproduce this, and it seems to stem from the openssl version used
(0.9.8l). Running openssl s_client -connect grooveshark.com:443 with 0.9.8l
gives
CONNECTED(0003)
depth=3 /L=ValiCert Validation Network/O=ValiCert,
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
I commonly see the code pattern:
try:
os.mkdir(dirname)
except OSError:
pass
It would be nice to have this instead:
os.mkdir(dirname, ignore_if_existing=True)
There's probably a better name for the keyword
Florent Xicluna florent.xicl...@gmail.com added the comment:
File /home/eliben/python-src/33/Lib/test/regrtest.py, line 710 in main
File /home/eliben/python-src/33/Lib/test/regrtest.py, line 1829 in
module
File /home/eliben/python-src/33/Lib/runpy.py, line 75 in _run_code
File
Serhiy Storchaka storch...@gmail.com added the comment:
Agree. First, the use of parameter is shorter (1 line instead of 4). Second,
try/except idiom hides possible real OS errors (no rights to create the
directory, a non-directory file with the same name already exists, illegal
filename, too
Hynek Schlawack h...@ox.cx added the comment:
+1.
Raymond, is there a reason you put that for 3.4? I'd try to get it in before
beta1 next week, it's trivial enough.
Regarding the name: os.makedirs() uses exist_ok, we shouldn't invent new ones.
--
assignee: - hynek
nosy: +hynek
Changes by Hynek Schlawack h...@ox.cx:
--
title: Add option to os.makefile to not raise an exception for existing
directories - Add option to os.mkdir to not raise an exception for existing
directories
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
Thank you for pushing. :-) Are you interested in a faster UTF-32 codec?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15026
___
Antoine Pitrou pit...@free.fr added the comment:
Thank you for pushing. :-) Are you interested in a faster UTF-32 codec?
Not much :) I know you posted issues on that, but I think UTF-32 is
quite low priority.
--
___
Python tracker
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15068
___
___
Python-bugs-list
New submission from Stefan Krastanov krastanov.ste...@gmail.com:
set.union(set([1,2]), [3])
set([1, 2, 3])
set.union([1,2], [3])
TypeError: descriptor 'union' requires a 'set' object but received a 'list'
It seems a bit inconsistent. Is it justified somehow?
--
components: None
Hynek Schlawack h...@ox.cx added the comment:
I looked into the code. Assuming it should be added, we're facing the fact that
os.mkdir() is C code ATM and the handling of the error would require to
implement it for NT and Unix separately.
Therefore it would make sense to add a Python
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree that this is already covered by the exist_ok parameter (which is new to
3.2). Existing code just hasn't been ported to this API.
--
resolution: - wont fix
status: open - closed
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Martin, do I understand that you are saying that this is not a Python
problem, and should be closed?
No. I'm saying that I don't know whether it's a Python problem.
It hasn't been fully analyzed. I actually only suspect that it's
a
Eli Bendersky eli...@gmail.com added the comment:
No need, the cause for the segfault is known. What happens is that Element
objects from the Python module get intermixed with Element objects from the C
module, and these are incompatible. The C module traversal functions assume
they can cast
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
Serhiy Storchaka storch...@gmail.com added the comment:
Here is a patch (for Python 3.3).
--
keywords: +patch
nosy: +storchaka
Added file: http://bugs.python.org/file26025/tokenize_bytes.patch
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
See also issue 13498.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14992
___
Serhiy Storchaka storch...@gmail.com added the comment:
Here is a patch for Python 2.
--
Added file: http://bugs.python.org/file26026/tokenize_bytes_py2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file26025/tokenize_bytes.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
Serhiy Storchaka storch...@gmail.com added the comment:
And here is a better patch for Python 3.
--
Added file: http://bugs.python.org/file26027/tokenize_bytes_py3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
R. David Murray rdmur...@bitdance.com added the comment:
Note that the implementation of makedirs exist_ok has a significant bug (issue
13498) which renders it mostly useless in practice. Parties interested in this
issue might be interested in figuring out how to fix that bug :)
--
R. David Murray rdmur...@bitdance.com added the comment:
By calling 'set.union' you are calling the method on the class. When you call
a method directly on a class object, you have to explicitly pass in 'self'.
Thus the first argument when you call it like that must be a set object.
Florent Xicluna florent.xicl...@gmail.com added the comment:
The werkzeug.urls module has examples of such conversion IRI-to-URI:
https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/urls.py#L109,L205
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file26027/tokenize_bytes_py3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
Serhiy Storchaka storch...@gmail.com added the comment:
And here is an even better patch for Python 3.
--
Added file: http://bugs.python.org/file26028/tokenize_bytes_py3.patch
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue805255
___
___
Python-bugs-list
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13498
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14055
___
___
Python-bugs-list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14055
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13241
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15048
___
___
Python-bugs-list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14850
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
The source links were added by Raymond for selected modules that he judged
readable, well-written and useful companions to the documentation. For the
json.encoder and decoder modules, I don’t think this is the case: the rst doc
should explain
Éric Araujo mer...@netwok.org added the comment:
I wouldn’t use the syntax used by find, dd or other very old and peculiar
commands as an example for anything new :)
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14874
___
___
Python-bugs-list mailing
George Stephanos gaf.stepha...@gmail.com added the comment:
I can confirm that. I built a 1.0.1c version of both _ssl.pyd and _ssl.lib and
now the problem's solved (they're attached if ever needed). Thanks!
Can't the next Python 2.7 release include 1.0.1c instead ?
--
Added file:
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +meador.inge
stage: needs patch - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
Éric Araujo mer...@netwok.org added the comment:
One small thing: can we find a name for the function that starts with a verb?
It’s the recommended naming style for functions, and would help making a
difference between the class and the function. I also expect people to use
“signature” and
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
resolution: - rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15063
___
Eli Bendersky eli...@gmail.com added the comment:
Out of curiosity, why don't the constituents of Element (i.e. the tag, the
attributes dict, etc.) count for its size?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14055
New submission from Stefan Krah stefan-use...@bytereef.org:
The Ubuntu shared buildbot fails to run the tests:
using PTY: True
./python: error while loading shared libraries: libpython3.3dm.so.1.0: cannot
open shared object file: No such file or directory
make: *** [Python/importlib.h] Error
Petri Lehtinen pe...@digip.org added the comment:
Yes, this is what I tried to say. It's hard for me to find a good
wording, so what would you suggest?
I also noticed now that there's a typo in the commit messages. But
those cannot be fixed anymore.
--
Georg Brandl ge...@python.org added the comment:
What alternate syntax would you suggest for a find type command then (other
than replacing -long by --long)?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Unless someone plans to do further work on this, I'd like to commit
unique_importlib3.patch. A working solution is better than nothing.
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
__sizeof__ is supposed to account for just the object, not for the size of any
object it refers to. If you want to compute total memory consumption, you
should get a list of all objects, and then sum up __sizeof__. If some object
would
R. David Murray rdmur...@bitdance.com added the comment:
Mailbox no longer throws an error if a flush is done between operations when
removing or changing multiple items in mbox, MMDF, or Babyl mailboxes.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch for the separate C executable approach. There are a couple of
small complications in order to avoid any circular dependency (either at the
Makefile level, or at the _frozen_importlib / Py_Initialize level).
The proposed -X or
Serhiy Storchaka storch...@gmail.com added the comment:
Patches updated with tests.
--
Added file: http://bugs.python.org/file26031/tokenize_bytes_py2-2.patch
Added file: http://bugs.python.org/file26032/tokenize_bytes_py3-2.patch
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
___
Antoine Pitrou pit...@free.fr added the comment:
Thank you for the patch! Now pushed to 3.3.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8f3a5308f50b by Antoine Pitrou in branch 'default':
Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels.
http://hg.python.org/cpython/rev/8f3a5308f50b
--
nosy: +python-dev
Meador Inge mead...@gmail.com added the comment:
The Python 3 patch looks OK, except that several of the tests are duplicated.
I am looking at the Python 2 patch now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
Meador Inge mead...@gmail.com added the comment:
Nevermind, the tests are OK. I missed the swapped quotes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
Serhiy Storchaka storch...@gmail.com added the comment:
The Python 3 patch looks OK, except that several of the tests are duplicated.
What tests?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
Terry J. Reedy tjre...@udel.edu added the comment:
Greg, I am closing this because you seem to have found an alternate solution
and have dropped the issue. If you do want to pursue a change for 3.4, I
suggest you refresh your patch and post to python-ideas (new list since you
posted this). As
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14815
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
Patrick, its been 5 years since you promised a 2nd patch (which would now have
to be against the current 3.3 tip). If you have lost interested, perhaps we
should close this.
--
nosy: +terry.reedy
versions: +Python 3.4 -Python 3.2
Meador Inge mead...@gmail.com added the comment:
Python 2 patch looks OK too. I will commit these later today. Thanks for the
patches!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
Florent Xicluna florent.xicl...@gmail.com added the comment:
LGTM too. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15086
___
___
Python-bugs-list
Stefan Krah stefan-use...@bytereef.org added the comment:
Rebuilding importlib.h fails:
--
Python/importlib.h needs to be rebuilt, but no interpreter
is available to do so. Leaving the previous version in
place. You may want to run
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3680b3423aa3 by Antoine Pitrou in branch 'default':
Try to fix issue #15086: build failure on Ubuntu shared buildbot.
http://hg.python.org/cpython/rev/3680b3423aa3
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Looks fixed.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15086
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: rhettinger - loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14815
___
Patrick Miller patmil...@users.sourceforge.net added the comment:
Just languishing for lo on these 5 years
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue730473
Eric Snow ericsnowcurren...@gmail.com added the comment:
It's actually at the top of my list, but may still be a week or two until I can
get to it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14657
Changes by Larry Hastings la...@hastings.org:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14815
___
___
Python-bugs-list mailing
Larry Hastings la...@hastings.org added the comment:
Ping. Benjamin, should I find another reviewer?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14769
___
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The API for the gzip module is convenient for reading gzipped file but is
rather awkward for reading bytes downloaded from a socket:
import gzip, io
from urllib.request import urlopen, Request
u =
Nadeem Vawda nadeem.va...@gmail.com added the comment:
There is already such a function, gzip.decompress() - it was added in 3.2.
--
nosy: +nadeem.vawda
resolution: - invalid
stage: - committed/rejected
status: open - pending
___
Python tracker
Giampaolo Rodola' g.rod...@gmail.com added the comment:
I'm -0 about unifying the function signature and raise NotImplementedError
where an arg is not supported.
I'm -1 about os.sendfile(..., diskio=True, wait=True, sync=False).
In both cases users willing to use these 3 args are already
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 35d3a8ed7997 by Meador Inge in branch '2.7':
Issue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.
http://hg.python.org/cpython/rev/35d3a8ed7997
New changeset 115b0cb52c6c by Meador Inge in
Changes by Meador Inge mead...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15054
Eli Bendersky eli...@gmail.com added the comment:
Martin, thanks for the explanation. The patch LGTM, then.
Could it be useful to document this a bit more explicitly in the description of
sys.getsizeof? The most intuitive thing to expect from it is to compute the
*total* size including
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1767933
___
___
Python-bugs-list
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9458
___
___
Python-bugs-list
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13823
___
___
Python-bugs-list
Meador Inge mead...@gmail.com added the comment:
Nice patch Antoine! The method of partitioning the object sets into frozen and
non-frozen is nice.
The proposed -X or BOOTSTRAP_PY approaches would be difficult, since there
doesn't appear to be an easy way to generate a given file (the Python
Nick Coghlan ncogh...@gmail.com added the comment:
+1 Antoine - your patch is better than the status quo, so it makes sense to
apply it.
If Eric can make the other way work in time for 3.3, great, but at least we'll
have a solid fallback position without it.
--
Nick Coghlan ncogh...@gmail.com added the comment:
Looks like a solid improvement to me.
One minor naming quibble is that FROZENLESS_LIBRARY_OBJS hurts my brain -
would you mind switching it to something like LIBRARY_OBJS_OMIT_FROZEN?
--
___
Python
New submission from Nick Coghlan ncogh...@gmail.com:
Currently undocumented: http://docs.python.org/py3k/c-api/gen.html
Public API in a released version of Python:
http://hg.python.org/cpython/file/3.2/Include/genobject.h
--
messages: 163012
nosy: ncoghlan
priority: normal
severity:
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15088
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset cfbf6aa5c9e3 by Nick Coghlan in branch 'default':
Issue #13783: the PEP 380 implementation no longer expands the public C API
http://hg.python.org/cpython/rev/cfbf6aa5c9e3
--
nosy: +python-dev
Nick Coghlan ncogh...@gmail.com added the comment:
This is actually related to the integration between the PEP formatting tools
and the python.org build system (that is, pep2pyramid.py, rather than
genpepindex.py)
I'm inclined to close it as won't fix and maybe pass it to the psf-redesign
Larry Hastings la...@hastings.org added the comment:
Just a thought--how about a new constant in the re module:
SUPPRESSED=object()
and have the interface be
mo.groupdict(default=re.SUPPRESSED)
--
nosy: +larry
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 438b861e2edb by Nick Coghlan in branch 'default':
Issue #13783: PEP 380 cleanup part 2, using the new identifier APIs in the
generator implementation
http://hg.python.org/cpython/rev/438b861e2edb
--
Nick Coghlan ncogh...@gmail.com added the comment:
I left the name of the new private API as _PyGen_FetchStopIterationValue. If
anyone wants to make it public, they can raise a new issue to give it a more
appropriate name (and move the definition accordingly).
PyStopIteration_Create is simply
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: ncoghlan -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13475
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
Given the imminent 3.3 beta 1 feature freeze and the fact I would like to
explore Ron's suggestion of a higher level ByteCode object to encapsulate a
sequence of instructions (along with additional information from the code
object),
90 matches
Mail list logo