On 2016-09-11 00:44, Trevon Bizzle wrote:
Good evening! I tried downloading Python yesterday and was met with some
success. I have been searching for solutions but can not seem to find
one. Each time I try to run python an error occurs saying;
python.exe - System Error
The program can't start
On 2016-09-02 23:45, Brett Cannon wrote:
On Fri, 2 Sep 2016 at 15:11 Chris Angelico > wrote:
On Sat, Sep 3, 2016 at 7:56 AM, Brett Cannon > wrote:
> On Fri, 2 Sep 2016 at 13:31 Dino Viehland via
On 2016-07-23 05:23, Tian JiaLin wrote:
Hey Guys,
I found the mistake I made, basically I'm using a tool called Sentry to
capture the exceptions.
The value returned from the Python is 2^64-1, which is -1
from mysql_affected_rows.
Sentry is using JSON format as the a kind of storage, apparently
On 2016-06-20 02:29, Brett Cannon wrote:
On Sat, 18 Jun 2016 at 21:49 Guido van Rossum > wrote:
[snip]
Could you figure out some other way to store per-code-object data?
It seems you considered this but decided that the co_extra field was
On 2016-06-14 01:47, Larry Hastings wrote:
On 06/13/2016 05:05 PM, MRAB wrote:
This could be avoided by expanding the items to include the index of
the 'previous' and 'next' item, so that they could be handled like a
doubly-linked list.
The disadvantage would be that it would use more memory
On 2016-06-13 17:34, Ethan Furman wrote:
On 06/10/2016 02:13 PM, Franklin? Lee wrote:
P.S.: If anyone is missing the relevance, Raymond Hettinger's compact
dicts are inherently ordered until a delitem happens.[1] That could be
"good enough" for many purposes, including kwargs and class
On 2016-06-03 22:50, R. David Murray wrote:
I don't understand how it happened, but apparently I got a merge commit
backward and merged 3.6 into 3.5 and pushed it without realizing what
had happened. If anyone has any clue how to reverse this cleanly,
please let me know. (There are a couple
On 2016-05-08 00:06, Ethan Furman wrote:
I just reviewed an issue on the tracker, and found that many, if not
all, of my comments made at the time I completely disagree with (both
now, and before -- I'm going to claim sleep deprivation).
Obviously I should post a new comment explaining my
On 2016-05-05 16:26, Ryan Gonzalez wrote:
On Thu, May 5, 2016 at 3:24 AM, Deepak Srivastava
> wrote:
Dear All,
I am new to python and very much excited to learn this technology.
I have done setup of python 3.5.1 with
On 2016-04-15 18:03, Victor Stinner wrote:
> Hum.
>
> if (width == 0
> and height == 0
> and color == 'red'
> and emphasis == 'strong'
> or highlight > 100):
> raise ValueError("sorry, you lose")
>
> Please remove one space
On 2016-04-14 21:42, Armin Rigo wrote:
Hi Victor,
On 14 April 2016 at 17:19, Victor Stinner wrote:
Each time a dictionary is created, the global
version is incremented and the dictionary version is initialized to the
global version.
A detail, but why not set the
On 2016-04-03 08:32, Serhiy Storchaka wrote:
Originally I proposed a pair of macros for safe reference replacing to
reflects the duality of Py_DECREF/Py_XDECREF. [1], [2] The one should
use Py_DECREF and the other should use Py_XDECREF.
But then I got a number of voices for the single name
On 2016-03-18 00:56, Michael Felt wrote:
Update:
Is this going to be impossible?
From what I've been able to find out, the C89 standard limits bitfields
to int, signed int and unsigned int, and the C99 standard added _Bool,
although some compilers allow other integer types too. It looks like
On 2016-03-15 20:53, MRAB wrote:
On 2016-03-15 20:30, Guido van Rossum wrote:
I came across a file that had two different coding cookies -- one on
the first line and one on the second. CPython uses the first, but mypy
happens to use the second. I couldn't find anything in the spec or
docs
On 2016-03-15 20:30, Guido van Rossum wrote:
I came across a file that had two different coding cookies -- one on
the first line and one on the second. CPython uses the first, but mypy
happens to use the second. I couldn't find anything in the spec or
docs ruling out the second interpretation.
Is this something that we need to worry about?
Extremely severe bug leaves dizzying number of software and devices
vulnerable
http://arstechnica.com/security/2016/02/extremely-severe-bug-leaves-dizzying-number-of-apps-and-devices-vulnerable/
___
On 2016-02-12 20:06, Chris Barker wrote:
On Fri, Feb 12, 2016 at 1:00 AM, Paul Moore > wrote:
I have no opinion on anything other than that whatever syntax is
implemented as long as it allows single underscores between digits,
such
On 2016-02-10 22:35, Brett Cannon wrote:
[snip]
Examples::
# grouping decimal numbers by thousands
amount = 10_000_000.0
# grouping hexadecimal addresses by words
addr = 0xDEAD_BEEF
# grouping bits into bytes in a binary literal
On 2016-02-09 00:53, Guido van Rossum wrote:
The warning for 'assert (cond, msg)' was specifically put in because
this is a nasty trap. It's *always* a mistaken attempt to write
'assert cond, msg' -- usually in an attempt to break a long line
without using a backslash. I'd actually consider
On 2016-02-08 23:21, Chris Barker wrote:
On Mon, Feb 8, 2016 at 1:51 PM, Victor Stinner > wrote:
I didn't know. I just checked. It's assert used with a non-empty tuple:
>>> assert ("tuple",)
which is more interesting with a
On 2016-01-19 00:18:08, "Terry Reedy" wrote:
On 1/18/2016 6:20 PM, Brett Cannon wrote:
On Sun, 17 Jan 2016 at 11:10 Brett Cannon > wrote:
While doing a review of http://bugs.python.org/review/26129/ I
asked
to have curly
On 2015-12-04 19:22, Isaac Morland wrote:
On Fri, 4 Dec 2015, MRAB wrote:
> Constant folding is when, say, "1 + 2" replaced by "2".
Isn't that called backspacing? ;-)
Oops! I meant "1 + 1", of course. Or "3". Either would work. :-)
___
On 2015-12-04 12:49, Victor Stinner wrote:
[snip]
Constant folding
This optimization propagates constant values of variables. Example:
def func()
x = 1
y = x
return y
Constant folding:
def func()
x = 1
y = 1
On 2015-12-03 15:09, Random832 wrote:
On 2015-12-03, Laura Creighton wrote:
Who came up with the word 'display' and what does it have going for
it that I have missed? Right now I think its chief virtue is that
it is a meaningless noun. (But not meaningless enough, as I
On 2015-12-04 01:56, Chris Angelico wrote:
On Fri, Dec 4, 2015 at 12:25 PM, Steven D'Aprano wrote:
I don't see any good reason for maintaining that there's just one
syntax, "display", which comes in two forms: a comma-separated set of
values, or a for-loop. The only thing
On 2015-12-04 01:25, Steven D'Aprano wrote:
On Thu, Dec 03, 2015 at 09:25:53AM -0800, Andrew Barnert via Python-Dev wrote:
> On Dec 3, 2015, at 08:15, MRAB <pyt...@mrabarnett.plus.com> wrote:
>
>>> On 2015-12-03 15:09, Random832 wrote:
>>> On 2015-12-03, Laura Cre
On 2015-11-17 01:53, Serhiy Storchaka wrote:
I'm working on rewriting Python tokenizer (in particular the part that
reads and decodes Python source file). The code is complicated. For now
there are such cases:
* Reading from the string in memory.
* Interactive reading from the file.
* Reading
On 2015-10-26 18:45, Sven R. Kunze wrote:
On 26.10.2015 16:22, Ethan Furman wrote:
On 10/23/2015 08:20 AM, Nick Coghlan wrote:
My own objection isn't to allowing "fR" or "fbR", it's to
allowing the uppercase "F".
I also don't understand why we can't say "if 'f' is part of a
string prefix, it
On 2015-09-28 19:00, Erik Bray wrote:
On Fri, Sep 25, 2015 at 6:27 PM, Chris Barker - NOAA Federal
wrote:
You can use "Windows SDK for Windows 7 and .NET Framework 4".
http://www.microsoft.com/en-us/download/details.aspx?id=8279
Thanks. Last time I tried that route,
On 2015-09-28 21:38, Paul Moore wrote:
On 28 September 2015 at 21:18, MRAB <pyt...@mrabarnett.plus.com> wrote:
> Same here. I compile the regex module for Python 2.5-2.7 and 3.1-3.5,
> both 32-bit and 64-bit, using MinGW-w64, and I haven't had a problem yet
> that wasn
On 2015-09-12 02:23, Alexander Belopolsky wrote:
On Fri, Sep 11, 2015 at 8:56 PM, Random832 > wrote:
Alexander Belopolsky > writes:
> There is no "earlier"
t. Thanks for the heads up.
>
I purged the xPython bits, but it still wouldn't install.
I then purged the Python3.5dev... bits.
Success!
Rather a messy fix though...
>
> From: MRAB
> Sent: 9/7/2015 20:41
> To: Python-Dev
> Subject: [Python-Dev] Can't install Python 3.5rc3
>
on Windows 10.
Here's the contents of the log file:
[0A40:1CC8][2015-09-08T04:29:45]i001: Burn v3.10.0.1823, Windows v10.0
(Build 10240: Service Pack 0), path:
C:\Users\MRAB\Downloads\Python\python-3.5.0rc3.exe
[0A40:1CC8][2015-09-08T04:29:45]i000: Initializing string variable
'ActionLike
On 2015-08-17 23:06, Steve Dower wrote:
On 17Aug2015 0813, Barry Warsaw wrote:
On Aug 18, 2015, at 12:58 AM, Chris Angelico wrote:
The linters could tell you that you have no 'end' or 'start' just as
easily when it's in that form as when it's written out in full.
Certainly the mismatched
On 2015-08-12 02:05, Steve Dower wrote:
We saw and fixed it before RC 1. I'll check whether that fix didn't
stick, but go ahead, open an issue and assign me.
It's issue 24847.
From: MRAB mailto:pyt
As the subject says, I'm unable to import tkinter in Python 3.5.0rc1.
The console says:
C:\Python35python
Python 3.5.0rc1 (v3.5.0rc1:1a58b1227501, Aug 10 2015, 05:18:45) [MSC
v.1900 64 bit (AMD64)] on win32
Type help, copyright, credits or license for more information.
import tkinter
On 2015-08-10 20:23, Guido van Rossum wrote:
On Mon, Aug 10, 2015 at 8:49 PM, Eric V. Smith e...@trueblade.com
mailto:e...@trueblade.com wrote:
On 08/10/2015 02:44 PM, Yury Selivanov wrote:
On 2015-08-10 2:37 PM, Eric V. Smith wrote:
This is why I think PEP-498 isn't the solution
On 2015-08-11 00:26, Victor Stinner wrote:
Le mardi 11 août 2015, Eric V. Smith e...@trueblade.com
mailto:e...@trueblade.com a écrit :
It sounds like you want to disallow leading spaces just to
disallow this one type of expression.
I would like to reduce the number of subtle
On 2015-08-10 23:54, Victor Stinner wrote:
PEP 498:
Leading whitespace in expressions is skipped
https://www.python.org/dev/peps/pep-0498/#id28
Because expressions may begin with a left brace ('{'), there is a
problem when parsing such expressions. For example:
f'{{k:v for k,
On 2015-08-10 01:24, Peter Ludemann via Python-Dev wrote:
What if logging understood lambda? (By testing for types.FunctionType).
[snip]
Why not use 'callable'?
___
Python-Dev mailing list
Python-Dev@python.org
On 2015-07-27 15:59, Paul Moore wrote:
On 27 July 2015 at 14:59, R. David Murray rdmur...@bitdance.com wrote:
I have a feeling that I'm completely misunderstanding things, since
tzinfo is still a bit of a mystery to me.
You're not the only one :-)
I think the following statements are true.
On 2015-07-27 15:46, Lennart Regebro wrote:
On Mon, Jul 27, 2015 at 4:13 PM, Steven D'Aprano st...@pearwood.info wrote:
To me, Paul's example is a datetime operation: you start with a datetime
(7am today), perform arithmetic on it by adding a period of time (one
day), and get a datetime as the
On 2015-07-14 14:09, Nick Coghlan wrote:
On 14 July 2015 at 22:53, Xavier Morel python-...@masklinn.net wrote:
On 2015-07-14, at 14:39 , Nick Coghlan ncogh...@gmail.com wrote:
On 14 July 2015 at 22:06, Dima Tisnek dim...@gmail.com wrote:
Thus the question, how far should Python go to detect
On 2015-07-14 23:05, Ethan Furman wrote:
On 07/14/2015 02:53 PM, Robert Collins wrote:
On 15 July 2015 at 09:41, A.M. Kuchling a...@amk.ca wrote:
On Tue, Jul 14, 2015 at 09:53:33AM -0700, Ethan Furman wrote:
Part of writing tests is making sure they fail (and for the right reason) --
proper
On 2015-06-19 00:56, Steven D'Aprano wrote:
On Thu, Jun 18, 2015 at 08:34:14PM +0100, MRAB wrote:
On 2015-06-18 19:33, Larry Hastings wrote:
On 06/18/2015 11:27 AM, Terry Reedy wrote:
Unicode 8.0 was just released. Can we have unicodedata updated to
match in 3.5?
What does this entail? Data
On 2015-06-18 19:33, Larry Hastings wrote:
On 06/18/2015 11:27 AM, Terry Reedy wrote:
Unicode 8.0 was just released. Can we have unicodedata updated to
match in 3.5?
What does this entail? Data changes, code changes, both?
It looks like just data changes.
There are additional codepoints
On 2015-06-13 11:38, jaivish kothari wrote:
Hi ,
I had a Question,i hope i'll find the solution here.
Say i have a Queue.
h = Queue.Queue(maxsize=0)
h.put(1)
h.put(2)
h.empty()
False
h.join()
h.empty()
False
h.get()
1
h.get()
2
h.get()
Blocked...
My
On 2015-05-27 09:25, Paul Moore wrote:
On 27 May 2015 at 09:10, Nick Coghlan ncogh...@gmail.com wrote:
The old distutils docs aren't gone, the top level links just moved to the
distutils package docs: https://docs.python.org/3/library/distutils.html
I kept them (with the same deep link URLs)
On 2015-06-05 01:37, MRAB wrote:
On 2015-05-27 09:25, Paul Moore wrote:
On 27 May 2015 at 09:10, Nick Coghlan ncogh...@gmail.com wrote:
The old distutils docs aren't gone, the top level links just moved to the
distutils package docs: https://docs.python.org/3/library/distutils.html
I kept
On 2015-05-26 18:27, Paul Moore wrote:
On 26 May 2015 at 18:23, MRAB pyt...@mrabarnett.plus.com wrote:
I made libpython35.a like I did for the others and it's all working
now. All
the tests pass. :-)
Cool. How did you make libpython35.a? Sounds like there is some
difference
On 2015-05-26 14:24, Paul Moore wrote:
On 26 May 2015 at 13:55, Steve Dower steve.do...@microsoft.com wrote:
The builds I am responsible for include it because someone reported
an issue
and was persistent and helpful enough that I fixed it for them.
That said, until MinGW agrees on a
without a problem: Python 2.5-2.7 and
Python 3.1-3.4, both 32-bit and 64-bit, and now Python 3.5 64-bit.
That's 15 building and 1 failing!
On May 25, 2015 3:06:01 PM CDT, MRAB pyt...@mrabarnett.plus.com wrote:
As the subject says, I've been unable to build the regex module
against
Python
As the subject says, I've been unable to build the regex module against
Python 3.5b1 for 32-bit. MingGW says:
skipping incompatible .../libpython35.a when searching for -lpython35
It builds without a problem against Python 3.5 for 64-bit.
Any ideas? Should I just wait until beta 2?
On 2015-05-25 22:59, Paul Moore wrote:
On 25 May 2015 at 21:06, MRAB pyt...@mrabarnett.plus.com wrote:
As the subject says, I've been unable to build the regex module against
Python 3.5b1 for 32-bit. MingGW says:
skipping incompatible .../libpython35.a when searching for
-lpython35
On 2015-05-22 00:22, Eric Snow wrote:
On Thu, May 21, 2015 at 4:41 PM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2015-05-21 23:17, Eric Snow wrote:
The segfault is consistent if I use the same seed (e.g. 7):
PYTHONHASHSEED=7 ./python -m test.regrtest -m test_basic
test_configparser
On 2015-05-21 22:52, Eric Snow wrote:
Good catch. Unfortunately, sticking keys = ((PyDictObject
*)od)-ma_keys; right after hash = ... did not make a difference.
I still get the same segfault.
So, does it change sometimes?
On Thu, May 21, 2015 at 11:17 AM, MRAB pyt...@mrabarnett.plus.com
On 2015-05-21 23:17, Eric Snow wrote:
On Thu, May 21, 2015 at 4:06 PM, MRAB pyt...@mrabarnett.plus.com wrote:
On 2015-05-21 22:52, Eric Snow wrote:
Good catch. Unfortunately, sticking keys = ((PyDictObject
*)od)-ma_keys; right after hash = ... did not make a difference.
I still get
On 2015-05-22 01:12, Eric Snow wrote:
On Thu, May 21, 2015 at 5:55 PM, MRAB pyt...@mrabarnett.plus.com wrote:
I'm not looking at the use of PyTuple_Pack. As I understand it,
PyTuple_Pack borrows the
references of the objects passed, and when the tuple itself is DECREFed,
those objects
On 2015-05-21 15:55, Eric Snow wrote:
(see http://bugs.python.org/issue16991)
I an working on resolving an intermittent segfault that my C
OrderedDict patch introduces. The failure happens in
test_configparser (RawConfigParser uses OrderedDict internally), but
only sporadically. However, Ned
On 2015-04-23 18:51, Barry Warsaw wrote:
On Apr 21, 2015, at 01:26 PM, Yury Selivanov wrote:
The updated version of the PEP should be available shortly at
https://www.python.org/dev/peps/pep-0492 and is also pasted in this email.
There's a lot to like about PEP 492. I only want to mildly
On 2015-04-13 20:14, Alexander Belopolsky wrote:
On Mon, Apr 13, 2015 at 2:05 PM, Chris Barker chris.bar...@noaa.gov
mailto:chris.bar...@noaa.gov wrote:
However, different UTC times may map to the same wall time and
some expressible wall times are not results of a map of any
On 2015-03-21 21:00, Donald Stufft wrote:
On Mar 21, 2015, at 4:53 PM, Barry Warsaw ba...@python.org wrote:
On Mar 20, 2015, at 08:53 PM, Guido van Rossum wrote:
FWIW, I think __version__, __author__ etc. were bad ideas. Almost nobody
manages these correctly. Note that the PEP 8 section
On 2015-02-21 17:14, Antoine Pitrou wrote:
On Fri, 20 Feb 2015 14:05:11 +
Brett Cannon br...@python.org wrote:
On Thu Feb 19 2015 at 5:52:07 PM Serhiy Storchaka storch...@gmail.com
wrote:
Different patterns for TypeError messages are used in the stdlib:
expected X, Y found
On 2015-02-19 22:50, Serhiy Storchaka wrote: Different patterns for
TypeError messages are used in the stdlib:
expected X, Y found
expected X, found Y
expected X, but Y found
expected X instance, Y found
X expected, not Y
expect X, not Y
need X, Y
On 2015-02-13 00:55, Guido van Rossum wrote:
On Thu, Feb 12, 2015 at 4:36 PM, Ethan Furman et...@stoneleaf.us
mailto:et...@stoneleaf.us wrote:
I suspect the last big hurdle to making built-in data structures
nicely subclassable is the insistence of such types to
return new instances
On 2015-01-28 14:39, Alan Armour wrote:
if you can do this
a chemical physics and element physics like everything from melting
points to how much heat you need to add two chemicals together
and physics like aerodynamics, space dynamics, and hydrodynamics
etcetera for propellers and motors
On 2015-01-26 19:39, Petr Viktorin wrote:
On Mon, Jan 26, 2015 at 8:29 PM, Ethan Furman et...@stoneleaf.us wrote:
On 01/26/2015 11:24 AM, Barry Warsaw wrote:
On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote:
In the your example
from_env = {'a': 12}
from_config = {'a': 13}
f(**from_env,
On 2014-12-11 18:33, Skip Montanaro wrote:
On Thu, Dec 11, 2014 at 11:58 AM, Matthieu Bec mdcb...@gmail.com wrote:
...or keep using %f if acceptable...
That might be a problem. While it will probably work most of the time,
there are likely to be situations where the caller assumes it
On 2014-11-19 20:10, Guido van Rossum wrote:
There's a new PEP proposing to change how to treat StopIteration
bubbling up out of a generator frame (not caused by a return from
the frame). The proposal is to replace such a StopIteration with a
RuntimeError (chained to the original StopIteration),
On 2014-11-18 01:21, Terry Reedy wrote:
On 11/17/2014 9:49 AM, Stefan Bucur wrote:
I'm developing a Python static analysis tool that flags common
programming errors in Python programs. The tool is meant to complement
other tools like Pylint (which perform checks at lexical and syntactic
level)
On 2014-11-05 16:33, Ethan Furman wrote:
I'm looking for real-world uses of collections.Counter, specifically to see if
anyone has been surprised by, or had to
spend extra-time debugging, issues with the in-place operators.
If sufficient and/or compelling use-cases are uncovered, the behavior
On 2014-10-21 01:39, Terry Reedy wrote:
On 10/20/2014 7:29 PM, MRAB wrote:
On 2014-10-21 00:09, Eli Bendersky wrote:
On Mon, Oct 20, 2014 at 1:01 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote:
If I go to https://docs.python.org/3/using/index.html and click on
any
On 2014-10-21 00:09, Eli Bendersky wrote:
On Mon, Oct 20, 2014 at 1:01 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote:
If I go to https://docs.python.org/3/using/index.html and click on
any of the TOC entries, I get 'connecting' indefinitely. This
problem seems
On 2014-10-21 00:38, Oleg Broytman wrote:
On Tue, Oct 21, 2014 at 12:29:45AM +0100, MRAB pyt...@mrabarnett.plus.com
wrote:
On 2014-10-21 00:09, Eli Bendersky wrote:
On Mon, Oct 20, 2014 at 1:01 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote:
If I go to https
On 2014-10-21 02:17, MRAB wrote:
On 2014-10-21 00:38, Oleg Broytman wrote:
On Tue, Oct 21, 2014 at 12:29:45AM +0100, MRAB pyt...@mrabarnett.plus.com
wrote:
On 2014-10-21 00:09, Eli Bendersky wrote:
On Mon, Oct 20, 2014 at 1:01 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote
On 2014-08-28 05:56, Glenn Linderman wrote:
On 8/27/2014 6:08 PM, Stephen J. Turnbull wrote:
Glenn Linderman writes:
On 8/26/2014 4:31 AM, MRAB wrote:
On 2014-08-26 03:11, Stephen J. Turnbull wrote:
Nick Coghlan writes:
How about:
replace_surrogate_escapes(s
On 2014-08-26 03:11, Stephen J. Turnbull wrote:
Nick Coghlan writes:
purge_surrogate_escapes was the other term that occurred to me.
purge suggests removal, not replacement. That may be useful too.
neutralize_surrogate_escapes(s, remove=False, replacement='\uFFFD')
How about:
On 2014-08-02 16:27, Steven D'Aprano wrote:
On Sat, Aug 02, 2014 at 10:52:07AM -0400, Alexander Belopolsky wrote:
On Sat, Aug 2, 2014 at 3:39 AM, Steven D'Aprano st...@pearwood.info wrote:
String concatenation with + is an attractive
nuisance for many people, including some who actually know
On 2014-07-16 00:48, Russell E. Owen wrote:
In article
CAPTjJmoZHLfT3G4eqV+=zcvbpf65fkcmah9h_8p162uha7f...@mail.gmail.com,
Chris Angelico ros...@gmail.com wrote:
On Mon, Jul 14, 2014 at 12:04 AM, Jason R. Coombs jar...@jaraco.com wrote:
I can achieve what I need by constructing a set on the
On 2014-07-09 23:50, Ethan Furman wrote:
On 07/09/2014 02:33 PM, Ben Hoyt wrote:
On a system which did not supply is_dir automatically I would write that as:
for entry in os.scandir(path):
if ignore_entry(entry.name):
continue
if os.path.isdir(entry.full_name):
On 2014-07-08 17:57, Steven D'Aprano wrote:
[snip]
In particular, reflexivity for NANs was dropped for a number of reasons,
some stronger than others:
- One of the weaker reasons for NAN non-reflexivity is that it preserved
the identity x == y = x - y == 0. Although that is the cornerstone
Is this something that we need to worry about?
Raising Lazarus - The 20 Year Old Bug that Went to Mars
http://blog.securitymouse.com/2014/06/raising-lazarus-20-year-old-bug-that.html
___
Python-Dev mailing list
Python-Dev@python.org
On 2014-06-26 23:59, Ben Hoyt wrote:
Hi Python dev folks,
I've written a PEP proposing a specific os.scandir() API for a
directory iterator that returns the stat-like info from the OS, the
main advantage of which is to speed up os.walk() and similar
operations between 4-20x, depending on your
On 2014-06-27 02:37, Ben Hoyt wrote:
I don't mind iterdir() and would take it :-), but I'll just say why I
chose the name scandir() -- though it wasn't my suggestion originally:
iterdir() sounds like just an iterator version of listdir(), kinda
like keys() and iterkeys() in Python 2. Whereas in
On 2014-06-10 05:02, Ben Hoyt wrote:
[snip]
FILE_ATTRIBUTE_HIDDEN = 2 # constant defined in Windows.h
def is_hidden(path):
if startswith(os.path.basename(path), '.'):
return True
st = os.stat(path)
if hasattr(st, 'st_winattrs') and st.st_winattrs
On 2014-06-11 02:30, Nikolaus Rath wrote:
Hello,
I recently noticed (after some rather protacted debugging) that the
io.IOBase class comes with a destructor that calls self.close():
[0] nikratio@vostro:~/tmp$ cat test.py
import io
class Foo(io.IOBase):
def close(self):
On 2014-06-06 10:31, Victor Stinner wrote:
Hi,
I added a new BaseEventLoop.is_closed() method to Tulip and Python
3.5 to fix an issue (see Tulip issue 169 for the detail). The problem
is that I don't want to add this method to Python 3.4 because usually
we don't add new methods in minor
On 2014-06-04 14:33, Nick Coghlan wrote:
On 4 June 2014 15:39, dw+python-...@hmmz.org wrote:
On Wed, Jun 04, 2014 at 03:17:00PM +1000, Nick Coghlan wrote:
There's a general expectation that indexing will be O(1) because
all the builtin containers that support that syntax use it for
O(1)
On 2014-04-10 14:41, Paul Moore wrote:
Given the OpenSSL vulnerability and the fact that we bundle OpenSSL
with the Windows installers (1.0.1e in Python 3.4.0) should we be
releasing updated installers?
I'd say yes, but, then, I wouldn't be doing any of the work...
On 2014-04-09 14:26, Mark Lawrence wrote:
On 08/04/2014 17:30, MRAB wrote:
On 2014-04-08 16:31, Brett Cannon wrote:
Something for Python 3.5, maybe? :-)
It's not going to happen in Python 2.7; that's the end of the Python 2
series, and it's getting security fixes only.
According to http
On 2014-04-08 16:31, Brett Cannon wrote:
Please a file a bug at bugs.python.org http://bugs.python.org,
otherwise this is most likely going to get lost track of.
On Tue Apr 08 2014 at 11:30:15 AM, Kirill kir_...@rambler.ru
mailto:kir_...@rambler.ru wrote:
issue with itertools leads the
On 2014-04-08 02:45, Guido van Rossum wrote:
So what? Aren't we allowed to have fun? :-)
Next thing you know, he'll be threatening people with The Comfy Chair!
On Mon, Apr 7, 2014 at 6:06 PM, Benjamin Peterson benja...@python.org
mailto:benja...@python.org wrote:
On Mon, Apr 7, 2014, at
On 2014-04-03 16:20, Eric V. Smith wrote:
On 04/02/2014 04:08 PM, John Tyree wrote:
Hi all,
Is there any particularly reason for the following behavior on both
2.7.6 and 3.4.0 ?
{:\x005}.format(2)
'2'
{:\x205}.format(2)
'2'
{:\x015}.format(2)
On 2014-03-28 16:39, Paul Moore wrote:
On 28 March 2014 16:22, Tres Seaver tsea...@palladion.com wrote:
On 03/28/2014 12:18 PM, Tres Seaver wrote:
I'm mostly arguing the FLOSS project should feel free to ignore
high-maintenance-cost commercial concerns until those concerns bring
either blook
On 2014-03-27 15:58, Ethan Furman wrote:
On 03/27/2014 04:42 AM, Nick Coghlan wrote:
I also seem to recall Guido saying he liked it [%a], which flipped the
discussion from do we have a good rationale for including it? to do
we have a good rationale for the BDFL to ignore his instincts?.
On 2014-03-18 21:06, Nick Coghlan wrote:
On 19 Mar 2014 05:10, Larry Hastings la...@hastings.org
mailto:la...@hastings.org wrote:
On 03/18/2014 12:05 PM, Georg Brandl wrote:
Am 18.03.2014 19:29, schrieb Serhiy Storchaka:
26.02.14 11:40, Serhiy Storchaka написав(ла):
Let's choose
On 2014-03-10 15:04, Steven D'Aprano wrote:
On Mon, Mar 10, 2014 at 02:55:26PM +0100, Victor Stinner wrote:
[...]
So can we please try to stop scheduling another major Python version
breaking almost all modules and all applications just to be pendantic?
No, we should not remove any old feature
On 2014-03-10 17:06, Chris Angelico wrote:
On Tue, Mar 11, 2014 at 3:56 AM, Antoine Pitrou solip...@pitrou.net wrote:
On Mon, 10 Mar 2014 17:04:08 +0100
Stefan Richthofer stefan.richtho...@gmx.de wrote:
Guido famously hates two digit minor version numbers. :)
This is no problem either.
On 2014-03-10 17:08, R. David Murray wrote:
On Mon, 10 Mar 2014 16:06:22 -, Brett Cannon bcan...@gmail.com wrote:
On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner victor.stin...@gmail.com
wrote:
2014-03-10 16:25 GMT+01:00 Stefan Richthofer stefan.richtho...@gmx.de:
I don't see the
On 2014-02-23 00:09, Chris Angelico wrote:
On Sun, Feb 23, 2014 at 11:00 AM, Thomas Wouters tho...@python.org
wrote:
On Sat, Feb 22, 2014 at 2:08 AM, Thomas Wouters tho...@python.org
wrote:
(FWIW, I have a working patch without tests that allows all of
these, I'll upload it tonight so
201 - 300 of 506 matches
Mail list logo