pytest-2.2.4: bug fixes, better junitxml/unittest/python3 compat
===
pytest-2.2.4 is a minor backward-compatible release of the versatile
py.test testing tool. It contains bug fixes and a few refinements
to junitxml
Hi all,
The 3.7 release features the following:
Many improvements to SWT/Eclipse RCP support, including support for
GEF applications.
Many improvements to wxPython support, status changed from Alpha to Beta.
Support for Python 3 and Tkinter added.
Shortcuts can now be parametrized.
Many
Hello,
I am pleased to announce the release of Enthought Python Distribution, EPD
version 7.3, along with its EPD Free counterpart. The highlights of this
release are: the addition of enaml, Shapely and several other packages,
as well as updates to over 30 packages, including SciPy and IPython.
Am 23.05.2012 02:51, schrieb Benjamin Kaplan:
Even easier:
./configure
make
sudo make altinstall
If I recall correctly, that will install it in
/usr/local/lib/python2.6 and it will create /usr/local/bin/python2.6
but it will not create /usr/local/bin/python so it won't clobber the
Am 23.05.2012 09:40, schrieb Christian Heimes:
You recall correctly. That's the recommended and correct way to install
Python 2.6 on a recent machine, with one exception. You must compile it
with the option MACHDEP=linux2, otherwise sys.platform will contain the
string linux3 [1]. You also
Dan Stromberg wrote:
On Tue, May 22, 2012 at 3:20 PM, Ben Finney
ben+pyt...@benfinney.id.au mailto:ben+pyt...@benfinney.id.au wrote:
Python Recruiter ro...@omniumit.com mailto:ro...@omniumit.com
writes:
Can any one help? I am looking for a Senior Python Developer
Yes,
On Wed, May 23, 2012 at 7:27 PM, Jean-Michel Pichavant
jeanmic...@sequans.com wrote:
Sorry for asking but what do you mean by doing latitude and longitude. I
tried dictionaries + google and didn't find how these geographical terms
apply to job boards. Since you said it's important...
My
On 23/05/2012 00:34, Dan Stromberg wrote:
I find it more than a little disappointing that the Python Job Board
doesn't do latitude and longitude. It's a big missed opportunity. Yes,
it's not an identical process from nation to nation, but it's still
important.
If you had experience of how
I have some problems with Python 3.2 on Windows.
I want to use the turtle package, works fine,
but I can't close the turtle windows.
On MacOS-X, I launch idle -n and it's fine.
How can I do that on Windows ?
Thanks,
fd
--
http://mail.python.org/mailman/listinfo/python-list
Am 22.05.2012 04:37, schrieb Simon Cropper:
On 22/05/12 05:35, Sibylle Koczian wrote:
So I suppose you're using Python 2 or that's acceptable for you at
least. In this case I'd take a long look at Dabo: http://www.dabodev.com/
That's based on wxPython but easier to use and explicitly made for
s=[1,2,3]
s.append(5)
s
[1, 2, 3, 5]
s=s.append(5)
s
print s
None
why can't s=s.append(5) ,what is the reason?--
http://mail.python.org/mailman/listinfo/python-list
wrote:
s=[1,2,3]
s.append(5)
s
[1, 2, 3, 5]
s=s.append(5)
s
print s
None
why can't s=s.append(5) ,what is the reason?
Because the append method returns None, not the object. It modifies the
object in place, and does not create any copy.
You can still write
s = s + [5]
if you
On 4/5/2012 10:10 PM, Steve Howell wrote:
On Apr 5, 9:59 pm, rusirustompm...@gmail.com wrote:
On Apr 6, 6:56 am, Steve Howellshowel...@yahoo.com wrote:
You've one-upped me with 2-to-the-N backspace escaping.
Early attempts at UNIX word processing, nroff and troff,
suffered from that
On Wed, May 23, 2012 at 8:23 AM, 水静流深 1248283...@qq.com wrote:
s=[1,2,3]
s.append(5)
s
[1, 2, 3, 5]
s=s.append(5)
s
print s
None
why can't s=s.append(5) ,what is the reason?
For the same reason that you don't see `[1, 2, 3, 5]` immediately
after doing `s.append(5)` the first time
On 5/23/2012 5:23 AM 水静流深 said...
s=[1,2,3]
s.append(5)
s
[1, 2, 3, 5]
s=s.append(5)
s
print s
None
why can't s=s.append(5)
It could, but it doesn't.
,what is the reason?
A design decision -- there's currently a mix of methods that return
themselves and not. Mostly is
On 05/23/2012 03:13 PM, Emile van Sebille wrote:
On 5/23/2012 5:23 AM 水静流深 said...
s=[1,2,3]
s.append(5)
s
[1, 2, 3, 5]
s=s.append(5)
s
print s
None
why can't s=s.append(5)
It could, but it doesn't.
,what is the reason?
A design decision -- there's currently a mix of
On Wed, May 23, 2012 at 12:42 PM, Dave Angel d...@davea.name wrote:
On 05/23/2012 03:13 PM, Emile van Sebille wrote:
A design decision -- there's currently a mix of methods that return
themselves and not. Mostly is appears to me that mutables modify in
place without returning self and
the documentation says argparse.prase_args creates a new empty namespace,
but if i pass it a existing namespace, it seems to append the arguments to
the existing namespace
An example is if it's part of a class, calling
parser.parse_args(namespace=self) doesn't seem to have any ill effects. Is
this
On 5/23/2012 3:25 PM, Gelonida N wrote:
So I just install 2.7 and uncheck this box and I'll keep 2.6 right?
Different versions are installed in different locations by default, and
if you uncheck that box, the installer will leave file associations alone.
--
CPython 3.3.0a3 | Windows NT
On 23/05/2012 21:45, Andrew Berg wrote:
On 5/23/2012 3:25 PM, Gelonida N wrote:
So I just install 2.7 and uncheck this box and I'll keep 2.6 right?
Different versions are installed in different locations by default, and
if you uncheck that box, the installer will leave file associations alone.
On 23/05/2012 11:30, Chris Withers wrote:
On 23/05/2012 00:34, Dan Stromberg wrote:
I find it more than a little disappointing that the Python Job Board
doesn't do latitude and longitude. It's a big missed opportunity. Yes,
it's not an identical process from nation to nation, but it's still
On Wed, May 23, 2012 at 2:27 AM, Jean-Michel Pichavant
jeanmic...@sequans.com wrote:
Dan Stromberg wrote:
On Tue, May 22, 2012 at 3:20 PM, Ben Finney
ben+pyt...@benfinney.id.aumailto:
ben+python@benfinney.**id.au ben%2bpyt...@benfinney.id.au wrote:
Python Recruiter ro...@omniumit.com
On Wed, May 23, 2012 at 3:30 AM, Chris Withers ch...@python.org wrote:
On 23/05/2012 00:34, Dan Stromberg wrote:
I find it more than a little disappointing that the Python Job Board
doesn't do latitude and longitude. It's a big missed opportunity. Yes,
it's not an identical process from
Jean-Michel Pichavant wrote:
Meanwhile you can shorten the code this way:
root.addHandler(FileHandler('debug.log'))
root.handlers[-1].setLevel(DEBUG)
Eh? Readability was the aim.
--
Fayaz Yusuf Khan
Cloud architect, Dexetra SS, India
fayaz.yusuf.khan_AT_gmail_DOT_com,
Hi, we're investigating transitioning our company from matlab to python. We
found OMPC as a MATLAB m-file-to Python translator, but we're encountering a
problem using the translated code to import MATLAB data structures into Python.
For example, when we save data within MATLAB this way:
x.a =
Python 3.2 enhanced contextlib.contextmanager so that it is possible to
use a context manager as a decorator. For instance, given the
contextmanager factory below
@contextmanager
def before_after():
print(before)
yield
print(after)
it is possibile to use it to generate decorators:
I am trying to join an online class that uses python. I need to brush up on the
language quickly. Is there a good book or resource that covers it well but does
not have to explain what an if..then..else statement is?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
I have a problem with the visualization of korean fonts on Python.
When I try to type in the characters only squares come out.
I have tried to install the CJK codec, the hangul 1.0 codec but still
no result.
Hoep someone can help me out.
--
http://mail.python.org/mailman/listinfo/python-list
Changes by anatoly techtonik techto...@gmail.com:
--
nosy: +techtonik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4755
___
___
Python-bugs-list
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14884
___
___
Python-bugs-list
New submission from Марк Коренберг socketp...@gmail.com:
Pure-python implementation:
if isinstance(o, (list, tuple)):
C implementation:
if (PyList_Check(obj) || PyTuple_Check(obj))
This make real difference (!) in my code.
So, please change pure-python implementation to:
if
Changes by Марк Коренберг socketp...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14886
___
___
Python-bugs-list
New submission from Ronald Oussoren ronaldousso...@mac.com:
The pysetup3 command gives a fairly unfriendly error message with python
traceback when you specify an unknown command:
pysetup3 instal
Unrecognized action instal
Traceback (most recent call last):
File
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ab94ed2a8012 by Hynek Schlawack in branch 'default':
#14885: Make support.skip_unless_xattr check also tempfile
http://hg.python.org/cpython/rev/ab94ed2a8012
--
nosy: +python-dev
Hynek Schlawack h...@ox.cx added the comment:
Awesome, thank you for your cooperation!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14885
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14886
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
What difference does it make? Are you using __instancecheck__ perhaps?
--
nosy: +pitrou
versions: -Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14886
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Personally, I would factor out the code for Popen.communicate() in to a
Communicator class which wraps a Popen object and has a method
communicate(input, timeout=None) - (bytes_written, output, error)
How would this differ from
Michael Driscoll m...@pythonlibrary.org added the comment:
Here's a new patch that I think addresses both issues. Thanks for your insights.
--
Added file: http://bugs.python.org/file25678/setup.patch
___
Python tracker rep...@bugs.python.org
Holger Mickler holger.mick...@tu-dresden.de added the comment:
I just stumbled upon the same problem with Python 2.7.3 on SLES 11 SP1 amd64.
Obviously, SuSE puts the needed header file into /usr/include/ncurses/, and one
can either create a symlink in /usr/include/ or apply a patch to
Petri Lehtinen pe...@digip.org added the comment:
Ben Wolfson wrote:
Maybe, but the last time it went to python-dev (in December) there
was little discussion at all, and the patches that exist now worked
on the codebase as it existed then.
Maybe it's pointless to bring it up on python-dev
R. David Murray rdmur...@bitdance.com added the comment:
Heh. Maybe what we ought to do is drop the shell argument and make everyone
build their own shell invocations :)
Actually, an API refactor where a shell call looks like this might be kind of
cool:
Popen(shell_cmd('echo magic'))
Richard Oudkerk shibt...@gmail.com added the comment:
(1) Good catch. I suspect that this could be mitigated even if we cared
about LinuxThreads. I haven't looked, but there's got to be a way to
determine if we are a thread or a fork child.
Using a generation count would probably work just
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: invalid -
stage: committed/rejected -
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12271
___
New submission from Antoine Pitrou pit...@free.fr:
This appears to be 2.7-only:
$ ./python -m test.regrtest -M5G -v test_hashlib
== CPython 2.7.3+ (2.7:086afe7b61f5, May 23 2012, 15:15:34) [GCC 4.5.2]
== Linux-2.6.38.8-desktop-10.mga-x86_64-with-mandrake-1-Official little-endian
==
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file25679/md5_huge.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14888
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14888
___
___
Yuriy Syrovetskiy c...@cblp.su added the comment:
Can the datagramHandler.host change during execution? If so, the address family
of the socket can change. So, we should create a socket for every new message.
Check my patch #2.
Also I extended socket.create_connection to support UDP.
Richard Oudkerk shibt...@gmail.com added the comment:
How would this differ from the normal communicate()?
It would block until one of the following occurs:
* some data has been written to stdin,
* some data has been read from stdout or stderr, or
* timeout passes (if timeout is not None).
Yuriy Syrovetskiy c...@cblp.su added the comment:
test_logging is not broken, but just fails.
test test_logging failed -- Traceback (most recent call last):
File /home/cblp/my/cpython_default/Lib/test/test_logging.py, line 2903, in
test_time
self.assertEqual(f.formatTime(r), '1993-04-21
Jesús Cea Avión j...@jcea.es added the comment:
Does this affect other hash modules?. Why is this not affecting python 3?
Patch looks good.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14888
Antoine Pitrou pit...@free.fr added the comment:
Does this affect other hash modules?
I don't know, only md5 seems to have tests for large data.
. Why is this not affecting python 3?
The _md5 module was apparently rewritten in Python 3.
--
___
Éric Araujo mer...@netwok.org added the comment:
Already reported, fixed in distutils2 and to be sideported to packaging soon.
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - Don't print traceback for unrecognized actions,
New submission from Larry Hastings la...@hastings.org:
If you pass a valid PyUnicodeObject into PyUnicode_AsObject(), it incref's the
original object and returns it.
If you pass a valid PyBytesObject into PyBytes_AsObject()... it fails.
I assert that in the PyBytes_AsObject() should behave
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14889
___
___
Python-bugs-list mailing list
Eli Bendersky eli...@gmail.com added the comment:
Nitpicking: the drop down (in both VC++ 2008 2010 express) is named Solution
Configurations [note the 's' in the end]
But this name does now appear anywhere - only if you hover on the dropbox. I
don't mind either way - either leave it what it
Michael Driscoll m...@pythonlibrary.org added the comment:
@ Eli - Sorry about that. I just went with Brian's wording on that. I didn't
realize it was plural. My experience with Visual Studio is limited, although I
hope to rectify that at some point. Anyway, I corrected the patch and attached
Eli Bendersky eli...@gmail.com added the comment:
LGTM. Brian, any objections to commit?
P.S. Michael: I usually like numbering successive versions of a patch (like
setup.1.patch, setup.2.patch, or a similar scheme) - this makes it easier to
refer to more than one version in a discussion
Larry Hastings la...@hastings.org added the comment:
The appropriate four line patch. (Six with whitespace.)
--
keywords: +patch
stage: needs patch - patch review
Added file:
http://bugs.python.org/file25682/larry.pybytes_fromobject.identity.1.diff
Brian Curtin br...@python.org added the comment:
Looks good to me. Feel free to commit it, Eli.
--
assignee: brian.curtin -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14884
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I suppose you are referring to PyUnicode_FromObject() and
PyBytes_FromObject()...
And by it fails did you simply mean it fails to return the same object?
--
nosy: +amaury.forgeotdarc
___
Larry Hastings la...@hastings.org added the comment:
1) Yes, whoopsies. It's late.
2) It fails, as in, it returns NULL.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14889
___
stw sil...@googlemail.com added the comment:
I had a thought about untracking tuples. If a tuple contains only immutable
objects (atomics and tuples of atomics etc), then it should be untracked. Once
untracked, it will never need to be tracked again since the tuple is immutable.
If a tuple
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
2) It fails, as in, it returns NULL.
It's not my experience. Do you have an example?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14889
Antoine Pitrou pit...@free.fr added the comment:
Well, the patch is nice but the PyObject_CheckBuffer(...) part should have
succeeded, so it's a bit mysterious why it doesn't.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I had a thought about untracking tuples. If a tuple contains only
immutable objects (atomics and tuples of atomics etc), then it should
be untracked. Once untracked, it will never need to be tracked again
since the tuple is immutable. If a
Antoine Pitrou pit...@free.fr added the comment:
I can't reproduce this issue in my 64 bit machines, neither in Solaris
neither in Ubuntu. I guess the assertion can be fooled by compiler
optimizacions.
You should compile in debug mode.
--
___
Jesús Cea Avión j...@jcea.es added the comment:
I can't reproduce this issue in my 64 bit machines, neither in Solaris neither
in Ubuntu. I guess the assertion can be fooled by compiler optimizacions.
As a consequence, I can't check other hashes functions.
Antoine, can you reproduce it doing
Éric Araujo mer...@netwok.org added the comment:
FTR a few of us would prefer to kill TESTFN and use only tempfile in tests.
It’s cleaner.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14885
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14889
___
___
Python-bugs-list mailing list
Changes by ninsen jcsla...@gmail.com:
--
components: Library (Lib)
files: mywork.patch
keywords: patch
nosy: ninsen
priority: normal
severity: normal
status: open
title: typo in difflib
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file25683/mywork.patch
Changes by ninsen jcsla...@gmail.com:
--
type: behavior -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14890
___
___
Python-bugs-list mailing
Michael Driscoll m...@pythonlibrary.org added the comment:
Thanks for the tip Eli. I'll try to remember to number my patches next time.
This is my first time doing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14884
New submission from ninsen jcsla...@gmail.com:
This is my first patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14890
___
___
Hynek Schlawack h...@ox.cx added the comment:
It _does_ seem to me like cruft.
Ditching it won’t be easy though:
$ grep -PR TESTFN Lib/test | wc -l
1390
But it’s good to know to actively avoid using TESTFN whenever possible. I
usually adapted myself to module style till now.
--
New submission from Frederick Ross madhad...@gmail.com:
The following code throws an UnboundLocal error:
def f(x):
def g():
x = x + a
return x
return g()
f(b)
--
components: None
messages: 161432
nosy: Frederick.Ross
priority: normal
severity: normal
status:
Hynek Schlawack h...@ox.cx added the comment:
Hmmm, iff could be also meant as a abbreviation for “if and only if:
http://en.wikipedia.org/wiki/Iff
IIRC is the usage of such abbreviations rather frowned upon though.
--
nosy: +hynek
___
Python
stw sil...@googlemail.com added the comment:
I had a thought about untracking tuples. If a tuple contains only
immutable objects (atomics and tuples of atomics etc), then it should
be untracked. Once untracked, it will never need to be tracked again
since the tuple is immutable. If a tuple
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Yeah, I'm pretty sure it means if and only if.
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14890
___
Antoine Pitrou pit...@free.fr added the comment:
Le mercredi 23 mai 2012 à 16:22 +, stw a écrit :
So the tuple is linked-in to the garbage collection list before its
contents are constructed?
It is. It typically happens when you do (in C code):
PyObject *my_tuple = PyTuple_New(2);
/*
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is expected behavior:
http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
--
nosy: +amaury.forgeotdarc
resolution: - invalid
status: open - closed
Jesús Cea Avión j...@jcea.es added the comment:
sha1 fails the same way. Same error. Just clone the test to show it.
Please, correct sha1 too and add a test for it :).
sha224, sha256, sha384 and sha512 seems OK.
--
___
Python tracker
Jesús Cea Avión j...@jcea.es added the comment:
sha224, sha256, sha384 and sha512 are not failing because they are missing the
Py_SAFE_DOWNCAST safety net completely.
So I would tell that we have an issue here :).
--
___
Python tracker
Jesús Cea Avión j...@jcea.es added the comment:
Same can be said about Python 3 hash modules: they are not using the sanity
check, so they work.
Maybe the real question should be if the sanity check really makes sense at
all. If not, remove everywhere (the calculated md5 with no checks looks
Antoine Pitrou pit...@free.fr added the comment:
sha1 fails the same way. Same error. Just clone the test to show it.
Please, correct sha1 too and add a test for it :).
Well, do you want to provide an updated patch?
--
___
Python tracker
Frederick Ross madhad...@gmail.com added the comment:
Assignment in Python creates a new binding. Whether the new binding shadows or
replaces an old binding should be irrelevant. This behavior is inconsistent
with that. Please fix expectations, and then Python interpreter.
--
Michael Driscoll m...@pythonlibrary.org added the comment:
Looking at 3.3.rst, it looks like we could just add the blurb to the end of the
file in the Other issues section. The windows.rst file is potentially more
complicated as I assume we need to leave the directions for adding the path for
Petri Lehtinen pe...@digip.org added the comment:
Ok. Closing as wontfix then.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13445
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e55c65fc3cb4 by Eli Bendersky in branch 'default':
Issue #14884: fixed a couple of typos in the Windows build instructions. Patch
by Michael Driscoll
http://hg.python.org/devguide/rev/e55c65fc3cb4
--
nosy:
Petri Lehtinen pe...@digip.org added the comment:
poq: I see you have submitted a few other patches to the tracker, too. For us
to be able to use your patches, you should sign the PSF Contributor Agreement
as described here: http://www.python.org/psf/contrib/.
--
Eli Bendersky eli...@gmail.com added the comment:
Done (with a tiny fix inserting parens to avoid ambiguity in a sentence).
Thanks for the contribution!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Changes by Petri Lehtinen pe...@digip.org:
--
title: fdopen not listed in __all__ of os.py - os.__all__ is missing some names
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14862
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 352147bbefdb by Petri Lehtinen in branch 'default':
#14862: Add missing names to os.__all__
http://hg.python.org/cpython/rev/352147bbefdb
--
nosy: +python-dev
___
Python
Changes by Petri Lehtinen pe...@digip.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14862
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
What fails here is the evaluation of x, not the assignment!
You are right concerning the assignment, the outer definition has no effect at
all. The very presence of x = in the function code turns x into a local
variable for the
New submission from olivier-mattelaer olivier.mattel...@uclouvain.be:
Hi Everyone,
I have found a strange behavior of the import command for the routine readline:
The commands (put in the file test.py) is simply:
import readline
print readline.__doc__
If I run this programs normally (i.e.
New submission from Zachary Ware zachary.w...@gmail.com:
A couple months ago, I had never before heard of function annotations and came
across a function that had them (I don't remember where or what it was). I
spent a fair bit of time searching fruitlessly to figure out what the heck that
-
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0be296605165 by Sandro Tosi in branch 'default':
Issue #14814: improve docstrings and arguments value handling, as per Terry J.
Reedy's comments
http://hg.python.org/cpython/rev/0be296605165
--
New submission from Natalia natalia.frydr...@gmail.com:
$ python2.7 -c 'from distutils.version import LooseVersion as V; print V(a)
V(1)'
True
$ python3.2 -c 'from distutils.version import LooseVersion as V; print(V(a)
V(b))'
False
$ python3.2 -c 'from distutils.version import LooseVersion
Hynek Schlawack h...@ox.cx added the comment:
A small bikeshed as it’s a new module:
- there’s only one free line before _collapse_addresses_recursive,
_get_prefix_length and _count_righthand_zero_bits.
- class IPv6Address docstring has a \n too much
- ip_interface, v4_int_to_packed,
1 - 100 of 147 matches
Mail list logo