Just compilation

2014-02-04 Thread Igor Korot
Hi, ALL, I'm trying to incorporate the path in http://sourceforge.net/p/mysql-python/bugs/325/. I already modified the source code and now what I need is to produce the pyc code. Running python --help I don't see an option to just compile the source into the bytecode. So how do I produce the

Re: [newbie] copying identical list for a function argument

2014-02-04 Thread Jean Dupont
Op maandag 3 februari 2014 23:19:39 UTC+1 schreef Steven D'Aprano: On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote: I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-04 Thread Jean Dupont
Op maandag 3 februari 2014 20:50:04 UTC+1 schreef Asaf Las: On Monday, February 3, 2014 9:37:36 PM UTC+2, Jean Dupont wrote: Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: Of course you don't have to, but I'm curious and learn well by examples :-( Hi Jean Don't get me

Re: Just compilation

2014-02-04 Thread Cameron Simpson
On 04Feb2014 00:58, Igor Korot ikoro...@gmail.com wrote: I'm trying to incorporate the path in http://sourceforge.net/p/mysql-python/bugs/325/. I already modified the source code and now what I need is to produce the pyc code. Running python --help I don't see an option to just compile the

Re: Postfix conditionals

2014-02-04 Thread BartC
GöktuğKayaalp s...@gkayaalp.com wrote in message news:mailman.6377.1391490975.18130.python-l...@python.org... BartC b...@freeuk.com writes: Göktuğ Kayaalp s...@gkayaalp.com wrote in message news:mailman.4966.1388953508.18130.python-l...@python.org... AFAIK, we do not have postfix

Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
Hello, I have 10 files and I need to merge them (using K way merging). The size of each file is around 200 MB. Now suppose I am keeping the merged data in a variable named mergedData, I had thought of checking the size of mergedData using sys.getsizeof() but it somehow doesn't gives the actual

Re: Finding size of Variable

2014-02-04 Thread Peter Otten
Ayushi Dalmia wrote: I have 10 files and I need to merge them (using K way merging). The size of each file is around 200 MB. Now suppose I am keeping the merged data in a variable named mergedData, I had thought of checking the size of mergedData using sys.getsizeof() but it somehow doesn't

Re: fseek In Compressed Files

2014-02-04 Thread Ayushi Dalmia
On Tuesday, February 4, 2014 2:27:38 AM UTC+5:30, Dave Angel wrote: Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: On Thursday, January 30, 2014 4:20:26 PM UTC+5:30, Ayushi Dalmia wrote: Hello, I need to randomly access a bzip2 or gzip file. How can I set

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Tuesday, February 4, 2014 5:10:25 PM UTC+5:30, Peter Otten wrote: Ayushi Dalmia wrote: I have 10 files and I need to merge them (using K way merging). The size of each file is around 200 MB. Now suppose I am keeping the merged data in a variable named mergedData, I had thought

Re: Finding size of Variable

2014-02-04 Thread Asaf Las
On Tuesday, February 4, 2014 2:43:21 PM UTC+2, Ayushi Dalmia wrote: As I said, I need to merge large files and I cannot afford more I/O operations. So in order to minimise the I/O operation I am writing in chunks. Also, I need to use the merged files as indexes later which should be

Re: Finding size of Variable

2014-02-04 Thread Dave Angel
Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: getsizeof() gives you the size of the list only; to complete the picture you have to add the sizes of the lines. However, why do you want to keep track of the actual memory used by variables in your script? You should

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Tuesday, February 4, 2014 6:39:00 PM UTC+5:30, Dave Angel wrote: Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: getsizeof() gives you the size of the list only; to complete the picture you have to add the sizes of the lines. However, why do

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Tuesday, February 4, 2014 6:23:19 PM UTC+5:30, Asaf Las wrote: On Tuesday, February 4, 2014 2:43:21 PM UTC+2, Ayushi Dalmia wrote: As I said, I need to merge large files and I cannot afford more I/O operations. So in order to minimise the I/O operation I am writing in

RapydBox

2014-02-04 Thread Salvatore DI DIO
Hello, For those of you who are interested by tools like NodeBox or Processing. you can give a try to RapydScript here : https://github.com/artyprog/RapydBox Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: Logging data from Arduino using PySerial

2014-02-04 Thread MRAB
On 2014-02-04 04:07, Thomas wrote: I've written a script to log data from my Arduino to a csv file. The script works well enough but it's very, very slow. I'm quite new to Python and I just wanted to put this out there to see if any Python experts could help optimise my code. Here it is:

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-04 Thread Jerry Hill
On Tue, Feb 4, 2014 at 1:51 AM, wxjmfa...@gmail.com wrote: I got it. If I'm visiting a page like this: http://docs.python.org/3/tutorial/index.html#the-python-tutorial 1) To read the page, I'm scrolling down. 2) When I have finished to read the page, I scroll up (or scroll back/up) to the

Re: Advice needed for Python packaging - can't find required library during installation

2014-02-04 Thread thebiggestbangtheory
Thank you very much! :-) On Monday, February 3, 2014 11:30:00 PM UTC-8, dieter wrote: thebiggestbangthe...@gmail.com writes: I am trying to package up a very simple python app. In my setup.py file I have a couple of lines that include the following: from setuptools import

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-04 Thread wxjmfauth
Le mardi 4 février 2014 15:39:54 UTC+1, Jerry Hill a écrit : On Tue, Feb 4, 2014 at 1:51 AM, wxjmfa...@gmail.com wrote: I got it. If I'm visiting a page like this: http://docs.python.org/3/tutorial/index.html#the-python-tutorial 1) To read the page, I'm scrolling down. 2)

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Michael Torrie
On 02/04/2014 08:21 AM, wxjmfa...@gmail.com wrote: Useless and really ugly. How do you recommend we discover the anchor links for linking to? -- https://mail.python.org/mailman/listinfo/python-list

Re: Calculator Problem

2014-02-04 Thread David Hutto
On Sunday, February 2, 2014 4:16:44 PM UTC-5, Charlie Winn wrote: Hey Guys i Need Help , When i run this program i get the 'None' Under the program, see what i mean by just running it , can someone help me fix this def Addition(): print('Addition: What are two your numbers?')

Re: Calculator Problem

2014-02-04 Thread David Hutto
Missed that it's already pointed out, was looking at the google groups combined email. On Tue, Feb 4, 2014 at 10:43 AM, David Hutto dwightdhu...@gmail.com wrote: On Sunday, February 2, 2014 4:16:44 PM UTC-5, Charlie Winn wrote: Hey Guys i Need Help , When i run this program i get the 'None'

Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Steven D'Aprano
Before I bother Python-Dev with this, can anyone else confirm that building Python 3.4 from source using the latest version in the source repository fails? # Get the source code hg clone http://hg.python.org/cpython # Build Python (on Unix, sorry Windows and Mac people, you're on your own)

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Zachary Ware
On Tue, Feb 4, 2014 at 9:45 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Before I bother Python-Dev with this, can anyone else confirm that building Python 3.4 from source using the latest version in the source repository fails? # Get the source code hg clone

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Chris Angelico
On Wed, Feb 5, 2014 at 2:31 AM, Michael Torrie torr...@gmail.com wrote: On 02/04/2014 08:21 AM, wxjmfa...@gmail.com wrote: Useless and really ugly. How do you recommend we discover the anchor links for linking to? Same way you usually do! By right clicking, hitting View Source, and poking

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Johannes Findeisen
On 04 Feb 2014 15:45:46 GMT Steven D'Aprano wrote: Before I bother Python-Dev with this, can anyone else confirm that building Python 3.4 from source using the latest version in the source repository fails? I can not confirm an error. I checked out the latest sources and ./configure and

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Chris Angelico
On Wed, Feb 5, 2014 at 3:02 AM, Zachary Ware zachary.ware+pyl...@gmail.com wrote: On Tue, Feb 4, 2014 at 9:45 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Before I bother Python-Dev with this, can anyone else confirm that building Python 3.4 from source using the latest

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Zachary Ware
On Tue, Feb 4, 2014 at 10:49 AM, Chris Angelico ros...@gmail.com wrote: Are there any buildbots that configure --with-pydebug? This could be a debug-only issue. Only all of them :). As far as I know, the only 'bot that does a non-debug build is the x86 Gentoo Non-Debug bot. That said,

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Chris Angelico
On Wed, Feb 5, 2014 at 3:58 AM, Zachary Ware zachary.ware+pyl...@gmail.com wrote: On Tue, Feb 4, 2014 at 10:49 AM, Chris Angelico ros...@gmail.com wrote: Are there any buildbots that configure --with-pydebug? This could be a debug-only issue. Only all of them :). As far as I know, the only

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Ethan Furman
On 02/04/2014 07:45 AM, Steven D'Aprano wrote: Before I bother Python-Dev with this, can anyone else confirm that building Python 3.4 from source using the latest version in the source repository fails? This is the check-out I'm using: ethan@media:~/source/python/cpython$ hg parent

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Ned Batchelder
On 2/4/14 10:21 AM, wxjmfa...@gmail.com wrote: I was able to discover that link by opening the page, highlighting the section header with my mouse, then clicking the pilcrow. That gives me the anchor link to that section header. Useless and really ugly. I'm not sure why you would describe

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Jim Gibson
In article mailman.6391.1391527903.18130.python-l...@python.org, Michael Torrie torr...@gmail.com wrote: On 02/04/2014 08:21 AM, wxjmfa...@gmail.com wrote: Useless and really ugly. How do you recommend we discover the anchor links for linking to? Use the Table Of Contents panel on the

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Peter Otten
Michael Torrie wrote: On 02/04/2014 08:21 AM, wxjmfa...@gmail.com wrote: Useless and really ugly. How do you recommend we discover the anchor links for linking to? Why not the whole header? Click anywhere on 7.2.1. Regular Expression Syntax instead of the tiny ¶ symbol beside it. --

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-04 Thread andrea crotti
2014-02-04 wxjmfa...@gmail.com: Le mardi 4 février 2014 15:39:54 UTC+1, Jerry Hill a écrit : Useless and really ugly. I think this whole discussion is rather useless instead, why do you care since you're not going to use this tool anyway? --

Re:Finding size of Variable

2014-02-04 Thread Dave Angel
Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: Where am I going wrong? What are the alternatives I can try? You've rejected all the alternatives so far without showing your code, or even properly specifying your problem. To get the total size of a list of strings, try

Re: Finding size of Variable

2014-02-04 Thread Tim Chase
On 2014-02-04 14:21, Dave Angel wrote: To get the total size of a list of strings, try (untested): a = sys.getsizeof (mylist ) for item in mylist: a += sys.getsizeof (item) I always find this sort of accumulation weird (well, at least in Python; it's the *only* way in many other

Re: Finding size of Variable

2014-02-04 Thread Tim Golden
On 04/02/2014 19:21, Dave Angel wrote: Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: Where am I going wrong? What are the alternatives I can try? You've rejected all the alternatives so far without showing your code, or even properly specifying your problem. To get the

kivy

2014-02-04 Thread bharath
i installed python 2.7 before and installed suitable kivy.. i have also included the .bat file in the send to option.. but my programs are not at all runnning and giving me error when i run it normally or with the .bat file.. it says that there's no module named kivy when i import it.. please

Re: kivy

2014-02-04 Thread MRAB
On 2014-02-04 19:55, bharath wrote: i installed python 2.7 before and installed suitable kivy.. i have also included the .bat file in the send to option.. but my programs are not at all runnning and giving me error when i run it normally or with the .bat file.. it says that there's no module

Re: kivy

2014-02-04 Thread bharath
On Wednesday, February 5, 2014 1:51:31 AM UTC+5:30, MRAB wrote: On 2014-02-04 19:55, bharath wrote: i installed python 2.7 before and installed suitable kivy.. i have also included the .bat file in the send to option.. but my programs are not at all runnning and giving me error when i

Re: kivy

2014-02-04 Thread bharath
On Wednesday, February 5, 2014 1:51:31 AM UTC+5:30, MRAB wrote: On 2014-02-04 19:55, bharath wrote: i installed python 2.7 before and installed suitable kivy.. i have also included the .bat file in the send to option.. but my programs are not at all runnning and giving me error when i

Re: kivy

2014-02-04 Thread Gary Herron
On 02/04/2014 11:55 AM, bharath wrote: i installed python 2.7 before and installed suitable kivy.. i have also included the .bat file in the send to option.. but my programs are not at all runnning and giving me error when i run it normally or with the .bat file.. it says that there's no

RE: kivy

2014-02-04 Thread Nick Cash
Is kivy listed in the Python search paths (sys.path)? yes To be extra sure, you can start a python interpreter with the commandline argument -vv, and when you try to import kivy (or any module) it will show you every file/path it checks when trying to find it. This might help you narrow down

Re: kivy

2014-02-04 Thread bharath
On Wednesday, February 5, 2014 2:03:58 AM UTC+5:30, Nick Cash wrote: Is kivy listed in the Python search paths (sys.path)? yes To be extra sure, you can start a python interpreter with the commandline argument -vv, and when you try to import kivy (or any module) it will show

Re: Calculator Problem

2014-02-04 Thread Mario R. Osorio
On Sunday, February 2, 2014 4:16:44 PM UTC-5, Charlie Winn wrote: Hey Guys i Need Help , When i run this program i get the 'None' Under the program, see what i mean by just running it , can someone help me fix this def Addition(): print('Addition: What are two your numbers?')

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Terry Reedy
On 2/4/2014 1:20 PM, Ned Batchelder wrote: On 2/4/14 10:21 AM, wxjmfa...@gmail.com wrote: I was able to discover that link by opening the page, highlighting the section header with my mouse, then clicking the pilcrow. That gives me the anchor link to that section header. Useless and

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Terry Reedy
On 2/4/2014 10:21 AM, wxjmfa...@gmail.com wrote: I was able to discover that link by opening the page, highlighting the section header with my mouse, then clicking the pilcrow. That gives me the anchor link to that section header. Useless and really ugly. Jim, when you say 'useless',

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Terry Reedy
On 2/4/2014 2:19 PM, andrea crotti wrote: 2014-02-04 wxjmfa...@gmail.com: Useless and really ugly. I think this whole discussion is rather useless. I agree that responding to Jim's generalized statements such as 'useless' are either sincere personal opinions that are true with respect

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Terry Reedy
On 2/4/2014 6:24 PM, Terry Reedy wrote: On 2/4/2014 2:19 PM, andrea crotti wrote: 2014-02-04 wxjmfa...@gmail.com: Useless and really ugly. I think this whole discussion is rather useless. I agree that responding to Jim's generalized statements such as 'useless' are either sincere

Re: [OT] Usage of U+00B6 PILCROW SIGN

2014-02-04 Thread Chris Angelico
On Wed, Feb 5, 2014 at 10:18 AM, Terry Reedy tjre...@udel.edu wrote: PS. I agree that the pilcrow appearing and disappearing is not pretty when I am not looking to use it. I happen to think that is it tolerable because it is sometimes useful. Yes, it's not perfect. But neither are the obvious

Re: Concepts and Applications of Finite Element Analysis (4th Ed., Cook, Malkus, Plesha Witt)

2014-02-04 Thread Ned Batchelder
On 2/4/14 6:24 PM, yamas wrote: On Sun, 02 Feb 2014 17:59:29 -0600, kalvinmanual3 wrote: I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at fuck off retard No matter what you think of the inappropriate post about

Re: Calculator Problem

2014-02-04 Thread Roy Smith
In article ed1c2ddd-f704-4d58-a5a4-aef13de88...@googlegroups.com, David Hutto dwightdhu...@gmail.com wrote: Can anyone point out how using an int as a var is possible one = 42 (ducking and running) -- https://mail.python.org/mailman/listinfo/python-list

Re: Calculator Problem

2014-02-04 Thread Chris Angelico
On Wed, Feb 5, 2014 at 11:53 AM, Roy Smith r...@panix.com wrote: In article ed1c2ddd-f704-4d58-a5a4-aef13de88...@googlegroups.com, David Hutto dwightdhu...@gmail.com wrote: Can anyone point out how using an int as a var is possible one = 42 (ducking and running) In theory, there might be

Re: Concepts and Applications of Finite Element Analysis (4th Ed., Cook, Malkus, Plesha Witt)

2014-02-04 Thread Terry Reedy
On 2/4/2014 6:36 PM, Ned Batchelder wrote: On 2/4/14 6:24 PM, yamas wrote: On Sun, 02 Feb 2014 17:59:29 -0600, kalvinmanual3 wrote: commercial spam Python-list (and gmane) readers do not see and hence never notice the spam that gets blocked -- about 90%. Since essentially identical

Re: Calculator Problem

2014-02-04 Thread Dan Sommers
On Tue, 04 Feb 2014 19:53:52 -0500, Roy Smith wrote: In article ed1c2ddd-f704-4d58-a5a4-aef13de88...@googlegroups.com, David Hutto dwightdhu...@gmail.com wrote: Can anyone point out how using an int as a var is possible one = 42 (ducking and running) int = 42 (ducking lower and

Re: kivy

2014-02-04 Thread Rustom Mody
On Wednesday, February 5, 2014 1:25:43 AM UTC+5:30, bharath wrote: please help im just frustrated after writing a long code and seeing that it isn't working.. Prior to Kernighan and Ritchie people did tend to write 'a long code' and then check that its working (or not). After 'The C

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Tuesday, February 4, 2014 7:36:48 PM UTC+5:30, Dennis Lee Bieber wrote: On Tue, 4 Feb 2014 05:19:48 -0800 (PST), Ayushi Dalmia ayushidalmia2...@gmail.com declaimed the following: I need to chunk out the outputs otherwise it will give Memory Error. I need to do some

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Wednesday, February 5, 2014 12:51:31 AM UTC+5:30, Dave Angel wrote: Ayushi Dalmia ayushidalmia2...@gmail.com Wrote in message: Where am I going wrong? What are the alternatives I can try? You've rejected all the alternatives so far without showing your code, or even

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Wednesday, February 5, 2014 12:59:46 AM UTC+5:30, Tim Chase wrote: On 2014-02-04 14:21, Dave Angel wrote: To get the total size of a list of strings, try (untested): a = sys.getsizeof (mylist ) for item in mylist: a += sys.getsizeof (item) I always find this

Re: Finding size of Variable

2014-02-04 Thread Rustom Mody
On Wednesday, February 5, 2014 11:05:05 AM UTC+5:30, Ayushi Dalmia wrote: This also doesn't gives the true size. I did the following: import sys data=[] f=open('stopWords.txt','r') for line in f: line=line.split() data.extend(line) print sys.getsizeof(data) where stopWords.txt

Re: Finding size of Variable

2014-02-04 Thread Ayushi Dalmia
On Wednesday, February 5, 2014 11:15:09 AM UTC+5:30, Rustom Mody wrote: On Wednesday, February 5, 2014 11:05:05 AM UTC+5:30, Ayushi Dalmia wrote: This also doesn't gives the true size. I did the following: import sys data=[] f=open('stopWords.txt','r') for line in f:

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Paul Moore
Paul Moore added the comment: Is there any chance this can be included in Python 3.4? It would apparently allow numpy to be built with stock tools on Windows Python. -- nosy: +pmoore ___ Python tracker rep...@bugs.python.org

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 655d7a55c165 by Martin v. Löwis in branch 'default': Issue #17162: Add PyType_GetSlot. http://hg.python.org/cpython/rev/655d7a55c165 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-02-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the reviews; this is now committed. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17162 ___

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaae4008327d by Victor Stinner in branch 'default': Issue #17162: Fix compilation, replace non-breaking space with an ASCII space http://hg.python.org/cpython/rev/eaae4008327d -- ___ Python tracker

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-02-04 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch after Larry's commit to clinic. Everything is included except codecsmodule. -- Added file: http://bugs.python.org/file33895/issue20173_conglomerate.patch ___ Python tracker

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-04 Thread STINNER Victor
STINNER Victor added the comment: Here is a script to measure the accuracy of asyncio: min/max difference between the scheduled time and the real elapsed time. It's not directly related to the attached patch, but it can help if you want to implement a different option like Results on my

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file33897/add_granularity.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20505 ___

[issue20491] textwrap: Non-breaking space not honored

2014-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that code can be a little more clear if use C-style formatting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20491 ___

[issue14911] generator.throw() documentation inaccurate

2014-02-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Note that the docstring does not match the doc: PyDoc_STRVAR(throw_doc, throw(typ[,val[,tb]]) - raise exception in generator,\n\ return next yielded value or raise StopIteration.); Should I change the docstring too? --

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Tim Golden
Tim Golden added the comment: Larry Hastings would have to rule on whether it could get into 3.4 at this stage. Paul: are you in a position to apply / test the patch? I've done no more than glance at it but it looks, from the comments, as though it doesn't apply cleanly. --

[issue6299] pyexpat build failure on Solaris 10 for 2.6.1/2.6.2

2014-02-04 Thread koobs
koobs added the comment: The issue applies and is reproducible for all versions 2.6 through 3.5. This is the changeset we applied to all FreeBSD Ports to fix the issue: https://svnweb.freebsd.org/ports?view=revisionrevision=326729 One specific example (Python 3.3): 1) Use CPPFLAGS over

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Paul Moore
Paul Moore added the comment: Unfortunately not really - it's the numpy guys that need this, so hopefully the original poster can comment. I'll see if I can hand-patch the relevant files and do a pip install numpy to see if it fixes that specific scenario. I'll report back. I've added Larry

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Paul Moore
Paul Moore added the comment: Sigh. Looks like it doesn't fix the issue of building numpy - plus it doesn't apply cleanly. My apologies for the noise, I'll report the issues with the patch back on the numpy issue where I was told about this patch. --

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Larry Hastings
Larry Hastings added the comment: I'm not sure I need to be on this issue. As a rule, Windows build concerns for 3.4 are delegated to Martin von Lowis. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16296

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-02-04 Thread Ram Rachum
Ram Rachum added the comment: Hi everyone, I'm waiting for someone to review my patch. I believe it includes everything that's needed to merge. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20218

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Tim Golden
Tim Golden added the comment: Thanks, Larry. Martin's already nosy this issue, but really we need to see if we have a viable patch before making decisions about 3.4. I'll take you off the nosy list. -- ___ Python tracker rep...@bugs.python.org

[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-02-04 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: -larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16296 ___ ___ Python-bugs-list mailing

[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe

2014-02-04 Thread Pierrick Koch
Pierrick Koch added the comment: Fix patch from Xavier's comment, sorry for the delay. Lib/test/test_asynchat.py passes (Ran 27 tests in 1.431s) -- Added file: http://bugs.python.org/file33898/cpython.asyncore_4.patch ___ Python tracker

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: v3: - prefix for internal helper APIs is now _PyCodecInfo_ to better distinguish them from the ones that take an encoding name - error check is now just for is not a text encoding - tweaked the name and comment in the error test to be clear that it is codecs

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: The output is correct, though the tiny precision makes it look strange. The decimal module is following the usual rules for 'ideal' exponents: - For *exactly representable* results, the ideal exponent is 0, and the output will be chosen to have exponent as

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20404 ___ ___

[issue20507] TypeError from str.join has no message

2014-02-04 Thread Gareth Rees
New submission from Gareth Rees: If you pass an object of the wrong type to str.join, Python raises a TypeError with no error message: Python 3.4.0b3 (default, Jan 27 2014, 02:26:41) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type help, copyright, credits or

[issue6299] pyexpat build failure on Solaris 10 for 2.6.1/2.6.2

2014-02-04 Thread koobs
koobs added the comment: Setting versions to correctly reflect those affected. -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6299

[issue20481] Clarify type coercion rules in statistics module

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: I think it's also acceptable at this point for the module docs to just say that handling of mixed type input is undefined and implementation dependent, and recommend doing map(int, input_data), map(float, input_data), map(Decimal, input_data) or map(Fraction,

[issue20489] help() fails for zlib Compress and Decompress objects

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: For 3.4, I'd prefer to just not convert these functions. The right fix is to figure out how to get __name__ set appropriately, and that's something the C extension module improvements in 3.5 should be able to help with. --

[issue20489] help() fails for zlib Compress and Decompress objects

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: For example, see the builtins patch on issue 20184 where I initially converted sorted() to AC, but then found that making it *work* as an AC function was actually quite difficult due to the PyList implementation expecting to be given a arg tuple and kwds dict.

[issue15216] Support setting the encoding on a text stream after creation

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: If operating systems always exposed accurate metadata and configuration settings, I'd agree with you. They don't though, so sometimes developers need to be able to override whatever the interpreter figured out automatically. In addition, needing to cope with

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: According to the docs (http://docs.python.org/3/library/decimal.html): The decimal module incorporates a notion of significant places so that 1.30 + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is the customary presentation for

[issue20507] TypeError from str.join has no message

2014-02-04 Thread Srinivas Reddy T
Srinivas Reddy T added the comment: The exact behavior is present in 2.7 version too. So tagging 2.7 to 3.4 -- nosy: +thatiparthy versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue20485] Enable 'import Non-ASCII.pyd'

2014-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: import-...@python.org would be the appropriate list for this one. However, we can't do anything about it until Python 3.5 next year at the earliest, and I'm already planning to write a follow-up to http://www.python.org/dev/peps/pep-0451/ that adapts the

[issue20489] help() fails for zlib Compress and Decompress objects

2014-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Expressly writing the name of the module in the expression solves this issue. -- stage: - patch review Added file: http://bugs.python.org/file33901/zlib_parameters_defaults.patch ___ Python tracker

[issue20507] TypeError from str.join has no message

2014-02-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou stage: - patch review versions: -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20507 ___

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mark Dickinson
Mark Dickinson added the comment: Therefore, if I request 2 digits of precision, I expect 2 digits in the output. The `prec` attribute in the context refers to the total number of *significant digits* that are storable, and not to the number of digits after the decimal point. `Decimal` is

[issue6299] pyexpat build failure on Solaris 10 for 2.6.1/2.6.2

2014-02-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6299 ___ ___ Python-bugs-list

[issue5680] Command-line arguments when running in IDLE

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5680 ___ ___ Python-bugs-list mailing

[issue1528593] Printing: No print dialog or page setup

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528593 ___ ___ Python-bugs-list

[issue20485] Enable 'import Non-ASCII.pyd'

2014-02-04 Thread STINNER Victor
STINNER Victor added the comment: we *should* do, but there will be some research involved in figuring out how good the current support for UCN C identifiers is in at least gcc, clang and Visual Studio 2013 Python 3.4 uses Visual Studio 2010. I'm not sure that you can build an extension

[issue1253] IDLE - Percolator overhaul

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1253 ___ ___ Python-bugs-list mailing

[issue4832] IDLE does not supply a default ext of .py on Windows or OS X for new file saves

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4832 ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2014-02-04 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: -taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing

  1   2   >