Having received over 300 great proposals for talks, trainings,
helpdesks and posters, we now call out to all attendees to vote for
what you want to see on the conference schedule.
You can search for topics and communicate your personal priorities by
casting your vote for each submission on our
Serhiy Storchaka added the comment:
Made compatible with Windows compiler (I hope).
--
Added file: http://bugs.python.org/file39285/etree_clinic_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20159
Larry Hastings added the comment:
LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20159
___
___
Python-bugs-list mailing list
Unsubscribe:
Russell Keith-Magee added the comment:
This new patch (20150504.diff) adds support for running the Python test suite
The new patch is standalone, and contains everything in the previous patch.
An XCode project (Tools/iOS-test) has been added to the source tree; this
project contains bootstrap
Changes by Wessel Badenhorst wess...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2824
___
___
Changes by Wessel Badenhorst wess...@gmail.com:
--
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3539
___
___
Changes by Wessel Badenhorst wess...@gmail.com:
--
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3786
___
___
Changes by Xavier de Gaye xdeg...@gmail.com:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24122
___
___
Python-bugs-list mailing
Mark Lawrence added the comment:
Is this now fixed in VS? I don't believe I can test myself as I've only got
express/community editions.
--
components: +Windows
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Well, technically it is probably not a bug. IPython is doubtless holding on to
a reference to 'a' because it was defined at the prompt. Perhaps it could use
a weakvaluedict for that, though :) On the other hand they might consider it a
feature that
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24099
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24101
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24100
___
Antoine Pitrou added the comment:
I can propose three remedies:
A) back out the Clinic conversion in _ssl.c
B) support Clinic in 2.7 just for _ssl.c
C) do a one-time backport of the Clinic generated code for _ssl.c
I'd rather have A or C than B.
By the way, this discussion seems to focus
Larry Hastings added the comment:
Clinic's syntax is diverging from what shipped with 3.4. So if you copied
_ssl.c over, it wouldn't work with the Clinic that shipped with 3.4.
Maybe the best thing is if Clinic in trunk supports legacy mode, where the
code it generates is compatible with
Roundup Robot added the comment:
New changeset fea94f9cb5a0 by Serhiy Storchaka in branch 'default':
Issue #20159. Converted the _elementtree module to Argument Clinic.
https://hg.python.org/cpython/rev/fea94f9cb5a0
--
nosy: +python-dev
___
Python
Skip Montanaro added the comment:
It's confusing that the CFLAGS specified when running make are passed further
sometimes but not always. So I guess that's a workaround? Or CFLAGS should
never be specified to make directly?
In my experience, all the magic happens in configure. Most of the
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20168
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20148
___
Serhiy Storchaka added the comment:
Original issue is resolved and I have no any relations to modules added by
Larry.
--
dependencies: -Add docstrings for ElementTree module
stage: patch review - needs patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20159
___
___
New submission from Skip Montanaro:
I was hunting around the current website for notes on installing Python.
Couldn't find any (BTW), so I looked in the Python source. Imagine my surprise
to find two apparently overlapping files describing how to build Python modules:
./Doc/install/index.rst
Serhiy Storchaka added the comment:
Also fixed handling errors of PyObject_IsSubclass() (issue24115) in the _codecs
module.
--
Added file:
http://bugs.python.org/file39287/codecs_error_handlers_issubclass_3.patch
___
Python tracker
Larry Hastings added the comment:
This checkin broke the buildbots. If you build trunk then run
./python -bb -m test test_site
the test fails. -bb is used by the normal test runner (make test).
The problem is in the lines
self.assertTrue(os.path.isabs(os__file__),
Roundup Robot added the comment:
New changeset 41fb7fd04b5d by Larry Hastings in branch 'default':
Issue #24001: Argument Clinic converters now use accept={type}
https://hg.python.org/cpython/rev/41fb7fd04b5d
--
nosy: +python-dev
___
Python tracker
Jim Jewett added the comment:
OK, then how about
Current:
When a generator function is called, it returns an iterator known as a
generator. That generator then controls the execution of a generator function.
The execution starts when one of the generator’s methods is called.
Proposed:
Brett Cannon added the comment:
Normally I would agree comments don't belong there, but if we are going to
start giving them semantic meaning then I don't think it's not so clear to me
anymore.
As to where to attach, simple place is off of the Module node. Another is to
have it be
R. David Murray added the comment:
I don't think anything about frames is guaranteed as part of the language, so
I'm not sure that mention of it belongs in the description. Personally, I find
your reformulation more confusing that the original with 'a' replaced by 'the'.
--
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24119
___
___
Changes by Larry Hastings la...@hastings.org:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24001
___
Larry Hastings added the comment:
Here's a freshened version of the patch. I updated the Clinic HOWTO.
Serhiy: You're right, length and zeroes always have the same value. Would you
ever want length without allowing zeroes? Like, in the future, would we ever
want
str(length=True)
so
Serhiy Storchaka added the comment:
I would say it is very unlikely. In any case, if we have a pointer and a
length, we always can check for zeros after parsing.
May be rename the str converter to pchar and the Py_UNICODE converter to
pwchar? Usually the converter is named by C type, not
Trevor Bekolay added the comment:
Thanks for the quick response! I can see the use case for using interpolation
in .pypirc. Unfortunately for me, I push releases for both Python 2 and Python
3, so having the double percent sign will cause problems for me on Python 2.
The exception that's
Roundup Robot added the comment:
New changeset 36b902bbc992 by Eric Snow in branch 'default':
Issue #23911: Fix mixed bytes/strings.
https://hg.python.org/cpython/rev/36b902bbc992
--
___
Python tracker rep...@bugs.python.org
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
resolution: - fixed
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23911
___
Mark Lawrence added the comment:
The fix proposed by Alexander in issue3367.diff has never been applied. How
would I go about reproducing the original issue on Windows?
--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3
___
Python
Larry Hastings added the comment:
I have no interest in naming str to pchar.
Yes, *most* of the other converters are named after the C type they translate
to. But so far converter names doesn't mention whether or not they represent
pointers to types--it's object, not pobject, it's
Larry Hastings added the comment:
Here's an updated patch where I've removed the length parameter to
converters, instead relying solely on the zeroes parameter.
--
Added file:
http://bugs.python.org/file39289/larry.one.more.clinic.format.unit.map.cleanup.5.txt
Mark Lawrence added the comment:
@Alexander as the datetime expert could you get this committed in time for 3.5?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1100942
Mark Lawrence added the comment:
From
http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
the latest version is 6.1.23. Given the extended life span of 2.7 I'd assume
that the patch here is worth updating. See also #18734.
--
nosy:
Larry Hastings added the comment:
As for str doesn't even accept str for y and y#, the name str is not for
the Python type, it's for the C type.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24000
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23911
___
___
Serhiy Storchaka added the comment:
Why not left the length parameter instead? First, current code uses length.
Second, the main effect from C side is that an argument is a pair (pointer,
length), not just a pointer. Third, currently everywhere in Python
documentation and error messages the
Serhiy Storchaka added the comment:
May be string, or data, or buffer would be better names? str looks as
Python type.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24000
___
Larry Hastings added the comment:
I don't think those are better names.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24000
___
___
Having received over 300 great proposals for talks, trainings,
helpdesks and posters, we now call out to all attendees to vote for
what you want to see on the conference schedule.
You can search for topics and communicate your personal priorities by
casting your vote for each submission on our
But when I do:
import urllib3.contrib.pyopenssl
I get:
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py,
line 55, in module
import OpenSSL.SSL
File
Hi all,
I have a text file with Windows-style line terminators (\r\n) which I open in
universal newlines mode (Python 2.7). I would expect the newlines attribute to
be set after the first call to the readline() method, but apparently this is
not the case:
f=open('test_crlf', 'rU')
On Mon, May 4, 2015 at 6:58 PM, Cecil Westerhof ce...@decebal.nl wrote:
When I then give:
pip3 install -U OpenSSL
It goes wrong:
Could not fetch URL https://pypi.python.org/simple/OpenSSL/: 404 Client
Error: Not Found
I checked and even
https://pypi.python.org/simple/
does
While copying pasting code to test, the following works:
from itertools import islice
from os import rename
from os.pathimport expanduser, split
from tempfile import NamedTemporaryFile
real_file = (expanduser('~/Twitter/testing.txt'))
(filepath,
file)
are...@gmail.com wrote:
Hi all,
I have a text file with Windows-style line terminators (\r\n) which I open
in universal newlines mode (Python 2.7). I would expect the newlines
attribute to be set after the first call to the readline() method, but
apparently this is not the case:
Op Monday 4 May 2015 12:10 CEST schreef Chris Angelico:
On Mon, May 4, 2015 at 6:58 PM, Cecil Westerhof ce...@decebal.nl wrote:
When I then give: pip3 install -U OpenSSL It goes wrong: Could not
fetch URL https://pypi.python.org/simple/OpenSSL/: 404 Client
Error: Not Found
I checked and
On Mon, May 4, 2015 at 9:31 PM, Cecil Westerhof ce...@decebal.nl wrote:
While copying pasting code to test, the following works:
[chomp]
But first I used:
with NamedTemporaryFile(mode = 'w', prefix = file + '_', dir = filepath,
delete = False) as tf:
tempfile = tf.name
On Mon, May 4, 2015 at 10:01 PM, Peter Otten __pete...@web.de wrote:
I tried:
with open(tmp.txt, wb) as f: f.write(alpha\r\nbeta\rgamma\n)
...
f = open(tmp.txt, rU)
f.newlines
f.readline()
'alpha\n'
f.newlines
# expected: '\r\n'
f.readline()
'beta\n'
f.newlines
'\r\n' # expected:
On Mon, May 4, 2015 at 9:32 PM, Cecil Westerhof ce...@decebal.nl wrote:
Does 'pip3 install -U pyOpenSSL' work?
Not really, because that gives:
Requirement already up-to-date: pyOpenSSL in
/usr/lib64/python3.4/site-packages
Cleaning up...
I don't know why it wasn't automatically
New Slim 5 Garcinia Cambogia You can find plenty of Weight Loss tips one sees
around in company, infomercials, TV and publications. The stark reality is
that many of these tips actually work and a few really do not. To be honest
with you, the fat diets, weight products and pills recommendations or
I believe this is a bug.
I'm not sure it is, actually; imagine the text is coming in one
character at a time (eg from a pipe), and it's seen alpha\r. It
knows that this is a line, so it emits it; but until the next
character is read, it can't know whether it's going to be \r or \r\n.
What
Op Monday 4 May 2015 14:14 CEST schreef Chris Angelico:
On Mon, May 4, 2015 at 9:32 PM, Cecil Westerhof ce...@decebal.nl wrote:
Does 'pip3 install -U pyOpenSSL' work?
Not really, because that gives: Requirement already up-to-date:
pyOpenSSL in /usr/lib64/python3.4/site-packages Cleaning up...
Op Monday 4 May 2015 14:07 CEST schreef Chris Angelico:
On Mon, May 4, 2015 at 9:31 PM, Cecil Westerhof ce...@decebal.nl wrote:
While copying pasting code to test, the following works: [chomp]
But first I used: with NamedTemporaryFile(mode = 'w', prefix = file
+ '_', dir = filepath, delete =
On Mon, May 4, 2015 at 11:13 PM, Cecil Westerhof ce...@decebal.nl wrote:
That gets installed. And then I get:
ImportError: No module named 'cryptography'
So I try to install that. This gives:
Command /usr/bin/python3 -c import setuptools,
I had the same problem just now
Sent from my iPhone
On May 3, 2015, at 11:00 AM, Terry Reedy tjre...@udel.edu wrote:
On 5/3/2015 12:01 PM, Ankur Gupta wrote:
Hey Guys,
Just like to draw attention to ImportPython a weekly Python
newsletter. This is the 30th issue of the newsletter
Chris Angelico wrote:
On Mon, May 4, 2015 at 10:01 PM, Peter Otten __pete...@web.de wrote:
I tried:
with open(tmp.txt, wb) as f: f.write(alpha\r\nbeta\rgamma\n)
...
f = open(tmp.txt, rU)
f.newlines
f.readline()
'alpha\n'
f.newlines
# expected: '\r\n'
f.readline()
'beta\n'
f.newlines
On Tue, May 5, 2015 at 1:17 AM, Peter Otten __pete...@web.de wrote:
OK, you convinced me. Then I tried:
with open(tmp.txt, wb) as f: f.write(0\r\n3\r5\n7)
...
assert len(open(tmp.txt, rb).read()) == 8
f = open(tmp.txt, rU)
f.readline()
'0\n'
f.newlines
f.tell()
3
f.newlines
'\r\n'
On Mon, May 4, 2015 at 9:17 AM, Peter Otten __pete...@web.de wrote:
OK, you convinced me. Then I tried:
with open(tmp.txt, wb) as f: f.write(0\r\n3\r5\n7)
...
assert len(open(tmp.txt, rb).read()) == 8
f = open(tmp.txt, rU)
f.readline()
'0\n'
f.newlines
f.tell()
3
f.newlines
'\r\n'
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I have to be careful on? That does not work as
in C/Java, but is correct syntax.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn:
Op Monday 4 May 2015 16:18 CEST schreef Chris Angelico:
On Mon, May 4, 2015 at 11:13 PM, Cecil Westerhof ce...@decebal.nl wrote:
That gets installed. And then I get:
ImportError: No module named 'cryptography'
So I try to install that. This gives: Command /usr/bin/python3 -c
import
On Tue, May 5, 2015 at 1:11 AM, Cecil Westerhof ce...@decebal.nl wrote:
Now I get:
c/../_cffi1/ffi_obj.c:489:5: error: ISO C90 forbids mixed declarations
and code [-Werror=declaration-after-statement]
PyObject *u = PyUnicode_DecodeLatin1(PyBytes_AS_STRING(res),
^
On 05/04/2015 08:20 AM, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I have to be careful on? That does not work as
in C/Java, but is correct syntax.
One
On 4-5-2015 17:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I have to be careful on? That does not work as
in C/Java, but is correct syntax.
On 5/4/2015 9:35 AM, Davide Mancusi wrote:
I believe this is a bug.
I'm not sure it is, actually; imagine the text is coming in one
character at a time (eg from a pipe), and it's seen alpha\r. It
knows that this is a line, so it emits it; but until the next
character is read, it can't know
On Tue, May 5, 2015 at 3:32 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote:
That is a broad question, but one thing that comes to mind is the current
(python 3)
behavior of integer division. It gives the exact result and doesn't truncate
to integers:
5/4
1.25
Using the word exact around
On Mon, May 4, 2015 at 9:20 AM, Cecil Westerhof ce...@decebal.nl wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I have to be careful on? That does not work as
in C/Java,
Op Monday 4 May 2015 18:03 CEST schreef Chris Angelico:
On Tue, May 5, 2015 at 1:11 AM, Cecil Westerhof ce...@decebal.nl wrote:
Now I get: c/../_cffi1/ffi_obj.c:489:5: error: ISO C90 forbids
mixed declarations and code [-Werror=declaration-after-statement]
PyObject *u =
On Tue, May 5, 2015 at 3:19 AM, Cecil Westerhof ce...@decebal.nl wrote:
It looks like I am encircled by Gremlins:
import urllib3.contrib.pyopenssl
Traceback (most recent call last):
File stdin, line 1, in module
File
On 04/05/2015 16:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I have to be careful on? That does not work as
in C/Java, but is correct syntax.
Not
On 04/05/2015 16:11, Cecil Westerhof wrote:
Op Monday 4 May 2015 16:18 CEST schreef Chris Angelico:
On Mon, May 4, 2015 at 11:13 PM, Cecil Westerhof ce...@decebal.nl wrote:
That gets installed. And then I get:
ImportError: No module named 'cryptography'
So I try to install that. This gives:
Hi,
Wingware has released version 5.1.4 of Wing IDE, our cross-platform
integrated development environment for the Python programming language.
Wing IDE features a professional code editor with vi, emacs, visual
studio, and other key bindings, auto-completion, call tips,
context-sensitive
On 4-5-2015 19:19, Cecil Westerhof wrote:
It looks like I am encircled by Gremlins:
import urllib3.contrib.pyopenssl
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py,
line 58, in module
Roundup Robot added the comment:
New changeset 395e190ead36 by Raymond Hettinger in branch 'default':
Issue #24113: Remove unreachable code in shlex.
https://hg.python.org/cpython/rev/395e190ead36
--
nosy: +python-dev
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: normal - low
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24113
___
Ma Lin added the comment:
I found another bug in hz codec.
hz encoding uses 7-bit ASCII to represent Chinese characters, it was popular in
USENET networks in the late 1980s and early 1990s.
I will do more check and fix them together, then I will invite you to review
the patch.
u =
Hi There,
I have the error below when trying to download the html content of a webpage. I
can open this webpage in a browser without any problem. I am using Ubuntu
14.04. Could you give me come clues about what is happening and how to solve
the issue? Thanks.
$python
Python 2.7.6
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24113
___
___
On 04/05/2015 09:58, Cecil Westerhof wrote:
But when I do:
import urllib3.contrib.pyopenssl
I get:
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py, line 55,
in module
import
David D. Riddle added the comment:
I have made the changes you suggested. Please tell me if any further changes
are needed.
The unclosed file suggests a cleanup bug in linecache which we should
fix for hygiene, but is separate :)
Should I file a bug report?
--
Added file:
On 05/04/2015 04:28 PM, Cecil Westerhof wrote:
Op Monday 4 May 2015 21:39 CEST schreef Ian Kelly:
On Mon, May 4, 2015 at 11:59 AM, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 04/05/2015 16:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if
it
On 2015-05-04 21:57, Andrew Cooper wrote:
On 04/05/2015 18:43, Ian Kelly wrote:
Some other gotchas that aren't necessarily related to C/Java but
can be surprising nonetheless:
*() is a zero-element tuple, and (a, b) is a two-element
tuple, but (a) is not a one-element tuple.
On 4-5-2015 21:52, Cecil Westerhof wrote:
But I keep getting the error. Only 2 lines earlier:
import urllib3.contrib.pyopenssl
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py,
line 56,
On 04/05/2015 16:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
I think I've come across that. It doesn't mind ++ so people are likely
to be assume that increment works as in
On Mon, May 4, 2015 at 11:59 AM, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 04/05/2015 16:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if it
was C/Java. :-(
I used:
++tries
that has to be:
tries += 1
Are there other things I
Op Monday 4 May 2015 20:04 CEST schreef Mark Lawrence:
An alternative is to switch to Windows and do away with this archaic
concept of users having to build code :)
Well, maybe I get rid of some problems. But the ones I get back …
--
Cecil Westerhof
Senior Software Engineer
LinkedIn:
Op Monday 4 May 2015 21:02 CEST schreef Irmen de Jong:
On 4-5-2015 19:19, Cecil Westerhof wrote:
It looks like I am encircled by Gremlins:
import urllib3.contrib.pyopenssl
Traceback (most recent call last): File stdin, line 1, in
module File
Dmitry Shachnev added the comment:
This broke docutils, see issue #24125.
--
nosy: +mitya57
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23865
___
Using Python to update Twitter is reasonable straight forward.
I do:
from libturpial.api.coreimport Core
from libturpial.exceptions import StatusDuplicated
I fill an account_id and a message and I do:
Core().update_status(account_id, message)
And my message is posted.
It looks
Larry Hastings added the comment:
I don't know why you're bringing up previous versions of Python. The clinic.py
under review here is for 3.5.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24000
On 04/05/2015 18:43, Ian Kelly wrote:
Some other gotchas that aren't necessarily related to C/Java but can
be surprising nonetheless:
*() is a zero-element tuple, and (a, b) is a two-element tuple,
but (a) is not a one-element tuple. Tuples are created by commas, not
parentheses, so
Op Monday 4 May 2015 21:39 CEST schreef Ian Kelly:
On Mon, May 4, 2015 at 11:59 AM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
On 04/05/2015 16:20, Cecil Westerhof wrote:
Potential dangerous bug introduced by programming in Python as if
it was C/Java. :-( I used: ++tries that has to be:
Larry Hastings added the comment:
The length attribute is an internal implementation detail, so its name is not
relevant. It's used in the generation of the accompanying length parameter
for the impl function for this converter. length is a good name for it.
zeroes is not a good name for
Larry Hastings added the comment:
As for why not length instead of zeroes: Because the primary reason for the
parameter is specifying that the string can contain embedded zeroes. Returning
the length is a side-effect of this, not the main point. If the string didn't
have embedded zeroes, we
On Mon, May 4, 2015 at 12:59 PM, Cecil Westerhof ce...@decebal.nl wrote:
I want to change an old Bash script to Python. When I look at:
https://docs.python.org/2/library/email-examples.html
Then from and to have to be used two times? Why is that?
Once to construct the message headers, and
1 - 100 of 112 matches
Mail list logo