What do they mean, exactly? From the name I would expect that they are a
way of declaring a function or datum to be part of the API, but their
usage seems to be more to do with linkage.
It means that they will be exported from the pythonXY.dll on Windows. In
Windows DLLs, it's not sufficient
Am 23.04.2012 15:05, schrieb Kristján Valur Jónsson:
IMHO, we are _much_ too generous at applying this to almost whatever
gets exposed between .c files. I have created something called the
restricted api for our custom python27.dll where I use different
macros (PyAPI_RFUNC, pyAPI_RDATA) to
You know that I'm speaking of Windows, right?
IMHO, we shouldn't put the PyAPI* stuff on functions unless they are actual API
functions.
I don't know how the export tables for ELF .so objects is generated, but it
surely can't
export _everything_. Anyway, marking stuff as part of the API makes
Very nice! Two possible clarifications:
On Tue, Apr 24, 2012 at 10:58 AM, Jim Jewett jimjjew...@gmail.com wrote:
Glossary
Bias
Lack of accuracy that is systematically in one direction, as opposed to
random errors. When a clock is `Adjusted`_, durations overlapping the
Probably any benchmark involving a large amount of object instances with
non-trivial dictionaries.
Benchmarks should measure memory usage too, of course. Sadly that is not
possible in standard
cPython. Our 2.7 branch has extensive patching to allow custom memory
allocators to be used
(it
Here is a simplified version of the first draft of the PEP 418. The
full version can be read online.
http://www.python.org/dev/peps/pep-0418/
Thanks to everyone who helped me to work on this PEP!
I integrated last comments. There is no more open question. (Or did I
miss something?)
I didn't
Aha, so that is the rationale. Because the export table on unix is so
generous, we force ourselves to be generous on windows too?
I did some unix programming back in the day. IRIX, actually (a Sys V
derivative). I'm pretty
sure we had to explicitly specify our .so exports. But I might be
Monotonic
-
This is a particularly tricky term, as there are several subtly
incompatible definitions in use.
Is it a definition for the glossary?
C++ followed the mathematical
definition, so that a monotonic clock only promises not to go
backwards.
The C++ Timeout Specification
On Tue, 24 Apr 2012 10:24:16 +
Kristján Valur Jónsson krist...@ccpgames.com wrote:
Btw, this is of great interest to me at the moment, our Shanghai engineers
are screaming at the
memory waste incurred by dictionaries. A 10 item dictionary consumes 1/2k on
32 bits, did you
know this?
Precision
-
This is another tricky term,
This is a good reason why it is no more used in the PEP :-)
Note that precision as reported by the clock itself may use yet
another definition, and may differ between clocks.
Some C function provides the frequency of the clock (and so its
On Tue, 24 Apr 2012 05:36:41 +0200
solip...@pitrou.net wrote:
results for 8dbcedfd13f8 on branch default
test_itertools leaked [44, 44, 44] references, sum=132
test_robotparser leaked [103, 103, 103] references, sum=309
test_ssl leaked [103, 103,
Antoine Pitrou wrote:
On Tue, 24 Apr 2012 05:36:41 +0200
solip...@pitrou.net wrote:
results for 8dbcedfd13f8 on branch default
test_itertools leaked [44, 44, 44] references, sum=132
test_robotparser leaked [103, 103, 103] references, sum=309
On Tue, Apr 24, 2012 at 8:24 PM, Kristján Valur Jónsson
krist...@ccpgames.com wrote:
Perhaps I should write about this on my blog. Updating the memory allocation
macro layer in
cPython for embedding is something I'd be inclined to contribute, but it will
involve a large amount
of
On Tue, 24 Apr 2012 06:27:07 +0200
raymond.hettinger python-check...@python.org wrote:
http://hg.python.org/cpython/rev/e2a3260f1718
changeset: 76513:e2a3260f1718
branch: 2.7
parent: 76480:db26c4daecbb
user:Raymond Hettinger pyt...@rcn.com
date:Mon Apr 23 21:24:15
I'm not happy with this fix.
Admittedly code like:
class S(str):
__getattr__ = str.__add__
s = S('a')
print(S.b)
is a little weird.
But I think it should work (ie print 'ab') properly.
This works without the patch.
class S(str):
__getattribute__ = str.__add__
s = S('a')
print(S.b)
2012/4/24 Mark Shannon m...@hotpy.org:
I'm not happy with this fix.
It's not perfect, but it's an improvement.
Admittedly code like:
class S(str):
__getattr__ = str.__add__
s = S('a')
print(S.b)
is a little weird.
But I think it should work (ie print 'ab') properly.
This works
Benjamin Peterson wrote:
2012/4/24 Mark Shannon m...@hotpy.org:
I'm not happy with this fix.
It's not perfect, but it's an improvement.
Admittedly code like:
class S(str):
__getattr__ = str.__add__
s = S('a')
print(S.b)
My typo, should be:
print(s.b)
(Instance not class)
This doesn't
On Tue, Apr 24, 2012 at 6:38 AM, Victor Stinner
victor.stin...@gmail.com wrote:
Monotonic
-
This is a particularly tricky term, as there are several subtly
incompatible definitions in use.
Is it a definition for the glossary?
One use case for a PEP is that someone who does *not*
Mark Shannon wrote:
Benjamin Peterson wrote:
2012/4/24 Mark Shannon m...@hotpy.org:
I'm not happy with this fix.
It's not perfect, but it's an improvement.
Admittedly code like:
class S(str):
__getattr__ = str.__add__
s = S('a')
print(S.b)
My typo, should be:
print(s.b)
(Instance not
I don't know any monotonic with a defined epoch or
mappable to the civil time.
The very basic seconds (not even milliseconds) since the beginning of
1970 fits that definition, but doesn't seem to fit what most people
mean by Monotonic Clock.
I'm still a little fuzzy on *why* it shouldn't
On Thu, Apr 19, 2012 at 18:56, eric.smith wrote:
+Note that an ImportError will no longer be raised for a directory
+lacking an ``__init__.py`` file. Such a directory will now be imported
+as a namespace package, whereas in prior Python versions an
+ImportError would be raised.
Given that
On Thu, Apr 19, 2012 at 18:56, eric.smith wrote:
+Note that an ImportError will no longer be raised for a directory
+lacking an ``__init__.py`` file. Such a directory will now be imported
+as a namespace package, whereas in prior Python versions an
+ImportError would be raised.
Given that
On 19.04.2012 03:36, ezio.melotti wrote:
http://hg.python.org/cpython/rev/36c901fcfcda
changeset: 76413:36c901fcfcda
branch: 2.7
user:Ezio Melotti ezio.melo...@gmail.com
date:Wed Apr 18 19:08:41 2012 -0600
summary:
#14538: HTMLParser can now parse correctly start
Quoting Kristján Valur Jónsson krist...@ccpgames.com:
You know that I'm speaking of Windows, right?
Yes, but this may only be valid for CCP; for CPython, we certainly
have to consider Unix as well.
IMHO, we shouldn't put the PyAPI* stuff on functions unless they are
actual API functions.
Quoting Kristján Valur Jónsson krist...@ccpgames.com:
Aha, so that is the rationale. Because the export table on unix is so
generous, we force ourselves to be generous on windows too?
Yes. If the code compiles and links on Unix, it shall also compile and
link on Windows.
I did some unix
CPython 3.3.0a2 (default, Apr 24 2012, 10:47:03) [GCC 4.4.5]
Linux-2.6.32-5-amd64-x86_64-with-debian-6.0.4 little-endian
Ran make test. Hung during test_socket. Used CNTL-C to exit the test.
test_ssl failed. Ran ./python -m test -v test_ssl. Test ok. Ran
./python -m test -v test_socket which
Benchmarks should measure memory usage too, of course. Sadly that
is not possible in standard cPython.
It's actually very easy in standard CPython, using sys.getsizeof.
Btw, this is of great interest to me at the moment, our Shanghai
engineers are screaming at the
memory waste incurred by
2012/4/24 Georg Brandl g.bra...@gmx.net:
On 19.04.2012 03:36, ezio.melotti wrote:
http://hg.python.org/cpython/rev/36c901fcfcda
changeset: 76413:36c901fcfcda
branch: 2.7
user: Ezio Melotti ezio.melo...@gmail.com
date: Wed Apr 18 19:08:41 2012 -0600
summary:
#14538:
On Tue, Apr 24, 2012 at 2:34 PM, Benjamin Peterson benja...@python.org wrote:
There is in the since that you can follow the HTML5 algorithm, which
can parse any junk you throw at it.
This whole can of worms is why I gave up on HTML years ago (well, one
reason among many).
There are markup
On 24.04.2012 20:34, Benjamin Peterson wrote:
2012/4/24 Georg Brandl g.bra...@gmx.net:
On 19.04.2012 03:36, ezio.melotti wrote:
http://hg.python.org/cpython/rev/36c901fcfcda
changeset: 76413:36c901fcfcda
branch: 2.7
user:Ezio Melotti ezio.melo...@gmail.com
date:Wed
2012/4/24 Benjamin Peterson benja...@python.org:
There is in the since
This is confusing, since I meant sense.
--
Regards,
Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
On Tue, 24 Apr 2012 21:00:49 +0200
jesus.cea python-check...@python.org wrote:
http://hg.python.org/cpython/rev/2023f48b32b6
changeset: 76537:2023f48b32b6
user:Jesus Cea j...@jcea.es
date:Tue Apr 24 20:59:17 2012 +0200
summary:
Closes Issue #14661: posix module: add
Le 24/04/2012 15:02, Georg Brandl a écrit :
On 24.04.2012 20:34, Benjamin Peterson wrote:
2012/4/24 Georg Brandlg.bra...@gmx.net:
I think that's misleading: there's no way to correctly parse malformed HTML.
There is in the since that you can follow the HTML5 algorithm, which
can parse any
On Tue, Apr 24, 2012 at 14:34, Éric Araujo mer...@netwok.org wrote:
Le 24/04/2012 15:02, Georg Brandl a écrit :
On 24.04.2012 20:34, Benjamin Peterson wrote:
2012/4/24 Georg Brandlg.bra...@gmx.net:
I think that's misleading: there's no way to correctly parse malformed
HTML.
There is in
jesus.cea python-check...@python.org wrote:
http://hg.python.org/cpython/rev/2023f48b32b6
changeset: 76537:2023f48b32b6
user:Jesus Cea j...@jcea.es
date:Tue Apr 24 20:59:17 2012 +0200
summary:
Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I
add
Benjamin Peterson wrote:
2012/4/24 Mark Shannon m...@hotpy.org:
I'm not happy with this fix.
It's not perfect, but it's an improvement.
Actually, I think it is probably correct.
I've been trying to break it by assigning various unusual
objects to special attributes and it seems OK so far.
2012/4/24 jesus.cea python-check...@python.org:
http://hg.python.org/cpython/rev/2023f48b32b6
changeset: 76537:2023f48b32b6
user: Jesus Cea j...@jcea.es
date: Tue Apr 24 20:59:17 2012 +0200
summary:
Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add
2012/4/24 Edward C. Jones edcjo...@comcast.net:
CPython 3.3.0a2 (default, Apr 24 2012, 10:47:03) [GCC 4.4.5]
Linux-2.6.32-5-amd64-x86_64-with-debian-6.0.4 little-endian
Ran make test. Hung during test_socket. Used CNTL-C to exit the test.
Can you investigate what is blocked in the test? Can
On Tue, 24 Apr 2012 12:05:46 -0400
Edward C. Jones edcjo...@comcast.net wrote:
CPython 3.3.0a2 (default, Apr 24 2012, 10:47:03) [GCC 4.4.5]
Linux-2.6.32-5-amd64-x86_64-with-debian-6.0.4 little-endian
Ran make test. Hung during test_socket. Used CNTL-C to exit the test.
test_ssl failed.
Okay, advice please.
When responding to posts, should the poster to whom I am responding be
listed as well as python-dev, or should my responses just go to python-dev?
I see both ways occuring, and am not sure if one or the other is preferred.
As a reference point, on python-list I almost
On Tue, 24 Apr 2012 13:46:51 -0700
Ethan Furman et...@stoneleaf.us wrote:
Okay, advice please.
When responding to posts, should the poster to whom I am responding be
listed as well as python-dev, or should my responses just go to python-dev?
I prefer responses to python-dev only myself; I
On Tue, Apr 24, 2012 at 01:46:51PM -0700, Ethan Furman et...@stoneleaf.us
wrote:
When responding to posts, should the poster to whom I am responding
be listed as well as python-dev, or should my responses just go to
python-dev?
I reply to list only, except when I want extra attention (e.g.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 04/24/2012 04:46 PM, Ethan Furman wrote:
Okay, advice please.
When responding to posts, should the poster to whom I am responding be
listed as well as python-dev, or should my responses just go to
python-dev?
I see both ways occuring, and
Ethan Furman et...@stoneleaf.us writes:
When responding to posts, should the poster to whom I am responding be
listed as well as python-dev, or should my responses just go to
python-dev?
IMO, the poster to whom you are responding should expect to read your
response in the same forum where
On Wed, Apr 25, 2012 at 1:19 AM, Jim Jewett jimjjew...@gmail.com wrote:
I'm still a little fuzzy on *why* it shouldn't count as a monotonic
clock.
So are the people who say it shouldn't count (unless you're speaking
of the specific implementation on Unix systems, which can go backward
if the
On Wed, Apr 25, 2012 at 5:46 AM, Ethan Furman et...@stoneleaf.us wrote:
When responding to posts, should the poster to whom I am responding be
listed as well as python-dev, or should my responses just go to python-dev?
I see both ways occuring, and am not sure if one or the other is
On Wed, Apr 25, 2012 at 1:44 PM, Stephen J. Turnbull step...@xemacs.org wrote:
I don't know of any webmail implementations that provide
reply-to-list, so a lot of us end up using reply-to-all. Cleaning up
the headers requires at least deleting the To (which is where the
author ends up), and
On Wed, Apr 25, 2012 at 1:58 PM, Chris Angelico ros...@gmail.com wrote:
On Wed, Apr 25, 2012 at 1:44 PM, Stephen J. Turnbull step...@xemacs.org
wrote:
I don't know of any webmail implementations that provide
reply-to-list, so a lot of us end up using reply-to-all. Cleaning up
the headers
48 matches
Mail list logo