Re: Python 3.5, bytes, and %-interpolation (aka PEP 461)

2014-02-25 Thread wxjmfauth
Le mardi 25 février 2014 00:55:36 UTC+1, Steven D'Aprano a écrit : However, you don't really want to be adding large numbers of byte strings together, due to efficiency. Better to use % interpolation to insert them all at once. Hence the push to add % to bytes in Python 3.

Re: Python 3.5, bytes, and %-interpolation (aka PEP 461)

2014-02-25 Thread Mark Lawrence
On 25/02/2014 08:07, wxjmfa...@gmail.com wrote: What is wrong by design will always stay wrong by design. Why are you making the statement that PEP 461 is wrong by design? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: Coding a simple state machine in python

2014-02-25 Thread Mark Lawrence
On 25/02/2014 05:19, alex23 wrote: On 25/02/2014 1:27 PM, Tim Daneliuk wrote: On 02/24/2014 08:55 PM, William Ray Wing wrote: On Feb 24, 2014, at 8:30 PM, Ronaldo abhishek1...@gmail.com wrote: How do I write a state machine in python? Stackoverflow has a couple of compact examples here:

Re: Python powerpoint automation using pywin32

2014-02-25 Thread Mark Lawrence
On 25/02/2014 03:52, Jaydeep Patil wrote: On Monday, 24 February 2014 17:27:23 UTC+5:30, sffj...@gmail.com wrote: On Monday, 24 February 2014 11:35:08 UTC, Jaydeep Patil wrote: I need to create a new powerpoint presentation. I need to add images, paste some graphs, add texts, tables into

Re: Coding a simple state machine in python

2014-02-25 Thread Peter Otten
alex23 wrote: On 25/02/2014 1:27 PM, Tim Daneliuk wrote: On 02/24/2014 08:55 PM, William Ray Wing wrote: On Feb 24, 2014, at 8:30 PM, Ronaldo abhishek1...@gmail.com wrote: How do I write a state machine in python? Stackoverflow has a couple of compact examples here: Now you're making it

Re: Coding a simple state machine in python

2014-02-25 Thread Peter Otten
William Ray Wing wrote: On Feb 24, 2014, at 8:30 PM, Ronaldo abhishek1...@gmail.com wrote: How do I write a state machine in python? I have identified the states and the conditions. Is it possible to do simple a if-then-else sort of an algorithm? Below is some pseudo code: if state ==

Re: SSH/Telnet program to Router/switch

2014-02-25 Thread Ferrous Cranus
Τη Τετάρτη, 19 Φεβρουαρίου 2014 10:45:53 π.μ. UTC+2, ο χρήστης Wojciech Łysiak έγραψε: On 19.02.2014 09:14, Sujith S wrote: Hi, I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using

Re: Coding a simple state machine in python

2014-02-25 Thread Marko Rauhamaa
Peter Otten __pete...@web.de: Why have the function return a name? Why not just another function? As people have said, there are many ways to skin the cat. A function can represent a state if it is the only type of event the state machine must process. A regular expression parser would be an

Re: Python powerpoint automation using pywin32

2014-02-25 Thread sffjunkie
On Tuesday, 25 February 2014 03:52:29 UTC, Jaydeep Patil wrote: I need to use COM interface for PowerPoint generation. The following will get you started http://nbviewer.ipython.org/github/sanand0/ipython-notebooks/blob/master/Office.ipynb Then you'll need to interpret the Microsoft MSDN docs

Re: Install python 2 and 3 in the wrong order

2014-02-25 Thread sffjunkie
On Sunday, 16 February 2014 08:13:14 UTC, Nagy László Zsolt wrote: Though I don't see anything in the ActiveState builds (which are all I've ever used) to handle the #! type selection of the desired version. Just got done updating my 2.7, replacing 3.2 with 3.3, and then having to

Re: Install python 2 and 3 in the wrong order

2014-02-25 Thread Mark Lawrence
On 16/02/2014 08:13, Nagy László Zsolt wrote: And apparently, py.exe does not work the way it should be. What does this mean? Have you raised an issue on the bug tracker? I would happily reinstall 3.3 to solve the problem, but before I do that I would like to check all other related

Python : parsing the command line options using optparse

2014-02-25 Thread Ganesh Pal
Hi Folks , Iam newbie to Python, Iam trying to use optparse module and write a script that will parse the command line options ..I had to use opt parse instead of argparse because by host Operating system is still using python 2.6 Below is the simple program ( Feel free to correct the error

Re: Python : parsing the command line options using optparse

2014-02-25 Thread Peter Otten
Ganesh Pal wrote: Iam newbie to Python, Iam trying to use optparse module and write a script that will parse the command line options ..I had to use opt parse instead of argparse because by host Operating system is still using python 2.6 As you are just starting I recommend that you use

Re: Python : parsing the command line options using optparse

2014-02-25 Thread Mark Lawrence
On 25/02/2014 15:31, Ganesh Pal wrote: Hi Folks , Iam newbie to Python, Iam trying to use optparse module and write a script that will parse the command line options ..I had to use opt parse instead of argparse because by host Operating system is still using python 2.6 Do you have the

Re: ProgrammingError: (1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S SIZE 11.5 NEW IN BOX', '$49.99')'

2014-02-25 Thread nowebdevmyrrh
HI, I'm also getting this kind of error. This will show when I do the edit function http://screencast.com/t/hGSbe1vt and this when performing the delete Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

Re: ProgrammingError: (1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S SIZE 11.5 NEW IN BOX', '$49.99')'

2014-02-25 Thread MRAB
On 2014-02-25 17:37, nowebdevmy...@gmail.com wrote: HI, I'm also getting this kind of error. This will show when I do the edit function http://screencast.com/t/hGSbe1vt and this when performing the delete Error: You have an error in your SQL syntax; check the manual that corresponds to your

An example of Python in action!

2014-02-25 Thread Timothy W. Grove
Here is an example of Python being used with Maya for animation http://vimeo.com/72276442 (No prizes for guessing what sport and team I support!!!) Best regards, Tim Grove -- https://mail.python.org/mailman/listinfo/python-list

Intalling Python 2.6 on Mac OSX 10.9

2014-02-25 Thread Robert Schmidt
I am trying to install Python 2.6 because Pygame will only run on 2.6. The configure gives only warnings. make frameworkinstall gcc -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DSVNVERSION=\`LC_ALL=C

Re: An example of Python in action!

2014-02-25 Thread Skip Montanaro
On Tue, Feb 25, 2014 at 12:07 PM, Timothy W. Grove tim_gr...@sil.org wrote: Here is an example of Python being used with Maya for animation http://vimeo.com/72276442 Maya as in MayaVi, the 3D data visualizer built atop VTK? Skip -- https://mail.python.org/mailman/listinfo/python-list

First Brazilian programming MOOC with 10.000 enrolled

2014-02-25 Thread Fernando Masanori Ashikaga
Python for Zombies [1] is the first MOOC in portuguese to teach programming. Today we have 10.000 enrolled in 1013 cities from Brazil. We started five months ago. The website is a Django application. [1] http://pycursos.com/python-para-zumbis/ --

Re: An example of Python in action!

2014-02-25 Thread Robert Kern
On 2014-02-25 18:47, Skip Montanaro wrote: On Tue, Feb 25, 2014 at 12:07 PM, Timothy W. Grove tim_gr...@sil.org wrote: Here is an example of Python being used with Maya for animation http://vimeo.com/72276442 Maya as in MayaVi, the 3D data visualizer built atop VTK? Maya as in Maya,

Re: An example of Python in action!

2014-02-25 Thread Skip Montanaro
On Tue, Feb 25, 2014 at 1:52 PM, Robert Kern robert.k...@gmail.com wrote: Maya as in Maya, the 3D animation software from AutoDesk. Ugh. What an unfortunate almost-name-clash... S -- https://mail.python.org/mailman/listinfo/python-list

intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
Dictionaries and sets share a few properties: - Dictionaries keys are unique as well as sets items - Dictionaries and sets are both unordered - Dictionaries and sets are both accessed by key - Dictionaries and sets are both mutables So I wonder why operations such us intersection, union,

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Nick Timkovich
On Tue, Feb 25, 2014 at 2:32 PM, mauro ma...@gmail.com wrote: So I wonder why operations such us intersection, union, difference, symmetric difference that are available for sets and are not available for dictionaries without going via key dictviews. How would the set operations apply to the

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Skip Montanaro
On Tue, Feb 25, 2014 at 2:32 PM, mauro ma...@gmail.com wrote: So I wonder why operations such us intersection, union, difference, symmetric difference that are available for sets and are not available for dictionaries without going via key dictviews. What's the correct result of evaluating

Re: An example of Python in action!

2014-02-25 Thread Timothy W. Grove
I'm sorry, but I don't know much more than this. If you follow the link there is a description of how the animation was created under the video. On 25/02/2014 18:47, Skip Montanaro wrote: On Tue, Feb 25, 2014 at 12:07 PM, Timothy W. Grove tim_gr...@sil.org wrote: Here is an example of Python

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Peter Otten
mauro wrote: Dictionaries and sets share a few properties: - Dictionaries keys are unique as well as sets items - Dictionaries and sets are both unordered - Dictionaries and sets are both accessed by key but sets have no values - Dictionaries and sets are both mutables but frozensets

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Peter Otten
Peter Otten wrote: the empty dict {2:b} Make that half-empty ;) -- https://mail.python.org/mailman/listinfo/python-list

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Tim Chase
On 2014-02-25 14:40, Skip Montanaro wrote: What's the correct result of evaluating this expression? {'A': 1} | {'A': 2} I can see (at least) two possible correct answers. I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS {'A': (1,2)} # a

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Ben Finney
Peter Otten __pete...@web.de writes: mauro wrote: - Dictionaries and sets are both accessed by key but sets have no values Or rather, sets *only* have values. Dictionaries have keys, sets do not have keys. -- \ “If nature has made any one thing less susceptible than all | `\

Re:intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Dave Angel
mauro ma...@gmail.com Wrote in message: Dictionaries and sets share a few properties: - Dictionaries keys are unique as well as sets items - Dictionaries and sets are both unordered - Dictionaries and sets are both accessed by key - Dictionaries and sets are both mutables So I wonder why

Re: Intalling Python 2.6 on Mac OSX 10.9

2014-02-25 Thread Mark Lawrence
On 25/02/2014 18:28, Robert Schmidt wrote: I am trying to install Python 2.6 because Pygame will only run on 2.6. The configure gives only warnings. make frameworkinstall gcc -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Peter Otten
Tim Chase wrote: On 2014-02-25 14:40, Skip Montanaro wrote: What's the correct result of evaluating this expression? {'A': 1} | {'A': 2} I can see (at least) two possible correct answers. I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
{'A': 1} | {'A': 2} I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS {'A': (1,2)} # a resulting pair of both set(['A']) # you did set-ops, so you get a set The implementation should define if LHS or RHS and user should change the order

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
Il Tue, 25 Feb 2014 22:02:01 +, mauro ha scritto: {'A': 1} | {'A': 2} I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS {'A': (1,2)} # a resulting pair of both set(['A']) # you did set-ops, so you get a set The implementation should

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Tim Chase
On 2014-02-25 22:54, Peter Otten wrote: Tim Chase wrote: If dicts were to support set ops, They do in 2.7 and 3.x. a.viewkeys() - b.viewkeys() set(['a']) a.viewkeys() b.viewkeys() set(['b']) a.viewkeys() ^ b.viewkeys() set(['a', 'c']) a.viewkeys() | b.viewkeys() set(['a',

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
{1, 2} {2, 3} == {2} In my mind the intersection is evaluated on keys, so the resulting dict should be the empty one but {1:a, 2:b, 3:c} {2:b, 3:e, 4:f} == ??? my output will be {2:b, 3:e} or {2:b, 3:c} depending on the implementation choice. The most obvious result is

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Duncan Booth
Tim Chase python.l...@tim.thechases.com wrote: a_dict = dict(...) b_dict = dict(...) a_set = set(a_dict) b_set = set(b_dict) added_keys = b_set - a_set removed_keys = a_set - b_set same_keys = a_set b_set diff_keys = a_set ^ b_set all_keys = a_set | b_set It would

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Mark Lawrence
On 25/02/2014 22:11, mauro wrote: {1, 2} {2, 3} == {2} In my mind the intersection is evaluated on keys, so the resulting dict should be the empty one but {1:a, 2:b, 3:c} {2:b, 3:e, 4:f} == ??? my output will be {2:b, 3:e} or {2:b, 3:c} depending on the implementation choice. The

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Tim Chase
On 2014-02-25 22:21, Duncan Booth wrote: It would save some space if I didn't have to duplicate all the keys into sets (on the order of 10-100k small strings), instead being able to directly perform the set-ops on the dicts. But otherwise, it was pretty readable straight-forward.

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Tim Chase
On 2014-02-25 22:21, Duncan Booth wrote: It would save some space if I didn't have to duplicate all the keys into sets (on the order of 10-100k small strings), instead being able to directly perform the set-ops on the dicts. But otherwise, it was pretty readable straight-forward.

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Oscar Benjamin
On 25 February 2014 22:36, Tim Chase python.l...@tim.thechases.com wrote: On 2014-02-25 22:21, Duncan Booth wrote: It would save some space if I didn't have to duplicate all the keys into sets (on the order of 10-100k small strings), instead being able to directly perform the set-ops on the

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread MRAB
On 2014-02-25 21:27, Ben Finney wrote: Peter Otten __pete...@web.de writes: mauro wrote: - Dictionaries and sets are both accessed by key but sets have no values Or rather, sets *only* have values. Dictionaries have keys, sets do not have keys. But a dictionary can have duplicate

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Ben Finney
MRAB pyt...@mrabarnett.plus.com writes: On 2014-02-25 21:27, Ben Finney wrote: Peter Otten __pete...@web.de writes: mauro wrote: - Dictionaries and sets are both accessed by key but sets have no values Or rather, sets *only* have values. Dictionaries have keys, sets do not

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Steven D'Aprano
On Tue, 25 Feb 2014 15:03:51 -0600, Tim Chase wrote: On 2014-02-25 14:40, Skip Montanaro wrote: What's the correct result of evaluating this expression? {'A': 1} | {'A': 2} I can see (at least) two possible correct answers. I would propose at least four: {'A': 1} # choose the

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread MRAB
On 2014-02-25 23:14, Ben Finney wrote: MRAB pyt...@mrabarnett.plus.com writes: On 2014-02-25 21:27, Ben Finney wrote: Peter Otten __pete...@web.de writes: mauro wrote: - Dictionaries and sets are both accessed by key but sets have no values Or rather, sets *only* have values.

Re: Help father help son / Install Version 2.6 on Mac OSX 10.9

2014-02-25 Thread Cameron Simpson
On 24Feb2014 21:57, Ned Deily n...@acm.org wrote: In article CAPTjJmp-UDAdJz=28ywCggkepFcTTJ-=9rEvtpsXO_Vgup=q...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: On Tue, Feb 25, 2014 at 4:28 PM, quequ...@gmail.com wrote: Trying to install Python 2.6 because PyGames says it will

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Steven D'Aprano
On Tue, 25 Feb 2014 23:07:28 +, MRAB wrote: On 2014-02-25 21:27, Ben Finney wrote: Or rather, sets *only* have values. Dictionaries have keys, sets do not have keys. But a dictionary can have duplicate values, a set cannot. It is usual to talk about the things stored in dicts and sets

Re: python

2014-02-25 Thread Karthik Reddy
Thank you, but from by reaserch i got these requirements .. Python, django, Twisted, MySQL, PyQt, PySide, xPython. *Technical proficiency with Python and Django. *Technical proficiency in JavaScript. *Experience with MySQL / PgSQL. *Unix/Linux expertise. *Experience with MVC design

Re: Functions help

2014-02-25 Thread Cameron Simpson
On 24Feb2014 13:59, Mark Lawrence breamore...@yahoo.co.uk wrote: On 24/02/2014 04:01, ru...@yahoo.com wrote: On 02/23/2014 08:21 PM, Mark Lawrence wrote: On 24/02/2014 02:55, Benjamin Kaplan wrote: On Sun, Feb 23, 2014 at 5:39 PM, alex23 wuwe...@gmail.com wrote: On 24/02/2014 11:09 AM, Mark

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread Tim Chase
On 2014-02-25 23:10, Steven D'Aprano wrote: On Tue, 25 Feb 2014 15:03:51 -0600, Tim Chase wrote: On 2014-02-25 14:40, Skip Montanaro wrote: What's the correct result of evaluating this expression? {'A': 1} | {'A': 2} I can see (at least) two possible correct answers. I would

Re: Functions help

2014-02-25 Thread Cameron Simpson
On 23Feb2014 18:55, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Sun, Feb 23, 2014 at 5:39 PM, alex23 wuwe...@gmail.com wrote: On 24/02/2014 11:09 AM, Mark Lawrence wrote: On 24/02/2014 00:55, alex23 wrote: for _ in range(5): func() the obvious indentation error above

Re: Functions help

2014-02-25 Thread Ethan Furman
On 02/23/2014 08:01 PM, ru...@yahoo.com wrote: On 02/23/2014 08:21 PM, Mark Lawrence wrote: On 24/02/2014 02:55, Benjamin Kaplan wrote: On Sun, Feb 23, 2014 at 5:39 PM, alex23 wuwe...@gmail.com wrote: On 24/02/2014 11:09 AM, Mark Lawrence wrote: On 24/02/2014 00:55, alex23 wrote: for

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Christian Heimes
Christian Heimes added the comment: This issue has already been assigned CVE-2014-1912 Reference: http://www.openwall.com/lists/oss-security/2014/02/12/16 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-1912 -- ___ Python tracker

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___ ___ Python-bugs-list

[issue20727] Improved roundrobin itertools recipe

2014-02-25 Thread Gareth Rees
Gareth Rees added the comment: If 100 doesn't work for you, try a larger number. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20727 ___ ___

[issue20727] Improved roundrobin itertools recipe

2014-02-25 Thread Gareth Rees
Gareth Rees added the comment: I suspect I messed up the timing I did yesterday, because today I find that 100 isn't large enough, but here's what I found today (in Python 3.3): from timeit import timeit test = [tuple(range(300))] + [()] * 100

[issue20766] reference leaks in pdb

2014-02-25 Thread Xavier de Gaye
New submission from Xavier de Gaye: After the pdb 'continue' command, the signal module owns a reference to Pdb.sigint_handler. On the next instantiation of pdb, the signal module owns a reference to a new sigint_handler method that owns a reference to the previous sigint_handler. As a

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___ ___ Python-bugs-list mailing

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___ Python-bugs-list

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting. According to the Mercurial logs, they were never actually documented... -- assignee: docs@python - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20765

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-25 Thread Paul Moore
Paul Moore added the comment: Should this be mentioned in the 3.3.5 changelog (http://docs.python.org/3.3/whatsnew/changelog.html)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20621

[issue20727] Improved roundrobin itertools recipe

2014-02-25 Thread Gareth Rees
Gareth Rees added the comment: But now that I look at the code more carefully, the old recipe also has O(n^2) behaviour, because cycle(islice(nexts, pending)) costs O(n) and is called O(n) times. To have worst-case O(n) behaviour, you'd need something like this: from collections import

[issue20766] reference leaks in pdb

2014-02-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: the first pdb instance is never freed The first pdb instance is (and all the other pdb instances) never freed until the call to PyOS_FiniInterrupts() in Py_Finalize(). -- ___ Python tracker rep...@bugs.python.org

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Antoine Brodin.FreeBSD
New submission from Antoine Brodin.FreeBSD: Hi, On FreeBSD -current, clang 3.4 is now the default compiler. Clang 3.4 rejects -R/path/to/lib flag (previously in version 3.3 it just ignored it). This leads to some errors with some python extensions: cc -shared -O2 -pipe -fno-strict-aliasing

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +doko, loewis, thomas-petazzoni ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20767 ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- versions: +Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20767 ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread koobs
koobs added the comment: Details on how clang 3.4 changes behaviour for compiler flags: http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html#new-compiler-flags -- ___ Python tracker rep...@bugs.python.org

[issue20768] pyconfig.h #defines macros in global namespace

2014-02-25 Thread Felipe Sateler
New submission from Felipe Sateler: I reported the following in the debian bug tracker[1], and it was requested that I report it here. pyconfig.h has definitions like the following: #define HAVE_DIRENT_H 1 #define HAVE_DLFCN_H 1 These are the general form feature test macros take in

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread R. David Murray
R. David Murray added the comment: We don't currently have the capability to set an email trigger when the type is set to security. That should be submitted as a request on the meta tracker. (It will require a new reactor, which is easy, and a tweak to the database schema, which I don't

[issue20768] pyconfig.h #defines macros in global namespace

2014-02-25 Thread Matthias Klose
Matthias Klose added the comment: no, I requested that you propose a patch. And the question why you need to include Python.h everywhere where it could do harm is unanswered too. -- nosy: +doko ___ Python tracker rep...@bugs.python.org

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +larry priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___

[issue20768] pyconfig.h #defines macros in global namespace

2014-02-25 Thread Felipe Sateler
Felipe Sateler added the comment: I'm sorry but I definitely don't have time or knowledge about python to propose a patch (simply removing pyconfig.h clearly doesn't work). As to the question, please clarify. I have a python module, which includes Python.h, which includes pyconfig.h. I don't

[issue20727] Improved roundrobin itertools recipe

2014-02-25 Thread David Lindquist
David Lindquist added the comment: Thanks Gareth for your analysis. Very informative! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20727 ___

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___ Python-bugs-list mailing

[issue20768] pyconfig.h #defines macros in global namespace

2014-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.02.2014 15:29, Felipe Sateler wrote: I'm sorry but I definitely don't have time or knowledge about python to propose a patch (simply removing pyconfig.h clearly doesn't work). As to the question, please clarify. I have a python module, which

[issue18978] Allow urllib.request.Request subclasses to override method

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1afbd851d1c1 by R David Murray in branch 'default': whatsnew: Request.method can be overridden in subclasses (#18978). http://hg.python.org/cpython/rev/1afbd851d1c1 -- ___ Python tracker

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20767 ___ ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Matthias Klose
Matthias Klose added the comment: this looks safe from my point of view. However the real problem is that you unconditionally add a runtime path for a standard system path. I think the better way to fix this is not to pass the -L and -R arguments at all if the library is found in a system

[issue18818] Empty PYTHONIOENCODING is not the same as nonexistent

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ac9c3754d33 by R David Murray in branch 'default': whatsnew: encoding is now optional in PYTHONIOENCODING (#18818) http://hg.python.org/cpython/rev/8ac9c3754d33 -- ___ Python tracker

[issue20769] Reload() description is unclear

2014-02-25 Thread Roy Smith
New submission from Roy Smith: http://docs.python.org/2/library/functions.html#reload says: It is legal though generally not very useful to reload built-in or dynamically loaded modules, except for sys, __main__ and __builtin__. It is unclear what the except for ... part is referring to. Is

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Antoine Brodin.FreeBSD
Antoine Brodin.FreeBSD added the comment: For the python-ldap extension, this seems to be a buglet in its setup.cfg, it lists /usr/lib in library_dirs and /usr/include in library_dirs For the others, /usr/local/lib is not in the default library search path (only /lib and /usr/lib) so at least

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon
Brett Cannon added the comment: The problem is that the PEP 451 switch accidentally cut out compatibility code for PathEntryFinder.find_module() since Python 3.3 started the transition to find_loader(). Adding a bit of code to

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon
Brett Cannon added the comment: I should also mention that subclassing importlib.abc.PathEntryFinder solves this coding problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9975f827eefd by Serhiy Storchaka in branch '3.3': Fix typo (issue #19619). http://hg.python.org/cpython/rev/9975f827eefd -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19619

[issue20770] Inform caller of smtplib STARTTLS failures

2014-02-25 Thread And Clover
New submission from And Clover: When an SMTP server responds to the STARTTLS command with an error, the smtplib.SMTP.starttls() method does not raise an exception, as it would if TLS negotiation itself failed. Consequently naïve callers of the function may assume that a TLS connection has

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: doko: how do you know the addition of the -R option is unconditional? and whom do you refer to by you who is adding the option? In any case, the patch is independent of whether the option is added unconditionally, and I agree that the patch looks safe. The

[issue20770] Inform caller of smtplib STARTTLS failures

2014-02-25 Thread And Clover
And Clover added the comment: This could potentially be considered a security issue as it would allow a MitM attacker to sabotage the STARTTLS and get the rest of the content in the clear. I don't personally consider it too serious as I doubt anyone is (a) relying on the security of this for

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is backported to 3.3 patch. -- nosy: +georg.brandl Added file: http://bugs.python.org/file34221/issue20404_check_valid_textio_codec-3.3.patch ___ Python tracker rep...@bugs.python.org

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Chris Rose
Chris Rose added the comment: Is there an ETA for a 2.7.7 release with this fix? -- nosy: +offby1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___

[issue20769] Reload() description is unclear

2014-02-25 Thread R. David Murray
R. David Murray added the comment: The python3 docs say: It is legal though generally not very useful to reload built-in or dynamically loaded modules (this is not true for e.g. sys, __main__, builtins and other key modules where reloading is frowned upon). So, it is the former...sort of.

[issue20769] Reload() description is unclear

2014-02-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg212197 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20769 ___

[issue20769] Reload() description is unclear

2014-02-25 Thread R. David Murray
R. David Murray added the comment: The python3 docs say: It is legal though generally not very useful to reload built-in or dynamically loaded modules (this is not true for e.g. sys, __main__, builtins and other key modules where reloading is frowned upon). So, it is the former...sort of.

[issue20771] Download Talkray...

2014-02-25 Thread Alfonso Andalon Jr.
New submission from Alfonso Andalon Jr.: Download this http://talkray.com/dl/ee -- messages: 212199 nosy: Alfonso.Andalon.Jr. priority: normal severity: normal status: open title: Download Talkray... ___ Python tracker rep...@bugs.python.org

[issue20771] Download Talkray...

2014-02-25 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- Removed message: http://bugs.python.org/msg212199 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20771 ___

[issue20771] spam

2014-02-25 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: -Alfonso.Andalon.Jr. resolution: - invalid stage: - committed/rejected status: open - closed title: Download Talkray... - spam ___ Python tracker rep...@bugs.python.org

[issue20770] Inform caller of smtplib STARTTLS failures

2014-02-25 Thread R. David Murray
R. David Murray added the comment: I agree that there is an argument for classifying this as a low-impact security bug. Whether or not it is so classified will affect how we fix it. I'll email the psrt about it. -- nosy: +r.david.murray ___

[issue20770] Inform caller of smtplib STARTTLS failures

2014-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: It probably isn't a good idea to break the API, but this should certainly be documented. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20770

[issue20770] Inform caller of smtplib STARTTLS failures

2014-02-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20770 ___ ___ Python-bugs-list mailing

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-25 Thread Zachary Ware
Zachary Ware added the comment: Can anyone please test the patch on Windows? It seems to work; memory usage is much lower with the patch than without using an 8 MB file. I don't notice any behavioral change with the patch; if there's anything specific to look for on that front, give me a

  1   2   >