Pygments 2.0 released

2014-11-10 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm happy to announce the release of Pygments 2.0. Pygments is a generic syntax highlighter written in Python. There is a lot of news in the 2.0 release, please have a look at the changelog http://pygments.org/docs/changelog. There are over 50 new

Pint 0.6 (Units in Python)

2014-11-10 Thread Hernan Grecco
Hi, We are happy to announce Pint 0.6. Pint is a Python package to define, operate and manipulate physical quantities: the product of a numerical value and a unit of measurement. Check out the blog post for more details about this release:

locale.getlocale() in cmd.exe vs. Idle

2014-11-10 Thread Albert-Jan Roskam
Hi, Why do I get different output for locale.getlocale() in Idle vs. cmd.exe? # IDLE Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. import locale locale.getdefaultlocale() ('nl_NL', 'cp1252')

ssl error with the python mac binary

2014-11-10 Thread Paul Wiseman
Hey, I've been using the latest mac ppc/i386 binaries from python.org (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). From what I can tell this version is linked against a pretty old version of OpenSSL (OpenSSL 0.9.7l 28 Sep 2006) which doesn't seem to be able to handle new

Re: Booksigning Party at PyCon This Year!

2014-11-10 Thread michel88
My kids want to celebrate Halloween party at one of the best party venue. Can you please help us and recommend me best Halloween party nyc https://www.toshislivingroom.com/t/best-halloween-party-nyc.php with good food supplies arrangements? -- View this message in context:

A syntax question

2014-11-10 Thread Mok-Kong Shen
I don't understand the following phenomenon. Could someone kindly explain it? Thanks in advance. M. K. Shen - count=5 def test(): print(count) if count==5: count+=0 ### Error message if this line is active, otherwise ok.

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote: I don't understand the following phenomenon. Could someone kindly explain it? Thanks in advance. M. K. Shen - count=5 def test(): print(count) if count==5: count+=0

Re: Python script that does batch find and replace in txt files

2014-11-10 Thread alister
On Sun, 09 Nov 2014 17:49:29 -0800, Syed Khalid wrote: Albert, Code is not removing empty lines containing blank characters and not removing leading and trailing spaces present in each line. import glob, codecs, re, os regex = re.compile(rAge: |Sex: |House No: ) # etc etc

Re: A syntax question

2014-11-10 Thread David Palao
My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball, this prediction might be not well founded. -- https://mail.python.org/mailman/listinfo/python-list

Re: A syntax question

2014-11-10 Thread Wolfgang Maier
You may want to read: https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value from the Python docs Programming FAQ section. It explains your problem pretty well. As others have hinted at, always provide concrete Python

Re: Python modules

2014-11-10 Thread Roy Smith
In article i0h06a9pj8h3olo5rnrgc64i7ckpvtv...@4ax.com, Steve Hayes hayes...@telkomsa.net wrote: I have a book on Python that advocates dividing programs into modules, and importing them when needed. Yes, this is a good idea. Breaking your program down into modules, each of which does a

Re: Python modules

2014-11-10 Thread Chris Angelico
On Tue, Nov 11, 2014 at 12:36 AM, Roy Smith r...@panix.com wrote: Yes, exactly. When you deploy your application someplace, you need to include all the things it depends on. In the simple case of a few python files (say, a main program and a few modules that you're written), the easiest

Re: A syntax question

2014-11-10 Thread Joel Goldstick
On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: You may want to read: https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value from the Python docs Programming FAQ

Re: A syntax question

2014-11-10 Thread Grant Edwards
On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball, this prediction might be not well founded. That isn't a prediction. It's an explicit statement of no prediction.

Re: A syntax question

2014-11-10 Thread Chris Angelico
On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick joel.goldst...@gmail.com wrote: Your problem is that count is not local. You are reading count from an outer scope. When you try to increment count in your function, it can't because it doesn't exist. Don't use globals. False analysis, I'm

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball, this prediction might be not well founded. That isn't

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 14:54:55 +, alister wrote: On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball,

Re: A syntax question

2014-11-10 Thread Peter Otten
Joel Goldstick wrote: On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: You may want to read: https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value from the Python

Re: A syntax question

2014-11-10 Thread Joel Goldstick
On Mon, Nov 10, 2014 at 9:54 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick joel.goldst...@gmail.com wrote: Your problem is that count is not local. You are reading count from an outer scope. When you try to increment count in your function, it

Re: A syntax question

2014-11-10 Thread Grant Edwards
On 2014-11-10, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a

Re: A syntax question

2014-11-10 Thread Chris Angelico
On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards invalid@invalid.invalid wrote: I know, but in c.l.p, even jokes get nicely pednatic answers. And in c.l.p, odd jokes get even more pedantic spelling corrections. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

RE: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-10 Thread Steve Dower
Ben Finney wrote: Steve Dower steve.do...@microsoft.com writes: Ben Finney wrote: The restrictions of the license terms make MS Windows an unacceptable risk on any machine I'm responsible for. Just out of interest, which restrictions would those be? It has been a long time since I

Re: What does zip mean?

2014-11-10 Thread giacomo boffi
On 11/09/2014 11:44 AM, satishmlm...@gmail.com wrote: What does zip return in the following piece of code? To help you understanding what is the `zip` builtin, please forget about PKZip etc and think about the _zip fastener_ or _zipper_ in your bag or in your trousers In the bag you have two

Re: What does zip mean?

2014-11-10 Thread Grant Edwards
On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote: On 11/09/2014 11:44 AM, satishmlm...@gmail.com wrote: What does zip return in the following piece of code? To help you understanding what is the `zip` builtin, please forget about PKZip etc and think about the _zip fastener_ or

Natural use of cmp= in sort

2014-11-10 Thread Paddy
Hi, I do agree with Raymond H. about the relative merits of cmp= and key= in sort/sorted, but I decided to also not let natural uses of cmp= pass silently. In answering this question,

I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread sohcahtoa82
Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know software engineers make lots of money so I want to be one. --

Re: Natural use of cmp= in sort

2014-11-10 Thread Peter Otten
Paddy wrote: Hi, I do agree with Raymond H. about the relative merits of cmp= and key= in sort/sorted, but I decided to also not let natural uses of cmp= pass silently. In answering this question,

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Peter Otten
sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know software engineers make lots of money so I want to be one. I'm sorry I

Re: Natural use of cmp= in sort

2014-11-10 Thread Ian Kelly
On Mon, Nov 10, 2014 at 12:19 PM, Peter Otten __pete...@web.de wrote: I'm not sure this works. I tried: Here's a simpler failure case. ineq = f2 f3 ... f3 f1 [Previously posted code elided] greater_thans set([('f3', 'f1'), ('f2', 'f3')]) sorted(all_f, cmp=lambda t1, t2: 0 if t1==t2 else

Re: A syntax question

2014-11-10 Thread Roy Smith
In article mailman.15627.1415636743.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards invalid@invalid.invalid wrote: I know, but in c.l.p, even jokes get nicely pednatic answers. And in c.l.p, odd jokes get even more

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Roy Smith
In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com, sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know

Design and Build Software Engineer Opportunity

2014-11-10 Thread Charles Weitzer
My name is Charles Weitzer. I do recruiting for machine learning teams worldwide. One of my clients is a startup quantitative hedge fund located in Northern, California. The founders previous worked together at one of the most successful quantitative hedge funds in the world in New York City.

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Larry Martell
On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote: In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com, sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Mark Lawrence
On 10/11/2014 19:24, Peter Otten wrote: sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know software engineers make lots of

Re: A syntax question

2014-11-10 Thread Mark Lawrence
On 10/11/2014 11:31, David Palao wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball, this prediction might be not well founded. Especially in the future when sombody asks Who the hell was he replying to?. -- My

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Ethan Furman
On 11/10/2014 11:59 AM, Larry Martell wrote: On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote: In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com, sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me

Re: A syntax question

2014-11-10 Thread Tim Chase
On 2014-11-10 20:08, Mark Lawrence wrote: On 10/11/2014 11:31, David Palao wrote: My crystal ball is currently in for repair and is not expected back in the foreseeable future. Without a crystal ball, this prediction might be not well founded. Especially in the future when sombody

Re: locale.getlocale() in cmd.exe vs. Idle

2014-11-10 Thread Terry Reedy
On 11/10/2014 4:22 AM, Albert-Jan Roskam wrote: Hi, Why do I get different output for locale.getlocale() in Idle vs. cmd.exe? # IDLE Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. import locale

Re: What does zip mean?

2014-11-10 Thread Gregory Ewing
Grant Edwards wrote: What the zipper on a coat does is convert two separate sequences into a single sequence where the members alternate between the two input sequences. True, the zipper analogy isn't quite accurate. It's hard to think of an equally concise and suggestive name, however. --

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Grant Edwards
On 2014-11-10, sohcahto...@gmail.com sohcahto...@gmail.com wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know software engineers make lots of

Re: What does zip mean?

2014-11-10 Thread Cameron Simpson
On 10Nov2014 17:19, Grant Edwards invalid@invalid.invalid wrote: On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote: To help you understanding what is the `zip` builtin, please forget about PKZip etc and think about the _zip fastener_ or _zipper_ in your bag or in your trousers In the

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Denis McMahon
On Mon, 10 Nov 2014 10:56:18 -0800, sohcahtoa82 wrote: ... I know software engineers make lots of money so I want to be one. I hear that pretty boy male escorts can make even more money than software engineers. They also don't need to learn how to program, which is something software

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread sohcahtoa82
On Monday, November 10, 2014 1:01:05 PM UTC-8, Grant Edwards wrote: On 2014-11-10, sohcahtoa82 sohcahtoa82 wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread Ian Kelly
On Mon, Nov 10, 2014 at 2:45 PM, sohcahto...@gmail.com wrote: On Monday, November 10, 2014 1:01:05 PM UTC-8, Grant Edwards wrote: On 2014-11-10, sohcahtoa82 sohcahtoa82 wrote: Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only

Re: ssl error with the python mac binary

2014-11-10 Thread Ned Deily
In article CACgdh2iG9+cLjj7mZ7qeALQd==pcrknnv8i_eerj6ahjvg3...@mail.gmail.com, Paul Wiseman poal...@gmail.com wrote: I've been using the latest mac ppc/i386 binaries from python.org (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). From what I can tell this version is

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-10 Thread MRAB
On 2014-11-10 20:16, Ethan Furman wrote: On 11/10/2014 11:59 AM, Larry Martell wrote: On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote: In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com, sohcahto...@gmail.com wrote: Please help me this assignment is due in an

What does (?Pname) pattern syntax do?

2014-11-10 Thread satishmlmlml
What does ?P and part1 match in the following piece of code? re.search('(?Ppart1\w*)/(?Ppart2\w*)', '...aaa/bbb/ccc]').groups() -- https://mail.python.org/mailman/listinfo/python-list

Re: What does (?Pname) pattern syntax do?

2014-11-10 Thread Ben Finney
satishmlm...@gmail.com writes: What does ?P and part1 match in the following piece of code? Learn about Python's regular expression features from the documentation URL:https://docs.python.org/3/library/re.html. Experiment with regular expressions using online tools such as

Re: What does zip mean?

2014-11-10 Thread Terry Reedy
On 11/10/2014 3:36 PM, Cameron Simpson wrote: On 10Nov2014 17:19, Grant Edwards invalid@invalid.invalid wrote: On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote: To help you understanding what is the `zip` builtin, please forget about PKZip etc and think about the _zip fastener_ or

Re: Natural use of cmp= in sort

2014-11-10 Thread Paddy
On Monday, 10 November 2014 19:44:39 UTC, Ian wrote: On Mon, Nov 10, 2014 at 12:19 PM, Peter Otten xxx@yyy wrote: I'm not sure this works. I tried: Here's a simpler failure case. ineq = f2 f3 ... f3 f1 [Previously posted code elided] greater_thans set([('f3', 'f1'), ('f2',

Re: Natural use of cmp= in sort

2014-11-10 Thread Paddy
On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote: Hi, I do agree with Raymond H. about the relative merits of cmp= and key= in sort/sorted, but I decided to also not let natural uses of cmp= pass silently. In

Re: Natural use of cmp= in sort

2014-11-10 Thread Ian Kelly
On Mon, Nov 10, 2014 at 8:09 PM, Paddy paddy3...@gmail.com wrote: On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote: Hi, I do agree with Raymond H. about the relative merits of cmp= and key= in sort/sorted, but I

Re: [Python-Dev] Dinamically set __call__ method

2014-11-10 Thread Ian Kelly
On Sat, Nov 8, 2014 at 3:31 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: (BTW, I'm actually surprised that this technique makes c callable. There must be more going on that just look up __call__ in the class object, because evaluating C.__call__ just returns the descriptor and doesn't

Re: Natural use of cmp= in sort

2014-11-10 Thread Paddy
On Tuesday, 11 November 2014 06:37:18 UTC, Ian wrote: On Mon, Nov 10, 2014 at 8:09 PM, Paddy paddyxxx-at-xmail.com wrote: On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote: Hi, I do agree with Raymond H. about

[issue22434] Use named constants internally in the re module

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc7dbba57869 by Serhiy Storchaka in branch 'default': Issue #22434: Constants in sre_constants are now named constants (enum-like). https://hg.python.org/cpython/rev/fc7dbba57869 -- nosy: +python-dev ___

[issue22824] Update reprlib to use set literals

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The repr of empty array() should be fixed too. -- nosy: +serhiy.storchaka Added file: http://bugs.python.org/file37165/issue22824_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22824

[issue21301] pathlib missing Path.expandvars(env=os.environ)

2014-11-10 Thread Wolfgang Langner
Wolfgang Langner added the comment: expandvars(), and expanduser() is part of os.path. Boot functions are needed for path objects and very useful. And yes it is a simple string substitution but very common. -- nosy: +tds333 ___ Python tracker

[issue19767] pathlib: iterfiles() and iterdirs()

2014-11-10 Thread Wolfgang Langner
Wolfgang Langner added the comment: Why not implement this pattern with def dirs(pattern) and def files(pattern) where both are a simple shortcut for (p for p in mypath.glob(pattern) if p is_file()) or is_dir() ? -- nosy: +tds333 ___ Python

[issue22821] Argument of wrong type is passed to fcntl()

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61e99438c237 by Serhiy Storchaka in branch '2.7': Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian https://hg.python.org/cpython/rev/61e99438c237 New changeset 45e8aed69767 by Serhiy Storchaka in branch '3.4': Issue #22821:

[issue22821] Argument of wrong type is passed to fcntl()

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in 3.5 as part of 6e6532d313a1 as it was easier to integrate it as part of the Clinic patch. 6e6532d313a1 has introduced other bug (l was parsed to int). Changed to I for reasons described in the comment in fcntl_ioctl_impl(). --

[issue22821] Argument of wrong type is passed to fcntl()

2014-11-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: commit review - resolved status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2014-11-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: The environment variable itself cannot be removed from CPython, it is necessary to implement the correct behavior of pyvenv with framework builds of Python. That said, I do think that the environment variable should be unset as soon as possible in the

[issue22813] No facility for test randomisation

2014-11-10 Thread Michael Foord
Michael Foord added the comment: The point is that it is easy to have unintentional dependencies between tests. Test a sets up some state that test b relies on. This means that test b passes, so long as test a has already run. This is bad, tests should be isolated - it also means you can

[issue22827] Backport ensurepip to 2.7 (PEP 477)

2014-11-10 Thread Michael Foord
Michael Foord added the comment: mock in the Python standard library is licensed under the PSF license. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22827 ___

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-11-10 Thread Florian Bruhin
New submission from Florian Bruhin: When there's an unraisable exception (e.g. in __del__), and there's an exception in __repr__ as well, PyErr_WriteUnraisable returns after writing Exception ignored in: immediately. I'd expect it to fall back to the default __repr__ instead. See the

[issue12728] Python re lib fails case insensitive matches on Unicode data

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4caa695af94c by Serhiy Storchaka in branch '2.7': Issue #12728: Different Unicode characters having the same uppercase but https://hg.python.org/cpython/rev/4caa695af94c New changeset 47b3084dd6aa by Serhiy Storchaka in branch '3.4': Issue #12728:

[issue12728] Python re lib fails case insensitive matches on Unicode data

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This solution (with hardcoded table of equivalent lowercases) is temporary. In future re engine will be changed to support correct caseless matching of different lowercase forms internally. -- resolution: - fixed stage: patch review - resolved

[issue22578] Add additional attributes to re.error

2014-11-10 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22578 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22837] getpass returns garbage when typing tilde on Windows with deadkeys

2014-11-10 Thread Florian Bruhin
New submission from Florian Bruhin: When using getpass.getpass() on Windows and typing a tilde (~) with a layout with dead keys (e.g. Swiss German), one would typically type ~ to get a single tilde. However, this returns '\x00\x83~' with getpass. It seems this is what msvcrt.getch()

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-11-10 Thread Martin Panter
Martin Panter added the comment: This is one that has often bugged me. When your repr() implementation is broken, it is quite confusing figuring out what is going wrong. Falling back to object.__repr__() is one option, however I would probably be happy with a simple “exception in repr()”

[issue21724] resetwarnings doesn't reset warnings registry

2014-11-10 Thread Robert Muil
Changes by Robert Muil robertm...@gmail.com: -- nosy: +robertmuil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21724 ___ ___ Python-bugs-list

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-11-10 Thread Florian Bruhin
Changes by Florian Bruhin python@the-compiler.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22836 ___ ___

[issue22837] getpass returns garbage when typing tilde on Windows with deadkeys

2014-11-10 Thread Florian Bruhin
Changes by Florian Bruhin python@the-compiler.org: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22837 ___ ___

[issue22578] Add additional attributes to re.error

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 292c4d853662 by Serhiy Storchaka in branch 'default': Issue #22578: Added attributes to the re.error class. https://hg.python.org/cpython/rev/292c4d853662 -- nosy: +python-dev ___ Python tracker

[issue22431] Change format of test runner output

2014-11-10 Thread Michael Foord
Michael Foord added the comment: I agree with Robert that the text output of the default runner should not be considered a part of the api that we make backwards compatible guarantees about. People who want to customise that should be customising the text runner/result. (Unfortunately it

[issue22578] Add additional attributes to re.error

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07f082b200a7 by Serhiy Storchaka in branch 'default': Fixed IDLE tests after changing re error messages (issue #22578). https://hg.python.org/cpython/rev/07f082b200a7 -- ___ Python tracker

[issue22198] Odd floor-division corner case

2014-11-10 Thread Petr Viktorin
Petr Viktorin added the comment: ping, could someone please review the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22198 ___ ___

[issue22578] Add additional attributes to re.error

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ezio for your review. -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22578

[issue22837] getpass returns garbage when typing tilde on Windows with deadkeys

2014-11-10 Thread Florian Bruhin
Florian Bruhin added the comment: Maybe this is related: U+0083 is the no break here char: http://www.fileformat.info/info/unicode/char/0083/index.htm http://en.wikipedia.org/wiki/C0_and_C1_control_codes#C1_set From wikipedia: Follows the graphic character that is not to be broken. --

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2014-11-10 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 6302. Re-reading that issue (again), I'm not quite sure why we didn't fix it, but it may be too late to fix it now for backward compatibility reasons. Since that issue strayed off into other topics, I'm going to leave this one

[issue22834] Unexpected FileNotFoundError when current directory is removed

2014-11-10 Thread R. David Murray
R. David Murray added the comment: Looks like importlib doesn't handle the case of a directory on the path being deleted? If so, I'm surprised this hasn't been reported before. -- nosy: +brett.cannon, eric.snow, r.david.murray ___ Python tracker

[issue22835] urllib2/httplib is rendering 400s for every authenticated-SSL request, suddenly

2014-11-10 Thread R. David Murray
R. David Murray added the comment: If you haven't updated Python, then it is hard to see how this could be a python bug. Not impossible, but you'll have to narrow down the problem before you'd be able to demonstrate it as a python bug, I'm afraid. If you want help diagnosing this, you might

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-11-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22836 ___ ___

[issue22364] Improve some re error messages using regex for hints

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which makes re error messages match regex. It doesn't look to me that all these changes are enhancements. -- keywords: +patch Added file: http://bugs.python.org/file37167/re_errors_regex.patch ___

[issue22838] Convert re tests to unittest

2014-11-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Current re tests consists of two parts. One part use unittest and other part import test cases from Lib/test/re_tests.py, checks conditions and prints messages to stdout if they are false. Proposed patch converts all test_re to using unittest. --

[issue11907] SysLogHandler can't send long messages

2014-11-10 Thread Domen Kožar
Domen Kožar added the comment: Note: same bug is relevant to DatagramHandler since it uses UDP transport. -- nosy: +iElectric ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11907 ___

[issue22839] Incorrect link to statistics in tracemalloc documentation

2014-11-10 Thread Jonathan Sharpe
New submission from Jonathan Sharpe: The link to statistics in the documentation for tracemalloc.Snapshot.compare_to (https://docs.python.org/3/library/tracemalloc.html#tracemalloc.Snapshot.compare_to) should be to the statistics method

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-10 Thread pmoody
pmoody added the comment: # We only support CIDR for IPv6, because expanded netmasks are not # standard notation. Yes, that's correct. I can double check this, but when I wrote ipaddress, I had yet to encounter a v6 netmask in anything other than cider notation. --

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-10 Thread pmoody
pmoody added the comment: Hey Chris, What's the usecase for this? the netmask notation doesn't appear to be common for v6 (at all), so I'm hesitant to add support for this if it's just something like an academic exercise. Cheers, peter -- ___

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-10 Thread Chris PeBenito
Chris PeBenito added the comment: I understand the resistance; I'm fine closing this as won't implement, though this is not for academic use. In a nutshell, my package currently has a set of classes to represent an SELinux policy, and the SELinux policy language represents networks with

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-10 Thread pmoody
pmoody added the comment: If you have the ability to use cidr, then closing this as wontfix is my preference. I've heard that there might be some network vendors that are starting support the mask notation for v6 addresses though, so this may end up getting implemented at some point in future

[issue22581] Other mentions of the buffer protocol

2014-11-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes remnants. It also corrects descriptions of parsing arguments format units. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file37169/bytes_like.patch

[issue22839] Incorrect link to statistics in tracemalloc documentation

2014-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 387bbada31e8 by Berker Peksag in branch '3.4': Issue #22839: Fix Snapshot.statistics() link. https://hg.python.org/cpython/rev/387bbada31e8 New changeset 524a004e93dd by Berker Peksag in branch 'default': Issue #22839: Fix Snapshot.statistics()

[issue22839] Incorrect link to statistics in tracemalloc documentation

2014-11-10 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks for the report, Jonathan. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed type: - behavior versions: -Python 3.6 ___ Python tracker rep...@bugs.python.org

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2014-11-10 Thread py.user
py.user added the comment: R. David Murray wrote: Is there a reason you are choosing not to use the new API? My program is for Python 3.x. I need to decode wild headers to pretty unicode strings. Now, I do it by decode_header() and try...except for AttributeError, since a unicode string has

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2014-11-10 Thread Doug Gorley
New submission from Doug Gorley: strptime() is returning the wrong date if I try to parse today's date (2014-11-10) as a string with no separators, and if I ask strpdate() to look for nonexistent hour and minute fields. datetime.datetime.strptime('20141110', '%Y%m%d').isoformat() '2014-11

[issue22835] urllib2/httplib is rendering 400s for every authenticated-SSL request, suddenly

2014-11-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: No upgrades on the server either? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22835 ___ ___

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2014-11-10 Thread Ethan Furman
Ethan Furman added the comment: What result did you expect? -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22840 ___ ___

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2014-11-10 Thread Doug Gorley
Doug Gorley added the comment: I expected the second call to strpdate() to throw an exception, because %Y consumed '2014', %m consumed '11', and %d consumed '10', leaving nothing for %H and %M to match. That would be consistent with the first call. --

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2014-11-10 Thread R. David Murray
R. David Murray added the comment: Certainly not with 3.0, but nobody in their right mind should be using that version any more :). The new API for decoding headers is available as of Python 3.3, with additional new API features in 3.4. See

  1   2   >