EuroPython 2015: Vote for the talks you want to see

2015-05-04 Thread M.-A. Lemburg
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

[issue20159] Derby #7: Convert 51 sites to Argument Clinic across 3 files - Derby: Convert the ElementTree module to use Argument Clinic

2015-05-04 Thread Serhiy Storchaka
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

[issue20159] Derby #7: Convert 51 sites to Argument Clinic across 3 files - Derby: Convert the ElementTree module to use Argument Clinic

2015-05-04 Thread Larry Hastings
Larry Hastings added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20159 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23670] Modifications to support iOS as a cross-compilation target

2015-05-04 Thread Russell Keith-Magee
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

[issue2824] zipfile to handle duplicate files in archive

2015-05-04 Thread Wessel Badenhorst
Changes by Wessel Badenhorst wess...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2824 ___ ___

[issue3539] Problem with testembed make dependencies in certain circumstances

2015-05-04 Thread Wessel Badenhorst
Changes by Wessel Badenhorst wess...@gmail.com: -- type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3539 ___ ___

[issue3786] _curses, _curses_panel _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2015-05-04 Thread Wessel Badenhorst
Changes by Wessel Badenhorst wess...@gmail.com: -- type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3786 ___ ___

[issue24122] Install fails after configure sets the extending/embedding install directory to NONE

2015-05-04 Thread Xavier de Gaye
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

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2015-05-04 Thread Mark Lawrence
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

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-04 Thread R. David Murray
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

[issue24099] Use after free in siftdown (1)

2015-05-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24099 ___

[issue24101] Use after free in siftup

2015-05-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24101 ___

[issue24100] Use after free in siftdown (2)

2015-05-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24100 ___

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-04 Thread Antoine Pitrou
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

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-04 Thread Larry Hastings
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

[issue20159] Derby #7: Convert 51 sites to Argument Clinic across 3 files - Derby: Convert the ElementTree module to use Argument Clinic

2015-05-04 Thread Roundup Robot
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

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-04 Thread Skip Montanaro
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

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148 ___

[issue20159] Derby #7: Convert 51 sites to Argument Clinic across 3 files - Derby: Convert the ElementTree module to use Argument Clinic

2015-05-04 Thread Serhiy Storchaka
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

[issue20159] Derby #7: Convert 51 sites to Argument Clinic across 3 files - Derby: Convert the ElementTree module to use Argument Clinic

2015-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: -serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20159 ___ ___

[issue24124] Two versions of instructions for installing Python modules

2015-05-04 Thread Skip Montanaro
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

[issue24102] Multiple type confusions in unicode error handlers

2015-05-04 Thread Serhiy Storchaka
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

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-04 Thread Larry Hastings
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__),

[issue24001] Clinic: use raw types in types= set

2015-05-04 Thread Roundup Robot
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

[issue24088] yield expression confusion

2015-05-04 Thread Jim Jewett
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:

[issue24119] Carry comments with the AST

2015-05-04 Thread Brett Cannon
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

[issue24088] yield expression confusion

2015-05-04 Thread R. David Murray
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'. --

[issue24119] Carry comments with the AST

2015-05-04 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24119 ___ ___

[issue24001] Clinic: use raw types in types= set

2015-05-04 Thread Larry Hastings
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 ___

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Serhiy Storchaka
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

[issue24086] Configparser interpolation is unexpected

2015-05-04 Thread Trevor Bekolay
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

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-04 Thread Roundup Robot
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

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-04 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23911 ___

[issue3367] Uninitialized value read in parsetok.c

2015-05-04 Thread Mark Lawrence
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2015-05-04 Thread Mark Lawrence
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

[issue17477] update the bsddb module do build with db 5.x versions

2015-05-04 Thread Mark Lawrence
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:

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

[issue23911] Move path-based bootstrap code to a separate frozen file.

2015-05-04 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23911 ___ ___

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Serhiy Storchaka
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Serhiy Storchaka
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 ___

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
Larry Hastings added the comment: I don't think those are better names. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24000 ___ ___

EuroPython 2015: Vote for the talks you want to see

2015-05-04 Thread M.-A. Lemburg
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

Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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

when does newlines get set in universal newlines mode?

2015-05-04 Thread arekfu
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')

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread 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 even https://pypi.python.org/simple/ does

Why do I get SyntaxError: invalid syntax

2015-05-04 Thread Cecil Westerhof
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)

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Peter Otten
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:

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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

Re: Why do I get SyntaxError: invalid syntax

2015-05-04 Thread 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 = False) as tf: tempfile = tf.name

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Chris Angelico
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:

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread 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... I don't know why it wasn't automatically

http://premiumnaturalgarciniacambogiahelp.com/new-slim-5-garcinia-cambogia/

2015-05-04 Thread briansgoins via Python-list
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

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Davide Mancusi
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

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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...

Re: Why do I get SyntaxError: invalid syntax

2015-05-04 Thread Cecil Westerhof
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 =

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread 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 setuptools,

Re: ImportPython Newsletter

2015-05-04 Thread Alex McFerron
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

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Peter Otten
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

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Chris Angelico
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'

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Ian Kelly
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'

Bitten by my C/Java experience

2015-05-04 Thread Cecil Westerhof
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:

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread 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 = PyUnicode_DecodeLatin1(PyBytes_AS_STRING(res), ^

Re: Bitten by my C/Java experience

2015-05-04 Thread Tobiah
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Irmen de Jong
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.

Re: when does newlines get set in universal newlines mode?

2015-05-04 Thread Terry Reedy
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Chris Angelico
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Ian Kelly
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,

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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 =

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Chris Angelico
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Mark Lawrence
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

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Mark Lawrence
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:

ANN: Wing IDE 5.1.4 released

2015-05-04 Thread Wingware
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

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread 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 /usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py, line 58, in module

[issue24113] shlex constructor unreachable code

2015-05-04 Thread Roundup Robot
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

[issue24113] shlex constructor unreachable code

2015-05-04 Thread Raymond Hettinger
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 ___

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-04 Thread Ma Lin
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 =

urllib2.urlopen error socket.error: [Errno 104] Connection reset by peer

2015-05-04 Thread Jia CHEN
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

[issue24113] shlex constructor unreachable code

2015-05-04 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24113 ___ ___

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Mark Lawrence
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

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-05-04 Thread David D. Riddle
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:

Re: Bitten by my C/Java experience

2015-05-04 Thread Dave Angel
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Tim Chase
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.

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Irmen de Jong
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,

Re: Bitten by my C/Java experience

2015-05-04 Thread BartC
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

Re: Bitten by my C/Java experience

2015-05-04 Thread 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: tries += 1 Are there other things I

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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:

Re: Cannot update OpenSSL for Python3

2015-05-04 Thread Cecil Westerhof
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

[issue23865] Fix possible leaks in close methods

2015-05-04 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This broke docutils, see issue #24125. -- nosy: +mitya57 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23865 ___

Updating FaceBook

2015-05-04 Thread Cecil Westerhof
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Andrew Cooper
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

Re: Bitten by my C/Java experience

2015-05-04 Thread Cecil Westerhof
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:

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-04 Thread Larry Hastings
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

Re: Why from en to two times with sending email

2015-05-04 Thread Ian Kelly
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   2   >