Ethan Furman added the comment:
Hopefully the final bit of code, plus docs.
Code changes:
_names_ are reserved
Doc changes (different from the PEP):
examples of AutoEnum, UniqueEnum, and OrderedEnum
--
Added file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch
Changes by Ethan Furman et...@stoneleaf.us:
Removed file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
Changes by Ethan Furman et...@stoneleaf.us:
Added file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
Changes by Ethan Furman et...@stoneleaf.us:
Removed file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
Ethan Furman added the comment:
Apologies for the noise -- was having trouble getting the correct patch
attached. :/
--
Added file: http://bugs.python.org/file30506/pep-0435.09.stoneleaf.patch
___
Python tracker rep...@bugs.python.org
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18111
___
___
Python-bugs-list
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +isoschiz, pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18112
___
___
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18129
___
___
Python-bugs-list
koobs added the comment:
Commit to 3.3 broke at least my FreeBSD buildbot:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%203.3/builds/641/steps/test/logs/stdio
Also setting +Version: Python 3.3 on this.
--
nosy: +koobs
versions: +Python 3.3
Łukasz Langa added the comment:
Your patch leaks references with subinterpreters, which was exposed by
functools.singledispatch using weakref. While the actual bug is in atexit
(which doesn't properly unregister on subinterpreter termination), now all uses
of weakref leak.
Context:
Terry J. Reedy added the comment:
I don't think so. The idle test, test_idle, passed. The patch did not even
affect any of the three idle files that it currently tests. Just because a
commit triggers a test does not mean that it is the cause of any failure that
happens. The log says the
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - patch review
versions: -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18111
___
koobs added the comment:
Apologies for the noise Terry, rebuilding passes.
Unsetting versions: 3.3
Is the failure on the build I reported worth opening an issue for?
--
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17343
___
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7796
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Your raw parameter is one too many IMO. You should find a way to present all
relevant information in a single API call.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18143
Roundup Robot added the comment:
New changeset d6ad9d7468f7 by Richard Oudkerk in branch 'default':
Issue #15528: Delay importing atexit until weakref.finalize() used.
http://hg.python.org/cpython/rev/d6ad9d7468f7
--
___
Python tracker
Ethan Furman added the comment:
So, which is better?
To have a @unique class decorator as part of the module, or to have a
UniqueEnum recipe in the docs?
A decorator is immediately usable, but requires remembering an extra line of
code.
An example requires being put into a local utility
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: -eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17375
___
___
Python-bugs-list
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: -eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1772673
___
___
Python-bugs-list
Eli Bendersky added the comment:
Nick prudently moved the unique discussion to its own issue - 18042. Let's get
the initial implementation docs committed first (without unique in the
implementation, although it's fine to have it as an example in the docs for
now), close this issue, and then
Ethan Furman added the comment:
Good idea, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
___
Python-bugs-list mailing list
Eli Bendersky added the comment:
I sent a fresh review - nothing major; it's very near commit readiness now.
Additional changes can be done after the initial commit. We have time until 3.4
beta (November 2013) to tweak stuff (and the documentation whenever...)
--
Barry A. Warsaw added the comment:
+1 for the decorator!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
___
___
Python-bugs-list mailing
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18042
___
___
Python-bugs-list mailing
Christian Heimes added the comment:
How about a single return value:
DefaultVerifyPaths = collections.namedtuple(DefaultVerifyPaths,
cafile capath openssl_cafile_env openssl_cafile openssl_capath_env
openssl_capath)
--
___
Python tracker
Richard Oudkerk added the comment:
PJE suggests importing atexit and registering finalize only when it's
actually used. I guess this would be the easiest workaround.
Done.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8902
___
João Bernardo added the comment:
Overriding __getattr__ doesn't look like the best solution
Another idea would be to allow the proxy class to be selectable, but this would
require the user to do much more coding for this simple thing...
I believe a proxy should be dynamic enough to avoid
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18113
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18110
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18119
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18156
___
___
Ezio Melotti added the comment:
'Import' is as easy to use as Graft and as far as I know, the result
when successful is the same.
I use import while importing patches from the tracker, but once I committed on
2.x it's easier to just graft instead of importing again (importing often
Changes by A.M. Kuchling li...@amk.ca:
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14015
___
___
Python-bugs-list mailing
Christian Heimes added the comment:
New patch with fixed doc string and indention.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa377189%28v=vs.85%29.aspx
explains how encoding type shall be interpreted. I haven't seen PKCS#7 certs
on my Windows system, though.
Instead of a flag I
Antoine Pitrou added the comment:
How about a single return value:
DefaultVerifyPaths = collections.namedtuple(DefaultVerifyPaths,
cafile capath openssl_cafile_env openssl_cafile openssl_capath_env
openssl_capath)
Sounds good.
--
___
Thomas Heller added the comment:
The modulefinder usage is directly exposed in its API as the return
value of a find_module method, which makes removal a pain. Adding
Thomas Heller to see what he has to say.
Some months ago, I have started to implement a brand-new modulefinder,
which is
Mher Movsisyan added the comment:
I think this is not a bug. plistlib api accepts dict (not OrderedDict) and
sorted output is a valid output. plistlib sorts dictionaries to be consistent
with Apple's tools.
property list format [1] uses CFDictionary [2] with CFString keys. CFDictionary
is
Eric Snow added the comment:
It may not enough, but the use of namedtuples (vs. plain tuples) with
functools.singledispatch() would be messier without a NamedTuple ABC (or other
base type). Of course, when would you want to dispatch specifically on
namedtuple? I can think of a few
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +hynek, ned.deily, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18168
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10652
___
___
New submission from Roman Zeyde:
Reproduction:
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type help, copyright, credits or license for more information.
import struct
struct.pack('!L', 0x01020304)
'\x01\x02\x03\x04'
struct.pack('L', 0x01020304)
'\x01\x02\x03\x04'
Ezio Melotti added the comment:
I’ve actually seen two contrary kinds of advice
and the best approach is most of the times something in between. Doing minor
cleanups while touching the code is fine, but if most of the changes are
cleanups then it gets distracting. In that case it's better
Ezio Melotti added the comment:
imp.reload() doesn't seem to be deprecated, and importlib.reload() doesn't
exist. Is there another alternative or it just hasn't been moved somewhere
else?
--
___
Python tracker rep...@bugs.python.org
A.M. Kuchling added the comment:
Continuing my tour of the howtos, here's a patch making many of the changes
discussed here and on issue13997. Changes made:
* state that python3 source encoding is UTF-8, and give examples
* mention surrogateescape in the 'tips and tricks' section, and
Ezio Melotti added the comment:
FTR here's a link to the FAQ:
http://docs.python.org/3/faq/programming.html#how-do-i-create-a-pyc-file
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18036
Ezio Melotti added the comment:
FTR here is a link to the FAQs:
http://docs.python.org/3/faq/programming.html#import-x-y-z-returns-module-x-how-do-i-get-z
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18034
Ezio Melotti added the comment:
Thanks for the patches, however the Python 2 example doesn't work.
I think a BytesIO should be used instead of a StringIO, and print_stats() only
returns a pstats.Stats instance, without actually printing any result.
I wonder if print_results was an old method
Stefan Krah added the comment:
The docs say:
Native size and alignment are determined using the C compiler’s sizeof
expression. This is always combined with native byte order.
sizeof(long) is 8 on your platform, so I don't see anything wrong here.
Or is another part of the documentation
Roundup Robot added the comment:
New changeset a2e093e98d45 by Ezio Melotti in branch '3.3':
#17691: test_univnewlines now works with unittest test discovery. Patch by
Zachary Ware.
http://hg.python.org/cpython/rev/a2e093e98d45
New changeset d1b5e41acf28 by Ezio Melotti in branch 'default':
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17691
Ezio Melotti added the comment:
e.g. test_source_encoding
This SGTM. I particularly dislike test_pep*, especially when I can't remember
the pep number.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18048
anatoly techtonik added the comment:
This should have been backported to Python 2. I expect some related attacks on
EuroPython.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18124
___
___
Roundup Robot added the comment:
New changeset dacd8f430e0e by Ezio Melotti in branch '2.7':
#18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev.
http://hg.python.org/cpython/rev/dacd8f430e0e
New changeset aafa11c1dd61 by Ezio Melotti in branch '3.3':
#18126: update NumPy
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17691
___
___
Ezio Melotti added the comment:
Not sure it's worth making the logic more complicated just to save one line in
some occasions. Hiding the messages about configure and pyconfig.h.in when
they are not needed would save two lines and it should be simpler to do, but if
you have something
Donald Stufft added the comment:
I would +! backporting this, but It's not massively required since it only
protects against passive attacks.
It would however make things a little nicer.
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik added the comment:
If somebody sponsor my visit to EuroPython, I will dedicate some time to
prepare a demo uploading rogue packages using sniffed credentials over WiFi
without owner's consent. After moving to CDN no upload logs are available, so
it is even more secure for
Donald Stufft added the comment:
Uploading always hits the backend servers and thus has the same logging as
before
Merely switching to HTTPS only provides protections against passive attacks.
You need verification to protect against active attacks (which are simple and
easy to do as well).
Brett Cannon added the comment:
Hasn't been moved yet. And the __import__ question should probably be rephrased
as don't do this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18034
___
Changes by Brett Cannon br...@python.org:
--
dependencies: +Document/deprecate imp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18034
___
___
A.M. Kuchling added the comment:
Updated version of my patch, which adds two more todo items and handles Ezio's
review comments:
* Switch from Greek examples to French, and remove non-Latin-1 characters.
* Change language for bytes.decode to but supports a few more possible
handlers.
*
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18106
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18038
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18101
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6632
___
___
Python-bugs-list
New submission from Brett Cannon:
This quite possibly won't work because of performance, but I have been
wondering how feasible it would be to define as many core exception types as
possible in pure Python code and then freeze the module for loading. It would
have the benefit of making
R. David Murray added the comment:
It's not about saving lines in the output, it's about saving space in the
developer's brain/workflow efficiency. That said, it is only valuable if it is
reasonably reliable.
--
___
Python tracker
Julian Berman added the comment:
New patchset addressing review. Not sure why upload.py isn't working for me (I
assume it should?)
--
Added file: http://bugs.python.org/file30510/minmax.patch
___
Python tracker rep...@bugs.python.org
Éric Araujo added the comment:
regex? do you mean weakref?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18162
___
___
Nick Coghlan added the comment:
amk's latest patch looks like a very nice improvement to me.
One suggested wording tweak for the aside about the simplified
history: s/The average Python programmer doesn't need to know the
historical details/The precise historical details aren't relevant to
Ethan Furman added the comment:
Doc updates are in.
I removed the 'unique, constant' from the first line of the intro, as neither
of those things are necessarily true.
--
Added file: http://bugs.python.org/file30511/pep-0435.10.stoneleaf.patch
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18081
___
Robert Collins added the comment:
Hey, feel free to +nosy me on unittest things :). Julian pinged me on IRC about
this - Jml and I would be delight to prepare a patchset for assertThat for
unittest and as much of the core of Matchers as makes sense. The bare core can
come in without any of
Ethan Furman added the comment:
Hmm -- I was confusing member names with member values; I'll put 'unique' back
in.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
___
78 matches
Mail list logo