Right again. The simplest rule to remember seems to be don't use yield or
yield-from inside a with-statement. You can relax it by limiting it to
context managers that manage any kind of shared resource, but that is
probably already too subtle: e.g. yielding inside with open(file) as f
seems
On Sat, Oct 12, 2013 at 11:06 AM, Georg Brandl g.bra...@gmx.net wrote:
Am 12.10.2013 19:37, schrieb Antoine Pitrou:
On Sat, 12 Oct 2013 19:19:44 +0200
Christian Heimes christ...@python.org wrote:
...
* add PBKDF2 to ``hashlib``
* make ``hashlib`` a package and add PBKDF2 to a new
On Sat, Oct 12, 2013 at 2:31 PM, Christian Heimes christ...@python.orgwrote:
Am 12.10.2013 23:04, schrieb Gregory P. Smith:
agreed with any of these three.
I'm going for hashlib.pbkdf2_hmac() for now. Right now it's just one
function. We can always add a new module for a high level
On Fri, Oct 11, 2013 at 11:41 AM, Glenn Linderman v+pyt...@g.nevcal.comwrote:
On 10/11/2013 10:19 AM, Eric V. Smith wrote:
On 10/11/2013 12:43 PM, Barry Warsaw wrote:
On Oct 11, 2013, at 06:27 PM, Georg Brandl wrote:
Maybe to fit in with other verb-like APIs used as context managers:
On Thu, Oct 3, 2013 at 11:42 AM, Christian Heimes christ...@python.orgwrote:
Hi,
some of you may have seen that I'm working on a PEP for a new hash API
and new algorithms for hashing of bytes and str. The PEP has three major
aspects. It introduces DJB's SipHash as secure hash algorithm,
On Thu, Oct 3, 2013 at 12:05 PM, Guido van Rossum gu...@python.org wrote:
We already have adopted a feature that plugged most viable attacks on web
apps, I think that's enough.
Actually... we did not do a very good job on that:
http://bugs.python.org/issue14621
The point of allowing
On Thu, Oct 3, 2013 at 1:06 PM, Victor Stinner victor.stin...@gmail.comwrote:
2013/10/3 Christian Heimes christ...@python.org:
A hash algorithm can be added and one avaible hash
algorithm can be set before Py_Initialize() is called for the first
time.
Py_Initialize is not the good guard.
Just drop support for 10.6 with Python 3.4. Problem solved. People on that
old of a version of the OS can build their own Python 3.4 or do the right
thing and upgrade or just install Linux.
This isn't Windows. Compiler tool chains are freely available for the
legacy platform. We don't need to
On Wed, Sep 18, 2013 at 6:38 AM, Ronald Oussoren ronaldousso...@mac.comwrote:
On Sep 18, 2013, at 03:03 PM, Martin v. Löwis mar...@v.loewis.de
wrote:
Am 15.09.13 00:56, schrieb Ryan:
+1. A 10.6-only build makes sense.
I'd like to support Russell's point: this could put a burden on
On Fri, Aug 30, 2013 at 10:57 AM, Guido van Rossum gu...@python.org wrote:
I don't have a strong opinion on this either. The distinction between
send() and send_all() makes sense to me though (send_all() works hard to
get all your data out, send() only does what it can quickly).
Personally
First, I really like this. +1
On Wed, Aug 28, 2013 at 6:07 PM, Victor Stinner victor.stin...@gmail.comwrote:
2013/8/29 Victor Stinner victor.stin...@gmail.com:
My proposed implementation for Python 3.4 is different:
* no enable() / disable() function: tracemalloc can only be enabled
On Fri, Jul 26, 2013 at 3:23 PM, Antoine Pitrou solip...@pitrou.net wrote:
On Sat, 27 Jul 2013 00:18:40 +0200
Victor Stinner victor.stin...@gmail.com wrote:
2013/7/26 Antoine Pitrou solip...@pitrou.net:
On Fri, 26 Jul 2013 22:17:47 +0200
On Linux, setting the close-on-flag has a low
On Tue, Jul 23, 2013 at 8:46 AM, Ronald Oussoren ronaldousso...@mac.comwrote:
On 23 Jul, 2013, at 17:36, Christian Heimes christ...@python.org wrote:
Am 23.07.2013 17:10, schrieb Benjamin Peterson:
PyErr_SetFromErrno() already and always returns NULL. Or do you prefer
to return NULL
On Mon, Jul 22, 2013 at 2:44 PM, Ben North b...@redfrontdoor.org wrote:
Hi,
A friend of mine, Ruadhan O'Flanagan, came across a bug which turned out
to be the one noted in [http://bugs.python.org/issue18019], i.e.:
d={}
d[42]=d.viewvalues()
d
segmentation fault
This issue has been
On Mon, Jul 15, 2013 at 4:14 PM, Guido van Rossum gu...@python.org wrote:
In a discussion about mypy I discovered that the Python 3 version of
the re module's Match object behaves subtly different from the Python
2 version when the target string (i.e. the haystack, not the needle)
is a buffer
+1 This is already how we've been behaving for years.
On Sun, Jul 14, 2013 at 4:09 AM, Nick Coghlan ncogh...@gmail.com wrote:
On 14 July 2013 18:11, Nick Coghlan ncogh...@gmail.com wrote:
Currently, the naming section of PEP 8 doesn't say very much about what a
leading underscore *means*
Please update the docstring in subprocess.py with the wording improvements
that you settle on while you're at it.
On Sat, Jul 6, 2013 at 6:03 AM, Ronald Oussoren ronaldousso...@mac.comwrote:
On 6 Jul, 2013, at 14:09, Ronald Oussoren ronaldousso...@mac.com wrote:
On 6 Jul, 2013, at 13:59,
If we disallowed builds *from in source tree* requiring all output to go
into a separate build output directory instead (like any sane person does*)
we wouldn't need a crazy find in the source tree to mess things up. ;)
this can be done today:
$ mkdir foo cd foo ../my-hg/2.7/configure
On Jun 24, 2013 9:11 PM, Guido van Rossum gu...@python.org wrote:
On Mon, Jun 24, 2013 at 7:47 PM, Raymond Hettinger
raymond.hettin...@gmail.com wrote:
On Jun 24, 2013, at 4:07 AM, Victor Stinner victor.stin...@gmail.com
wrote:
Out of curiosity, do you know (remember) how was the number
Your work is great! I even agree with the changes on a coding best
practices level.
It's just that it belongs on the default (3.4) branch as it is an
enhancement, not a bug fix.
We don't do new things on release branches.
I agree that can be extremely frustrating at times, knowing that code
Raymond -
Why did you do this in the 2.7 branch?
It hasn't been done in 3.3 or default and it isn't not the sort of change
we make in a stable release branch without justification. What issue was
this for? What problem were you solving?
-gps
On Mon, Jun 17, 2013 at 11:08 PM, Ethan Furman
fwiw i'm also supportive of adding these apis. Lets PEP away to iron out
any details or document disagreements but overall I'd also like to see
something a lot like these go in.
-gps
On Fri, Jun 14, 2013 at 10:50 PM, Nick Coghlan ncogh...@gmail.com wrote:
On 15 June 2013 11:54, Victor
I tend to just pick a name and stick with it. subprocess32 is subprocess
backported from 3.2 (with the 3.3 timeout feature also in it). unittest2
is unittest from 2.7.
It tends to work. and it also emphasizes that i'm unlikely to backport
future non-bugfix updates beyond the release mentioned
+1 I second the scoundrel!
fwiw, that pep being implemented is going to be a great addition to Python.
:)
On Tue, May 21, 2013 at 8:57 AM, Antoine Pitrou solip...@pitrou.net wrote:
Hello,
I would like to nominate Benjamin as BDFL-Delegate for PEP 442.
Please tell me if you would like to
On Sat, May 18, 2013 at 11:41 PM, Raymond Hettinger
raymond.hettin...@gmail.com wrote:
On May 14, 2013, at 9:39 AM, Gregory P. Smith g...@krypto.org wrote:
Bad: doctests.
I'm hoping that core developers don't get caught-up in the doctests are
bad meme.
So long as doctests insist
On May 19, 2013 4:31 PM, Benjamin Peterson benja...@python.org wrote:
2013/5/19 Gregory P. Smith g...@krypto.org:
Idea: I don't believe anybody has written a fixer for lib2to3 that
applies
fixers to doctests. That'd be an interesting project for someone.
2to3 can operate on doctests
On Thu, May 16, 2013 at 11:04 AM, Barry Warsaw ba...@python.org wrote:
On May 16, 2013, at 09:44 AM, Ethan Furman wrote:
Is it happening on the same machines? If so, perhaps a daemon to monitor
those files and then scream and shout when one changes. Might help track
down what's going on at
On Sun, May 12, 2013 at 3:04 PM, Ben Hoyt benh...@gmail.com wrote:
And if we're creating a custom object instead, why return a 2-tuple
rather than making the entry's name an attribute of the custom object?
To me, that suggests a more reasonable API for os.scandir() might be
for it to be
On Sun, May 12, 2013 at 4:49 PM, Raymond Hettinger
raymond.hettin...@gmail.com wrote:
* will enums break doctests or any existing user code
Those are already broken by design. We shouldn't be limited just because
someone wrote a bad test that assumed a particular repr of a value. We've
Bad: doctests.
On Tue, May 14, 2013 at 5:08 AM, Steven D'Aprano st...@pearwood.infowrote:
On 14/05/13 16:51, Gregory P. Smith wrote:
[...]
This sounds like a feature request for doctest. doctest could be educated
about enums and automatically compare to the integer value for such cases
On Mon, May 6, 2013 at 7:50 PM, Terry Jan Reedy tjre...@udel.edu wrote:
On 5/6/2013 6:34 PM, Antoine Pitrou wrote:
On Mon, 06 May 2013 18:23:02 -0400
Terry Jan Reedy tjre...@udel.edu wrote:
'Item' is necessarily left vague for mutable sequences as bytearrays
also store values. The fact
On Sun, Apr 7, 2013 at 6:53 AM, Christian Tismer tis...@stackless.comwrote:
Hi Skip,
On 07.04.13 14:10, Skip Montanaro wrote:
I started writing this last night before the flurry of messages which
arrived overnight. I thought originally, Oh, Skip, you're being too
harsh. But now I'm not
I agree with Benjamin though is it really necessary to do two 2.7 releases
a year for the last two years? that's rather rapid (but as the release
manager its your call).
A few of us (sorry I forgot who all was there though I think Martin was?)
had a discussion at PyCon a few weeks ago and seemed
On Thu, Mar 28, 2013 at 9:09 AM, Brett Cannon br...@python.org wrote:
On Thu, Mar 28, 2013 at 10:44 AM, Thomas Heller thel...@ctypes.orgwrote:
Am 27.03.2013 20:38, schrieb Vinay Sajip:
This quote is here to stop GMane complaining that I'm top-posting.
Ignore.
I've already posted this
On Mon, Mar 25, 2013 at 2:16 PM, Victor Stinner victor.stin...@gmail.comwrote:
Hi,
I just realized that the Python peephole optimizer removes useless
instructions like numbers and strings between other instructions,
without raising an error nor emiting an error. Example:
$ python -Wd -c
On Tue, Mar 19, 2013 at 9:44 PM, Michael Foord fuzzy...@voidspace.org.ukwrote:
On 19 Mar 2013, at 17:26, Antoine Pitrou solip...@pitrou.net wrote:
On Wed, 20 Mar 2013 01:22:58 +0100 (CET)
michael.foord python-check...@python.org wrote:
http://hg.python.org/cpython/rev/684b75600fa9
On Thu, Feb 28, 2013 at 1:15 AM, Nick Coghlan ncogh...@gmail.com wrote:
On Thu, Feb 28, 2013 at 1:37 PM, Barry Warsaw ba...@python.org wrote:
On Feb 27, 2013, at 11:33 AM, fwierzbi...@gmail.com wrote:
The easy part for Jython is pushing some of our if is_jython: stuff
into the appropriate
On Wed, Feb 27, 2013 at 7:57 AM, Eli Bendersky eli...@gmail.com wrote:
I read the cffi docs once again and went through some of the examples. I
want to divide this to two topics.
One is what you call the ABI level. IMHO, it's hands down superior to
ctypes. Your readdir demo
On Thu, Jan 31, 2013 at 11:14 PM, Antoine Pitrou solip...@pitrou.netwrote:
On Fri, 1 Feb 2013 11:00:24 +1000
Nick Coghlan ncogh...@gmail.com wrote:
On Fri, Feb 1, 2013 at 9:50 AM, Antoine Pitrou solip...@pitrou.net
wrote:
On Thu, 31 Jan 2013 23:52:27 +0100 (CET)
matthias.klose
First, welcome to Python.
For people just starting out contributing we have setup a core-mentorship
mailing list ideally suited for this type of question.
http://mail.python.org/mailman/listinfo/core-mentorship
general tip: look for open issues marked with the 'easy' on bugs.python.org.
On
On Fri, Feb 1, 2013 at 7:22 AM, Antoine Pitrou solip...@pitrou.net wrote:
Le Fri, 1 Feb 2013 15:18:39 +0100,
Amaury Forgeot d'Arc amaur...@gmail.com a écrit :
2013/2/1 Charles-François Natali cf.nat...@gmail.com
dup2(oldfd, newfd) closes oldfd.
No, it doesn't close oldfd.
On Mon, Jan 7, 2013 at 4:03 PM, Benjamin Peterson benja...@python.orgwrote:
2013/1/7 Victor Stinner victor.stin...@gmail.com:
Hi,
I would like add a new flag to open() mode to close the file on exec:
e. This feature exists using different APIs depending on the OS and
OS version:
On Sun, Dec 30, 2012 at 5:33 AM, Eli Bendersky eli...@gmail.com wrote:
On Sat, Dec 29, 2012 at 5:34 PM, Nick Coghlan ncogh...@gmail.com wrote:
On Sun, Dec 30, 2012 at 10:46 AM, Benjamin Peterson benja...@python.org
wrote:
2012/12/29 Eli Bendersky eli...@gmail.com:
Hi,
This came up
On Sun, Dec 30, 2012 at 6:48 AM, R. David Murray rdmur...@bitdance.comwrote:
On Mon, 31 Dec 2012 00:38:47 +1000, Nick Coghlan ncogh...@gmail.com
wrote:
On Mon, Dec 31, 2012 at 12:19 AM, Eli Bendersky eli...@gmail.com
wrote:
On Sun, Dec 30, 2012 at 5:54 AM, Stefan Krah ste...@bytereef.org
On Thu, Dec 20, 2012 at 10:43 AM, Trent Nelson tr...@snakebite.org wrote:
This seems odd to me so I wanted to see what others think. The unit
test Lib/unittest/test/test_runner.py:Test_TextRunner.test_warnings
will eventually hit subprocess.Popen._communicate.
The
On Fri, Dec 14, 2012 at 12:02 AM, Ronald Oussoren ronaldousso...@mac.comwrote:
On 14 Dec, 2012, at 8:27, Gregory P. Smith g...@krypto.org wrote:
On Mon, Dec 10, 2012 at 11:16 PM, Antoine Pitrou solip...@pitrou.netwrote:
On Tue, 11 Dec 2012 03:05:19 +0100 (CET)
gregory.p.smith python-check
, Mark Dickinson dicki...@gmail.com wrote:
On Fri, Dec 14, 2012 at 7:27 AM, Gregory P. Smith g...@krypto.org wrote:
So changing the definition of the dummy side of the union makes zero
difference to already compiled code as it (a) doesn't change the
structure's
size and (b) all existing
On Mon, Dec 10, 2012 at 11:16 PM, Antoine Pitrou solip...@pitrou.netwrote:
On Tue, 11 Dec 2012 03:05:19 +0100 (CET)
gregory.p.smith python-check...@python.org wrote:
Using 'long double' to force this structure to be worst case aligned
is no
longer required as of Python 2.5+ when the
On Thu, Dec 13, 2012 at 11:27 PM, Gregory P. Smith g...@krypto.org wrote:
On Mon, Dec 10, 2012 at 11:16 PM, Antoine Pitrou solip...@pitrou.netwrote:
On Tue, 11 Dec 2012 03:05:19 +0100 (CET)
gregory.p.smith python-check...@python.org wrote:
Using 'long double' to force this structure
On Mon, Dec 10, 2012 at 11:21 PM, Antoine Pitrou solip...@pitrou.netwrote:
On Tue, 11 Dec 2012 08:16:27 +0100
Antoine Pitrou solip...@pitrou.net wrote:
On Tue, 11 Dec 2012 03:05:19 +0100 (CET)
gregory.p.smith python-check...@python.org wrote:
Using 'long double' to force this
On Sun, Dec 9, 2012 at 5:44 PM, Raymond Hettinger
raymond.hettin...@gmail.com wrote:
The current memory layout for dictionaries is
unnecessarily inefficient. It has a sparse table of
24-byte entries containing the hash value, key pointer,
and value pointer.
Instead, the 24-byte entries
I'm really not sure what this PEP is trying to get at given that it
contains no examples and sounds from the descriptions to be adding a
complicated api on top of something that already, IMNSHO, has too much it
(subprocess.Popen).
Regardless, any user can use the stdout/err/in file objects with
On Sat, Dec 8, 2012 at 8:14 PM, Glyph gl...@twistedmatrix.com wrote:
On Dec 7, 2012, at 5:10 PM, anatoly techtonik techto...@gmail.com wrote:
What about reading from other file descriptors? subprocess.Popen allows
arbitrary file descriptors to be used. Is there any provision here for
On Mon, Dec 3, 2012 at 2:29 PM, Larry Hastings la...@hastings.org wrote:
Say there, the Python core development community! Have I got
a question for you!
*ahem*
Which of the following four options do you dislike least? ;-)
1) CPython continues to provide no function signature
On Tue, Nov 27, 2012 at 3:19 PM, Trent Nelson tr...@snakebite.org wrote:
On Tue, Nov 27, 2012 at 03:09:12PM -0800, Matthias Klose wrote:
Am 27.11.2012 23:49, schrieb Trent Nelson:
I don't think we've currently got the ability to do this, right?
Is there a precedent set anywhere
On Wed, Nov 7, 2012 at 2:42 PM, Terry Reedy tjre...@udel.edu wrote:
On 11/7/2012 5:57 AM, anatoly techtonik wrote:
urlretrieve has a callback parameter, which takes function with the
following prototype:
def callback(block_number, block_size, total_size):
pass
Where block_size was
One word: profile.
Looking at stat counts alone rather than measuring the total time spent in
all types of system calls from strace and profiling is not really useful. ;)
Another thing to keep an eye out for within a startup profile: how often
does the gc collect? our default gc collection
On Thu, Oct 4, 2012 at 8:56 PM, Ben Leslie be...@benno.id.au wrote:
Hi all,
I have a Python program where I have many threads each calling Popen, and
I was hitting some trouble.
I've been seeing this on 3.2.3, however I believe the same issue is still
potentially a problem on head.
The
On Sun, Sep 30, 2012 at 8:33 AM, Benjamin Peterson benja...@python.orgwrote:
2012/9/30 Xavier Morel python-...@masklinn.net:
But at worst, an outdated unicode database will be missing data right?
Doesn't an outdated timezone db have the risk of returning *incorrect*
data?
Unicode
On Sun, Sep 30, 2012 at 3:17 PM, Matthias Klose d...@ubuntu.com wrote:
On 30.09.2012 20:18, Gregory P. Smith wrote:
On Sun, Sep 30, 2012 at 8:33 AM, Benjamin Peterson benja...@python.org
wrote:
2012/9/30 Xavier Morel python-...@masklinn.net:
But at worst, an outdated unicode database
Interesting results!
Another data point for the benchmarks that would be interesting is memory
consumption of the python process during the runs.
In 3.3 a reasonable place to gather this would be to add a callback to the
new gc.callbacks and save a snapshot of the process's memory usage before
-cc: python-dev
+cc: python-ideas
On Sat, Sep 29, 2012 at 11:39 AM, Chris Angelico ros...@gmail.com wrote:
On Sun, Sep 30, 2012 at 4:26 AM, Brett Cannon br...@python.org wrote:
Does this mean we want to re-open the discussion about decimal constants?
Last time this came up I think we
We have use for _PyBytes_Join in an extension module but technically it
isn't a public Python C API... anyone know why?
PyUnicode_Join is.
Looking up the bytes 'join' method and using the C API to call that method
object with proper parameters seems like overkill in the case where we're
not
On Sat, Aug 11, 2012 at 11:30 AM, Victor Stinner
victor.stin...@gmail.comwrote:
Hi,
I started to implement an AST optimizer in Python. It's easy to create
a new AST tree, so I'm surprised that I didn't find any existing
project.
Fixed. The TypeError in this nonsense never gonna work use case is now
consistent in 2.7, 3.2 and 3.3.
On Sat, Jul 21, 2012 at 7:10 PM, R. David Murray rdmur...@bitdance.comwrote:
On Sun, 22 Jul 2012 01:05:35 -,
=?iso-8859-1?Q?Kristj=E1n_Valur_J=F3nsson?= krist...@ccpgames.com wrote:
On Sat, Jun 23, 2012 at 2:31 PM, Martin v. Löwis mar...@v.loewis.dewrote:
I've been thinking about extensions to the stable ABI. On the one hand,
introducing new API can cause extension modules not to run on older
Python versions. On the other hand, the new API may well be stable in
itself,
On Thu, Jun 14, 2012 at 1:57 PM, Martin v. Löwis mar...@v.loewis.dewrote:
I don't really see the point. In my experience there is no benefit to
removing assert statements in production mode. This is a C-specific
notion that doesn't really map very well to Python code. Do other
high-level
On Fri, Jun 1, 2012 at 5:37 PM, Nick Coghlan ncogh...@gmail.com wrote:
ipaddress really made it in because I personally ran into the limitations
of not having IP address support in the stdlib. I ended up doing quite a
bit of prompting to ensure the process of cleaning up the API to modern
On Sun, Jun 3, 2012 at 2:38 PM, Nick Coghlan ncogh...@gmail.com wrote:
On Mon, Jun 4, 2012 at 6:25 AM, Gregory P. Smith g...@krypto.org wrote:
On Fri, Jun 1, 2012 at 5:37 PM, Nick Coghlan ncogh...@gmail.com wrote:
ipaddress really made it in because I personally ran into the
limitations
On Sat, May 26, 2012 at 12:28 PM, Antoine Pitrou solip...@pitrou.netwrote:
Hello,
In http://bugs.python.org/issue14837 I have attached a proof-of-concept
patch to improve the exceptions raised by the ssl module when OpenSSL
signals an error. The current situation is quite dismal, since you
On Wed, Apr 18, 2012 at 5:01 PM, David Malcolm dmalc...@redhat.com wrote:
On Thu, 2012-04-19 at 10:48 +1200, Greg Ewing wrote:
Antoine Pitrou wrote:
(and here we see why reference-stealing APIs are a nuisance: because
you never know in advance whether a function will steal a reference
On Fri, Apr 6, 2012 at 1:06 PM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote:
There is a problem with the way logging.handlers.SysLogHandler works
when presented with Unicode messages. According to RFC 5424, Unicode
is supposed to be sent encoded as UTF-8 and preceded by a BOM.
However, the
On Sat, Apr 7, 2012 at 4:56 PM, Glyph Lefkowitz gl...@twistedmatrix.comwrote:
On Apr 7, 2012, at 3:40 AM, Steven D'Aprano wrote:
In any case, NTP is not the only thing that adjusts the clock, e.g. the
operating system will adjust the time for daylight savings.
Daylight savings time is not
On Mon, Apr 9, 2012 at 4:46 PM, Guido van Rossum gu...@python.org wrote:
Is it still? I thought they fixed that ages ago?
sadly, no. http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html
On Mon, Apr 9, 2012 at 4:42 PM, Gregory P. Smith g...@krypto.org wrote:
On Sat, Apr 7, 2012 at 4:56 PM
On Tue, Mar 20, 2012 at 3:55 PM, John O'Connor jxo6...@rit.edu wrote:
On Tue, Mar 20, 2012 at 6:38 PM, Georg Brandl g.bra...@gmx.net wrote:
recently I've grown a bit tired of seeing our default Sphinx theme,
especially as so many other projects use it.
I think regardless of the chosen
+10 for the record. (given we all already agreed upon this in the summit :)
make it so.
On Mon, Mar 12, 2012 at 3:05 PM, Michael Foord mich...@voidspace.org.ukwrote:
Hello all,
At the Python Language Summit adding the mock library to the Python
Standard Library was discussed and agreed.
On Fri, Feb 24, 2012 at 1:52 PM, Tshepang Lekhonkhobe
tshep...@gmail.com wrote:
On Fri, Feb 24, 2012 at 23:39, Martin v. Löwis mar...@v.loewis.de wrote:
It is a burden for some people to learn and remember the exact details
of both systems and exactly how they differ. Having both in the stdlib
On Thu, Feb 23, 2012 at 12:04 PM, vinay.sajip
python-check...@python.org wrote:
http://hg.python.org/cpython/rev/b2adcd90e656
changeset: 75211:b2adcd90e656
branch: 3.2
parent: 75200:85d08a1ba74e
user: Vinay Sajip vinay_sa...@yahoo.co.uk
date: Thu Feb 23 19:45:52
On Thu, Feb 23, 2012 at 5:51 PM, Gregory P. Smith g...@krypto.org wrote:
On Thu, Feb 23, 2012 at 12:04 PM, vinay.sajip
python-check...@python.org wrote:
http://hg.python.org/cpython/rev/b2adcd90e656
changeset: 75211:b2adcd90e656
branch: 3.2
parent: 75200:85d08a1ba74e
user
On Wed, Feb 22, 2012 at 10:14 AM, Barry Warsaw ba...@python.org wrote:
Two more small details to address, and then I think we're ready to start
creating release candidates.
- sys.flags.hash_randomization
In the tracker issue, I had previously stated a preference that this flag
only
On Mon, Feb 20, 2012 at 10:19 PM, Gregory P. Smith g...@krypto.org wrote:
Look at PCbuild/pythoncore.vcproj within this commit, it looks like
you committed (or merged) a merge conflict marker in the file.
-gps
On Mon, Feb 20, 2012 at 6:49 PM, benjamin.peterson
python-check...@python.org
On Mon, Feb 13, 2012 at 4:59 AM, Victor Stinner
victor.stin...@gmail.com wrote:
Hi,
My work on the PEP 410 tries to unify the code to manipulate
timestamps. The problem is that I'm unable to decide how to round
these numbers.
Functions using a resolution of 1 second (e.g. time.mktime)
On Tue, Feb 14, 2012 at 2:29 PM, Barry Warsaw ba...@python.org wrote:
I think I will just state my reasoning one last time and then leave it to the
BDFL or BDFOP to make the final decision.
Victor on IRC says that there is not much difference between Decimal and
timedelta, and this may be
On Tue, Feb 14, 2012 at 4:23 PM, Nick Coghlan ncogh...@gmail.com wrote:
On Wed, Feb 15, 2012 at 8:29 AM, Barry Warsaw ba...@python.org wrote:
My primary concern with the PEP is adding to users confusion when they have
to
handle (at least) 5 different types[*] that represent time in Python.
On Tue, Feb 14, 2012 at 5:13 PM, Gregory P. Smith g...@krypto.org wrote:
On Tue, Feb 14, 2012 at 4:23 PM, Nick Coghlan ncogh...@gmail.com wrote:
On Wed, Feb 15, 2012 at 8:29 AM, Barry Warsaw ba...@python.org wrote:
My primary concern with the PEP is adding to users confusion when they have
On Sun, Feb 5, 2012 at 11:23 AM, Ned Deily n...@acm.org wrote:
In article e1ru7g3-0007mb...@dinsdale.python.org,
georg.brandl python-check...@python.org wrote:
+Bugfix Releases
+===
+
+- 3.2.1: released July 10, 2011
+- 3.2.2: released September 4, 2011
+
+- 3.2.3: planned
Why do we still care about C89? It is 2012 and we're talking about
Python 3. What compiler on what platform that anyone actually cares
about does not support C99?
-gps
___
Python-Dev mailing list
Python-Dev@python.org
On Tue, Feb 7, 2012 at 1:41 PM, Martin v. Löwis mar...@v.loewis.de wrote:
Am 07.02.2012 20:10, schrieb Gregory P. Smith:
Why do we still care about C89? It is 2012 and we're talking about
Python 3. What compiler on what platform that anyone actually cares
about does not support C99
Why is the PEP promoting the float type being used as the default on the
new-in-3.3 APIs that were added explicitly to provide nanosecond level
resolution that cannot be represented by a float?
The *new* APIs should default to the high precision return value (be that
datetime/timedelta or
On Fri, Jan 27, 2012 at 11:39 AM, mar...@v.loewis.de wrote:
In fact, none of the strategies fixes all issues with hash collisions;
even the hash-randomization solutions only deal with string keys, and
don't consider collisions on non-string keys.
The hash-randomization approach also works
On Fri, Jan 27, 2012 at 6:33 PM, Benjamin Peterson benja...@python.org wrote:
2012/1/27 Steven D'Aprano st...@pearwood.info:
Benjamin Peterson wrote:
Hello everyone,
In effort to get a fix out before Perl 6 goes mainstream, Barry and I
have decided to pronounce on what we want for our stable
On Fri, Jan 27, 2012 at 9:26 AM, Alex alex.gay...@gmail.com wrote:
Eli Bendersky eliben at gmail.com writes:
Hello,
Following an earlier discussion on python-ideas [1], we would like to
propose the following PEP for review. Discussion is welcome. The PEP
can also be viewed in HTML form at
On Sat, Jan 21, 2012 at 4:21 PM, Benjamin Peterson benja...@python.org wrote:
2012/1/21 gregory.p.smith python-check...@python.org:
...
+/* Convert ASCII to a positive int, no libc call. no overflow. -1 on error.
*/
Is no libc call important?
Yes. strtol() is not on the async signal safe
On Sat, Jan 21, 2012 at 2:33 PM, Stefan Krah ste...@bytereef.org wrote:
Benjamin Peterson benja...@python.org wrote:
Can't that give you another warning about the ssize_t being truncated to
int?
How about the following instead?
(void) write(...);
Also, if you use a recent enough
: Gregory P. Smith g...@krypto.org
date: Sat Jan 21 14:01:08 2012 -0800
summary:
Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec
On Wed, Jan 18, 2012 at 9:55 AM, Martin v. Löwis mar...@v.loewis.dewrote:
Am 18.01.2012 17:01, schrieb PJ Eby:
On Tue, Jan 17, 2012 at 7:58 PM, Martin v. Löwis mar...@v.loewis.de
mailto:mar...@v.loewis.de wrote:
Am 17.01.2012 22:26, schrieb Antoine Pitrou:
Only 2 bits are used
On Wed, Jan 18, 2012 at 12:50 PM, Antoine Pitrou solip...@pitrou.net wrote:
Well, they should be fixed now :-)
Regards
Antoine.
awesome! :)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
On Tue, Jan 17, 2012 at 12:59 PM, Martin v. Löwis mar...@v.loewis.dewrote:
I'd like to propose a different approach to seeding the string hashes:
only do so for dictionaries involving only strings, and leave the
tp_hash slot of strings unchanged.
Each string would get two hashes: the public
On Tue, Jan 17, 2012 at 12:52 PM, Martin v. Löwis mar...@v.loewis.dewrote:
I plan to commit my fix to Python 3.3 if it is accepted. Then write a
simplified version to Python 3.2 and backport it to 3.1.
I'm opposed to any change to the hash values of strings in maintenance
releases, so I
, Gregory P. Smith wrote:
It is perfectly okay to break existing users who had anything
depending
on ordering of internal hash tables. Their code was already broken.
Given that the doc says Return the hash value of the object, I do
not
think we should be so hard-nosed. The above
301 - 400 of 606 matches
Mail list logo