[ANN] CFP: SciPy India 2014: Dec 5 - 7, IIT Bombay

2014-11-05 Thread Prabhu Ramachandran
Hello, The CFP and registration for SciPy India 2014 (http://scipy.in) is open. SciPy India 2014 will be held in IIT Bombay between December 5th to December 7th, 2014. Please spread the word! SciPy India is an annual conference on using Python for science and engineering research and

Re: Code review

2014-11-05 Thread Jean-Michel Pichavant
- Original Message - From: C Smith illusiontechniq...@gmail.com I read that with 2.7 that I had to initialize class variables to immutable types. I think because I was working with the lists before they had been altered and were still empty lists. I will mess around tomorrow with the

Re: pkcs7 signing

2014-11-05 Thread Robin Becker
On 05/11/2014 06:40, dieter wrote: Robin Becker ro...@reportlab.com writes: Is there a way to do pkcs7 / 12 signing with python. Have you checked whether OpenSSL supports this kind of signing? If it does, then you likely can use this via several Python wrappings for OpenSSL. I checked that

Re: Regex substitution trouble

2014-11-05 Thread Eugene
massi_...@msn.com wrote: Hi everyone, I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Here is the problem, I'm trying to write a regex in order to substitute all the occurences in the form

Understanding help command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
Hello everyone, I'm a Python beginner and just getting familiar with it. (I need it for my EE B.Sc. project) For the learning purposes I use IDLE and (Learning Python by written by Mark Lutz). Let's say that I have some earlier experience with C language, but still Python is a different one

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Jean-Michel Pichavant
Original Message - From: Ivan Evstegneev webmailgro...@gmail.com To: python-list@python.org Sent: Wednesday, 5 November, 2014 12:00:16 PM Subject: Understanding help command description syntax - explanation needed So here is the question itself: If I use the help command to check

I need algorithm for my task

2014-11-05 Thread lordvital21
I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is HELLOL thewordword is thewordword I need to know whether the word in the text is repeated and get it. This will be the key. --

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Mark Lawrence
On 05/11/2014 11:55, Jean-Michel Pichavant wrote: Original Message - From: Ivan Evstegneev webmailgro...@gmail.com To: python-list@python.org Sent: Wednesday, 5 November, 2014 12:00:16 PM Subject: Understanding help command description syntax - explanation needed So here is the

RE: Understanding help command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
Firtst of all thanks for reply. brackets [] means that the argument is optional. That's what I'm talking about (asking actually), where do you know it from? I mean, if there are some resources, which explain all these syntax abbreviations? The general concept. Like this one(just for

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Wed, Nov 5, 2014 at 10:00 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: range(start, stop[, step]) - range object For instance, how do I need to understand that (start,stop[,step]) it’s just a three numbers? What do those brackets-- [,] mean? The docs for range() in Python 3 do

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Larry Martell
On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev webmailgro...@gmail.com wrote: Firtst of all thanks for reply. brackets [] means that the argument is optional. That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. --

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where do you know it from? I mean, if there are some resources, which explain all these syntax abbreviations? The general concept. Like this one(just for

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where do you know it from? I mean, if there are some resources, which explain all these syntax abbreviations? The general concept. The best way to find clues about

Re: I need algorithm for my task

2014-11-05 Thread Chris Angelico
On Wed, Nov 5, 2014 at 10:58 PM, lordvita...@gmail.com wrote: I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is HELLOL thewordword is thewordword I need to know whether the

RE: Understanding help command description syntax - explanation needed

2014-11-05 Thread Ivan Evstegneev
Chris, You got my point exactly. ^_^ This is not about a range command itself, but those conventions. Thanks. Larry, That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. I didn't intend to offence anyone here.

Re: I need algorithm for my task

2014-11-05 Thread Peter Otten
lordvita...@gmail.com wrote: I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is HELLOL thewordword is thewordword I need to know whether the word in the text is repeated and get

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. I didn't intend to offence anyone here. Just asked a questions ^_^ Don't worry

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Grant Edwards
On 2014-11-05, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: machine code typically implies an instruction set specific to that machine... ALL computers operate in BINARY logic (a bit only holds 0 or 1). How you get those bits into the computer is irrelevant. Just to muddy the water...

Re: I need algorithm for my task

2014-11-05 Thread Denis McMahon
On Wed, 05 Nov 2014 03:58:33 -0800, lordvital21 wrote: I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is HELLOL thewordword is thewordword I need to know whether the word in the

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 2:05 AM, Grant Edwards invalid@invalid.invalid wrote: On 2014-11-05, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: machine code typically implies an instruction set specific to that machine... ALL computers operate in BINARY logic (a bit only holds 0 or 1). How you

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-11-05 Thread Cyd Haselton
On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily n...@acm.org wrote: In article cahu5pryq3xegtd-7ahzmdbwk32nprfxz24dfdm1oj-wnmyj...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: Just checking: is sincos() the same as sin() and cos()? Nm output for my toolchain's libm does show sin() and

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Denis McMahon
On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote: If you have an old system with front-panel toggle switches, you set the switches for binary values, and then push the enter switch. You've booted a PDP-8 then ;) -- Denis McMahon, denismfmcma...@gmail.com --

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Larry Martell
On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. I didn't

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote: And I don't think Larry was actually offended; it's just that some questions don't really have easy answers - imagine someone asking a great mathematician But how do you KNOW that 2 + 2 is 4? Where's it written

Real-world use of Counter

2014-11-05 Thread Ethan Furman
I'm looking for real-world uses of collections.Counter, specifically to see if anyone has been surprised by, or had to spend extra-time debugging, issues with the in-place operators. Background: Most Python data types will cause a TypeError to be raised if unusable types are passed in: --

Misunderstanding buffering - flushing isn't

2014-11-05 Thread Skip Montanaro
I've been developing a little web server. The request handler subclasses SimpleHTTPRequestHandler. It has a do_GET method which figures out what work to actually do, then ends with this: def do_GET(self): ... sys.stdout.flush() sys.stderr.flush() As it's still being

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Skip Montanaro
On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro skip.montan...@gmail.com wrote: I figured everything would be flushed to the respective .stdout and .stderr files at the end of every request, but that appears not to be the case. I stand corrected. I added print request finished to

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Irmen de Jong
On 5-11-2014 17:44, Skip Montanaro wrote: As it's still being actively developed, I've been dumping all sorts of diagnostic prints to stdout and stderr. Any reason you're not using the logging module and get it all nicely dumped into a log file instead? (asks he who regularly inserts prints

Re: pkcs7 signing

2014-11-05 Thread Irmen de Jong
On 5-11-2014 11:14, Robin Becker wrote: On 05/11/2014 06:40, dieter wrote: Robin Becker ro...@reportlab.com writes: Is there a way to do pkcs7 / 12 signing with python. Have you checked whether OpenSSL supports this kind of signing? If it does, then you likely can use this via several

Re: Real-world use of Counter

2014-11-05 Thread Peter Otten
Ethan Furman wrote: I'm looking for real-world uses of collections.Counter, specifically to see if anyone has been surprised by, or had to spend extra-time debugging, issues with the in-place operators. Background: Most Python data types will cause a TypeError to be raised if unusable

Re: I need algorithm for my task

2014-11-05 Thread MRAB
On 2014-11-05 11:58, lordvita...@gmail.com wrote: I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is DOLORIUM HELLOLHELLO is HELLOL thewordword is thewordword I need to know whether the word in the text is

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Skip Montanaro
On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: Any reason you're not using the logging module and get it all nicely dumped into a log file instead? I'm an old fart. What can I say? BITD, (as Irmen is well aware, being about as old as I am in Python years), print

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread MRAB
On 2014-11-05 02:30, Dennis Lee Bieber wrote: On Tue, 4 Nov 2014 13:45:32 -0300, françai s romaper...@gmail.com declaimed the following: I intend to write in lowest level of computer programming as a hobby. It is true that is impossible write in binary code, the lowest level of programming

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 4:54 AM, Skip Montanaro skip.montan...@gmail.com wrote: I'm an old fart. What can I say? BITD, (as Irmen is well aware, being about as old as I am in Python years), print was all we had. (We also walked uphill to school in both directions, in the snow.) While I use the

Re: I need algorithm for my task

2014-11-05 Thread C@rlos
I thing this work: stg='pythonpython' foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ] On 2014-11-05 11:58, lordvita...@gmail.com wrote: I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: pythonpythonpyth is python DOLORIUMD is

Re: I need algorithm for my task

2014-11-05 Thread MRAB
On 2014-11-05 18:05, C@rlos wrote: I thing this work: stg='pythonpython' foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ] It doesn't work for the final example or barbaz. -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Neil D. Cerutti
On 11/5/2014 7:41 AM, Chris Angelico wrote: On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where do you know it from? I know it because I've been a programmer for 39 years. I didn't intend to offence anyone

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Terry Reedy
On 11/5/2014 7:31 AM, Ivan Evstegneev wrote: You got my point exactly. ^_^ This is not about a range command itself, but those conventions. The Language Manual 1. Introduction has a section on the grammar notation conventions. The Library Manual 1. Introduction does not. I would agree that

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Gene Heskett
On Wednesday 05 November 2014 10:56:57 Larry Martell did opine And Gene did reply: On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev webmailgro...@gmail.com wrote: That's what I'm talking about (asking actually), where

Re: detect mouse pointer type

2014-11-05 Thread Joel Goldstick
On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon peterirbi...@gmail.com wrote: Hello, please how can I detect mouse pointer type? I would like to print every mouse pointer change (arrow, hand, ...) while moving my mouse over screen. How can I do this? (for now I need it for windows, but

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Cameron Simpson
On 05Nov2014 15:38, Denis McMahon denismfmcma...@gmail.com wrote: On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote: If you have an old system with front-panel toggle switches, you set the switches for binary values, and then push the enter switch. You've booted a PDP-8 then

Re: detect mouse pointer type

2014-11-05 Thread Marc Aymerich
On Wed, Nov 5, 2014 at 11:31 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon peterirbi...@gmail.com wrote: Hello, please how can I detect mouse pointer type? I would like to print every mouse pointer change (arrow, hand, ...) while moving

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Dan Stromberg
On Tue, Nov 4, 2014 at 10:39 PM, Cameron Simpson c...@zip.com.au wrote: Bah! He asked if there were lower levels than binary. Ergo: chip design! (And microcode, the intermediate layer. Or one of the layers, depending where you draw the line.) Should we stop before we reach the quantum foam of

Machine Learning Startup Hiring

2014-11-05 Thread Charles Weitzer
My name is Charles Weitzer. I do recruiting with a focus on quantitative sciences. One of my clients is a machine learning startup located in Northern California. The founders include a successful veteran entrepreneur with a PhD in CS from Stanford, while the other founder is on the faculty at

Re: [OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Cameron Simpson
On 05Nov2014 18:09, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 5, 2014 at 5:39 PM, Cameron Simpson c...@zip.com.au wrote: Bah! He asked if there were lower levels than binary. Ergo: chip design! (And microcode, the intermediate layer. Or one of the layers, depending where you draw the

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Mark Lawrence
On 05/11/2014 17:54, Skip Montanaro wrote: On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: Any reason you're not using the logging module and get it all nicely dumped into a log file instead? I'm an old fart. What can I say? BITD, (as Irmen is well aware, being

Re:[OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-05 Thread Dave Angel
françai s romaper...@gmail.com Wrote in message: I intend to write in lowest level of computer programming as a hobby. It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code? What is the lowest level of programming computers

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Dave Angel
Chris Angelico ros...@gmail.com Wrote in message: On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote: And I don't think Larry was actually offended; it's just that some questions don't really have easy answers - imagine someone asking a great mathematician But how do

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Mark Lawrence
On 06/11/2014 02:37, Dave Angel wrote: Chris Angelico ros...@gmail.com Wrote in message: On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote: And I don't think Larry was actually offended; it's just that some questions don't really have easy answers - imagine someone

Re: I need algorithm for my task

2014-11-05 Thread Denis McMahon
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote: On 2014-11-05 18:05, C@rlos wrote: I thing this work: stg='pythonpython' foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ] It doesn't work for the final example or barbaz. I have two algorithms I've implemented. Still not sure

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 1:52 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: Against a requirements specification that changes on a daily basis, I want it delivered yesterday and no you can't have any more resources to help out, so don't ask :) Or maybe Look, I'll give you five bucks if you

Re: I need algorithm for my task

2014-11-05 Thread Denis McMahon
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote: It doesn't work for the final example or barbaz. Oh, and we really need a private python homework answers list where we can discuss the most pythonic solution we can think of for all these homework / coursework questions without showing the

Re: I need algorithm for my task

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 2:36 PM, Denis McMahon denismfmcma...@gmail.com wrote: On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote: It doesn't work for the final example or barbaz. Oh, and we really need a private python homework answers list where we can discuss the most pythonic solution we can

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Gene Heskett
On Wednesday 05 November 2014 21:52:42 Mark Lawrence did opine And Gene did reply: On 06/11/2014 02:37, Dave Angel wrote: Chris Angelico ros...@gmail.com Wrote in message: On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell larry.mart...@gmail.com wrote: And I don't think Larry was actually

Re: I need algorithm for my task

2014-11-05 Thread Denis McMahon
On Thu, 06 Nov 2014 03:36:40 +, Denis McMahon wrote: On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote: It doesn't work for the final example or barbaz. Oh, and we really need a private python homework answers list where we can discuss the most pythonic solution we can think of for all

Re: Misunderstanding buffering - flushing isn't

2014-11-05 Thread Dave Angel
Skip Montanaro skip.montan...@gmail.com Wrote in message: On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro skip.montan...@gmail.com wrote: I figured everything would be flushed to the respective .stdout and .stderr files at the end of every request, but that appears not to be the case. I

Re: I need algorithm for my task

2014-11-05 Thread Chris Angelico
On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon denismfmcma...@gmail.com wrote: def baseword(s): find shortest sequence which repeats to generate s return s[0:[.join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len (s)]for x in range(1,len(s)+1)].index(s)+1] That's hardly a PEP-8

Re: I need algorithm for my task

2014-11-05 Thread Denis McMahon
On Thu, 06 Nov 2014 15:14:05 +1100, Chris Angelico wrote: On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon denismfmcma...@gmail.com wrote: def baseword(s): find shortest sequence which repeats to generate s return s[0:[.join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len (s)]for x in

Re: Real-world use of Counter

2014-11-05 Thread Rustom Mody
On Wednesday, November 5, 2014 9:57:08 PM UTC+5:30, Ethan Furman wrote: In order to avoid unnecessary code churn (the fix itself is quite simple), the maintainer of the collections module wants to know if anybody has actually been affected by these inconsistencies, and if so, whether it was

Re: Understanding help command description syntax - explanation needed

2014-11-05 Thread Larry Hudson
On 11/05/2014 03:00 AM, Ivan Evstegneev wrote: Hello everyone, I’m a Python beginner and just getting familiar with it. (I need it for my EE B.Sc. project) For the learning purposes I use IDLE and (Learning Python by written by Mark Lutz). Let’s say that I have some earlier experience with C

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: However, doing the check on 'other' and raising a TypeError with an appropriate message would still be better Let's be clear. These are duck-typed methods. A type check is inappropriate. Anything with o.items() is allowed regardless of type. Also, I

[issue22725] improve documentation for enumerate() (built-in function)

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm sorry but I do not like the proposed patch at all. The wording is awkward which when iterated and has weird terminology the sequence number. The OP's concern about the *sequence* versus *iterable* parameter name has been addressed (it is part of the

[issue22785] range docstring is less useful than in python 2

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note that Python 3 seems to imply that the end-point is included The Python 2 wording is better in this regard. Also, it would be nice clarify what is meant by virtual sequence. I know what that means only because I already know what range() does. For

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks good. One nit, please change items to typed_items or somesuch. That will make it clear why there are 3-tuples instead of the traditional 2-tuple used for normal mappings. -- nosy: +rhettinger

[issue21650] add json.tool option to avoid alphabetic sort of fields

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks good. One nit, the phrase sorted by their key has an odd ring to it and is mildly confusing, though technically correct. Perhaps, sorted alphabetically by key would be better for most folks. --

[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Georg's proposed wording reads well and is clearer than the current wording. The patch is ready to apply. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22525

[issue22721] pprint output for sets and dicts is not stable

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: the primary sort will be on the type of quote used for the repr, which would be surprising and significantly less useful. How about: repr(obj).strip('\) ? Overall, the idea of using repr() in some fashion is appealing because it sorts on what the user

[issue22680] Blacklist FunctionTestCase from test discovery

2014-11-05 Thread Michael Foord
Michael Foord added the comment: I agree. -- title: unittest discovery is fragile - Blacklist FunctionTestCase from test discovery ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22680 ___

[issue22680] Blacklist FunctionTestCase from test discovery

2014-11-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22680 ___ ___ Python-bugs-list

[issue20597] PATH_MAX already defined on some Windows compilers

2014-11-05 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: What's to understand? Some compilers, particularly MinGW and Open Watcom, already define a PATH_MAX macro on Windows, and it's not necessarily the same as Python's redefinition of it, possibly causing a compiler error. That's all. Given the time frame

[issue22798] time.mktime doesn't update time.tzname

2014-11-05 Thread Akira Li
New submission from Akira Li: time.tzname is initialized from C tzname variable or tm_zone around Jan, Jul of the current year. If time.mktime() is called with a time tuple from the past/future then after the call time.tzname might be out-of-sync with the corresponding C tzname and tm_zone

[issue22798] time.mktime doesn't update time.tzname

2014-11-05 Thread Akira Li
Akira Li added the comment: I've attached test-timezone-info-is-updated.diff file -- a patch for Lib/test/test_time.py that demonstrates that time functions fail to update the timezone info. The test uses Europe/Moscow timezone but most timezones around the world had/will have different

[issue19884] Importing readline produces erroneous output

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: Arfever, Antoine: If buildbots are happy (green), you can close the issue. (I'm answering to your question on IRC ;-)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884

[issue19753] test_gdb failure on SystemZ buildbot

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c260cf1ba39 by Victor Stinner in branch '2.7': Issue #19753: Fix test_gdb on SystemZ buildbot, ignore warnings https://hg.python.org/cpython/rev/4c260cf1ba39 -- ___ Python tracker rep...@bugs.python.org

[issue19753] test_gdb failure on SystemZ buildbot

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: Victor, can this patch be applied to Python 2.7 branch also? Done. I didn't check the buildbots, but I guess that the issue was already fixed one year ago... -- resolution: - fixed status: open - closed ___

[issue20597] PATH_MAX already defined on some Windows compilers

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6aaa0aab1e93 by Victor Stinner in branch 'default': Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is https://hg.python.org/cpython/rev/6aaa0aab1e93 -- nosy: +python-dev ___

[issue22798] time.mktime doesn't update time.tzname

2014-11-05 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: Added file: http://bugs.python.org/file37134/test_mktime_changes_tzname.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22798 ___

[issue20597] PATH_MAX already defined on some Windows compilers

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fb87972dee by Victor Stinner in branch 'default': Issue #20597, #21274: Remove unused definition of PATH_MAX on GNU/Hurd, https://hg.python.org/cpython/rev/d6fb87972dee -- ___ Python tracker

[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fb87972dee by Victor Stinner in branch 'default': Issue #20597, #21274: Remove unused definition of PATH_MAX on GNU/Hurd, https://hg.python.org/cpython/rev/d6fb87972dee -- ___ Python tracker

[issue20597] PATH_MAX already defined on some Windows compilers

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: Reopening. I still don't understand the issue for 3.4, especially in the light of #21274 In Python 3.5, PATH_MAX is no more used in Modules/main.c nor Python/pythonrun.c. I removed the #define PATH_MAX ... on Windows on Hurd. This issue is about supporting

[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.5, PATH_MAX is no more used in Modules/main.c nor Python/pythonrun.c. I removed the #define PATH_MAX ... on Hurd. I didn't check Python 3.4. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-11-05 Thread Tim Graham
Changes by Tim Graham timogra...@gmail.com: -- nosy: +Tim.Graham ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list

[issue22799] wrong time.timezone

2014-11-05 Thread Akira Li
New submission from Akira Li: $ TZ=:Europe/Moscow ./python -mtest -v test_time == FAIL: test_localtime_timezone (test.test_time.TestPytime) -- Traceback

[issue22685] memory leak: no transport for pipes by create_subprocess_exec/shell

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch with a simple unit test. I chose to modify the pause_reading method of the transport instead of mocking everything to test the real code (have a better code coverage). -- Added file:

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-05 Thread Chris PeBenito
New submission from Chris PeBenito: Python 3.3/3.4 sometimes does not recognize a legitimate IPv6Network netmask: $ python3 Python 3.3.5 (default, May 28 2014, 13:56:57) [GCC 4.7.3] on linux Type help, copyright, credits or license for more information. import ipaddress as ip nodecon =

[issue22793] test_uuid failure on OpenIndiana

2014-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch for issue17293 changes tests so that this bug is visible on Posix. And it fixes this bug itself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22793

[issue22793] test_uuid failure on OpenIndiana

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16d6c2443131 by Victor Stinner in branch 'default': Issue #22793, #22637: Add missing import os in uuid._ifconfig_getnode() https://hg.python.org/cpython/rev/16d6c2443131 -- nosy: +python-dev ___ Python

[issue22637] avoid using a shell in uuid: replce os.popen with subprocess.Popen

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16d6c2443131 by Victor Stinner in branch 'default': Issue #22793, #22637: Add missing import os in uuid._ifconfig_getnode() https://hg.python.org/cpython/rev/16d6c2443131 -- ___ Python tracker

[issue22793] test_uuid failure on OpenIndiana

2014-11-05 Thread STINNER Victor
STINNER Victor added the comment: NameError: name 'os' is not defined The imports in this module are really weird... But I'm not interested to rework completly the module, so I just fixed this specific issue. -- resolution: - fixed status: open - closed

[issue22721] pprint output for sets and dicts is not stable

2014-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How about: repr(obj).strip('\) ? String can starts or ends with quotes. And string repr can be a part of the repr of other type (e.g. short list). -- ___ Python tracker rep...@bugs.python.org

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread Ethan Furman
Ethan Furman added the comment: Raymond declared: Let's be clear. These are duck-typed methods. A type check is inappropriate. Anything with o.items() is allowed regardless of type. Wikipedia explains (http://en.wikipedia.org/wiki/Duck_typing):

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue20220. -- resolution: - duplicate stage: - resolved status: open - closed superseder: - TarFile.list() outputs wrong time ___ Python tracker rep...@bugs.python.org

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread R. David Murray
R. David Murray added the comment: There is no purpose served by changing the AttributeError into a TypeError. It's just extra unneeded code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22766

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-05 Thread Ethan Furman
Ethan Furman added the comment: I've posted to python-list and python-dev. I'll report back here the findings, if any. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22766 ___

[issue22721] pprint output for sets and dicts is not stable

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it'd be nice if the solution kept the current order when all keys are orderable (which is a very common case). So IMO repr() should only be used as a fallback when the object comparison fails. -- ___ Python

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: Sorry, I was not aware of the other issue. Three tests seems to have intermittent failures. test_datetime test_tarfile test_strptime -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22795

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: I found the connection but I don't know the cause: Running test_imaplib prior to either test_datetime or test_tarfile causes the latter test to fail. test_datetime seems to fix the problem for test_tarfile if it precedes it. [1/3] test_imaplib [2/3]

[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
New submission from Ethan Furman: test script: --- from collections import Counter empty_counter = Counter() counter = Counter('abbc') empty_counter = 5 counter = 5 --- results: ---

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: Its the @run_with_tz decorations in test_imaplib and test_datetime. The TZ is not being restored after the test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22795

[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Removed file: http://bugs.python.org/file37136/issue22778.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22801 ___

  1   2   >