[ANN] bcolz 0.7.2

2014-10-13 Thread Valentin Haenel
== Announcing bcolz 0.7.2 == What's new == This is a maintenance release that fixes various bits and pieces. Importantly, compatibility with Numpy 1.9 and Cython 0.21 has been fixed and the test suit no longer segfaults on 32 bit UNIX.

Caching: Access a local file, but ensure it is up-to-date from a remote URL

2014-10-13 Thread Ben Finney
Howdy all, I'm hoping that the problem I currently have is one already solved, either in the Python standard library, or with some well-tested obvious code. A program I'm working on needs to access a set of files locally; they're just normal files. But those files are local cached copies of

Re: Caching: Access a local file, but ensure it is up-to-date from a remote URL

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 5:36 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: So this is something similar to an HTTP object cache. Except where those are usually URL-focussed with the local files a hidden implementation detail, I want an API that focusses on the local files, with the remote

Re: what is the easiest way to install multiple Python versions?

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody rustompm...@gmail.com wrote: Hearing a bit about docker nowadays. Here's why its supposedly better than a VM: https://www.docker.com/whatisdocker/ Downsides?? No idea! One obvious downside is that it doesn't allow guests to modify the OS at all.

Re: what is the easiest way to install multiple Python versions?

2014-10-13 Thread Rustom Mody
On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote: Hearing a bit about docker nowadays. Here's why its supposedly better than a VM: https://www.docker.com/whatisdocker/ Downsides?? No idea! One obvious downside is

Re: Toggle

2014-10-13 Thread alister
On Mon, 13 Oct 2014 05:43:10 +1100, Chris Angelico wrote: On Mon, Oct 13, 2014 at 5:38 AM, Tony the Tiger tony@tiger.invalid wrote: colour = 'red' if colour == 'blue' else 'blue' I call that a subtle bug that most likely will jump up and bite your behind when you least expect it. More

Re: while loop - multiple condition

2014-10-13 Thread Gelonida N
On 10/12/2014 07:08 PM, Shiva wrote: while ans.lower() != 'yes' or ans.lower()[0] != 'y': ans = input('Do you like python?') I personally consider double negations less intuitive than following: while not( ans.lower() == 'yes' and ans.lower()[0] == 'y' ): Reading this line yoy would

windows 7 pysqlite build error

2014-10-13 Thread Robin Becker
I am getting this error trying to use a python27 pip install of stuff which ends up requiring pysqlite=2.6.3,2.7 building 'pysqlite2._sqlite' extension creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\src c:\Program Files

Re: TypeError: 'kwarg' is an invalid keyword argument for this function

2014-10-13 Thread Dave Angel
Ian Kelly ian.g.ke...@gmail.com Wrote in message: On Sun, Oct 12, 2014 at 6:55 AM, roro codeath rorocode...@gmail.com wrote: How to implement it in my class? class Str(str): def __init__(self, *args, **kwargs): pass Str('smth', kwarg='a') The error is coming from the __new__

Re: TypeError: 'kwarg' is an invalid keyword argument for this function

2014-10-13 Thread Peter Otten
Dave Angel wrote: Ian Kelly ian.g.ke...@gmail.com Wrote in message: On Sun, Oct 12, 2014 at 6:55 AM, roro codeath rorocode...@gmail.com wrote: How to implement it in my class? class Str(str): def __init__(self, *args, **kwargs): pass Str('smth', kwarg='a') The error is

Jython or Pyton issue-- Kindly Help me....

2014-10-13 Thread Venugopal Reddy
Dear All, How to write a program for reading or parsing the XML file in Sub root Wise. For ex: Below XMl, I want to read/ parse first country details and here also two year tag values are there.. Here I need to read/parse first year value only measn '2008' Only..After that I need to read

Re: while loop - multiple condition

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 7:31 PM, Gelonida N gelon...@gmail.com wrote: Taking into account the Steven's suggestion about using the 'in' expression it could be: while True: ans = input('Do you like python?') if ans.lower() in ('yes', 'y'): break Or, even simpler: Use an

Re: while loop - multiple condition

2014-10-13 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Or, even simpler: Use an active condition. while input('Do you like python?') not in ('yes', 'y'): pass Instead of the traditional pull technology, you could take advantage of the state-of-the-art push approach: print(You must love python -- everybody

Re: while loop - multiple condition

2014-10-13 Thread Skip Montanaro
On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico ros...@gmail.com wrote: while input('Do you like python?') not in ('yes', 'y'): pass Unfortunately, you probably have to account for people who SHOUT: while input('Do you like python?').lower() not in ('yes', 'y'): pass wink Skip --

Re: while loop - multiple condition

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 11:10 PM, Skip Montanaro skip.montan...@gmail.com wrote: On Mon, Oct 13, 2014 at 6:59 AM, Chris Angelico ros...@gmail.com wrote: while input('Do you like python?') not in ('yes', 'y'): pass Unfortunately, you probably have to account for people who SHOUT: while

Re: while loop - multiple condition

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 11:09 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: Or, even simpler: Use an active condition. while input('Do you like python?') not in ('yes', 'y'): pass Instead of the traditional pull technology, you could take advantage of the

Re: what is the easiest way to install multiple Python versions?

2014-10-13 Thread Chris Angelico
On Mon, Oct 13, 2014 at 7:00 PM, Rustom Mody rustompm...@gmail.com wrote: On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote: Hearing a bit about docker nowadays. Here's why its supposedly better than a VM:

Re: what is the easiest way to install multiple Python versions?

2014-10-13 Thread Ned Batchelder
On 10/12/14 9:33 AM, Albert-Jan Roskam wrote: Hi, (sorry for cross-posting) A few days ago I needed to check whether some Python code ran with Python 2.6. What is the easiest way to install another Python version along side the default Python version? My own computer is Debian Linux 64 bit,

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-13 Thread Ian Kelly
On Mon, Oct 13, 2014 at 5:39 AM, Venugopal Reddy venugopal.re...@tspl.com wrote: Dear All, How to write a program for reading or parsing the XML file in Sub root Wise. I don't know what Sub root Wise is. You can find an overview of Python's XML parsing interfaces at

Re: while loop - multiple condition

2014-10-13 Thread Rob Gaddi
On Mon, 13 Oct 2014 09:56:02 +1100 Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: When you have multiple clauses in the condition, it's easier to reason about them if you write the clauses as positive statements rather than negative statements, that is, something is true rather

Re: while loop - multiple condition

2014-10-13 Thread Rustom Mody
On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:56:02 +1100 Steven D'Aprano wrote: When you have multiple clauses in the condition, it's easier to reason about them if you write the clauses as positive statements rather than negative statements,

Re: while loop - multiple condition

2014-10-13 Thread Rob Gaddi
On Mon, 13 Oct 2014 09:26:57 -0700 (PDT) Rustom Mody rustompm...@gmail.com wrote: On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:56:02 +1100 Steven D'Aprano wrote: When you have multiple clauses in the condition, it's easier to reason about

Re: while loop - multiple condition

2014-10-13 Thread Rustom Mody
On Monday, October 13, 2014 10:13:20 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:26:57 -0700 (PDT) Rustom Mody wrote: On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:56:02 +1100 Steven D'Aprano wrote: When you have multiple clauses

How to select every other line from a text file?

2014-10-13 Thread Rff
Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some methods to get this? Thanks, --

Re: How to select every other line from a text file?

2014-10-13 Thread Chris Angelico
On Tue, Oct 14, 2014 at 4:38 AM, Rff rw...@avnera.com wrote: I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some methods

Re: How to select every other line from a text file?

2014-10-13 Thread John Gordon
In 3be64ca8-d2e7-493a-b4f3-ef114f581...@googlegroups.com Rff rw...@avnera.com writes: Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task.

Re: How to select every other line from a text file?

2014-10-13 Thread Gary Herron
On 10/13/2014 10:38 AM, Rff wrote: Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some methods to get this? Thanks,

Re: How to select every other line from a text file?

2014-10-13 Thread Mark Lawrence
On 13/10/2014 18:48, John Gordon wrote: In 3be64ca8-d2e7-493a-b4f3-ef114f581...@googlegroups.com Rff rw...@avnera.com writes: Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the

Re: How to select every other line from a text file?

2014-10-13 Thread emile
On 10/13/2014 11:02 AM, Mark Lawrence wrote: Why bother to initialise a counter when you can get the enumerate function to do all the work for you? I see it as a question of addressing the audience. Emile -- https://mail.python.org/mailman/listinfo/python-list

scipy errors and gfortran

2014-10-13 Thread slyost
Trying to get scipy 0.14 running on python 3.4.1 on SLES 11 SP2 LINUX system. Scipy seemed to compile fine using the command python setup.py install but when I try the scipy.test(full), I get errors regarding gfortran. I am using GCC(gfortran) version 4.9.1. The error states that

Re: How to select every other line from a text file?

2014-10-13 Thread Joel Goldstick
On Mon, Oct 13, 2014 at 2:11 PM, emile em...@fenx.com wrote: On 10/13/2014 11:02 AM, Mark Lawrence wrote: Why bother to initialise a counter when you can get the enumerate function to do all the work for you? I see it as a question of addressing the audience. Emile I don't agree with the

Re: How to select every other line from a text file?

2014-10-13 Thread Grant Edwards
On 2014-10-13, Chris Angelico ros...@gmail.com wrote: On Tue, Oct 14, 2014 at 4:38 AM, Rff rw...@avnera.com wrote: I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at

Re: How to select every other line from a text file?

2014-10-13 Thread Tim Chase
On 2014-10-13 10:38, Rff wrote: Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some methods to get this? You could

Re: How to select every other line from a text file?

2014-10-13 Thread Tim Chase
On 2014-10-13 14:45, Joel Goldstick wrote: Not apropos to the OP, but what came up in my mind was to write a generator function that returns every other line. This would separate the reading from the writing code. You mean like offset = 0 # or 1 if you prefer for line in

Re: How to select every other line from a text file?

2014-10-13 Thread emile
On 10/13/2014 12:12 PM, Tim Chase wrote: You mean like offset = 0 # or 1 if you prefer for line in itertools.islice(source_iter, offset, None, 2): do_something(line) I certainly did. Learning the python standard library is different from learning python and each in its own

Re: windows 7 pysqlite build error

2014-10-13 Thread Terry Reedy
On 10/13/2014 4:31 PM, Dennis Lee Bieber wrote: On Mon, 13 Oct 2014 10:49:27 +0100, Robin Becker ro...@reportlab.com declaimed the following: c:\users\rptlab\tmp\tmcallister\build\pysqlite\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqli te3.h': No such file or

Re: Flask and Django

2014-10-13 Thread Michael Torrie
On 10/10/2014 04:22 PM, Juan Christian wrote: Maybe that's because I feel the Django doc a bit confuse, I tried reading (and practicing!) tutorials, official doc, books, and so on, but I can't quite understand the whole thing. Is Flask really underestimated? Can you guys mention big name

Re: while loop - multiple condition

2014-10-13 Thread Michael Torrie
On 10/13/2014 11:12 AM, Rustom Mody wrote: On Monday, October 13, 2014 10:13:20 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:26:57 -0700 (PDT) Rustom Mody wrote: On Monday, October 13, 2014 9:43:03 PM UTC+5:30, Rob Gaddi wrote: On Mon, 13 Oct 2014 09:56:02 +1100 Steven D'Aprano

Re: How to select every other line from a text file?

2014-10-13 Thread Denis McMahon
On Mon, 13 Oct 2014 10:38:48 -0700, Rff wrote: I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some methods to get this?

Re: How to select every other line from a text file?

2014-10-13 Thread Dan Stromberg
On Mon, Oct 13, 2014 at 10:38 AM, Rff rw...@avnera.com wrote: Hi, I have a text file. Now it is required to select every other line of that text to generate a new text file. I have read through Python grammar, but still lack the idea at the beginning of the task. Could you tell me some

Need help in pulling SQL query out of log file...

2014-10-13 Thread Sagar Deshmukh
Hi, I have a log file which has lot of information like..SQL query.. number of records read...records loaded etc.. My requirement is i would like to read the SQL query completly and write it to another txt file.. also the log file may not be always same so can not make static choices... my

Re: How to install and run a script?

2014-10-13 Thread Michael Torrie
On 10/12/2014 08:05 PM, ryguy7272 wrote: Ah!!! I didn't know I needed to run it from the command prompt! Ok, not it makes sense, and everything works. Thanks to all! You don't have to run python apps from the command line. Apps that throw up windows can usually be run by

Re: Need help in pulling SQL query out of log file...

2014-10-13 Thread alex23
On 14/10/2014 11:47 AM, Sagar Deshmukh wrote: I have a log file which has lot of information like..SQL query.. number of records read...records loaded etc.. My requirement is i would like to read the SQL query completly and write it to another txt file.. Generally we encourage people to post

[issue22621] Please make it possible to make the output of hash() equal between 32 and 64 bit architectures

2014-10-13 Thread josch
New submission from josch: I recently realized that the output of the following is different between 32 bit and 64 bit architectures: PYTHONHASHSEED=0 python3 -c 'print(hash(a))' In my case, I'm running some test cases which involve calling a Python module which creates several hundred

[issue22620] pythonw does not open on windows 8.1 x64

2014-10-13 Thread Cristian Baboi
Cristian Baboi added the comment: I don't know if it is a documentation error for I've not read it yet. Maybe the best way is to put a shortcut to idle in the main directory where the python is. On 12 octombrie 2014 22:43:48 EEST, R. David Murray rep...@bugs.python.org wrote: R. David Murray

[issue17667] Windows: build with build_pgo.bat -2 fails to optimize python.dll

2014-10-13 Thread Anselm Kruis
Anselm Kruis added the comment: It's indeed a very low priority issue. You mention VS2008 and VS2010 PGO compiler bugs. I'm aware of the VS 2010 bugs, but I didn't observe any VS 2008 PGO bug with Python 2.7. Are you aware of any publicly available bug reports? About the black/white list. I

[issue22621] Please make it possible to make the output of hash() equal between 32 and 64 bit architectures

2014-10-13 Thread Georg Brandl
Georg Brandl added the comment: While I can feel your pain regarding the use case you describe, I don't think this has enough general value to add to CPython. It is not really related to PYTHONHASHSEED, since we never made guarantees about hash values being stable across platforms and Python

[issue9311] os.access can return bogus values when run as superuser

2014-10-13 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9311 ___

[issue20567] test_idle causes test_ttk_guionly 'can't invoke event command: application has been destroyed' messages from Tk

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You left this issue number off your tkinter test updates, such as f6f098bdb843. This is minor change. Actually, it should be done yet in issue22236, I had just missed it, because these warnings was produced only in 2.7. By using .update_idletasks instead

[issue22621] Please make it possible to make the output of hash() equal between 32 and 64 bit architectures

2014-10-13 Thread josch
josch added the comment: Thank you for your quick reply. Yes, as I wrote above there are ways around it by creating a stable in-memory representation and comparing that to a stable in-memory representation of the expected output. Since both input are several hundred megabytes in size, this

[issue21986] Idle: disable pickleability of user code objects

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyShell imports non-idlelib modules, including re, before idlelib modules, such as rpc. So the re addition is there, though I strongly doubt that compiled regexs are every sent to the user process. But we can't guarantee that this alway will be so. Other

[issue22621] Please make it possible to make the output of hash() equal between 32 and 64 bit architectures

2014-10-13 Thread Georg Brandl
Georg Brandl added the comment: Would your decision be more favorable if you received a patch implementing this feature? I'll keep this on pending for other devs to weigh in with opinions. In general, we are not keen on keeping text representations stable, as they do not form part of the

[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, ASCII locale... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13664 ___ ___ Python-bugs-list mailing

[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7657cc08d29b by Serhiy Storchaka in branch '2.7': Fixed the test of issue #13664 on platforms without unicode filenames support. https://hg.python.org/cpython/rev/7657cc08d29b -- ___ Python tracker

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-13 Thread Andy Maier
Andy Maier added the comment: @Guido: Agree to all you said in your #msg226496. There is additional information about comparison in: - Tutorial (5.8. Comparing Sequences and Other Types), - Library Reference (5.3. Comparisons), - Language Reference (3.3.1. Basic customization) that needs to be

[issue22599] traceback: errors in the linecache module at exit

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is one downside of my solution. For now the code uses current builtin open() which can be overloaded (to handle reading from ZIP archive for example, or to check permissions). With my solution it uses builtin open() at the time of import. I don't know

[issue22001] containers same does not always mean __eq__.

2014-10-13 Thread Andy Maier
Andy Maier added the comment: I reviewed the issues discussed here and believe that the patch for #Issue 12067 adresses all of them (and yes, it is large, unfortunately). It became large because I think that more needed to be fixed. May I suggest to review that patch. Andy -- nosy:

[issue22590] math.copysign buggy with nan under Windows

2014-10-13 Thread Mark Dickinson
Mark Dickinson added the comment: Antoine: is it okay to close this as wont fix? -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22590 ___

[issue22590] math.copysign buggy with nan under Windows

2014-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yep, it's ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22590 ___ ___ Python-bugs-list mailing list

[issue22417] PEP 476: verify HTTPS certificates by default

2014-10-13 Thread Raúl Cumplido
Changes by Raúl Cumplido raulcumpl...@gmail.com: -- nosy: +raulcd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22417 ___ ___ Python-bugs-list

[issue22590] math.copysign buggy with nan under Windows

2014-10-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22590 ___

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand why you want to remove more files than before. You may open a different issue, or at least explain the rationale. I thought it would be good idea slightly extend this cleanup while we are here. I'm not motivated enough to open a

[issue1610654] cgi.py multipart/form-data

2014-10-13 Thread Rishi
Rishi added the comment: My observation is that a file with more than normal (exact numbers below) line-feed characters takes way too long. I tried porting the above patch to my default branch, but it has some boundary and CRLF/LF issues, but more importantly it relies on seeking the

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-13 Thread Andy Maier
Andy Maier added the comment: Uploading v10 of the patch, which addresses all review comments made on v9. There is one open question back to Martin Panter about which different types of byte sequences can be compared in Py 3.4. I also believe this patch addresses all of Issue 22001. Let me

[issue22615] Argument Clinic doesn't support the type argument for the int converter

2014-10-13 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- title: make clinic doesn't work - Argument Clinic doesn't support the type argument for the int converter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22615

[issue22615] Argument Clinic doesn't support the type argument for the int converter

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0224ff67cdd by Larry Hastings in branch 'default': Issue #22615: Argument Clinic now supports the type argument for the https://hg.python.org/cpython/rev/c0224ff67cdd -- nosy: +python-dev ___ Python

[issue22615] Argument Clinic doesn't support the type argument for the int converter

2014-10-13 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: - larry resolution: - fixed status: open - closed type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22615 ___

[issue22622] ElementTree only writes declaration when passed encoding

2014-10-13 Thread towb
New submission from towb: This generates an XML declaration: import xml.etree.ElementTree as ET root = ET.Element('rss', version='2.0') tree = ET.ElementTree(root) tree.write('test.xml', encoding='iso-8859-1', xml_declaration=True) However the declaration disappears if your

[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-10-13 Thread Martin Dengler
Changes by Martin Dengler mar...@martindengler.com: -- nosy: +mdengler ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20954 ___ ___

[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-10-13 Thread Martin Dengler
Martin Dengler added the comment: Just got hit with this in 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20954 ___ ___ Python-bugs-list

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-13 Thread Andy Maier
Andy Maier added the comment: Here is the delta between v9 and v10 of the patch, if people want to see just that. -- Added file: http://bugs.python.org/file36897/issue12067-expressions-py34_delta-v9-v10.diff ___ Python tracker

[issue22615] Argument Clinic doesn't support the type argument for the int converter

2014-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks, Larry! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22615 ___ ___ Python-bugs-list mailing list

[issue20079] Add support for glibc supported locales

2014-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think there is nothing more to do here and the issue can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20079 ___

[issue22623] Missing guards for some POSIX functions

2014-10-13 Thread Link Mauve
New submission from Link Mauve: Many POSIX functions aren’t available on every system, especially embedded ones. The first patch introduces guards around some of these functions and add them to AC_CHECK_FUNCS in the configure.ac; the second one recompile every changed generated file, using

[issue22623] Missing guards for some POSIX functions

2014-10-13 Thread Link Mauve
Changes by Link Mauve b...@linkmauve.fr: -- keywords: +patch Added file: http://bugs.python.org/file36898/f3cf19e38efe.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22623 ___

[issue22559] [backport] ssl.MemoryBIO

2014-10-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: We can reevaluate when we know when 2.7.10 will be released. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22559 ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-13 Thread Martin Panter
Martin Panter added the comment: About the byte sequence comparisons, I wondered if it was misleading to say that a list(), tuple() or range() can only be compared to the same type, without mentioning that bytes() and bytearray() can be compared to each other. BTW just noticed you say range()

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-10-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21224 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the updated (optimized) patch -- hgrepos: +277 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file36899/9cb7aaad1d85.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: -277 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-13 Thread Ethan Furman
Ethan Furman added the comment: Code looks good. Only downside is the change in help and inspect.signature output, but that is minor: Help on dict object: class dict(object) [...] | __init__(self, /, *args, **kwargs) vs. Help on class Counter in module collections: class

[issue22622] ElementTree only writes declaration when passed encoding

2014-10-13 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: +eli.bendersky, scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22622 ___ ___

[issue22594] Add a link to the regex module in re documentation

2014-10-13 Thread anupama srinivas murthy
anupama srinivas murthy added the comment: I have added the link and attached the patch below. Could you review it? Thank you -- components: -Regular Expressions keywords: +patch nosy: +anupama.srinivas.murthy Added file: http://bugs.python.org/file36900/regex-link.patch

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-13 Thread Larry Hastings
Larry Hastings added the comment: FWIW, I agree that it should be fixed: dict(self=1) {'self': 1} -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: David, do you have an example, I am at the CPython sprint in Dublin, and I think I can work on this issue. Thanks -- nosy: +matrixise ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991

[issue21907] Update Windows build batch scripts

2014-10-13 Thread Zachary Ware
Zachary Ware added the comment: After the last round of changes, the buildbots appear to be mostly happy. If anybody else wants to backport the changes, I'd be happy to review and commit, but I'll leave the backporting itself to whoever wants to do it. In the meantime, closing the issue.

[issue22594] Add a link to the regex module in re documentation

2014-10-13 Thread Georg Brandl
Georg Brandl added the comment: currently more bugfree and intended to replace re The first part is spreading FUD if not explained in more detail. The second is probably never going to happend :( -- nosy: +georg.brandl ___ Python tracker

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-13 Thread R. David Murray
R. David Murray added the comment: The principle example is the 'params' dictionary in headerregistry. Currently it gets recreated every time you access that attribute. You can *apparently* change it, but that has no real effect. Probably the computed value should be cached the first time

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: -275 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22417] PEP 476: verify HTTPS certificates by default

2014-10-13 Thread Alex Gaynor
Alex Gaynor added the comment: Patch with the implementation, and initial work on documentation. Needs review please, I suspect we need more docs in more places. Feedback please! -- keywords: +needs review Added file: http://bugs.python.org/file36901/issue22417.diff

[issue22435] socketserver.TCPSocket leaks socket to garbage collector if server_bind() fails

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 437002018d2d by Charles-François Natali in branch '2.7': Issue #22435: Fix a file descriptor leak when SocketServer bind fails. https://hg.python.org/cpython/rev/437002018d2d -- nosy: +python-dev ___

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, looking up __package__ would be wrong. Say I have: from pack.module import foo and foo doesn't exist in pack.module but exists in pack. Since pack.module.__package__ == pack, using __package__ would wrongly find the foo in pack. --

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fded07a2d616 by Antoine Pitrou in branch 'default': Issue #17636: Circular imports involving relative imports are now supported. https://hg.python.org/cpython/rev/fded07a2d616 -- nosy: +python-dev ___

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17636 ___

[issue14102] argparse: add ability to create a man page

2014-10-13 Thread Aaron Meurer
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___ Python-bugs-list

[issue22435] socketserver.TCPSocket leaks socket to garbage collector if server_bind() fails

2014-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c8016af2ed8 by Charles-François Natali in branch '3.4': Issue #22435: Fix a file descriptor leak when SocketServer bind fails. https://hg.python.org/cpython/rev/9c8016af2ed8 New changeset 3bd0f2516445 by Charles-François Natali in branch

[issue22624] Bogus usage of floatclock in timemodule

2014-10-13 Thread Link Mauve
New submission from Link Mauve: In Modules/timemodule.c, py_process_time() still uses floatclock() even when HAVE_CLOCK isn’t defined. -- components: Build messages: 229260 nosy: Link Mauve priority: normal severity: normal status: open title: Bogus usage of floatclock in timemodule

[issue22625] When cross-compiling, don’t try to execute binaries

2014-10-13 Thread Link Mauve
New submission from Link Mauve: ``` % make ./Programs/_freeze_importlib \ ./Lib/importlib/_bootstrap.py Python/importlib.h ./Programs/_freeze_importlib: ./Programs/_freeze_importlib: cannot execute binary file Makefile:710: recipe for target 'Python/importlib.h' failed make: ***

[issue1610654] cgi.py multipart/form-data

2014-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rishi, thanks for the patch. I was going to give a review but first I have to ask: is so much support code necessary for this? Another approach would be to wrap self.fp in a io.BufferedReader (if it's not already buffered) and then use the peek() method to

  1   2   >