Re: Uniform Function Call Syntax (UFCS)
So, just to summarise the discussion: There was some very mild support for readable pipelines, either using UFCS or an alternative syntax, but the Pythonic way to make combinations of function and method applications readable is to assign to variables over multiple lines. Make the code read down, not across. The idea that a class method could override a function using UFCS didn't get much traction. From Zen of Python, explicit is better than implicit means no differences in behaviour, depending on context. The fact that x.y and x.__getattr__ may behave differently under UFCS is also a problem. Since hasattr testing and AttributeError catching are both commonly used now, this could cause real problems, so could probably not be changed until Python 4. Finally, Gilbert Sullivan are definitely due a revival. -- https://mail.python.org/mailman/listinfo/python-list
Re: lists vs. NumPy arrays for sets of dates and strings
beliav...@aol.com.dmarc.invalid wrote: I am going to read a multivariate time series from a CSV file that looks like Date,A,B 2014-01-01,10.0,20.0 2014-01-02,10.1,19.9 ... The numerical data I will store in a NumPy array, since they are more convenient to work with than lists of lists. What are the advantages and disadvantages of storing the symbols [A,B] and dates [2014-01-01,2014-01-02] as lists vs. NumPy arrays? If you don't mind the numpy dependency I can't see any disadvantages. You might also have a look at pandas: ts = pandas.read_csv(io.StringIO(\ ... Date,A,B ... 2014-01-01,10.0,20.0 ... 2014-01-02,10.1,19.9 ... ), parse_dates=[0]) ts Date A B 0 2014-01-01 00:00:00 10.0 20.0 1 2014-01-02 00:00:00 10.1 19.9 ts[A] 010.0 110.1 Name: A, dtype: float64 ts[Date] 0 2014-01-01 00:00:00 1 2014-01-02 00:00:00 Name: Date, dtype: datetime64[ns] ts[Date][0] Timestamp('2014-01-01 00:00:00', tz=None) pylab.show(ts.plot(x=Date, y=[A, B])) -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions). As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors. Essentially, you can write both good and bad code both with and without goto. Thomaas -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de: Essentially, you can write both good and bad code both with and without goto. Point is, choose tasteful idioms in your code. Marko -- https://mail.python.org/mailman/listinfo/python-list
Is this sort of a constraint implementable in Python?
Hello Everyone, I'm working on a python code to input matrices into CPLEX solver. I have most of my code running fine but as of now, I don't know how to express this constraint. My objective is to minimize the number of nodes. I have got one of the weirdest looking constraints which I don't know how to express in Python because python basically takes matrices and inputs them into cplex. My constraint is as below. This was what I wrote in AMPL minimize phy_nodes: sum {w in PHY_NODES} x_ns[w] ; s.t. Phy_nodes_Eq{w in PHY_NODES, dns in DEMAND}: x_ns[w] = 1 == x_SGW[dns, w] + x_PGW[dns, w] + x_MME[dns, w] + x_IMS[dns, w] + x_PoP[dns, w] = 1 else x_SGW[dns, w] + x_PGW[dns, w] + x_MME[dns, w] + x_IMS[dns, w] + x_PoP[dns, w] = 0; Could you help me fix this problem? Thank You -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos I'm sorry What does all this relate to? -- Now hatred is by far the longest pleasure; Men love in haste, but they detest at leisure. -- George Gordon, Lord Byron, Don Juan -- https://mail.python.org/mailman/listinfo/python-list
Re: Interfacing Fortran applications
On Mon, 09 Jun 2014 14:24:07 +0200, Michael Welle wrote: Hello, Sturla Molden sturla.mol...@gmail.com writes: Michael Welle mwe012...@gmx.net wrote: I thought about equipping the Fortran application with sockets, so that I can send input data and commands (which is now done via cmd line) and reading output data back. Any opinions on this? Best pratices? If you are to rewrite the Fortran app you can just as well use f2py from NumPy. a rewrite of the application isn't possible. That would require knowledge about what the used algorithms are, why they are implemented as they are, that would require extensive testing with test cases that don't exist. I can change as much as I want, as long as the core of the application isn't touched. I can change everything until after the initialisation of the application and the output of the results. That, hopefully, will not break something. Regards hmw If you have no tests the Fortran App is business critical I am inclined to leave it totally alone. i would there for look for ways of calling the Fotran application as it is for now (os.subprocess) -- filesystem not big enough for Jumbo Kernel Patch -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 10/06/2014 11:14, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: I'm sorry What does all this relate to? Turing test? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 11:14 AM, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos I'm sorry What does all this relate to? Following my post Copy/paste of python team(...) + script attachment(...) Hi ... Here I'm seeking for my team of developers/programmers in Python ... I'd like to ask you to provide me contacts of people interested ... I'm sending you one script attachment(...) ... I'll manage them naturally knowing that the detail is wide ... programming languages, Databases, Shell Script, Linux, etc ... and the complexity is present ... main sections, sub sections, client apis, etc ... (...) If this was poetry (...) Big Data, web services, cache's management with perfection and remote subtlety, Hashed Systems, Client Apis, Web Analytics, Complex Logs, Management(Manipulation) of the search string, etc ... you'd be one poet(...) A poet's work can be literal, meaning that his work is derived from a specific event, or metaphorical, meaning that his work can take on many meanings and forms. Poets have existed since antiquity, in nearly all languages, and have produced works that vary greatly in different cultures and time periods. *Final customer/consumer/client(...)* Projects technically different I'd write even in the particularity but naturally similar in the concept of how the information should be organized towards the concept of client api ,etc ... identification of (including the user) in different contexts ... ecommerce ,etc ... with focus in the proximity when available ... *Registered Clients/Bookings/Vouchers of Discount/etc (...)* Each client api(...) has the possibility of managing the bookings/vouchers of discount I'd write ... even each registered client is allowed to use the vouchers of discount taking in consideration the limits(technical, localization/geographics,etc) or no limits of it's(voucher of discount) usage ... And here appears the concept of white-label I'd write ... and this will allow to track efficiently and towards analytical methods all the business models derived from each client api defined ... The concept is wide, the examples are countless ... even the possibilities ... but the technical complexity remains ... we'll try to make it simple ... *Segmented Replication Networks - SRN (...)* The SRN(Segmented Replication Network) ... basically are trustable machines that are placed in the client(cloud environment,etc) ... that will allow to update the masters networks(...) ... and to trigger the execution(exponentially) of processes (through the SRN) of all the necessary updates of the particularity of management of the circumstances ... This might look complicated or somehow difficult to understand, etc ... well ... it's my summarized explanation ... *Management(manipulation) of the search string(...)* Basically it's the solution that provides the best answer taking in consideration what people/enterprises are seeking (...) ... integrated in the concept of client api(...) ... with one scope/range of multi-device ... etc ... Assuming that each client api has the possibility to choose what fits better in it's business(...) and the final costumer/consumer has always the final decision taking in consideration the available possibilities ... Trying to summarize(...) *Setting the focus(...)* We'll set our focus in the 'Personalized Location with(/)in Mobility' ... integration in all the maps worldwide ... and the problematic/management of 'circumstances' with perfection(...) ... etc ... example: someone driving by car,etc looking for one restaurant with one specific meal (filters) ...chooses the destination ... arrives and the restaurant is closed, from this pont users should not be sent until the
Re: try/except/finally
On Tuesday, June 10, 2014 12:57:29 PM UTC+5:30, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people� think that gotos are a code-smell. � I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions). As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors. Essentially, you can write both good and bad code both with and without goto. Here is Dijkstra: http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html First statement: | For a number of years I have been familiar with the observation that | the quality of programmers is a decreasing function of the density of | go to statements in the programs they produce. And here is Hoare, not identical to Dijkstra but with similar areas of interest and similar views on correctness etc, very unambiguously criticising exceptions: | Ada has a plethora of features and notational conventions, many of them | unnecessary and some of them, like exception handling, even | dangerous. Do not allow this language in its present state to be | used in applications where reliability is critical http://en.wikipedia.org/wiki/Exception_handling#Criticism -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences, without trailing them away with an ellipsis. Then it would be clearer what your individual thoughts are, instead of the undifferentiated mush that it currently seems to be from your messages so far. -- \ “You can stand tall without standing on someone. You can be a | `\ victor without having victims.” —Harriet Woods, 1927–2007 | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences, without trailing them away with an ellipsis. Then it would be clearer what your individual thoughts are, instead of the undifferentiated mush that it currently seems to be from your messages so far. Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main issues of the project(s) ... we would talk about that naturally ... Not understanding that(that way) to think about it naturally ... it won't be easy ... I don't pretend to disturb you/people ... (...) Do you understand portuguese, french or spanish beyong the english you don'y understand? https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Best regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tue, 10 Jun 2014 13:39:50 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences, without trailing them away with an ellipsis. Then it would be clearer what your individual thoughts are, instead of the undifferentiated mush that it currently seems to be from your messages so far. Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main issues of the project(s) ... we would talk about that naturally ... Not understanding that(that way) to think about it naturally ... it won't be easy ... I don't pretend to disturb you/people ... (...) Do you understand portuguese, french or spanish beyong the english you don'y understand? https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Best regards, Carlos The English I can work with there is just no context for me to know what you are actually asking -- Facts, apart from their relationships, are like labels on empty bottles. -- Sven Italla -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 01:47 PM, alister wrote: On Tue, 10 Jun 2014 13:39:50 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences, without trailing them away with an ellipsis. Then it would be clearer what your individual thoughts are, instead of the undifferentiated mush that it currently seems to be from your messages so far. Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main issues of the project(s) ... we would talk about that naturally ... Not understanding that(that way) to think about it naturally ... it won't be easy ... I don't pretend to disturb you/people ... (...) Do you understand portuguese, french or spanish beyong the english you don'y understand? https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Best regards, Carlos The English I can work with there is just no context for me to know what you are actually asking Hi ... Context ... try to consider all the social networds, ecommerce websites,etc ... and each defined client api ... using vouchers, solutions of advertisement, etc ... (...) Best regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tue, 10 Jun 2014 14:09:52 +0100, Carlos Anselmo Dias wrote: Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main issues of the project(s) ... we would talk about that naturally ... Not understanding that(that way) to think about it naturally ... it won't be easy ... I don't pretend to disturb you/people ... (...) Do you understand portuguese, french or spanish beyong the english you don'y understand? https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Best regards, Carlos The English I can work with there is just no context for me to know what you are actually asking Hi ... Context ... try to consider all the social networds, ecommerce websites,etc ... and each defined client api ... using vouchers, solutions of advertisement, etc ... (...) Best regards, Carlos Context ... you have not provided any. I can only assume you are a bott you have failed the truing test with this one -- panic: kernel segmentation violation. core dumped (only kidding) -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tue, 10 Jun 2014 11:53:38 +0100, Robin Becker wrote: On 10/06/2014 11:14, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: I'm sorry What does all this relate to? Turing test? I think you mast be correct -- Iowa State -- the high school after high school! -- Crow T. Robot -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 02:16 PM, alister wrote: On Tue, 10 Jun 2014 14:09:52 +0100, Carlos Anselmo Dias wrote: Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main issues of the project(s) ... we would talk about that naturally ... Not understanding that(that way) to think about it naturally ... it won't be easy ... I don't pretend to disturb you/people ... (...) Do you understand portuguese, french or spanish beyong the english you don'y understand? https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Best regards, Carlos The English I can work with there is just no context for me to know what you are actually asking Hi ... Context ... try to consider all the social networds, ecommerce websites,etc ... and each defined client api ... using vouchers, solutions of advertisement, etc ... (...) Best regards, Carlos Context ... you have not provided any. I can only assume you are a bott you have failed the truing test with this one Hi ... Meaning of context-the circumstances that form the setting for an event, statement, or idea, and in terms of which it can be fully understood and assessed. () https://www.youtube.com/watch?v=N1EwYpfUFQU (...) Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tuesday, June 10, 2014 6:55:27 PM UTC+5:30, Carlos Anselmo Dias wrote: https://www.youtube.com/watch?v=N1EwYpfUFQU (...) http://huntingtonleadership.com/blog/entry/communication-is-a-two-way-street.html -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. -- Grant Edwards grant.b.edwardsYow! But was he mature at enough last night at the gmail.comlesbian masquerade? -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Carlos, you've been told by a number of people that we don't know what you are talking about. Dots don't convey any meaning. Write complete, clear sentences that explain what you want. I don't know what you are trying to accomplish here. I can tell you what you are accomplishing: you're convincing a number of people that you can't put your thoughts into coherent order. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Carlos, you've been told by a number of people that we don't know what you are talking about. Dots don't convey any meaning. Write complete, clear sentences that explain what you want. I don't know what you are trying to accomplish here. I can tell you what you are accomplishing: you're convincing a number of people that you can't put your thoughts into coherent order. Hi... OK, therefore if my will to resume briefly can't accomplish your capacity to understand we have one problem of communication ... If your capacity to understand is one consequence of ellipses or sentences not completed you'll have the possibility to understand better if you've the will to do it ... Don't panic or don't loose too much time thinking about what I wrote ... think about it in your head ... if you have the will to ... Best Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
This looks like a bot On Jun 10, 2014 10:08 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Carlos, you've been told by a number of people that we don't know what you are talking about. Dots don't convey any meaning. Write complete, clear sentences that explain what you want. I don't know what you are trying to accomplish here. I can tell you what you are accomplishing: you're convincing a number of people that you can't put your thoughts into coherent order. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tue, 10 Jun 2014 14:59:09 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) What Script? Where? ... I even explained the context ... When? Certainly not in this thread If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Unless I see something positive from you I am not going to waste any more time sorry. -- The world really isn't any worse. It's just that the news coverage is so much better. -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tuesday, June 10, 2014 7:48:05 PM UTC+5:30, Carlos Anselmo Dias wrote: On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Carlos, you've been told by a number of people that we don't know what you are talking about. Dots don't convey any meaning. Write complete, clear sentences that explain what you want. I don't know what you are trying to accomplish here. I can tell you what you are accomplishing: you're convincing a number of people that you can't put your thoughts into coherent order. Hi... OK, therefore if my will to resume briefly can't accomplish your capacity to understand we have one problem of communication ... If your capacity to understand is one consequence of ellipses or sentences not completed you'll have the possibility to understand better if you've the will to do it ... You misunderstand... ...ALl ... we understand... are... the... ... ... ellipses For the rest... ... ... Its just garbage Don't panic or don't loose too much time thinking about what I wrote ... think about it in your head Dont fear on our account ... if you have the will to ... Unfortunately there you have failed. You have not evoked in anyone a wish to be enthusiastic about what you are enthusiastic... ... ... ... Because... ... ... ... ... ... You... refuse... To communicate -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 03:24 PM, Rustom Mody wrote: On Tuesday, June 10, 2014 7:48:05 PM UTC+5:30, Carlos Anselmo Dias wrote: On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. Hi ... Those are my phrases ... somehow describe the projects(briefly) ... I even provided you/people(...) one script to help exceed 'the freeze' of thinking about n millions of tables or billions of files(for example) ... I even explained the context ... If that's not enough ... for those capable I guess it's enough to start the necessary will to do it ... If you want me to place phrases without elipses and completing one sentence, 'I'm not there' ... When you talk naturally about things(and that kind of things) sentences and elipses are natural , are one consequence of your thoughts ... you just adapt your thoughts to people capable of understading, those who are not capable, you avoid the issues ... (...) Best regards, Carlos Carlos, you've been told by a number of people that we don't know what you are talking about. Dots don't convey any meaning. Write complete, clear sentences that explain what you want. I don't know what you are trying to accomplish here. I can tell you what you are accomplishing: you're convincing a number of people that you can't put your thoughts into coherent order. Hi... OK, therefore if my will to resume briefly can't accomplish your capacity to understand we have one problem of communication ... If your capacity to understand is one consequence of ellipses or sentences not completed you'll have the possibility to understand better if you've the will to do it ... You misunderstand... ...ALl ... we understand... are... the... ... ... ellipses For the rest... ... ... Its just garbage Don't panic or don't loose too much time thinking about what I wrote ... think about it in your head Dont fear on our account ... if you have the will to ... Unfortunately there you have failed. You have not evoked in anyone a wish to be enthusiastic about what you are enthusiastic... ... ... ... Because... ... ... ... ... ... You... refuse... To communicate Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing more ... -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos This is the funniest troll I have see in a while... and a bot to boot! ~cool -- https://mail.python.org/mailman/listinfo/python-list
Re: Is MVC Design Pattern good enough?
On Mon, Jun 9, 2014 at 9:54 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: Chris Angelico ros...@gmail.com writes: On Tue, Jun 10, 2014 at 12:57 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: AFAIK standard Python has no GUI library at all, so Java SE and C# already are better than Python insofar as they include a standard GUI toolkit at all! In Python one first has to choose between more than a dozen of »GUI frameworks«, and then the result of the comparison between Python and Java SE would depend on that choice. Define standard Python. »Standard Python 2.7.6 (or 3.4.1)« contains all those and only those features that are available under every implementation of Python 2.7.6 (or 3.4.1, respectively). It is the set of features an implementation must compass to call itself »an implementation of Python 2.7.6 (or 3.4.1, respectively)«. A circular and therefore useless definition. Given any implementation X and a feature Y not supported by X, one can equally well say that either 1) X is not an implementation of Python because Y is part of standard Python; or 2) Y is not part of standard Python because implementation X doesn't support it. -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
I wonder if it's opensourced. I am kinda interested in its implementation. On the whole, the performance is rather good. 2014-06-10 22:39 GMT+08:00 Mark H Harris harrismh...@gmail.com: On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos This is the funniest troll I have see in a while... and a bot to boot! ~cool -- https://mail.python.org/mailman/listinfo/python-list -- 吾輩は猫である。ホームーページはhttp://introo.me。 -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 04:09 PM, Shiyao Ma wrote: I wonder if it's opensourced. I am kinda interested in its implementation. On the whole, the performance is rather good. 2014-06-10 22:39 GMT+08:00 Mark H Harris harrismh...@gmail.com mailto:harrismh...@gmail.com: On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos This is the funniest troll I have see in a while... and a bot to boot! ~cool -- https://mail.python.org/mailman/listinfo/python-list -- http://introo.me? If you're asking me if you can use the script I did ... sure, you can use it, do whatever you want with it, change it,etc ... it was only one example to exceed the freeze of 'Big Data ,etc (...)' ... you can look at it and think about n millions of databases, n billions of files,etc ... and can be easily converted in any language ... -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 03:39 PM, Mark H Harris wrote: On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar with the syntax of ... When you look at the script I provided you in my first post ... if you're capable of thinking about it ... yoy can see countless terabytes/petabytes of information indexed .. it doesn't matter what you're daling with ...it might be millions of databases or billions of files ... I spent the last two days thinking about what I want to implement(...) ... looking at your posts ... thinking in the wideness and in the particularity of the detail ... I really consider that Python is one good option(probably the best) ... the programmers need less lines of code to achieve what must be achieved ... and this is one great advantage ... If you read what I wrote in my first post -'Python team(...)' and if somehow you're capable of visualize that integrated with logs ,etc ... advertisement included, manipulation of the search string in the client apis, etc ... you're very probably very capable of ... (...) Best regards, Carlos This is the funniest troll I have see in a while... and a bot to boot! ~cool Mark , I'd write that the answers to my topic were not the funniest troll I've seen and what a bot to boot! Being Portuguese, I'm sharing with you Brazilian music! https://www.youtube.com/watch?v=ibrZvsRyyQI Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 02:38 PM, Rustom Mody wrote: On Tuesday, June 10, 2014 6:55:27 PM UTC+5:30, Carlos Anselmo Dias wrote: https://www.youtube.com/watch?v=N1EwYpfUFQU (...) http://huntingtonleadership.com/blog/entry/communication-is-a-two-way-street.html Making part of the team ... https://www.youtube.com/watch?v=oFJIenHfjK0 Are people capable(...) with the will to drive one ferrari/porsche/etc? Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing more ... I have been on this mail group for a relatively short time and I'm chocked to see the amount of needless posts in general. Is it too much to ask for some mail-group discipline? Carlos and some others, please phrase your questions or requests concisely and clearly. Making a post that initiates a flood of questions and discussions is clearly inefficient, specially if it is beside the core essence of a Python language group and probably besides the poster's own goal too. It wastes a lot peoples time and it devalues the usefulness of the mail group. There was some entertainment in it though, but for that purpose I seek other sources. -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 03:57 PM, Søren wrote: Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing more ... I have been on this mail group for a relatively short time and I'm chocked to see the amount of needless posts in general. Is it too much to ask for some mail-group discipline? Carlos and some others, please phrase your questions or requests concisely and clearly. Making a post that initiates a flood of questions and discussions is clearly inefficient, specially if it is beside the core essence of a Python language group and probably besides the poster's own goal too. It wastes a lot peoples time and it devalues the usefulness of the mail group. There was some entertainment in it though, but for that purpose I seek other sources. Hi Soren ... I'm looking for people very experienced in the Python Programming Language to develop/implement the projects I described briefly and not knowing Python, I followed my own logic and even providing one script to help people understand and somehow think about it (...) I don't have the intention to disturb ... Best Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Let me finish with this ... https://www.youtube.com/watch?v=M79e5ji-53w I'm waiting for traffic of search engines to start organizing what must be organized ... I've already one main section more or less organized ... and that main section will allow to develop the other sections ... One of the first things we'll be thinking about it's the structure of the main sections, development of ...towards the concept of client apis ... In one of the main sections(the one I'm describing) ... one sub section has something like 500 millions of thumbs to be processed/imported ... with 20 millions of new thumbs every month ... 1 million of records are +- 20 million of thumbs ... (...) Best regards, Carlos On 06/10/2014 04:34 PM, Carlos Anselmo Dias wrote: On 06/10/2014 03:57 PM, Søren wrote: Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing more ... I have been on this mail group for a relatively short time and I'm chocked to see the amount of needless posts in general. Is it too much to ask for some mail-group discipline? Carlos and some others, please phrase your questions or requests concisely and clearly. Making a post that initiates a flood of questions and discussions is clearly inefficient, specially if it is beside the core essence of a Python language group and probably besides the poster's own goal too. It wastes a lot peoples time and it devalues the usefulness of the mail group. There was some entertainment in it though, but for that purpose I seek other sources. Hi Soren ... I'm looking for people very experienced in the Python Programming Language to develop/implement the projects I described briefly and not knowing Python, I followed my own logic and even providing one script to help people understand and somehow think about it (...) I don't have the intention to disturb ... Best Regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
Here is Dijkstra: http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html ... And here is Hoare... | Ada has a plethora of features and notational conventions, many of them | unnecessary and some of them, like exception handling, even | dangerous. Do not allow this language in its present state to be | used in applications where reliability is critical. Would be interesting to get their collective take on C++... Are there any good parts? It appears the book was cancelled (note the remarks): https://www.matthewsbooks.com/productdetail.aspx?productid=4493SAT1969returnurl=%2Fforthcomingtitles.aspx%3Fsort%3D0%26images%3D1%26print%3Dtrue Skip -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 10/06/2014 08:27, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions). As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors. Essentially, you can write both good and bad code both with and without goto. Thomaas I entirely agree. I find it incredible that some people find it so difficult to differentiate having tens or even hundreds of gotos leaping around willy nilly to a similar number of labels, and a similar number of gotos targetted at one label called SNAFU or whatever. -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Is MVC Design Pattern good enough?
On 10/06/2014 04:32, Chris Angelico wrote: On Tue, Jun 10, 2014 at 12:57 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: AFAIK standard Python has no GUI library at all, so Java SE and C# already are better than Python insofar as they include a standard GUI toolkit at all! In Python one first has to choose between more than a dozen of »GUI frameworks«, and then the result of the comparison between Python and Java SE would depend on that choice. Define standard Python. I'm pretty sure a stock-standard Python installation includes tkinter, although that may not necessarily be true on all platforms. But personally, I'd rather use GTK than Tkinter. ChrisA IDLE is available on all platforms and is written in tkinter. But personally I'd rather use the command line :) -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 2014-06-10, Mark Lawrence breamore...@yahoo.co.uk wrote: I entirely agree. I find it incredible that some people find it so difficult to differentiate having tens or even hundreds of gotos leaping around willy nilly to a similar number of labels, and a similar number of gotos targetted at one label called SNAFU or whatever. I've seen some amazingly convoluted C code where people got themselves wrapped around the axle six different ways in order to avoid using goto fail or goto retry. Invariably I was looking at the code because it didn't work right and needed to be fixed. Usually the addition of a 'fail' label and a few gotos allowed me to throw out all sorts of complexly nested if/else blocks, status flags, and unnecessary while loops. Usually you can reduce the number of lines of code (sometimes by half or more) while also reducing the number and nesting of control structures. And when you're done it works right! -- Grant Edwards grant.b.edwardsYow! LOOK!! Sullen at American teens wearing gmail.comMADRAS shorts and Flock of Seagulls HAIRCUTS! -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Tue, 10 Jun 2014 19:14:18 +0100, Mark Lawrence wrote: On 10/06/2014 08:27, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions). As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors. Essentially, you can write both good and bad code both with and without goto. Thomaas I entirely agree. I find it incredible that some people find it so difficult to differentiate having tens or even hundreds of gotos leaping around willy nilly to a similar number of labels, and a similar number of gotos targetted at one label called SNAFU or whatever. once the compiler gets hold of it all the CPU has to work with are goto variants, jump if equal etc.(I don't know the actual x86 assembler but it is the same on all processors) -- (It is an old Debian tradition to leave at least twice a year ...) -- Sven Rudolph -- https://mail.python.org/mailman/listinfo/python-list
How do I get zlib installed on a python2.7 alt install?
Installed python 2.7.7 on SLES from source to /opt/python2.7. It's already an installed module on 2.6. How do I get zlib installed on python2.7 as well?? -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: Le samedi 7 juin 2014 04:20:22 UTC+2, Tim Chase a écrit : On 2014-06-06 09:59, Travis Griggs wrote: On Jun 4, 2014, at 4:01 AM, Tim Chase wrote: If you use UTF-8 for everything It seems to me, that increasingly other libraries (C, etc), use utf8 as the preferred string interchange format. I definitely advocate UTF-8 for any streaming scenario, as you're iterating unidirectionally over the data anyways, so why use/transmit more bytes than needed. The only failing of UTF-8 that I've found in the real world(*) is when you have to requirement of constant-time indexing into strings. -tkc And once again, just an illustration, timeit.repeat((x*1000 + y), setup=x = 'abc'; y = 'z') [0.9457552436453511, 0.9190932610143818, 0.9322044912393039] timeit.repeat((x*1000 + y), setup=x = 'abc'; y = '\u0fce') [2.5541921791045183, 2.52434366066052, 2.5337417948967413] timeit.repeat((x*1000 + y), setup=x = 'abc'.encode('utf-8'); y = 'z'.encode('utf-8')) [0.9168235779232532, 0.8989583403075017, 0.8964204541650247] timeit.repeat((x*1000 + y), setup=x = 'abc'.encode('utf-8'); y = '\u0fce'.encode('utf-8')) [0.9320969737165115, 0.9086006535332558, 0.9051715140790861] sys.getsizeof('abc'*1000 + '\u0fce') 6040 sys.getsizeof(('abc'*1000 + '\u0fce').encode('utf-8')) 3020 But you know, that's not the problem. When a see a core developper discussing benchmarking, when the same application using non ascii chars become 1, 2, 5, 10, 20 if not more, slower comparing to pure ascii, I'm wondering if there is not a serious problem somewhere. (and also becoming slower that Py3.2) BTW, very easy to explain. I do not understand why the free, open, what-you-wish-here, ... software is so often pushing to the adoption of serious corporate products. jmf Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives Computers store data using bytes ASCII Characters can be used storing a single byte Unicode code-points cannot be stored in a single byte therefore Unicode will always be inherently slower than ASCII implementation details mean that some Unicode characters may be handled more efficiently than others, why is this wrong? why should all Unicode operations be equally slow? -- There isn't any problem -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Terry Jan Reedy ... https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis one is portuguese ... I'm someone who did very probably more webpages than you in your entire life ... Do you exist? On 06/10/2014 08:57 PM, Terry Reedy wrote: On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- https://mail.python.org/mailman/listinfo/python-list
Re: Is this sort of a constraint implementable in Python?
On 06/10/2014 02:12 AM, varun...@gmail.com wrote: Hello Everyone, I'm working on a python code to input matrices into CPLEX solver. I have most of my code running fine but as of now, I don't know how to express this constraint. My objective is to minimize the number of nodes. I have got one of the weirdest looking constraints which I don't know how to express in Python because python basically takes matrices and inputs them into cplex. My constraint is as below. This was what I wrote in AMPL minimize phy_nodes: sum {w in PHY_NODES} x_ns[w] ; s.t. Phy_nodes_Eq{w in PHY_NODES, dns in DEMAND}: x_ns[w] = 1 == x_SGW[dns, w] + x_PGW[dns, w] + x_MME[dns, w] + x_IMS[dns, w] + x_PoP[dns, w] = 1 else x_SGW[dns, w] + x_PGW[dns, w] + x_MME[dns, w] + x_IMS[dns, w] + x_PoP[dns, w] = 0; Could you help me fix this problem? Thank You This is more a CPLEX question than a Python question. (Or rather a question about some Python/Cplex interface.) Do you have access to any kind of a CPLEX forum or a Cplex-via-Python forum? I think that's much more likely to get you an answer. Luck, Gary Herron -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, Jun 11, 2014 at 4:48 AM, Grant Edwards invalid@invalid.invalid wrote: I've seen some amazingly convoluted C code where people got themselves wrapped around the axle six different ways in order to avoid using goto fail or goto retry. Invariably I was looking at the code because it didn't work right and needed to be fixed. Usually the addition of a 'fail' label and a few gotos allowed me to throw out all sorts of complexly nested if/else blocks, status flags, and unnecessary while loops. Usually you can reduce the number of lines of code (sometimes by half or more) while also reducing the number and nesting of control structures. And when you're done it works right! Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
In article mailman.10972.1402432630.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. How about, Don't use PHP? -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? []'s On Tue, Jun 10, 2014 at 5:07 PM, Carlos Anselmo Dias car...@premium-sponsor.com wrote: Terry Jan Reedy ... https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis one is portuguese ... I'm someone who did very probably more webpages than you in your entire life ... Do you exist? On 06/10/2014 08:57 PM, Terry Reedy wrote: On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- https://mail.python.org/mailman/listinfo/python-list -- -- Leônidas S. Barbosa (Kirotawa) blog: corecode.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, Jun 11, 2014 at 6:38 AM, Roy Smith r...@panix.com wrote: In article mailman.10972.1402432630.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. How about, Don't use PHP? Actually, that one might fit now. In years past, that advice would often lead you to write very expensive code, because it couldn't be run on a cheap web host - if you write something in Python, you have to pay through the nose, but any piece-of-rubbish host will give you PHP. That may now be changing, though. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
The end- for replies like this one ... As far as I'm concerned and I'm not ... we'll talk about what I wrote when it will be time too ... There we'll see who has the possibility of participating ... and I'm not excluding people ... and certainly not those who answered like this ... I can't wait to see your capacity to determine if your brains make sense or not ... As far as I'm concerned ... and when you read what I wrote ... I'm certainly less worried than you ... Best regards, Carlos On 06/10/2014 09:07 PM, Carlos Anselmo Dias wrote: Terry Jan Reedy ... https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis one is portuguese ... I'm someone who did very probably more webpages than you in your entire life ... Do you exist? On 06/10/2014 08:57 PM, Terry Reedy wrote: On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- https://mail.python.org/mailman/listinfo/python-list
Re: os.startfile hanging onto the launched app, or my IDE?
On 06/09/2014 09:46 PM, Tim Golden wrote: On 09/06/2014 23:31, Ethan Furman wrote: On 06/09/2014 03:21 PM, Josh English wrote: So this quirk is coming from PyScripter, which is a shame, because I don't think it's under development, so it won't be fixed. The nice thing about Python code is you can at least fix your copy. :) IIRC, PyScripter is actually written in Delphi! Ah, well, in that case forget I spoke. :/ -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Troll is you ... Get real ... On 06/10/2014 09:41 PM, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? []'s On Tue, Jun 10, 2014 at 5:07 PM, Carlos Anselmo Dias car...@premium-sponsor.com wrote: Terry Jan Reedy ... https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis one is portuguese ... I'm someone who did very probably more webpages than you in your entire life ... Do you exist? On 06/10/2014 08:57 PM, Terry Reedy wrote: On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 10/06/2014 21:41, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? No, otherwise the resident unicode expert would have been booted long ago. -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On Tue, Jun 10, 2014 at 4:51 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/06/2014 21:41, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? No, otherwise the resident unicode expert would have been booted long ago. gmail tagged this message with: Be careful with this message. It contains content that's typically used to steal personal information. -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
Hi... I don't understand the 'problem' of several people ... I created one post because I've several projects, I'm looking for one team of experienced experts in Python to work in my projects ... asap ... I provided one script(I'm not one expert in Python) to help people think and described the projects(briefly) ... People start calling me troll,etc- Are this people not insane? And I don't understand their paranoia ... Those who call me troll ... look at the mirror and criticize what I wrote if you're capable of ... with sense and reasoning ... not like someone absurd who is not capable of and tries to demonstrate that is the greatest ... these people should get real ... Regards, Carlos On 06/10/2014 09:53 PM, Larry Martell wrote: On Tue, Jun 10, 2014 at 4:51 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/06/2014 21:41, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? No, otherwise the resident unicode expert would have been booted long ago. gmail tagged this message with: Be careful with this message. It contains content that's typically used to steal personal information. -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/09/2014 01:54 PM, Carlos Anselmo Dias wrote: [snip] *plonk* -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 6/10/14 3:41 PM, leo kirotawa wrote: Guys I'm from Brazil too, and I'm ashamed for this troll. Don't feed the troll bot. OTOH, it might be fun to feed it some weird subject|predicate phrases to see what it does with them. Bots eat bananas because bouncing on berries becomes beenie baby bologna! ;-) -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 06/10/2014 01:38 PM, Roy Smith wrote: Chris Angelico wrote: # Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. How about, Don't use PHP? Sounds like the exception that proves the rule! ;) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list
Re: First time I looked at Python was(...)
On 06/10/2014 10:32 PM, Mark H Harris wrote: On 6/10/14 3:41 PM, leo kirotawa wrote: Guys I'm from Brazil too, and I'm ashamed for this troll. Don't feed the troll bot. OTOH, it might be fun to feed it some weird subject|predicate phrases to see what it does with them. Bots eat bananas because bouncing on berries becomes beenie baby bologna! ;-) If I was thinking that people were capable of understanding what's about ... exceeding the barrier of databases, billions of files indexed,etc ... look at that like client apis ... with logs, advertisement, etc integrated ... in main-sections with sub-sections ... with control of cache, web-services, etc ... I tried to resume it briefly and it's about what I described here ... I want that people (can) think about it ... like I wrote ... when the sub-section of one main section starts receiving traffic from search engines ... it will be possible to think in other main sections, organize everything,etc ... (...) Best regards, Carlos -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On 11 June 2014 05:43, alister alister.nospam.w...@ntlworld.com wrote: Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives By his own admission, jmf doesn't use Python anymore. His only reason to remain on this emailing/newsgroup is to troll about the FSR. Please don't reply to him (and preferably add him to your killfile). Tim Delaney -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 10/06/2014 21:43, Ethan Furman wrote: On 06/10/2014 01:38 PM, Roy Smith wrote: Chris Angelico wrote: # Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. How about, Don't use PHP? Sounds like the exception that proves the rule! ;) -- ~Ethan~ After that one please consider yourself fortunate that the UK, amongst other countries, no longer has the death penalty. I guess that The Comfy Chair will have to suffice :) -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On 10/06/2014 20:43, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: [snip the garbage] jmf Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives Computers store data using bytes ASCII Characters can be used storing a single byte Unicode code-points cannot be stored in a single byte therefore Unicode will always be inherently slower than ASCII implementation details mean that some Unicode characters may be handled more efficiently than others, why is this wrong? why should all Unicode operations be equally slow? I'd like to dedicate a song to jmf. From the Canterbury Sound band Caravan, the album The Battle Of Hastings, the song title Liar. -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
Please don't be unnecessarily cruel and antagonistic. -- Devin On Tue, Jun 10, 2014 at 4:16 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/06/2014 20:43, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: [snip the garbage] jmf Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives Computers store data using bytes ASCII Characters can be used storing a single byte Unicode code-points cannot be stored in a single byte therefore Unicode will always be inherently slower than ASCII implementation details mean that some Unicode characters may be handled more efficiently than others, why is this wrong? why should all Unicode operations be equally slow? I'd like to dedicate a song to jmf. From the Canterbury Sound band Caravan, the album The Battle Of Hastings, the song title Liar. -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to program while your cat is sleeping on the keyboard. -- Steven D'Aprano http://import-that.dreamwidth.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On Tue, 10 Jun 2014 19:43:13 +, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: Please don't feed the troll. I don't know whether JMF is trolling or if he is a crank who doesn't understand what he is doing, but either way he's been trying to square this circle for the last couple of years. He believes, or *claims* to believe, that a performance regression (one which others cannot replicate) is *mathematical proof* that Python's Unicode handling is invalid. What can one say to crack-pottery of this magnitude? Just kill-file his posts and be done. -- Steven D'Aprano http://import-that.dreamwidth.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, Jun 11, 2014 at 10:00 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to program while your cat is sleeping on the keyboard. Hmm. I've never actually heard that one. Is it commonly taught in programming classes? Because I haven't taken any. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, Jun 11, 2014 at 10:00 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Don't try to program while your cat is sleeping on the keyboard. In article mailman.10989.1402445543.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Hmm. I've never actually heard that one. Is it commonly taught in programming classes? Because I haven't taken any. A picture of a cat sleeping on your keyboard... $ ps l F UID PID PPID PRI NIVSZ RSS WCHAN STAT TTYTIME COMMAND 0 1010 4768 4660 20 0 5904 352 n_tty_ S+ pts/1 0:00 cat -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On 06/10/2014 04:29 PM, Devin Jeanpierre wrote: Please don't be unnecessarily cruel and antagonistic. I completely agree. jmf should leave us alone and stop cruelly and antagonizingly baiting us with stupidity and falsehoods. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 11 June 2014 10:00, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to program while your cat is sleeping on the keyboard. Lying down, the weight is spread across the whole keyboard so you're unlikely to suffer extra keypresses due to the cat. So if you're a touch-typist that one may not be too bad (depending on how easily their fur gets up your nose). Now, a cat *standing* on the keyboard, between you and the monitor, and rubbing his head against your hands, is a whole other matter. Tim Delaney -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 11/06/2014 01:40, Tim Delaney wrote: On 11 June 2014 10:00, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info mailto:steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to program while your cat is sleeping on the keyboard. Lying down, the weight is spread across the whole keyboard so you're unlikely to suffer extra keypresses due to the cat. So if you're a touch-typist that one may not be too bad (depending on how easily their fur gets up your nose). Now, a cat *standing* on the keyboard, between you and the monitor, and rubbing his head against your hands, is a whole other matter. Tim Delaney Does it make any difference if the cat is European or African? -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Wed, Jun 11, 2014 at 10:53 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Does it make any difference if the cat is European or African? What? I don't know. ARGH! ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Micro Python -- a lean and efficient implementation of Python 3
On 11/06/2014 00:29, Devin Jeanpierre wrote: Please don't be unnecessarily cruel and antagonistic. -- Devin I am simply giving our resident unicode expert a taste of his own medicine. If you don't like that complain to the PSF about the root cause of the problem, not the symptoms. -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On 11/06/2014 02:00, Chris Angelico wrote: On Wed, Jun 11, 2014 at 10:53 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Does it make any difference if the cat is European or African? What? I don't know. ARGH! ChrisA Awfully sorry, it's 2 a.m. here, next time I'll try to remember to mention cats from other continents like America, Asia and Antartica. Did I get all of them? :) -- 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 malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: try/except/finally
On Tuesday, June 10, 2014 11:41:45 PM UTC+5:30, Skip Montanaro wrote: Would be interesting to get their collective take on C++... Are there any good parts? It appears the book was cancelled https://www.matthewsbooks.com/productdetail.aspx?productid=4493SAT1969returnurl=%2Fforthcomingtitles.aspx%3Fsort%3D0%26images%3D1%26print%3Dtrue (note the remarks): And — if ‘i’≡‘y’ — the author. -- https://mail.python.org/mailman/listinfo/python-list
[issue634412] RFC 2387 in email package
Abhilash Raj added the comment: David: How does this API look? https://gist.github.com/maxking/2f37bae7875dde027e3c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17457] Unittest discover fails with namespace packages and builtin modules
Claudiu.Popa added the comment: Can we close this? The feature already landed in Python 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle
Roundup Robot added the comment: New changeset ec91ee7d9d8d by Terry Jan Reedy in branch '2.7': Issue #21695: Catch AttributeError created when user closes grep output window http://hg.python.org/cpython/rev/ec91ee7d9d8d New changeset d9c1f36494b6 by Terry Jan Reedy in branch '3.4': Issue #21695: Catch AttributeError created when user closes grep output window http://hg.python.org/cpython/rev/d9c1f36494b6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21695 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle
Terry J. Reedy added the comment: I added try: except: and tested on installed 3.4.1, which previously failed. There is no way that I know of to start repository Idle without a console to print a traceback to. I added a missing import, removed an incorrect comment, added others, and changed 'print x' in 2.7 to 'print(x)' to reduce differences between versions for future patches. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21695 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19840] The is no way to tell shutil.move to ignore metadata
Claudiu.Popa added the comment: Any type of feedback will be appreciated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS
Claudiu.Popa added the comment: Since issue15745 hasn't been fixed yet, would be okay to skip these tests when the test suite runs from a ZFS container? Currently, these failures are a nuissance when running the test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS
koobs added the comment: I'd like to put the buildbot slave instances back onto ZFS for broader Disk/IO test coverage for Python and other projects as well as to gain some administrative disk utilisation flexibility. These two issues have unfortunately precluded that, and there's much more value to projects with a reliably green buildbot than one that is red, ending up ignored, and hiding other issues or regressions in the meantime. +1 on disabling these tests and leaving the issues open so someone can pick them up at a later date and have a ZFS environment in which to reproduce/resolve them in a custom builder -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods
Roundup Robot added the comment: New changeset 79562a31e5a6 by Victor Stinner in branch '3.4': Issue #21700: Fix asyncio doc, add DatagramProtocol http://hg.python.org/cpython/rev/79562a31e5a6 New changeset a8dfdae4c4a0 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21700: Fix asyncio doc, add DatagramProtocol http://hg.python.org/cpython/rev/a8dfdae4c4a0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21700 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21700 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21702] asyncio: remote_addr of create_datagram_endpoint() is not documented
New submission from STINNER Victor: See issue #21701 for a recent issue about this parameter. -- assignee: docs@python components: Documentation, asyncio messages: 220147 nosy: ariddell, docs@python, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: asyncio: remote_addr of create_datagram_endpoint() is not documented versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21702 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided
STINNER Victor added the comment: I opened the issue #21702 to document the parameter remote_addr. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21701 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17457] Unittest discover fails with namespace packages and builtin modules
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18039] dbm.open(..., flag=n) does not work and does not give a warning
Changes by Serhiy Storchaka storch...@gmail.com: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21326] asyncio: request clearer error message when event loop closed
Roundup Robot added the comment: New changeset 7912179335cc by Victor Stinner in branch '3.4': Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop http://hg.python.org/cpython/rev/7912179335cc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21326 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20319] concurrent.futures.wait() can block forever even if Futures have completed
Sebastian Kreft added the comment: I was able to recreate the issue again, and now i have some info about the offending futures: State: RUNNING, Result: None, Exception: None, Waiters: 0, Cancelled: False, Running: True, Done: False The information does not seem very relevant. However, I can attach a console and debug from there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20319 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21326] asyncio: request clearer error message when event loop closed
STINNER Victor added the comment: This issue was discussed on the python-dev mailing list. The conclusion is that adding a new method to asyncio is safe because asyncio has a provisional API (whereas the selectors module doesn't). Ok, Python 3.4.2 will have the new method BaseEventLoop.is_closed(), that's all. -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21326 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21679] Prevent extraneous fstat during open()
Bohuslav Slavek Kabrda added the comment: Again, thanks for the review. It's true that HAVE_FSTAT can be defined without stat structure containing st_blksize. I added an ifdef HAVE_STRUCT_STAT_ST_BLKSIZE for that. Attaching third version of the patch, hopefully everything will be ok now. -- Added file: http://bugs.python.org/file35548/python3-remove-extraneous-fstat-on-file-open-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21679 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18039] dbm.open(..., flag=n) does not work and does not give a warning
Claudiu.Popa added the comment: Thanks for the reviews, Serhiy. Here's the new version of the patch. -- Added file: http://bugs.python.org/file35549/issue18039_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21595] asyncio: Creating many subprocess generates lots of internal BlockingIOError
STINNER Victor added the comment: Can someone please review asyncio_read_from_self.patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21595 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21596] asyncio.wait fails when futures list is empty
Roundup Robot added the comment: New changeset 2b3f8b6d6e5c by Victor Stinner in branch '3.4': Issue #21596: asyncio.wait(): mention that the sequence of futures must not http://hg.python.org/cpython/rev/2b3f8b6d6e5c New changeset 68d45a1a3ce0 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21596: asyncio.wait(): mention that the sequence of futures http://hg.python.org/cpython/rev/68d45a1a3ce0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21596 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21596] asyncio.wait fails when futures list is empty
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21596 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21515 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks
STINNER Victor added the comment: I've read this entire issue and can't see that much can be done My patch can be applied in Python 3.5 to notice immediatly users that filenames cannot be encoded to the ANSI code page. Anyway, bytes filenames are deprecated (emit a DeprecationWarning warning) in the os module on Windows since Python 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13247 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21703] IDLE: Test UndoDelegator
New submission from Saimadhav Heblikar: Adds test for UndoDelegator class in idlelib.UndoDelegator. With the help of Victor Stinner on IRC, I managed to reduce the refleak, but the current status is: saimadhav@debian:~/dev/34-cpython$ ./python -m test -R 3:3 -uall test_idle [1/1] test_idle beginning 6 repetitions 123456 .. test_idle leaked [237, 237, 237] references, sum=711 test_idle leaked [95, 98, 97] memory blocks, sum=290 1 test failed: test_idle Any hint on where the problem is? --- I also plan to cover other helper classes in the same UndoDelegator file. -- components: IDLE files: test-undodelegator.diff keywords: patch messages: 220158 nosy: jesstess, sahutd, terry.reedy priority: normal severity: normal status: open title: IDLE: Test UndoDelegator versions: Python 2.7, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35550/test-undodelegator.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21703 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20504] cgi.FieldStorage, multipart, missing Content-Length
Matthias Urlichs added the comment: Actually, the problem is cgi.py around line 550: clen = -1 if 'content-length' in self.headers: try: clen = int(self.headers['content-length']) except ValueError: pass if maxlen and clen maxlen: raise ValueError('Maximum content length exceeded') self.length = clen if self.limit is None and clen: self.limit = clen … so self.limit ends up being -1 instead of None. :-/ Somebody please change this test to if self.limit is None and clen = 0: -- nosy: +smurfix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20504 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20504] cgi.FieldStorage, multipart, missing Content-Length
Matthias Urlichs added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file35551/cgi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20504 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com