On behalf of the SciPy development team I'm pleased to announce the
availability of SciPy 0.13.0. This release contains some interesting new
features (see highlights below) and half a year's worth of maintenance
work. 65 people contributed to this release.
Some of the highlights are:
- support
Introducing EditXT 1.3.2 - a programmer's text editor for Mac OS X
==
Download it from GitHub:
https://github.com/editxt/editxt/releases/tag/1.3.2
Features:
- Syntax highlighting for Python and JavaScript (more definitions can be
I have a written a first draft outlining a proposal for a PyCon in a
sub-Saharan African nation where there has never been one.
http://pycons-in-africa.readthedocs.org
There's an email list for people interested in becoming involved in the
idea: http://groups.google.com/group/pycons-in-africa.
On behalf of the Python development team, I'm very pleased to announce
the fourth and final alpha release of Python 3.4.
This is a preview release, and its use is not recommended for
production settings.
Python 3.4 includes a range of improvements of the 3.x series, including
hundreds of small
dill: serialize all of python (almost)
# Version
0.2a1: 10/20/13
The latest released version is dill-0.2a1, available at:
http://dev.danse.us/trac/pathos
You can get the latest development release with all the shiny new features
at:
http://dev.danse.us/packages
or even better, fork us
isort (the Python import sorting library, command line tool, Vim plugin,
Sublime plugin, and Kate plugin) has released version 2.2.0:
Improvements since 2.0.0 release:
- Improved module grouping detection method.
- Added two additional multi-line output modes (Vertical Grid Vertical Grid
The use of getattr here seems unfortunate
Unfortunate how? It's a perfect for what I want here ... remember the context
is such that the lazily stored value is always truthy (I assert this elsewhere).
I'm not sure why you want to avoid an __init__ method.
Why do you want to keep it? The
On Monday, October 14, 2013 10:32:36 AM UTC+5:30, Steven D'Aprano wrote:
On Sun, 13 Oct 2013 20:13:32 -0700, Tim Roberts wrote:
def add(c1, c2):
% Decode
c1 = ord(c1) - 65
c2 = ord(c2) - 65
% Process
i1 = (c1 + c2) % 26
% Encode
return
Why not simply have one, and use it to initialize your attributes,
even if it is to None?
Think about it this way. None here really means not yet initialized. It is a
value that cannot occur naturally and thus functions as a not-initialized flag.
But for different contexts, this value could
On 20/10/2013 03:13, Roy Smith wrote:
In article mailman.1278.1382234998.18130.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
Heck, I can't even really move off 2.6 because we use Amazon's EMR
service, which is stuck on 2.6.
Hrm. 2.6 is now in source-only security-only
Peter Cacioppi peter.cacio...@gmail.com writes:
I was laboring under some misconception that there was Python magic
that allowed __init__ and only __init__ to add class attributes by
setting their values. Good to know this piece of magic isn't part of
Python, and thus lazy eval can be handled
In article abedb99b-336a-4bbe-9ddc-e98613853...@googlegroups.com,
Peter Cacioppi peter.cacio...@gmail.com wrote:
Personally, I find the ability of Python to subclass without overriding the
constructor very elegant. I don't believe the other languages I've worked in
can do this (C++, C#,
On 20/10/2013 08:09, Peter Cacioppi wrote:
Personally, I find the ability of Python to subclass without overriding the
constructor very elegant.
__new__ is the constructor which to my knowledge you've not mentioned,
__init__ is the initialiser as mentioned by Ben Finney.
--
Roses are
On Sat, Oct 19, 2013 at 2:44 PM, Peter Cacioppi
peter.cacio...@gmail.com wrote:
Is the following considered poor Python form?
class Foo (object) :
_lazy = None
def foo(self, x) :
self._lazy = self._lazy or self.get_something(x)
def get_something(self, x) :
#
Hey,
I've been working on GCCPY since roughly november 2009 at least in its
concept. It was announced as a Gsoc 2010 project and also a Gsoc 2011
project. I was mentored by Ian Taylor who has been an extremely big
influence on my software development carrer.
Gccpy is an Ahead of time
You certainly don't have to write a constructor for a subclass in C++.
Ahh, this message board is so collectively well informed (once you get past the
trolls)
The C++ project I worked on was religious about always overwriting parent class
constructors. I had assumed this was because the
Hi everyone, I have this program that writes out the name John in block
letters. I was just messing around because we were just introduced to turtle a
few weeks ago in class and I'm just getting the hang of it. Before I was using
goto a certain angle, but now I'm using seth and it's so much
In article 0e9b51a9-bd78-4d34-b277-c463347e8...@googlegroups.com,
Peter Cacioppi peter.cacio...@gmail.com wrote:
You certainly don't have to write a constructor for a subclass in C++.
Ahh, this message board is so collectively well informed (once you get past
the trolls)
The C++
On Mon, Oct 21, 2013 at 4:57 AM, Peter Cacioppi
peter.cacio...@gmail.com wrote:
You certainly don't have to write a constructor for a subclass in C++.
Ahh, this message board is so collectively well informed (once you get past
the trolls)
The C++ project I worked on was religious about
At the risk of sounding like a fogey, I actually think I did, at one time, know
the distinctions between our projects protocol and the language proper for
C++. I read Scott Meyers books on C++ and STL a couple of times each and helped
design the protocol that kept us reasonably safe.
But this
On Sunday, October 20, 2013 3:56:46 PM UTC-2, Philip Herron wrote:
I've been working on GCCPY since roughly november 2009 at least in its
concept. It was announced as a Gsoc 2010 project and also a Gsoc 2011
project. I was mentored by Ian Taylor who has been an extremely big
influence on my
In article ed8755fd-308d-4a90-ad6c-42d4e9095...@googlegroups.com,
Peter Cacioppi peter.cacio...@gmail.com wrote:
I read Scott Meyers books on C++ and STL a couple of times
each and helped design the protocol that kept us reasonably safe.
Scott Meyers is an incredibly smart C++ wizard. His
try:
cur.execute( '''SELECT host, city, useros, browser, ref, hits,
lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WHERE
url = %s) ORDER BY lastvisit DESC''', page )
data = cur.fetchall()
for row in data:
(host, city,
Roy Smith r...@panix.com writes:
Scott Meyers is an incredibly smart C++ wizard. His books are amazing.
The fact that it takes somebody that smart, and books that amazing, to
teach you how not to shoot yourself in the foot with a C++ compiler says
a lot about the language.
+1 QotW
--
On behalf of the Python development team, I'm very pleased to announce
the fourth and final alpha release of Python 3.4.
This is a preview release, and its use is not recommended for
production settings.
Python 3.4 includes a range of improvements of the 3.x series, including
hundreds of small
On Fri, 18 Oct 2013 22:26:02 -0700, rusi wrote:
On Saturday, October 19, 2013 2:02:24 AM UTC+5:30, Peter Cacioppi wrote:
I still say that object-based is a distinct and meaningful subset of
object-oriented programming.
Yes that is what is asserted by
In article 52648c54$0$29981$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
According to
some, Java, which has many low-level machine primitive types, is an
object-oriented language, while Python, which has no machine primitives
and where
Hello,
I read some articles about setting PYPY_GC_MAX environment variable.
But I can't find how to get current max_heap_size value of minimark.
Please let me know how-to :)
Thanks,
Ricky
--
https://mail.python.org/mailman/listinfo/python-list
Gccpy is an Ahead of time implementation of Python ontop of GCC. So it
works as you would expect with a traditional compiler such as GCC to
compile C code. Or G++ to compile C++ etc.
That is amazing. I was just talking about how someone should make a
front-end to GCC on this list a couple of
That sound you here is Roy Smith hitting the nail on the head re: C++ and Scott
Meyers.
--
https://mail.python.org/mailman/listinfo/python-list
That sound you hear is Roy Smith hitting the nail on the head.
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, October 21, 2013 7:51:12 AM UTC+5:30, Roy Smith wrote:
In article
Steven D'Aprano wrote:
According to
some, Java, which has many low-level machine primitive types, is an
object-oriented language, while Python, which has no machine primitives
and where every value is an
Guido van Rossum added the comment:
I'm trying to let go of the AIX hang. Here's a brain dump of what I've figured
out so far.
* There were a lot of red herrings in the early discussion. This hang doesn't
seem to have anything to do with nonblocking connect() or sockets, nor even
signals.
*
Roundup Robot added the comment:
New changeset 97ad9af5d5e7 by Serhiy Storchaka in branch 'default':
Issue #12866: Fix bias() for 24-bit. Add more tests.
http://hg.python.org/cpython/rev/97ad9af5d5e7
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
LGTM (except unrelated empty line at the end of Modules/_sre.c).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17087
___
STINNER Victor added the comment:
You must update unit tests in test_faulthandler.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19306
___
___
Charles-François Natali added the comment:
David Edelsohn added the comment:
AIX has an equivalent to strace (called truss). I have recorded all AIX
system calls and signals for test_process_interactive, which hangs, following
all children created by fock. The uncompressed file is 82MB or
Guido van Rossum added the comment:
Apparently, the stdout pipe was closed by the parent process
Could it be that selecting for *read* on the *write* end of a pipe is
always ready? In _UnixWritePipeTransport there's a read handler that
immediately closes the pipe as soon as it called. I
Charles-François Natali added the comment:
Guido van Rossum added the comment:
Apparently, the stdout pipe was closed by the parent process
Could it be that selecting for *read* on the *write* end of a pipe is
always ready?
That's exactly what I was thinking when I read the code below:
New submission from David Coles:
Tools/gdb/libpython.py is currently Python 3 incompatible. Unfortunately recent
versions of gdb (such as the one provided in Ubuntu 13.10) may be linked
against Python 3 rather than Python 2, breaking debugging support.
Most of the issues appear to be trivial
Changes by Ned Deily n...@acm.org:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19308
___
___
Python-bugs-list mailing list
New submission from Charles-François Natali:
See https://groups.google.com/forum/#!topic/python-tulip/9T2_tGWe0Sc
The attached patch just changes waitpid(0) to waitpid(-1), and comes with a
trivial test.
--
components: Library (Lib)
files: asyncio_process_group.diff
keywords: easy,
Serhiy Storchaka added the comment:
Here is a patch. Now audioop functions no more accept str, but accept
bytes-like objects instead.
--
keywords: +patch
stage: needs patch - patch review
title: Deprecate accepting strings as arguments in audioop functions - audioop
functions
Nick Coghlan added the comment:
Looks good to me: +1 :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19307
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 29764a7bd6ba by Serhiy Storchaka in branch 'default':
Issue #17087: Improved the repr for regular expression match objects.
http://hg.python.org/cpython/rev/29764a7bd6ba
--
nosy: +python-dev
___
Python
Serhiy Storchaka added the comment:
Thanks all participants for the discussion.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17087
Nick Coghlan added the comment:
The patch needs to be rebased on top of the issue 19307 patch, but I like this
approach.
I say go ahead and commit it whenever you're ready :)
--
___
Python tracker rep...@bugs.python.org
New submission from Charles-François Natali:
The current SIGCHILD handler has two bugs:
- it reschedules itself if waitpid() returns 0: so if this ever happens, it
will enter a busy-loop until all children have exited
- it doesn't reschedule itself if waitpid() succeeds in reaping a child:
Stefan Krah added the comment:
Not sure if I'll ever want to support this...
I think it can be closed as wont-fix. We had a poll on python-dev
about --without-threads a while ago, and the only systems that needed
it were older OpenBSD systems and a Fujitsu supercomputer with the
Fujitsu
Ned Deily added the comment:
Still intermittently failing on 3.4.0a4 when running the entire test suite.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18650
___
Stefan Krah added the comment:
It looks like it happened again:
http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/5223/steps/test/logs/stdio
==
ERROR: test_default_timeout
New submission from Martin Matusiak:
The offending section:
http://docs.python.org/devguide/faq.html#how-do-i-find-which-changeset-introduced-a-bug-or-regression
I think this could be improved a bit. The key point is that hg bisect
--bad/good is a command relative to the checked out changeset.
Georg Brandl added the comment:
Yep (should there be a policy about this somewhere)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15663
___
New submission from Martin Matusiak:
- The purpose of this document is to outline how the latter three steps of the
process works.
work
--
components: Devguide
files: typo_compiler.diff
keywords: patch
messages: 200567
nosy: ezio.melotti, numerodix
priority: normal
severity: normal
New submission from Antoine Pitrou:
Given the huge leakage in test_ast, it looks like a compiler issue.
results for 68a7bc8bb663 on branch default
test_grammar leaked [3, 3, 3] references, sum=9
test_opcodes leaked [16, 16, 16] references, sum=48
New submission from Martin Matusiak:
- Querying data from the node structs can be done with the following macros
(which are all defined in Include/token.h
They are actually in Include/node.h, which is logical, because that is where
node is defined.
--
components: Devguide
files:
New submission from Martin Matusiak:
Location:
http://docs.python.org/devguide/compiler.html#parse-trees
- To tie all of this example, consider the rule for ‘while’:
Probably meant to be: To tie all of this together with an example, ...
- The node representing this will have TYPE(node) ==
Serhiy Storchaka added the comment:
Patch is rebased to tip.
--
Added file: http://bugs.python.org/file32245/skip_tests_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18702
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19313
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19307
___
___
Python-bugs-list mailing
New submission from Martin Matusiak:
- All code relating to the arena is in either Include/pyarena.h or
Python/pyarena.c .
I propose: All code relating to the arena is either in Include/pyarena.h or in
Python/pyarena.c .
--
components: Devguide
files: wording_compiler.diff
keywords:
Martin Matusiak added the comment:
- This needs to only be called in strategic areas where the compiler exits.
I propose: This only needs to be called in strategic areas where the compiler
exits.
--
Added file: http://bugs.python.org/file32247/wording_compiler2.diff
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: benjamin.peterson - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19313
___
___
Nick Coghlan added the comment:
Just spotted the bug in http://hg.python.org/cpython/rev/b4a325275fb0
The Py_XINCREF(name); call should have been removed, as it's the counterpart
to the removed Py_CLEAR(u-u_qualname); call
--
nosy: +ncoghlan
___
Roundup Robot added the comment:
New changeset 84a8b797c5c5 by Nick Coghlan in branch 'default':
Close #19313: remove no longer needed Py_XINCREF
http://hg.python.org/cpython/rev/84a8b797c5c5
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open - closed
Martin Matusiak added the comment:
- The functions called to generate AST nodes from the parse tree all have the
name ast_for_xx where xx is what the grammar rule that the function handles
(alias_for_import_name is the exception to this).
I'm not sure if this ought to be where xx is the
Nick Coghlan added the comment:
Before:
$ ./python -m test -R 3:3 test_ast
[1/1] test_ast
beginning 6 repetitions
123456
..
test_ast leaked [6885, 6885, 6885] references, sum=20655
test_ast leaked [4888, 4890, 4890] memory blocks, sum=14668
1 test failed:
test_ast
After:
$ ./python -m
Martin Matusiak added the comment:
- Function and macros for creating and using asdl_seq * types as found in
Python/asdl.c and Include/asdl.h:
I propose: The following are functions and macros for creating and using
asdl_seq * types as found in Python/asdl.c and Include/asdl.h:
--
Martin Matusiak added the comment:
- As for handling the line number on which a statement is defined, is handled
by compiler_visit_stmt() and thus is not a worry.
I don't understand the final clause here. What is not a worry and why would it
be a worry?
The grammar is awkward as well.
Martin Matusiak added the comment:
- But you will also need to change the ‘compiler’ package. The key files to do
that are Lib/compiler/pyassem.py and Lib/compiler/pycodegen.py .
compiler was removed in 2.6 or 2.7 iirc. I think it's safe to remove these
two sentences.
--
Added file:
Matthias Klose added the comment:
should go into 2.7 as well.
--
nosy: +doko
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19308
___
David Edelsohn added the comment:
To test this theory, it should be sufficient to comment out
self._loop.add_reader(self._fileno, self._read_ready)
When I comment out this line, test_subprocess_interactive succeeds on AIX.
--
___
Python tracker
Martin Matusiak added the comment:
- If you wish to make changes that affect the output of bytecode without having
to update the magic number each time (while testing your changes) you can just
delete your old .py(c|o) files! Even though you will end up changing the magic
number if you change
Martin Matusiak added the comment:
- marshaling
marshalling
--
Added file: http://bugs.python.org/file32251/wording_typo.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19316
___
Elazar Gershuni added the comment:
Looks good to me.
Is it possible to add it to 2.7? I think it won't break any PEP8-following code
(e.g. not testing for type equality/identity)
--
___
Python tracker rep...@bugs.python.org
Martin Matusiak added the comment:
- import.c
- Home of the magic number (named MAGIC) for bytecode versioning
Probably out of date. I cannot find MAGIC being defined in this file.
--
___
Python tracker rep...@bugs.python.org
Martin Matusiak added the comment:
- Lib/
- compiler/
- pyassem.py
- One of the files that must be modified if Include/opcode.h is changed.
- pycodegen.py
- One of the files that must be modified if Include/opcode.h is changed.
More mentions of the compiler package.
--
Added file:
Roundup Robot added the comment:
New changeset 44ac81e6d584 by Serhiy Storchaka in branch '2.7':
Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
http://hg.python.org/cpython/rev/44ac81e6d584
New changeset 38db4d0726bd by Serhiy Storchaka in branch '3.3':
Issue #16038:
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: -Python 2.7, Python 3.1, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
David Edelsohn added the comment:
For completeness, the highlights of the new truss trace output after the
echo.py change and only tracing the main process to avoid confusion from the
interleaved output:
test_subprocess_interactive (test.test_asyncio.test_events.PollEventLoopTests)
...
Vajrasky Kok added the comment:
Added patch to add timezone support for sqlite3 datetime adapter.
--
keywords: +patch
nosy: +vajrasky
Added file:
http://bugs.python.org/file32253/add_timezone_support_for_sqlite3_datetime_adapter.patch
___
Python
Serhiy Storchaka added the comment:
Here is a port of changeset 8a6def3add5b for 2.7. However getreply() is not
tested yet.
--
Added file: http://bugs.python.org/file32254/smtplib_maxline-2.7.patch
___
Python tracker rep...@bugs.python.org
Arfrever Frehtes Taifersar Arahesis added the comment:
(3.1 branch is open to security fixes.)
--
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
New submission from Maciej Bliziński:
On Solaris, when you want to link shared libraries from custom directories, you
most often don't modify the system search path, but instead set RPATH in your
binaries. For example, OpenCSW packages Python into /opt/csw, and sets Python
executable's RPATH
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Removed file:
http://bugs.python.org/file32255/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Added file: http://bugs.python.org/file32256/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Removed file:
http://bugs.python.org/file32256/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Added file: http://bugs.python.org/file32257/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Sunny K added the comment:
This issue is present in 3.4 too.
Added patch for 3.4.
--
keywords: +patch
nosy: +sunfinite
versions: +Python 3.4
Added file: http://bugs.python.org/file32258/pydoc.patch
___
Python tracker rep...@bugs.python.org
Guido van Rossum added the comment:
I added an LGTM plus a pointer to
http://code.google.com/p/tulip/issues/detail?id=68
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19309
___
Guido van Rossum added the comment:
Ah, sorry, I didn't see this before reviewing your other change to the same
code. Your 2nd bullet is http://code.google.com/p/tulip/issues/detail?id=68
--
___
Python tracker rep...@bugs.python.org
Changes by Guido van Rossum gu...@python.org:
--
assignee: - gvanrossum
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19295
___
Guido van Rossum added the comment:
Could it be that selecting for *read* on the *write* end of a pipe is
always ready?
That's exactly what I was thinking when I read the code below: that's
definitely a possibility on AIX.
David confirmed that it is the _read_ready() that closes the pipe
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Removed file:
http://bugs.python.org/file32257/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Changes by Maciej Bliziński maciej.blizin...@gmail.com:
Added file: http://bugs.python.org/file32259/find_library_looks_into_rpath.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19317
___
Charles-François Natali added the comment:
I guess we'll have to write platform-dependent code and make this an
optional feature. (Essentially, on platforms like AIX, for a
write-pipe, connection_lost() won't be called unless you try to write
some more bytes to it.)
I do believe that so
Richard Oudkerk added the comment:
I guess we'll have to write platform-dependent code and make this an
optional feature. (Essentially, on platforms like AIX, for a
write-pipe, connection_lost() won't be called unless you try to write
some more bytes to it.)
If we are not capturing
Martin Matusiak added the comment:
I have been thinking about a fix for this. A straightforward fix would be to
add a kwarg readrc=True to the constructor of Pdb that will default to reading
the rc files as it does now, and allows disabling this default.
The implication is that all tests in
Christian Heimes added the comment:
I think it's more likely that my patch is triggering an existing bug. The
locking code for the SSL module and OpenSSL doesn't release locks on fork. I
have attached an experimental patch that unlocks all locks in the client.
Please try if it resolves the
Giampaolo Rodola' added the comment:
You are right. I will try to provide patches for other Python versions
later next week.
On Sun, Oct 20, 2013 at 5:08 PM, Arfrever Frehtes Taifersar Arahesis
rep...@bugs.python.org wrote:
Arfrever Frehtes Taifersar Arahesis added the comment:
(3.1
1 - 100 of 218 matches
Mail list logo