ANN: Python Computer Graphics Kit (cgkit) 2.0.0

2013-02-17 Thread mbaas
cgkit v2.0.0 is now available at http://cgkit.sourceforge.net/ You can download v2.0.0 binaries for OSX (32/64bit, Intel) or Windows (32bit only) or source archives for either Python 2.x or Python 3.x. What is it? --- The Python Computer Graphics Kit is an Open Source software package

Re: Calendar module question

2013-02-17 Thread Andrew Berg
On 2013.02.17 01:47, Phil wrote: Why would this code work under the Wing IDE and nowhere else? Could there be a different calendar module included with Wing? import calendar cal = calendar.prcal(2013) print cal Traceback (most recent call last): File calendar.py, line 1, in module

Re: Calendar module question

2013-02-17 Thread Chris Rebert
On Saturday, February 16, 2013, Phil wrote: Thank you for reading this. My adventures with Python have just begun and during the few weeks I have tried many IDEs. The following piece of code fails under all IDEs, and the interpreter, except under the Wing IDE. Why would this code work

Re: Comparing types

2013-02-17 Thread Steven D'Aprano
Jason Friedman wrote: I want to tell whether an object is a regular expression pattern. Python 3.2.3 (default, Oct 19 2012, 20:10:41) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. import re s = hello type(s) class 'str' isinstance(s, str) True

Re: Calendar module question

2013-02-17 Thread Phil
On 17/02/13 18:01, Andrew Berg wrote: On 2013.02.17 01:47, Phil wrote: Why would this code work under the Wing IDE and nowhere else? Could there be a different calendar module included with Wing? import calendar cal = calendar.prcal(2013) print cal Traceback (most recent call last): File

Re: Calendar module question

2013-02-17 Thread James Griffin
- Phil phil_...@bigpond.com [2013-02-17 17:47:15 +1000] - : Thank you for reading this. My adventures with Python have just begun and during the few weeks I have tried many IDEs. The following piece of code fails under all IDEs, and the interpreter, except under the Wing IDE. Why

Re: Calendar module question

2013-02-17 Thread Phil
On 17/02/13 18:40, James Griffin wrote: - Phil phil_...@bigpond.com [2013-02-17 17:47:15 +1000] - : Thank you for reading this. My adventures with Python have just begun and during the few weeks I have tried many IDEs. The following piece of code fails under all IDEs, and the

Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Claira
Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section? -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing types

2013-02-17 Thread Terry Reedy
On 2/17/2013 1:34 AM, Jason Friedman wrote: I want to tell whether an object is a regular expression pattern. Python 3.2.3 (default, Oct 19 2012, 20:10:41) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. import re s = hello type(s) class 'str'

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Tim Golden
On 17/02/2013 00:19, Claira wrote: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section? There's no clear-cut distinction. The rule of thumb I usually apply is that questions about the *language* (its syntax, its usage, its idioms etc.)

Eric - No module named MainWindow

2013-02-17 Thread Phil
Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I haven't miss entered anything and so I think the error is the result of something missing from my

Re: Eric - No module named MainWindow

2013-02-17 Thread Vincent Vande Vyvre
Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I haven't miss entered anything and so I think the error is the

Re: Recording live video stream from IP camera issue

2013-02-17 Thread Sam Berry
Hi Xav, Iv been looking into OpenCV, i can easily stream my laptops webcam using this code. import cv2 cv2.namedWindow(preview) vc = cv2.VideoCapture(0) if vc.isOpened(): # try to get the first frame rval, frame = vc.read() else: rval = False while rval: cv2.imshow(preview,

ezmlm warning

2013-02-17 Thread g09-help
Bonjour ! Je suis le programme ezmlm. Je m'occupe de la liste de diffusion g...@09balance.com. Un certain nombre de messages provenant de la liste de diffusion #l n'ont pas pu vous etre remis correctement. En attachement, vous trouverez une copie du premier message de retour a l'envoyeur que

Re: Eric - No module named MainWindow

2013-02-17 Thread Joel Goldstick
On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the

Re: Eric - No module named MainWindow

2013-02-17 Thread Vincent Vande Vyvre
Le 17/02/13 16:13, Joel Goldstick a écrit : On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be mailto:vincent.vandevy...@swing.be wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and

Re: A new webpage promoting Compiler technology for CPython

2013-02-17 Thread Thomas Heller
Am 15.02.2013 08:11, schrieb Travis Oliphant: Hey all, With Numba and Blaze we have been doing a lot of work on what essentially is compiler technology and realizing more and more that we are treading on ground that has been plowed before with many other projects. So, we wanted to create a

request of information

2013-02-17 Thread leonardo selmi
gentlemen: i am reading a book about python and now i am blocked, i can't store functions in modules: i have a mac and am using version 2.7.3, i have created a function and want to save it as a file using idle, i have saved it with .py , when i try to import the module i get an

Re: Recording live video stream from IP camera issue

2013-02-17 Thread Xavier Ho
Hi Sam, Did you compile your OpenCV with gstreamer? That's where I'd look first. Cheers, Xav On 18 February 2013 01:15, Sam Berry sambez...@hotmail.co.uk wrote: Hi Xav, Iv been looking into OpenCV, i can easily stream my laptops webcam using this code. import cv2

Re: request of information

2013-02-17 Thread Jason Swails
On Sun, Feb 17, 2013 at 1:47 PM, leonardo selmi l.se...@icloud.com wrote: gentlemen: i am reading a book about python and now i am blocked, i can't store functions in modules: i have a mac and am using version 2.7.3, i have created a function and want to save it as a file using

Re: request of information

2013-02-17 Thread Michael Herman
There's a syntax error at line 1 of circle.py. Try running circle.py, you'll get more information about the error - http://docs.python.org/2/tutorial/errors.html If you can't figure it out, post your code for circle.py. On Sun, Feb 17, 2013 at 10:47 AM, leonardo selmi l.se...@icloud.com wrote:

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Rick Johnson
On Sunday, February 17, 2013 3:44:29 AM UTC-6, Tim Golden wrote: On 17/02/2013 00:19, Claira wrote: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section? There's no clear-cut distinction. The rule of thumb I usually apply is that

Tkinter, IDLE keeps crashing

2013-02-17 Thread Ash Courchene
Hey, So I've actually had this problem for awhile, and I cant seem to get anything to work. I've followed all the steps procedures that my google searches have provide me, but I can't seem to get the Tkinter module or the Python IDLE IDE to work. For instance, if I click IDLE on my mac,

Re: Tkinter, IDLE keeps crashing

2013-02-17 Thread Ned Deily
In article 9d367487-4846-4caa-85e7-08ac570b4...@googlegroups.com, Ash Courchene ash.courch...@gmail.com wrote: So I've actually had this problem for awhile, and I cant seem to get anything to work. I've followed all the steps procedures that my google searches have provide me, but I can't

Re: Comparing types

2013-02-17 Thread Rick Johnson
On Sunday, February 17, 2013 12:34:57 AM UTC-6, Jason Friedman wrote: [...] py my_pattern = re.compile(s) py type(my_pattern) class '_sre.SRE_Pattern' py isinstance(my_pattern, _sre.SRE_Pattern) Traceback (most recent call last): File stdin, line 1, in module NameError: name '_sre' is

Re: Tkinter, IDLE keeps crashing

2013-02-17 Thread Ned Deily
In article nad-9c8f8c.14022517022...@news.gmane.org, Ned Deily n...@acm.org wrote: In article 9d367487-4846-4caa-85e7-08ac570b4...@googlegroups.com, Ash Courchene ash.courch...@gmail.com wrote: So I've actually had this problem for awhile, and I cant seem to get anything to work. I've

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Oscar Benjamin
On 17 February 2013 00:19, Claira wavecla...@gmail.com wrote: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section? If you're unsure just ask on python-tutor. If the question is not appropriate there, you'll be offered suggestions for

Re: Tkinter, IDLE keeps crashing

2013-02-17 Thread Ash Courchene
I believe I have a MacBook Pro.2.4 GHz Intel Core i5. I dont think I have any weird color settings or 3rd party extensions... How can I tell exactly?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Rick Johnson
On Sunday, February 17, 2013 5:10:18 PM UTC-6, Oscar Benjamin wrote: More often questions are asked on python-list that would be more appropriate on python-tutor. I've never seen anyone suggest that a question be asked on python-tutor when this happens, which is a shame since the same

Re: Eric - No module named MainWindow

2013-02-17 Thread Phil
On 17/02/13 21:35, Vincent Vande Vyvre wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I haven't miss

Re: Quick IDE Question

2013-02-17 Thread Claira
Ok, thanks brilliant people! I can't really keep up with the conversation about where I should ask since I check my email once a week, though the quick question I had was that I heard lighttable.com was an innovative IDE, and since I'm preparing for the future, I just wanted to know if light table

Re: Quick IDE Question

2013-02-17 Thread Andrew Berg
On 2013.02.17 18:38, Claira wrote: Ok, thanks brilliant people! I can't really keep up with the conversation about where I should ask since I check my email once a week, though the quick question I had was that I heard lighttable.com http://lighttable.com was an innovative IDE, and since I'm

Re: Quick IDE Question

2013-02-17 Thread Michael Herman
Yup - check out this post - http://www.chris-granger.com/2012/05/21/the-future-is-specific/ There's a Flask example On Sun, Feb 17, 2013 at 4:56 PM, Andrew Berg bahamutzero8...@gmail.comwrote: On 2013.02.17 18:38, Claira wrote: Ok, thanks brilliant people! I can't really keep up with the

pypi changelog api

2013-02-17 Thread Gregg Caines
Hey all, I'm trying to write a script that tracks changes on pypi, and I've come across the xmlrpc interface, specifically the 'changelog' api. It's definitely what I'm looking for, but I get an absolutely massive xml response from it at once and I was hoping there might be either some way to

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Chris Angelico
On Mon, Feb 18, 2013 at 11:04 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: However, i believe the whole idea of having more than one mailing list is folly anyway. Why? Case in point: this thread! We have a person who is not sure which list to post a question, meanwhile the question in

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Steven D'Aprano
Chris Angelico wrote: On Mon, Feb 18, 2013 at 11:04 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: However, i believe the whole idea of having more than one mailing list is folly anyway. Why? Case in point: this thread! We have a person who is not sure which list to post a question,

Re: Awsome Python - chained exceptions

2013-02-17 Thread alex23
On Feb 15, 5:51 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [Ranting nonsense that's appearing in duplicate on usenet] Any chance you can stop sending to both comp.lang.python _and_ the python-list, given the former is a mirror of the later? --

Re: Awsome Python - chained exceptions

2013-02-17 Thread Dave Angel
On 02/17/2013 08:35 PM, alex23 wrote: On Feb 15, 5:51 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: [Ranting nonsense that's appearing in duplicate on usenet] Any chance you can stop sending to both comp.lang.python _and_ the python-list, given the former is a mirror of the later? It

Re: Tkinter, IDLE keeps crashing

2013-02-17 Thread Ned Deily
In article b12df7c4-1daa-41af-98aa-14915e100...@googlegroups.com, Ash Courchene ash.courch...@gmail.com wrote: I believe I have a MacBook Pro.2.4 GHz Intel Core i5. I dont think I have any weird color settings or 3rd party extensions... How can I tell exactly?? By finding the one that

Struggling with program

2013-02-17 Thread maiden129
I'm trying to do this assignment and it not working, I don't understand why... This is what I have to do: Write the definition of a class Player containing: An instance variable name of type String , initialized to the empty String. An instance variable score of type int , initialized to

Re: Struggling with program

2013-02-17 Thread Dave Angel
On 02/17/2013 09:29 PM, maiden129 wrote: First question: What version of Python are you writing this for? Version 2.x has slightly different rules than version 3.x I'm trying to do this assignment and it not working, I don't understand why... Define working. Do you mean you get a

How to go about with PDF regression

2013-02-17 Thread Jon Reyes
Hey there, so I'm trying to create automated regression for PDFs that will use Selenium RC for the generation and Python for the comparison of PDFs. I will be using pyPdf to rename the files according to their content, ImageMagick to convert the PDFs to images and PIL to actually compare the

Re: How to go about with PDF regression

2013-02-17 Thread Jon Reyes
Update: Found out with the Picture Manager by Windows I could view an image 100%, use a tool that measures the windows and get a probably not accurate but still serviceable coordinate to use. I compared with the coordinates I currently have and tried to get it by the above method and the

Re: Struggling with program

2013-02-17 Thread Michael Torrie
On 02/17/2013 07:29 PM, maiden129 wrote: I'm trying to do this assignment and it not working, I don't understand why... This is what I have to do: Write the definition of a class Player containing: An instance variable name of type String , initialized to the empty String. An instance

Re: Eric - No module named MainWindow - solved

2013-02-17 Thread Phil
On 17/02/13 21:35, Vincent Vande Vyvre wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I haven't miss

Simulation of human body in movement

2013-02-17 Thread Nick Mellor
Hi all, I'm looking for a fairly undetailed simulation of the human body walking and standing. Has anyone had a go at this in cgkit or similar? Thanks, Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Awsome Python - chained exceptions

2013-02-17 Thread Rick Johnson
On Sunday, February 17, 2013 7:35:24 PM UTC-6, alex23 wrote: Any chance you can stop sending to both comp.lang.python _and_ the python-list, given the former is a mirror of the later? I apologize for this doubling of my messages and i can assure you i don't do this intentionally. Proper

news.gmane.org (was Re: Awsome Python - chained exceptions

2013-02-17 Thread Terry Reedy
On 2/18/2013 12:51 AM, Rick Johnson wrote: if you (or anyone else) would be kind enough to recommend an alternative to this gawd awful software [google groups], ? i'm all ears. My expectations at minimum are: For at least the 10th time, there is little to no excuse for reading and writing

Re: news.gmane.org (was Re: Awsome Python - chained exceptions

2013-02-17 Thread Rick Johnson
Terry Reedy tjreedy at udel.edu writes: For at least the 10th time, there is little to no excuse for reading and writing python-list thru google-groups. The news.gmane.org mirror has multiple interfaces: [Sent from gmane.comp.python.general] Yes you have mentioned this before and for some

Re: Can someone tell me what kinds of questions should be asked in this list and what kinds in the tutor section?

2013-02-17 Thread Chris Angelico
On Mon, Feb 18, 2013 at 4:37 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Mon, 18 Feb 2013 12:31:44 +1100, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: I suggest the Pope, since we know he's infallible, but if he's too

Re: Struggling with program

2013-02-17 Thread Chris Angelico
On Mon, Feb 18, 2013 at 1:29 PM, maiden129 sengokubasarafe...@gmail.com wrote: Write the definition of a class Player containing: An instance variable name of type String , initialized to the empty String. An instance variable score of type int , initialized to zero. A method called

Re: Comparing types

2013-02-17 Thread Chris Angelico
On Mon, Feb 18, 2013 at 9:13 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: And if you look in the modules _sre.py, sre_parse.py, and sre_constants.py you cannot find the symbol SRE_Pattern anywhere -- almost seems like magic huh? Heck the only _sre.py file i could find was wy

SOAP web services using python. Would like to change the Envelope Document using MessagePlugin before sending it using suds

2013-02-17 Thread sarat . devineni
Hi , My current SOAP request sent via suds.client looks like this: SOAP-ENV:Envelope (some name space URIs) SOAP-ENV:Header / SOAP-ENV:Body ns5:saveModule request xsi:type=ns3:SaveModule Module xsi:type=ns4:Module ModuleName

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: from foo import bar Here bar can be not module, but an attribute of foo (for example, os.path). What error will be raised in this case? Module or attribute - this is an implementation detail; why do we distinguish between these cases? -- nosy:

[issue13124] Add Running a Build Slave page to the devguide

2013-02-17 Thread Stefan Krah
Stefan Krah added the comment: Eric Snow rep...@bugs.python.org wrote: Looking this over, it seems like there were outstanding objections to adding this to the devguide and to the content. I have no issues with the content of the second patch. However, snakebite has changed the situation a

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Daniel Urban added the comment: Thanks for the grammar correction, I've fixed it in the new patch. The new patch also adds object.__init_class__ (which is a no-op), to support cooperative multiple inheritance of __init_class__. (Adding type.__init_class__ was mentioned in the python-dev

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: Removed file: http://bugs.python.org/file29097/pep422_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: Added file: http://bugs.python.org/file29098/pep422_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___

[issue15004] add weakref support to types.SimpleNamespace

2013-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: No, you should also test the weakref returns None once the object is garbage collected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15004 ___

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I think I see your point - because __init_class__ is supposed to be a class method on instances of the metaclass, the anchor needs to be on object (the highest level instance of the default metaclass), not on type if we don't want super to behave strangely?

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-02-17 Thread Stefan Krah
Stefan Krah added the comment: Serhiy Storchaka rep...@bugs.python.org wrote: { path: [string, bytes, int] = path_converter = path_t }, And register types somewhere: I must admit that I had a similar thought when I first heard about the project: If we're going through all this anyway, why

[issue17216] sparc linux build fails with could not import runpy module

2013-02-17 Thread uservorname usernachname
uservorname usernachname added the comment: Thanks for your hint. I did: ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr --sysconfdir=/etc --sbindir=/usr/sbin/ make 21 | tee build-log.txt and get: gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g

[issue17191] pdb list shows unexpected code when stack frame includes a try / finally block

2013-02-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is fixed in python 3.2 by changeset 670d4cbf1464, and indeed the '' marker is shown at line 8 of pdb_list_bug_reproduce.py when debugging this (modified for py3) script with python 3.2. -- nosy: +xdegaye ___

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Brett Cannon
Brett Cannon added the comment: Eric: knock yourself out. =) Serhiy: What exception is raised in that situation is controlled by the eval loop, not importlib so that would be a separate change. But regardless, there is no way to infer whether you expected an attribute or module to be there,

[issue17215] documentation misprints

2013-02-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c7719b06ba6 by Andrew Svetlov in branch '3.3': Issue #17215: Fix documentation misprints (patch by July Tikhonov) http://hg.python.org/cpython/rev/8c7719b06ba6 New changeset 627ebd001708 by Andrew Svetlov in branch 'default': Issue #17215: Fix

[issue17215] documentation misprints

2013-02-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. July, would you fill Licence agreement http://www.python.org/psf/contrib/? -- nosy: +asvetlov resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17216] sparc linux build fails with could not import runpy module

2013-02-17 Thread uservorname usernachname
uservorname usernachname added the comment: I also tried to compile with ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr --sysconfdir=/etc --sbindir=/usr/sbin/ --build=sparc-linux --libdir=/usr/lib --includedir=/usr/include --datarootdir=/usr/share

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Daniel Urban added the comment: Yes, if we would add a regular (instance) method __init_class__ to type, it could (probably) work for regular (non-meta) classes, but not for metaclasses. If a metaclass Meta wouldn't define __init_class__ itself, calling Meta.__init_class__() in

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: Added file: http://bugs.python.org/file29102/pep422.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Please review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17211 ___ ___ Python-bugs-list mailing list

[issue12641] Remove -mno-cygwin from distutils

2013-02-17 Thread Roumen Petrov
Roumen Petrov added the comment: Hi Matthias, This issue is only for windows. In scope autotool based builds compiler customization is used to 'transfer' some build settings (flags, options) to distutils. This include compiler set in make macro (variable) CC. Transfer is not complete but

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Roumen Petrov
New submission from Roumen Petrov: For native build distutils add current directory to library path. This is not activated in case of cross-build. Before , as part of issue3871 and issue15483, was updated setup.py , but now I would like to propose a simple more general solution with attached

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- components: +Cross-Build -Build type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17219 ___

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-17 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think such files are common: I've never seen such a file in the wild. I created one, by accident, while testing PEP 420. OTOH, it was surprisingly easy to create the malformed file with zipfile. -- ___

[issue17220] Little enhancements of _bootstrap.py

2013-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch a little cleans and optimizes some bits of _bootstrap.py. -- components: Interpreter Core files: _bootstrap.diff keywords: patch messages: 182280 nosy: brett.cannon, ncoghlan, serhiy.storchaka priority: normal severity: normal

[issue17197] c/profile refactoring

2013-02-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Of course you're right. I didn't realize that. How about this (in attachment)? -- keywords: +patch Added file: http://bugs.python.org/file29106/profile-refactoring.diff ___ Python tracker rep...@bugs.python.org

[issue17220] Little enhancements of _bootstrap.py

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17220 ___

[issue17219] cross add Python's library directory when building python standard extensions

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17219 ___

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___

[issue15767] add ModuleNotFoundError

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15767 ___

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch moves some Misc/NEWS entities to more appropriate sections (IDLE, C-API, Tests, Documentation, Tools/Demos). Please review. -- assignee: docs@python components: Documentation files: NEWS-3.4.patch keywords: patch messages: 182282

[issue17222] py_compile.compile() replaces target files, breaking special files and symlinks

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Since d4eb02b6aac9 py_compile.compile() replaces target files, breaking special files and symlinks. Any custom permissions set on target files are also lost. This is a major regression. # cd /tmp # touch test.py # ls -l /dev/null

[issue17216] sparc linux build fails with could not import runpy module

2013-02-17 Thread Ned Deily
Ned Deily added the comment: I'm glad you got a little further. Now it seems the build is failing when trying to build the _ssl and _hashlib extension modules. building '_ssl' extension gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I.

[issue17012] Differences between /usr/bin/which and shutil.which()

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17012 ___ ___ Python-bugs-list mailing list

[issue16551] Cleanup the pure Python pickle implementation

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16551 ___ ___ Python-bugs-list mailing list

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: unittest is a library, not a part of the test suite, so its enhancements should remain in the library section. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17221

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17212 ___ ___ Python-bugs-list mailing

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-17 Thread STINNER Victor
STINNER Victor added the comment: Looks like a duplicate of issue #17137. Le 17 févr. 2013 23:08, Antoine Pitrou rep...@bugs.python.org a écrit : Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker

[issue12596] cPickle - stored data differ for same dictionary

2013-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a minimal reproducer. Results: pickle.dumps('spam', 2) 0: \x80 PROTO 2 2: USHORT_BINSTRING 'spam' 8: qBINPUT 0 10: .STOP highest protocol among opcodes = 2 pickle.dumps('spam1'[:-1], 2) 0: \x80 PROTO 2

[issue17047] Fix double double words words

2013-02-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17047 ___ ___

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Some third-party modules (e.g. epydoc) refer to sre_constants.MAXREPEAT. Please add 'from _sre import MAXREPEAT' to Lib/sre_constants.py for compatibility. -- nosy: +Arfrever resolution: fixed - stage: committed/rejected -

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
New submission from Manuel Jacob: from array import array str(array('u', b'asdf')) [1]19411 segmentation fault (core dumped) python This error occures with Python 3.3 and hg tip but not with Python 3.2. -- components: Library (Lib), Unicode messages: 182291 nosy: ezio.melotti,

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
Manuel Jacob added the comment: The attached patch fixes the crash. Output: from array import array str(array('u', b'asdf')) Traceback (most recent call last): File stdin, line 1, in module ValueError: character U+66647361 is not in range [U+; U+10] -- keywords: +patch

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17223 ___ ___

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report and the patch. Could you also include a test for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17223 ___

[issue17223] Initializing array.array with unicode type code and buffer segfaults

2013-02-17 Thread Manuel Jacob
Manuel Jacob added the comment: I've attached a new patch with a test that segfaults on Python 3.3 and passes on hg tip with the patch applied. -- Added file: http://bugs.python.org/file29110/issue17223_with_test.diff ___ Python tracker

[issue17221] Resort Misc/NEWS

2013-02-17 Thread Ned Deily
Ned Deily added the comment: kbk has requested in the past that IDLE News items be put in Lib/idlelib/News.txt because it is installed with IDLE and there is a button to display it included in the About IDLE window. I know we've not been diligent about doing that, at least, I haven't. I

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The above revisions have broken handling of arguments with =2 ... Before these revisions: $ cd /usr/bin $ python3.2 -c 'import os; print(os.path.realpath(..))' /usr $ python3.2 -c 'import os; print(os.path.realpath(../..))' / $ python3.2

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-02-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The actual output of last command in Before these revisions: is: / -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-02-17 Thread Zachary Ware
Zachary Ware added the comment: Actually, I have an objection myself. In merging this patch with another I'm working on, I noticed that I failed to include the new 'idledoc' target in the Makefile usage message. The attached patch fixes that oversight. -- Added file:

  1   2   >