Re: The “does Python have variables?” debate

2014-05-09 Thread Mark Lawrence
On 09/05/2014 02:02, Dennis Lee Bieber wrote: On 08 May 2014 16:04:51 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following: Personally, I think that trying to be general and talk about many other languages is a failing strategy. Better to be concrete: C, Pascal,

parsing multiple root element XML into text

2014-05-09 Thread Percy Tambunan
Hai, I would like to parse this multiple root element XML object class=EnumDnSched field name=enumDn value343741014/value /field field name=naptrFlags valuenu/value /field /object object class=EnumDnSched field name=enumDn value343741015/value /field field

Re: parsing multiple root element XML into text

2014-05-09 Thread Chris Angelico
On Fri, May 9, 2014 at 6:59 PM, Percy Tambunan percy.tambu...@gmail.com wrote: Hai, I would like to parse this multiple root element XML Easy fix might be to wrap it in root and /root, which will give you a new root. Would that help? ChrisA --

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Percy Tambunan percy.tambu...@gmail.com: Hai, I would like to parse this multiple root element XML How about creating a file-like object that wraps the multi-root file into a single-root document? Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: parsing multiple root element XML into text

2014-05-09 Thread Stefan Behnel
Chris Angelico, 09.05.2014 11:02: On Fri, May 9, 2014 at 6:59 PM, Percy Tambunan wrote: Hai, I would like to parse this multiple root element XML Easy fix might be to wrap it in root and /root, which will give you a new root. ElementTree's XMLParser() can be use efficiently for this.

Re: parsing multiple root element XML into text

2014-05-09 Thread Chris Angelico
On Fri, May 9, 2014 at 7:13 PM, Stefan Behnel stefan...@behnel.de wrote: Chris Angelico, 09.05.2014 11:02: On Fri, May 9, 2014 at 6:59 PM, Percy Tambunan wrote: Hai, I would like to parse this multiple root element XML Easy fix might be to wrap it in root and /root, which will give you a new

Re: trailing underscores naming convention_

2014-05-09 Thread Peter Otten
Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question. Working with multiple names with small differences is error-prone. You should give a method a name that describes what it does rather than when

Re: parsing multiple root element XML into text

2014-05-09 Thread Alain Ketterlin
Percy Tambunan percy.tambu...@gmail.com writes: Hai, I would like to parse this multiple root element XML object class=EnumDnSched [...] /object object class=EnumDnSched [...] /object Technically speaking, this is not a well-formed XML document (it is a well-formed external general parsed

Re: trailing underscores naming convention_

2014-05-09 Thread Metallicow
On Friday, May 9, 2014 3:10:26 AM UTC-6, Peter Otten wrote: Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question. Working with multiple names with small differences is error-prone. You should

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Alain Ketterlin al...@dpt-info.u-strasbg.fr: Technically speaking, this is not a well-formed XML document (it is a well-formed external general parsed entity, though). If you have other XML processors in your workflow, they will/should reject it. Sometimes the XML elements come through a pipe

Re: trailing underscores naming convention_

2014-05-09 Thread Peter Otten
Metallicow wrote: On Friday, May 9, 2014 3:10:26 AM UTC-6, Peter Otten wrote: Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question. Working with multiple names with small differences is

Re: parsing multiple root element XML into text

2014-05-09 Thread Alain Ketterlin
Marko Rauhamaa ma...@pacujo.net writes: Alain Ketterlin al...@dpt-info.u-strasbg.fr: Technically speaking, this is not a well-formed XML document (it is a well-formed external general parsed entity, though). If you have other XML processors in your workflow, they will/should reject it.

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Alain Ketterlin al...@dpt-info.u-strasbg.fr: Marko Rauhamaa ma...@pacujo.net writes: Sometimes the XML elements come through a pipe as an endless sequence. You can still use the wrapping technique and a SAX parser. However, the other option is to write a tiny XML scanner that identifies the

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Marko Rauhamaa ma...@pacujo.net: Alain Ketterlin al...@dpt-info.u-strasbg.fr: Marko Rauhamaa ma...@pacujo.net writes: Sometimes the XML elements come through a pipe as an endless sequence. You can still use the wrapping technique and a SAX parser. However, the other option is to write a

PyPy updated

2014-05-09 Thread Mark Lawrence
Might interest some of you fine folk out there :- http://morepypy.blogspot.co.uk/2014/05/pypy-23-terrestrial-arthropod-trap.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and

Re: parsing multiple root element XML into text

2014-05-09 Thread Stefan Behnel
Marko Rauhamaa, 09.05.2014 14:38: Marko Rauhamaa: Alain Ketterlin: Marko Rauhamaa writes: Sometimes the XML elements come through a pipe as an endless sequence. You can still use the wrapping technique and a SAX parser. However, the other option is to write a tiny XML scanner that

Re: The does Python have variables? debate

2014-05-09 Thread Rustom Mody
On Friday, May 9, 2014 11:21:37 AM UTC+5:30, Chris Angelico wrote: On Fri, May 9, 2014 at 3:40 PM, Rustom Mody wrote: I'd like to argue that you're not using Fortran, then. You're making use of it in the same way that I might make use of Ruby, PHP, and Perl when I browse the web Yes

Re: trailing underscores naming convention_

2014-05-09 Thread Albert Visser
On Fri, 09 May 2014 12:22:56 +0200, Metallicow metaliobovi...@gmail.com wrote: On Friday, May 9, 2014 3:10:26 AM UTC-6, Peter Otten wrote: Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question.

Re: The does Python have variables? debate

2014-05-09 Thread Chris Angelico
On Sat, May 10, 2014 at 12:09 AM, Rustom Mody rustompm...@gmail.com wrote: Yes thats the point -- its a real valued spectrum, not a yes/no. eg. You write an app with Tkinter. Are you not using Tcl/Tk? I'm not familiar enough with Tkinter to be sure, but I think you'd be using Tk but not Tcl.

Re: Add Received: header to email msg in correct position?

2014-05-09 Thread Grant Edwards
On 2014-05-08, Tim Chase python.l...@tim.thechases.com wrote: On 2014-05-08 18:39, Grant Edwards wrote: Looks like a Zippy the Pinhead quote to me... Yep. I'm kinda disappointed having the curtain pulled back like that. I'd just assumed it was some nifty tool that turned a GPG/PGP

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Stefan Behnel stefan...@behnel.de: ElementTree has gained a nice API in Py3.4 that supports this in a much saner way than SAX, using iterators. Good to know. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: parsing multiple root element XML into text

2014-05-09 Thread Alain Ketterlin
Marko Rauhamaa ma...@pacujo.net writes: Alain Ketterlin al...@dpt-info.u-strasbg.fr: Marko Rauhamaa ma...@pacujo.net writes: Sometimes the XML elements come through a pipe as an endless sequence. You can still use the wrapping technique and a SAX parser. However, the other option is to

Re: The does Python have variables? debate

2014-05-09 Thread Rustom Mody
On Friday, May 9, 2014 7:59:14 PM UTC+5:30, Chris Angelico wrote: The similarities and differences between the variable models are no more relevant. What becomes relevant are the PyObject* pointer (the C interface to a Python object (not variable)) and the various functions for manipulating

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Alain Ketterlin al...@dpt-info.u-strasbg.fr: which does an exact traversal of potential the DOM tree... (assuming a DOM is even defined on a non well-formed XML document). Anyway, my point was only to warn the OP that he is not doing XML. I consider that one of the multitude of flaws in XML.

Re: trailing underscores naming convention_

2014-05-09 Thread Michael Torrie
On 05/08/2014 11:49 PM, Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question. In a case like this I'd probably prefer to number the methods rather than add underscores to the end of the names. My

Re: parsing multiple root element XML into text

2014-05-09 Thread Burak Arslan
On 05/09/14 16:55, Stefan Behnel wrote: ElementTree has gained a nice API in Py3.4 that supports this in a much saner way than SAX, using iterators. Basically, you just dump in some data that you received and get back an iterator over the elements (and their subtrees) that it generated from

Re: parsing multiple root element XML into text

2014-05-09 Thread Alain Ketterlin
Marko Rauhamaa ma...@pacujo.net writes: Alain Ketterlin al...@dpt-info.u-strasbg.fr: which does an exact traversal of potential the DOM tree... (assuming a DOM is even defined on a non well-formed XML document). Anyway, my point was only to warn the OP that he is not doing XML. I consider

Re: parsing multiple root element XML into text

2014-05-09 Thread Marko Rauhamaa
Alain Ketterlin al...@dpt-info.u-strasbg.fr: How do you specify the encoding of sexprs? How can you require that an attribute value must match the value of an id-attribute? or whatever insanely complex integrity rule that XML Schemas lets you express? And so on. I don't suppose there is a

Re: parsing multiple root element XML into text

2014-05-09 Thread Stefan Behnel
Marko Rauhamaa, 09.05.2014 20:04: I think the worst part of XML is that you can't parse it without a DTD or schema. Nonsense. I was very hopeful about json until I discovered they require the parser to dynamically support five different character encodings. XML at least standardized on

Re: parsing multiple root element XML into text

2014-05-09 Thread Stefan Behnel
Burak Arslan, 09.05.2014 18:52: On 05/09/14 16:55, Stefan Behnel wrote: ElementTree has gained a nice API in Py3.4 that supports this in a much saner way than SAX, using iterators. Basically, you just dump in some data that you received and get back an iterator over the elements (and their

Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread scottcabit
Hi, here is a snippet of code that opens a file (fn contains the path\name) and first tried to replace all endash, emdash etc characters with simple dash characters, before doing a search. But the replaces are not having any effect. Obviously a syntax problemwwhat silly thing am I doing

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread MRAB
On 2014-05-09 20:51, scottca...@gmail.com wrote: Hi, here is a snippet of code that opens a file (fn contains the path\name) and first tried to replace all endash, emdash etc characters with simple dash characters, before doing a search. But the replaces are not having any effect.

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Chris Angelico
On Sat, May 10, 2014 at 5:51 AM, scottca...@gmail.com wrote: But the replaces are not having any effect. Obviously a syntax problemwwhat silly thing am I doing wrong? Thanks! fn = 'z:\Documentation\Software' def processdoc(fn,outfile): fStr = open(fn, 'rb').read()

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Tim Chase
On 2014-05-09 12:51, scottca...@gmail.com wrote: here is a snippet of code that opens a file (fn contains the path\name) and first tried to replace all endash, emdash etc characters with simple dash characters, before doing a search. But the replaces are not having any effect. Obviously a

Python Internet Database

2014-05-09 Thread junnia
I am writing a PhD thesis comparing computer languages, and Python and Ruby is among the languages I am working with. I am using the Rasch Model to measure latent traits and like productivity, expressivity, referential transparency and efficiency. If a member of this list wants to read a short

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread scottcabit
re.sub _returns_ its result (strings are immutable). Ahhso I tried this for each re.sub fStr = re.sub(b'#x2012','-',fStr) No errors running it, but it still does nothing. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread scottcabit
On Friday, May 9, 2014 4:09:58 PM UTC-4, Tim Chase wrote: A Word doc (as your subject mentions) is a binary format. There's the older .doc and the newer .docx (which is actually a .zip file with a particular content-structure renamed to .docx). I am using .doc files only.. For

Re: Python Internet Database

2014-05-09 Thread Chris Angelico
On Sat, May 10, 2014 at 6:45 AM, jun...@gmail.com wrote: To keep with my work, I need an Internet Data Base from where a person writing a program in Python could fetch libraries, applications, compilers, etc. One of the things I need to measure is how complete and easy to use is such a

Re: Python Internet Database

2014-05-09 Thread Ian Kelly
On Fri, May 9, 2014 at 2:45 PM, jun...@gmail.com wrote: I am writing a PhD thesis comparing computer languages, and Python and Ruby is among the languages I am working with. I am using the Rasch Model to measure latent traits and like productivity, expressivity, referential transparency

Re: Python Internet Database

2014-05-09 Thread Terry Reedy
On 5/9/2014 4:45 PM, jun...@gmail.com wrote: I am writing a PhD thesis comparing computer languages, and Python and Ruby is among the languages I am working with. I am using the Rasch Model to measure latent traits and like productivity, expressivity, referential transparency and efficiency. If

Re: Python Internet Database

2014-05-09 Thread Ian Kelly
On Fri, May 9, 2014 at 2:45 PM, jun...@gmail.com wrote: 1 - Internet servers. In Lisp, one has hunchentoot. In Racket, one has the Racket Web Framework. Bigloo has hiphop. twisted, tornado, Django, pylons, turbogears, bottle, flask among many others. 2 - Jit compiler for using from a web

Re: Values and objects [was Re: Pass variable by reference]

2014-05-09 Thread Mark H Harris
On 5/7/14 8:08 PM, Steven D'Aprano wrote: In Python, all values *are* objects. It isn't a matter of choosing one or the other. The value 1 is an object, not a native (low-level, unboxed) 32 or 64 bit int. Unlike C# or Java, there is no direct language facility to box native values into objects

Re: Values and objects

2014-05-09 Thread Marko Rauhamaa
Mark H Harris harrismh...@gmail.com: Typically when I think about variables (particularly from the past, say Pascal, Basic, C, Fortran, Cobol c) I am thinking about modeling memory is some way where the variable (some naming convention) is a value handle or value pointer of some chunk of

Re: Pass variable by reference

2014-05-09 Thread Mark H Harris
On 5/7/14 8:31 PM, Chris Angelico wrote: On Thu, May 8, 2014 at 4:11 AM, Mark H Harris harrismh...@gmail.com wrote: And we must never forget that CPython's underpinnings, uhm C, uses variables, C ones... (never mind) Be careful of this one. It's utterly irrelevant to your point, and may be

Re: The “does Python have variables?” debate

2014-05-09 Thread Mark H Harris
On 5/7/14 8:27 PM, Steven D'Aprano wrote: In almost every other language you know A and B each contain by reference (and almost always by static type) macTruck. But NOT python. Nor Javascript, Ruby, Perl, PHP, Lua, or (I think) Lisp or Java. To mention only a few. I think it is easy to

Re: trailing underscores naming convention_

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 10:35:09 -0600, Michael Torrie wrote: On 05/08/2014 11:49 PM, Metallicow wrote: I guess to be more clear here is a small code snippet that shows what is happening more readably. Hence the underscores question. In a case like this I'd probably prefer to number the methods

Re: The “does Python have variables?â€瑩 debate

2014-05-09 Thread Mark Lawrence
On 10/05/2014 00:51, Dennis Lee Bieber wrote: On Thu, 08 May 2014 22:21:25 -0400, Roy Smith r...@panix.com declaimed the following: In article 536c3049$0$29965$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Although Fortran is still in use,

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 12:51:04 -0700, scottcabit wrote: Hi, here is a snippet of code that opens a file (fn contains the path\name) and first tried to replace all endash, emdash etc characters with simple dash characters, before doing a search. But the replaces are not having any

Re: Values and objects

2014-05-09 Thread Ben Finney
Marko Rauhamaa ma...@pacujo.net writes: Right, Python's variables aren't like variables in C. Rather, Python's variables are like CPU registers. What is the salient difference between those two? I don't see the point of the distinction. Why have you chosen an analogy – CPU registers – that

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 13:49:56 -0700, scottcabit wrote: On Friday, May 9, 2014 4:09:58 PM UTC-4, Tim Chase wrote: A Word doc (as your subject mentions) is a binary format. There's the older .doc and the newer .docx (which is actually a .zip file with a particular content-structure renamed to

Abstractions [was Re: Pass variable by reference]

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 17:30:10 -0500, Mark H Harris wrote: On 5/7/14 8:31 PM, Chris Angelico wrote: On Thu, May 8, 2014 at 4:11 AM, Mark H Harris harrismh...@gmail.com wrote: And we must never forget that CPython's underpinnings, uhm C, uses variables, C ones... (never mind) Be careful of

Re: Values and objects

2014-05-09 Thread Steven D'Aprano
On Sat, 10 May 2014 01:34:58 +0300, Marko Rauhamaa wrote: Right, Python's variables aren't like variables in C. Rather, Python's variables are like CPU registers. They cannot hold typed or structured objects Surely you cannot mean that? It is *trivially simple* to disprove that statement:

Re: The “does Python have variables?” debate

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 17:34:17 -0500, Mark H Harris wrote: On 5/7/14 8:27 PM, Steven D'Aprano wrote: In almost every other language you know A and B each contain by reference (and almost always by static type) macTruck. But NOT python. Nor Javascript, Ruby, Perl, PHP, Lua, or (I think) Lisp or

How to implement key of key in python?

2014-05-09 Thread eckhleung
I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {}

Re: The � debate

2014-05-09 Thread Steven D'Aprano
On Fri, 09 May 2014 13:10:41 +1200, Gregory Ewing wrote: Steven D'Aprano wrote: Today we routinely call horseless carriages cars, and nobody would blink if I pointed at a Prius or a Ford Explorer and said that's not a carriage, it's a car except to wonder why on earth I thought something so

Re: Values and objects

2014-05-09 Thread Chris Angelico
On Sat, May 10, 2014 at 8:34 AM, Marko Rauhamaa ma...@pacujo.net wrote: Right, Python's variables aren't like variables in C. Rather, Python's variables are like CPU registers. They cannot hold typed or structured objects and you can't pass references to them. Are you thinking that a Python

Re: Abstractions [was Re: Pass variable by reference]

2014-05-09 Thread Mark H Harris
On 5/9/14 7:58 PM, Steven D'Aprano wrote: {snip} at which point we're now talking about a concrete, physical description of the process, not an abstraction. There really is a bottom-most turtle that holds up all the rest.) hi Steven, heh... yup, there really is a bottom-most turtle (and who

Re: Values and objects

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 6:31:49 AM UTC+5:30, Steven D'Aprano wrote: On Sat, 10 May 2014 01:34:58 +0300, Marko Rauhamaa wrote: and you can't pass references to them. That at least you have got right. And that's Marko's main point Right, Python's variables aren't like

Re: How to implement key of key in python?

2014-05-09 Thread CHIN Dihedral
On Saturday, May 10, 2014 9:22:43 AM UTC+8, eckh...@gmail.com wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv

Re: How to implement key of key in python?

2014-05-09 Thread MRAB
On 2014-05-10 02:22, eckhle...@gmail.com wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {} with open('test.txt','rb') as tsvin: tsvin = csv.reader(tsvin, delimiter='\t') for row

Re: Values and objects

2014-05-09 Thread Chris Angelico
On Sat, May 10, 2014 at 12:19 PM, Rustom Mody rustompm...@gmail.com wrote: For me, Marko's comment that variables in python are not first-class whereas in C they are is for me the most important distinction Ive seen (in a long time of seeing these discussions).

Re: The � debate

2014-05-09 Thread Mark H Harris
On 5/9/14 8:34 PM, Steven D'Aprano wrote: Nobody seems to complain about using the term assigment in relation to Python, despite it meaning something a bit different from what it means in some other languages, so I don't see anything wrong with using the term variable with the above definition.

Re: Values and objects

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 8:03:28 AM UTC+5:30, Chris Angelico wrote: 2) Returning them. This is a lot more dodgy, owing to the dangling-pointer issue, but as long as you accept that the reference to a variable doesn't ensure its continued life, I suppose this might be acceptable. Maybe. But

Re: How to implement key of key in python?

2014-05-09 Thread eckhleung
On Saturday, May 10, 2014 10:30:06 AM UTC+8, MRAB wrote: On 2014-05-10 02:22, I wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {} with open('test.txt','rb') as tsvin:

Re: Values and objects

2014-05-09 Thread Mark H Harris
On 5/9/14 10:05 PM, Rustom Mody wrote: Likewise python's name-spaces go almost all the way to first-classing variables but not quite as Marko discovered when locals() looks like a dict, waddles like a dict but does not quack like a dict. QOTWeekEnd --

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 1:21:04 AM UTC+5:30, scott...@gmail.com wrote: Hi, here is a snippet of code that opens a file (fn contains the path\name) and first tried to replace all endash, emdash etc characters with simple dash characters, before doing a search. But the replaces

[issue21435] Segfault in gc with cyclic trash

2014-05-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks a lot! The patch fixes crush dump issue with __del__ in aiohttp library tests also. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21435

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-05-09 Thread Remi Pointel
New submission from Remi Pointel: Hi, I tested the regress tests on a machine which does not have the ssl module, and I have 2 errors in Lib/test/test_urllib2net.py. I think it should skip the test instead. Attached is a diff I wrote, it's based on Lib/test/test_poplib.py. Don't hesitate if

[issue21457] NetBSD curses support improvements

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: NetBSD's curses headers have different include guards than ncurses. Also, the NetBSD curses library has been improved and some workaround are no longer necessary. Diff against hg attached. -- components: Extension Modules files: curses.diff

[issue21458] MirBSD support

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: configure needs to know about MirBSD -- it's quite similar to OpenBSD, so that's all that's needed. -- components: Build files: configure.diff keywords: patch messages: 218141 nosy: wiz priority: normal severity: normal status: open title: MirBSD

[issue21458] MirBSD support

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +skrah stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21458 ___

[issue21459] DragonFlyBSD support

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: DragonFlyBSD support needs some slight changes. -- components: Build files: dragonfly.diff keywords: patch messages: 218142 nosy: wiz priority: normal severity: normal status: open title: DragonFlyBSD support versions: Python 3.5 Added file:

[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: There are two possible sources for extra linker arguments: - 'extra_link_args' in Extension object - LDFLAGS environment variable The environment variable should take precedence, and any sensible compiler will give precedence to later command line args.

[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner
Changes by Thomas Klausner t...@giga.or.at: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21460 ___

[issue21461] Recognize -pthread

2014-05-09 Thread Thomas Klausner
New submission from Thomas Klausner: makesetup should know about the -pthread compiler flag. -- components: Extension Modules files: pthread.diff keywords: patch messages: 218144 nosy: wiz priority: normal severity: normal status: open title: Recognize -pthread type: enhancement

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden
Tim Golden added the comment: Here's a patch against build_ssl which uses subprocess.check_output and very slightly simplifies the output. It successfully finds ActivePerl and builds from source; and uses the svn export files when it's not. I've targetted the development branch; don't know if

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden
Tim Golden added the comment: I've just looked at issue21141 which is a substantial rework of this area. This change should be incorporated over there as well / instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10752

[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Tim Golden
Tim Golden added the comment: I'm at least +0 on this, not because I've ever been that bothered by the Perl messages, but because it tidies things up a little smooths the way very slightly for people trying to build Python on Windows and I'm always ready to support that. --

[issue21459] DragonFlyBSD support

2014-05-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: What happens to Python 2.7?. Compilation fixes are OK to apply. Would be wonderful to have a DragonFlyBSD buildbot in our farm... -- nosy: +jcea ___ Python tracker rep...@bugs.python.org

[issue21458] MirBSD support

2014-05-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: What happens to Python 2.7?. Compilation fixes are OK to apply. Would be wonderful to have a MirBSD buildbot in our farm... -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21458

[issue21457] NetBSD curses support improvements

2014-05-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thomas, What happens if Python is compiled in an old version of NetBSD? -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21457 ___

[issue20745] test_statistics fails in refleak mode

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20745 ___

[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for this. The current messages are confusing, and I think I've already installed Perl because of them. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21141

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-05-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: There isn't much point in introducing a variable named SUPPORTS_SSL, just use ssl is not None. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21456

[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch looks fine to me, including the renaming. Please apply. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21141 ___

[issue21462] PEP 466: upgrade OpenSSL

2014-05-09 Thread Nick Coghlan
New submission from Nick Coghlan: PEP 466 includes updating to a newer version of OpenSSL. This may be needed for the ssl module feature backports in issue 21308. -- components: Windows messages: 218154 nosy: loewis, ncoghlan, steve.dower priority: normal severity: normal status: open

[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- components: +Build title: PEP 466: upgrade OpenSSL - PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21462

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2014-05-09 Thread Francisco Gracia
Francisco Gracia added the comment: The neat program *redemo.py* toggles between *Highlight first match* and *Highlight all matches*. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13630

[issue20745] test_statistics fails in refleak mode

2014-05-09 Thread Ezio Melotti
Ezio Melotti added the comment: #20746 seems to have a patch for this. -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20745 ___

[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20780 ___

[issue21459] DragonFlyBSD support

2014-05-09 Thread Brett Cannon
Brett Cannon added the comment: We've actually moved away from maintaining OS support in Python itself except for major platforms. We prefer that people maintain a patch set on bitbucket, github, etc. and get the community to help support that platform. -- nosy: +brett.cannon

[issue21458] MirBSD support

2014-05-09 Thread Brett Cannon
Brett Cannon added the comment: We've actually been moving away from maintaining OS support in Python itself except for major platforms. We prefer that people maintain a patch set on bitbucket, github, etc. and get the community to help support that platform. -- nosy: +brett.cannon

[issue14019] Unify tests for str.format and string.Formatter

2014-05-09 Thread Brett Cannon
Brett Cannon added the comment: Francisco, can you sign the contributor agreement? https://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14019

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2014-05-09 Thread Tal Einat
Tal Einat added the comment: Indeed, redemo.py does include this feature. But it is a completely different application with a very specific goal - testing regular expressions. On the other hand, IDLE's search is meant to be used to find pieces of code in the editor, which is a significantly

[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-05-09 Thread Brett Cannon
Brett Cannon added the comment: LGTM although you forgot to use a loader instance instead of the class. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21226 ___

[issue20815] ipaddress unit tests PEP8

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - commit review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20815 ___

[issue20826] Faster implementation to collapse consecutive ip-networks

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20826 ___

[issue20837] Ambiguity words in base64 documentation

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20837 ___

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-05-09 Thread Ezio Melotti
Ezio Melotti added the comment: Closing for lack of feedback. Feel free to re-open if/when more info are available. -- nosy: +ezio.melotti status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20840

[issue20847] asyncio docs should call out that network logging is a no-no

2014-05-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Documentation stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20847 ___

  1   2   >