ANN: Python Meeting Düsseldorf - 17.07.2012 (Erinnerung)

2012-07-09 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] Wir hatten vor ein paar Wochen schon die Ankündigung verschickt. Da wir noch ein paar Plätze frei haben, wiederhole ich hier das Posting. Sowohl Anmeldungen zu dem Meeting als auch für die

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Terry Reedy
On 7/8/2012 5:19 PM, Frederic Rentsch wrote: Hi widget wizards, The manual describes the event attribute widget as The widget which generated this event. This is a valid Tkinter widget instance, not a name. This attribute is set for all events. Same in 3.3, with nice example of using

Re: How to safely maintain a status file

2012-07-09 Thread Plumo
and then on startup read from tmp_file if status_file does not exist. But this seems awkward.         It also violates your requirement -- since the crash could take place with a partial temp file. Can you explain why? My thinking was if crash took place when writing the temp file this

Re: how can I make it work?

2012-07-09 Thread Terry Reedy
On 7/8/2012 10:02 PM, self.python wrote: it's a finder using threading to accelerate Threading with Python does not accelerate unless all but one of the treads are i/o bound. You need multiple processes to use multiple cores in parallel. -- Terry Jan Reedy --

Re: How to safely maintain a status file

2012-07-09 Thread Plumo
Windows doesn't suppport atomic renames if the right side exists.  I suggest that you implement two code paths: if os.name == posix:     rename = os.rename else:     def rename(a, b):         try:             os.rename(a, b)         except OSError, e:             if e.errno != 183:    

Re: Python Interview Questions

2012-07-09 Thread yeryomin . igor
On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying to catch up again with Python.

How can I disable module of tkinter when compiling Python 2.5 on redhat9 ?

2012-07-09 Thread cheetah
I don't need it. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: How to safely maintain a status file

2012-07-09 Thread Christian Heimes
Am 09.07.2012 07:50, schrieb Plumo: Windows doesn't suppport atomic renames if the right side exists. I suggest that you implement two code paths: Problem is if the process is stopped between unlink and rename there would no status file. Yeah, you have to suffer all of Windows' design

Re: Discussion on some Code Issues

2012-07-09 Thread Chris Angelico
On Mon, Jul 9, 2012 at 10:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 09 Jul 2012 07:54:47 +1000, Chris Angelico wrote: It's like the difference between reminder text on a Magic: The Gathering card and the actual entries in the Comprehensive Rules. Perfect

Re: How to safely maintain a status file

2012-07-09 Thread Nobody
On Sun, 08 Jul 2012 22:57:56 +0200, Laszlo Nagy wrote: Yes, this is much better. Almost perfect. Don't forget to consult your system documentation, and check if the rename operation is atomic or not. (Most probably it will only be atomic if the original and the renamed file are on the same

migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Devine
Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I disable module of tkinter when compiling Python 2.5 on redhat9 ?

2012-07-09 Thread Putilov Roman
09.07.12 13:21, cheetah ?: I don't need it. thanks In python's setup.py replace: self.detect_tkinter(inc_dirs, lib_dirs) of def detect_modules(self): This will ignore the compilation of _tkinter.c and tkappinit.c of the python distribution. --

Re: migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Lawrence
On 09/07/2012 10:37, Mark Devine wrote: Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A Check the what's new for python 2.6. If, and I doubt that there are, any compatabilty

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 01:39, yeryomin.i...@gmail.com wrote: On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: yes, yes I did, almost 5 years ago. :-) You didn't include any questions/comments on my email, so it's a bit hard to respond. While I haven't interviewed precisely for Python, I've

Re: Deditor 0.4.0

2012-07-09 Thread Jean-Michel Pichavant
Kruptein wrote: Hey I released a new version of my python-focused text-editor. you can download it at http://launchpad.net/deditor What is it? Deditor is aimed to be a text-editor which can be used as a basic text-editor as gedit or with the right plugins become a full-feature ide. I focus on

Re: Deditor 0.4.0

2012-07-09 Thread Kruptein
Op maandag 9 juli 2012 13:05:58 UTC+2 schreef Jean-Michel Pichavant het volgende: Kruptein wrote: Hey I released a new version of my python-focused text-editor. you can download it at http://launchpad.net/deditor What is it? Deditor is aimed to be a text-editor which can be used as a

recompiling standard modules

2012-07-09 Thread Rita
I noticed that active state python Tk inter isnt compiled with --enable-threads therefore I would like to recompile the module with a new version of TCL/TK which is compiled with threads. How can I do this? -- --- Get your facts first, then you can distort them as you please.-- --

Re: Discussion on some Code Issues

2012-07-09 Thread Steven D'Aprano
On Mon, 09 Jul 2012 18:41:28 +1000, Chris Angelico wrote: Does it really hurt to anthropomorphize Don't anthropomorphise computers. They don't like it when you do. and say that Python looks for modules in the directories in sys.path instead of Module lookup consists of iterating blah blah

how to write configure

2012-07-09 Thread contro opinion
PyGObject uses the standard autotools for the build infrastructure. To build, it should be as simple as running: $ ./configure --prefix=prefix where python is installed my python2.7 is in /usr/lib/python2.7 will i write : ./configure --prefix=/usr/lib/python2.7 or ./configure

Re: Deditor 0.4.0

2012-07-09 Thread Jean-Michel Pichavant
Kruptein wrote: Op maandag 9 juli 2012 13:05:58 UTC+2 schreef Jean-Michel Pichavant het volgende: Kruptein wrote: Hey I released a new version of my python-focused text-editor. you can download it at http://launchpad.net/deditor What is it? Deditor is aimed to be a text-editor which

Re: Python Interview Questions

2012-07-09 Thread Roy Smith
In article 3e0ef383-9615-4b4d-89c1-e55199711...@googlegroups.com, yeryomin.i...@gmail.com wrote: On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: - more detailed questions about the std. libraries (such as datetime/email/csv/zipfile/networking/optparse/unittest) You need

Re: Deditor 0.4.0

2012-07-09 Thread Kruptein
Op maandag 9 juli 2012 14:54:03 UTC+2 schreef Jean-Michel Pichavant het volgende: Kruptein wrote: Op maandag 9 juli 2012 13:05:58 UTC+2 schreef Jean-Michel Pichavant het volgende: Kruptein wrote: Hey I released a new version of my python-focused text-editor. you can

Re: How to safely maintain a status file

2012-07-09 Thread Duncan Booth
Richard Baron Penman richar...@gmail.com wrote: Is there a better way? Or do I need to use a database? Using a database would seem to meet a lot of your needs. Don't forget that Python comes with a sqlite database engine included, so it shouldn't take you more than a few lines of code to open

Re: Discussion on some Code Issues

2012-07-09 Thread Chris Angelico
On Mon, Jul 9, 2012 at 10:24 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: But it does depend on context. Sometimes you need more detail than just Python looks. You need to know precisely *how* Python looks, and how it decides whether it has found or not. Agreed. So, looking

Re: tiffany 0.6.1 released

2012-07-09 Thread Christian Tismer
On 30.06.12 18:25, Paul Rubin wrote: Christian Tismer tis...@stackless.com writes: Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencies and just works wherever Python works. Tiffany was developed in the course of the *DiDoCa* project and will always

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 08:25, Roy Smith wrote: On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: - more detailed questions about the std. libraries (such as datetime/email/csv/zipfile/networking/optparse/unittest) You need to be careful when you ask questions like this. I would expect

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Rick Johnson
On Jul 9, 12:58 am, Terry Reedy tjre...@udel.edu wrote: When posting problem code, you should post a minimal, self-contained example that people can try on other systems and versions. Can you create the problem with one record, which you could give, and one binding? Do you need 4 fields, or

Re: Python Interview Questions

2012-07-09 Thread Rick Johnson
On Jul 9, 12:40 pm, Tim Chase python.l...@tim.thechases.com wrote:  The second[or higher]-order ignorance of not knowing what pdb is (or, if you need more powerful debugging, how to do it) is sign the person hasn't been programming in Python much. So guru knowledge of pdb is prerequisite to

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Terry Reedy
On 7/9/2012 1:49 PM, Rick Johnson wrote: On Jul 9, 12:58 am, Terry Reedy tjre...@udel.edu wrote: When posting problem code, you should post a minimal, self-contained example that people can try on other systems and versions. Can you create the problem with one record, which you could give, and

Re: Python Interview Questions

2012-07-09 Thread Demian Brecht
On Monday, 9 July 2012 10:40:59 UTC-7, Tim Chase wrote: On 07/09/12 08:25, Roy Smith wrote: On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote: - more detailed questions about the std. libraries (such as datetime/email/csv/zipfile/networking/optparse/unittest) You need

Re: How to safely maintain a status file

2012-07-09 Thread John Nagle
On 7/8/2012 2:52 PM, Christian Heimes wrote: You are contradicting yourself. Either the OS is providing a fully atomic rename or it doesn't. All POSIX compatible OS provide an atomic rename functionality that renames the file atomically or fails without loosing the target side. On POSIX OS it

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Frederic Rentsch
On Mon, 2012-07-09 at 01:58 -0400, Terry Reedy wrote: On 7/8/2012 5:19 PM, Frederic Rentsch wrote: Hi widget wizards, The manual describes the event attribute widget as The widget which generated this event. This is a valid Tkinter widget instance, not a name. This attribute is set

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Frederic Rentsch
On Mon, 2012-07-09 at 10:49 -0700, Rick Johnson wrote: On Jul 9, 12:58 am, Terry Reedy tjre...@udel.edu wrote: When posting problem code, you should post a minimal, self-contained example that people can try on other systems and versions. Can you create the problem with one record, which

Re: How to safely maintain a status file

2012-07-09 Thread Michael Hrivnak
Please consider batching this data and doing larger writes. Thrashing the hard drive is not a good plan for performance or hardware longevity. For example, crawl an entire FQDN and then write out the results in one operation. If your job fails in the middle and you have to start that FQDN over,

Re: Python Interview Questions

2012-07-09 Thread Peter
One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. In my experience, anybody who is really interested in programming will have it as a hobby (and

Re: How to safely maintain a status file

2012-07-09 Thread Dan Stromberg
On Mon, Jul 9, 2012 at 8:24 PM, John Nagle na...@animats.com wrote: On 7/8/2012 2:52 PM, Christian Heimes wrote: You are contradicting yourself. Either the OS is providing a fully atomic rename or it doesn't. All POSIX compatible OS provide an atomic rename functionality that renames the

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-09 Thread Chris Angelico
On Tue, Jul 10, 2012 at 3:49 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: ALL event handlers should marked as *event handlers* using a prefix. I like to use the prefix evt. Some people prefer other prefixes. In any case, just remember to be consistent. Also, event handler names should

Re: Python Interview Questions

2012-07-09 Thread Devin Jeanpierre
On Mon, Jul 9, 2012 at 5:22 PM, Peter peter.milli...@gmail.com wrote: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. Woe is the poor

Re: Python Interview Questions

2012-07-09 Thread Cameron Simpson
On 09Jul2012 11:44, Rick Johnson rantingrickjohn...@gmail.com wrote: | On Jul 9, 12:40 pm, Tim Chase python.l...@tim.thechases.com wrote: |  The second[or higher]-order | ignorance of not knowing what pdb is (or, if you need more powerful | debugging, how to do it) is sign the person hasn't been

Re: Python Interview Questions

2012-07-09 Thread Roy Smith
In article mailman.1959.1341868974.4697.python-l...@python.org, Peter peter.milli...@gmail.com wrote: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? My hobby happens to be gardening, for which I don't expect to be paid. --

Re: Python Interview Questions

2012-07-09 Thread Cameron Simpson
On 09Jul2012 18:53, Devin Jeanpierre jeanpierr...@gmail.com wrote: | On Mon, Jul 9, 2012 at 5:22 PM, Peter peter.milli...@gmail.com wrote: | One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? | If the answer included programming then they

Re: Python Interview Questions

2012-07-09 Thread Christian Heimes
Am 09.07.2012 23:22, schrieb Peter: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. on the contrary! When a potential candidate has

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 17:53, Devin Jeanpierre wrote: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. Woe is the poor college grad, who wants to appear

Re: How to safely maintain a status file

2012-07-09 Thread Christian Heimes
Am 09.07.2012 22:24, schrieb John Nagle: Rename on some file system types (particularly NFS) may not be atomic. The actual operation is always atomic but the NFS server may not notify you about success or failure atomically. See http://linux.die.net/man/2/rename, section BUGS. That's

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 18:12, Cameron Simpson wrote: On 09Jul2012 18:53, Devin Jeanpierre jeanpierr...@gmail.com wrote: | On Mon, Jul 9, 2012 at 5:22 PM, Peter peter.milli...@gmail.com wrote: | One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? |

Re: Python Interview Questions

2012-07-09 Thread Roy Smith
In article mailman.1965.1341876813.4697.python-l...@python.org, Christian Heimes li...@cheimes.de wrote: Am 09.07.2012 23:22, schrieb Peter: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then

Re: Python Interview Questions

2012-07-09 Thread Emile van Sebille
On 7/9/2012 2:22 PM Peter said... One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. In my experience, anybody who is really interested in

Re: Python Interview Questions

2012-07-09 Thread Christian Heimes
Am 10.07.2012 01:40, schrieb Roy Smith: Do you really want to make hire/no-hire decisions based on somebody's ability to second-guess what you probably wanted to hear when you asked a pointless question? I don't want her/him to second-guess at all. I expect a straight and honest answer.

Re: Python Interview Questions

2012-07-09 Thread dncarac
Tim, I've read your list and with one exception it all looks very reasonable. (As an hobbiest, I'm amazed at just how much I have picked up.) The set of questions I'm not sure I understand is the 'What version did ... appear?' questions. This, to me, doesn't seem to indicate any programming

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 19:01, dnca...@gmail.com wrote: The set of questions I'm not sure I understand is the 'What version did ... appear?' questions. This, to me, doesn't seem to indicate any programming experience or expertise. A question asking 'Do you understand different versions?' and 'How would

Re: Python Interview Questions

2012-07-09 Thread Roy Smith
In article mailman.1972.1341879526.4697.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: As mentioned in another branch of this thread, I don't require python historians, but do prefer folks that know which features to check availability for deployment. Heh. Tell me,

Re: Python Interview Questions

2012-07-09 Thread Tim Chase
On 07/09/12 19:27, Roy Smith wrote: prefer folks that know which features to check availability for deployment. Heh. Tell me, when did strings get methods? :-) IIRC, ~2.0? I'm cognizant of the shift happening from the string module to string methods, but I wouldn't expect deep history

Re: Python Interview Questions

2012-07-09 Thread Mark Lawrence
On 10/07/2012 00:33, Christian Heimes wrote: Am 09.07.2012 23:22, schrieb Peter: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they went to the B list. on the

Re: How to safely maintain a status file

2012-07-09 Thread alex23
On Jul 10, 6:24 am, John Nagle na...@animats.com wrote: That's because you're using the wrong approach. See how to use ReplaceFile under Win32: http://msdn.microsoft.com/en-us/library/aa365512%28VS.85%29.aspx I'm not convinced ReplaceFile is atomic: The ReplaceFile function combines several

How to pick content from html using beatifulsoup

2012-07-09 Thread Sheetal Singh
Hi, I am a newbie in python, I need to fetch names of side filters and save in csv [PFA screen shot]. Following is snippet from code: soup = BeautifulStoneSoup(html) #for e in soup.findAll('div'): # for c in e.findAll('h3'): #for d

RE: Python Interview Questions

2012-07-09 Thread Shambhu Rajak
I agree with Christian, a developer should have hobbies other than computer stuffs. Versatile environment give more Ability to think differently. I like playing guitar :-) Be enthu, run foolishly and learn intelligently. -Shambhu -Original Message- From: Christian Heimes

Re: How can I disable module of tkinter when compiling Python 2.5 on redhat9 ?

2012-07-09 Thread Tim Roberts
cheetah hong.yi...@gmail.com wrote: I don't need it. It's not worth worrying about. You're talking about way less than a megabyte of disk space, and there is no performance penalty unless you're using it. In general, the parts of the Python standard library are not individually selectable. --

[issue11176] give more meaningful argument names in argparse documentation

2012-07-09 Thread David Lam
David Lam d...@dlam.me added the comment: haha wow, I was working on this bug too! maybe we can work on the final patch together I got through about 2/3's of the docs, so I thought it might help to upload what I got so far. I basically just made stuff up so I'm totally winning to change

[issue15189] tkinter.messagebox does not use the application's icon

2012-07-09 Thread Mark Summerfield
Mark Summerfield m...@qtrac.eu added the comment: On Linux Windows every top-level window (including dialogs) normally has an icon at the left of the title bar. Typically this icon is the application's icon. But tkinter doesn't provide such an icon and so a system default icon is used

[issue15303] Minor revision to the BaseWidget._setup method in Tkinter

2012-07-09 Thread Drew French
New submission from Drew French rectangletan...@gmail.com: In the BaseWidget._setup method, master is evaluated as a Boolean (when Tkinter attempts to find a parent for the widget). I think it should really be evaluated against None, seeing as that is the default master keyword argument value

[issue15279] Spurious unittest warnings

2012-07-09 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Unfortunately, exactly the same thing happens with == CPython 3.3.0b1 (default:464c6a50b0ce, Jul 9 2012, 09:26:07) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.61)] == Darwin-11.4.0-x86_64-i386-64bit little-endian

[issue15283] pyvenv says nothing on success

2012-07-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset baf5ed391a7f by Vinay Sajip in branch 'default': Issue #15283: Updated pyvenv documentation to expand on activation. http://hg.python.org/cpython/rev/baf5ed391a7f -- ___

[issue15189] tkinter.messagebox does not use the application's icon

2012-07-09 Thread Drew French
Drew French rectangletan...@gmail.com added the comment: This is also true for some of the other dialogs (such as the file dialogs). Does anyone know if this behavior can be changed in Tk itself? -- nosy: +Drew.French ___ Python tracker

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Could you create a failing test, please, Tim S? -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15267 ___

[issue15279] Spurious unittest warnings

2012-07-09 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15279 ___ ___

[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: test.support.temp_cwd() has a typo (s/name/path/): try: os.chdir(path) except OSError: if not quiet: raise warnings.warn('tests may fail, unable to change the CWD to ' + name, RuntimeWarning,

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: BTW, type(0) should be replaced with int in the code. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15267

[issue15305] Test harness unnecessarily disambiguating twice

2012-07-09 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: It seems like our test harness is disambiguating more than it needs to for parallel testing. In Lib/test/regrtest.py, we do this-- # Define a writable temp dir that will be used as cwd while running # the tests. The name of the dir

[issue15305] Test harness unnecessarily disambiguating twice

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: The former option seems to make more sense to me (a single working directory for all parallel tests using a disambiguated TESTFN). -- ___ Python tracker rep...@bugs.python.org

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: After this patch, it's clear that TEMPDIR and TESTCWD no longer have to be global variables. I can make that a separate issue after this one. -- ___ Python tracker rep...@bugs.python.org

[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Adding failing test. -- keywords: +patch stage: - needs patch Added file: http://bugs.python.org/file26327/issue-15304-failing-test.patch ___ Python tracker rep...@bugs.python.org

[issue15304] Wrong path in test.support.temp_cwd() error message

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Attaching fix. -- stage: needs patch - patch review Added file: http://bugs.python.org/file26328/issue-15304-fix.patch ___ Python tracker rep...@bugs.python.org

[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 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/issue15297 ___

[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 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/issue15299 ___

[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I'm working on a test for this. -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15299 ___

[issue15299] pkgutil.ImpImporter(None).iter_modules() does not search sys.path

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Add failing tests. -- keywords: +patch stage: test needed - needs patch Added file: http://bugs.python.org/file26329/issue-15299-failing-test.patch ___ Python tracker rep...@bugs.python.org

[issue15262] Idle does not show traceback in other threads

2012-07-09 Thread Mark
Mark myagn...@students.poly.edu added the comment: Yay! I can't wait :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15262 ___ ___

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light
Ztatik Light ztatik.li...@gmail.com added the comment: Crash happens in FT_Request_Size and seems to have been addressed by someone working at SFML: http://en.sfml-dev.org/forums/index.php?topic=2208.0 [Backtrace attached as 'backtrace.txt'] -- Added file:

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The attached patch ensures that python3.3 -mvenv --symlinks myenv works with framework builds. There are two functional changes: 1) don't call 'realpath' in pythonw.c because realpath resolves symlinks and that breaks the

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-09 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ned.deily, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15307 ___ ___

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light
Ztatik Light ztatik.li...@gmail.com added the comment: I think this is the related SFML fix patch commit: https://github.com/LaurentGomila/SFML/commit/da5ac8a9512885c5b245a24915733c3b26f689b7 -- ___ Python tracker rep...@bugs.python.org

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: How is the fix related to Python? Also, you pass a unicode string to freetype.FT_New_Face. You should probably pass a bytes string there, and in any case set the argtypes and restypes attributes to ctypes functions, to prevent such

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light
Ztatik Light ztatik.li...@gmail.com added the comment: Mmmm. The fix isn't necessary related to python at all but I figured might potentially AIDE in a python fix. Also, I'm not passing a unicode string... that says '/u' not '\u' ... Also, I tried setting res/argtypes but to no avail.

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Ztatik Light
Ztatik Light ztatik.li...@gmail.com added the comment: Ooo ... using bytes() DID seem to help. HAHA? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15306 ___

[issue15306] Python3 segfault? (works in Python2)

2012-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In Python2, strings are bytes; in Python3, they are unicode. You need to use the b'' syntax. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-09 Thread Tim Smith
Tim Smith t...@tzs.net added the comment: Here is a program that demonstrates the problem: import httplib import tempfile f = tempfile.TemporaryFile() f.write(Hello, Temporary File!) f.seek(0) c = httplib.HTTPConnection('bugs.python.org') c.request('POST', '/', f,

[issue14787] pkgutil.walk_packages returns extra modules

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So the lack of output in 3.3 is not surprising as walk_packages() won't work with the new import implementation as it relies on a non-standard method on loaders that import does not provide. -- ___

[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: AFAICT, the intent of this function was to help provide a fully PEP-302 compliant import process wrapping the builtin C-implemented import mechanism. Nowadays, I believe that iterating over sys.meta_path should probably be enough. --

[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: It seems that most, if not all, uses of importer in pkgutil refer to finders, e.g. ImpImporter is a actually only a finder, not an importer. So s/importer/finder/ is needed, and perhaps also a note explaining that ImpImporter isn't in fact an

[issue15256] Typo in error message

2012-07-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 75831951a6b5 by Brett Cannon in branch 'default': Issue #15256: Re-use the ImportError exception message as defined by http://hg.python.org/cpython/rev/75831951a6b5 -- nosy: +python-dev

[issue15256] Typo in error message

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the patch, Marc! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___

[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-09 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Marking this a documentation issue because the same behavior is also present in 2.7: Python 2.7.3 (default, Apr 19 2012, 00:55:09) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin from pkgutil import

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-07-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e86330669bb5 by Brett Cannon in branch 'default': Issue #15056: imp.cache_from_source() and source_from_cache() raise http://hg.python.org/cpython/rev/e86330669bb5 -- nosy: +python-dev

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I released Pranav's patch and fleshed it out with docs, tests, and changes to importlib's use of cache_from_source(). -- resolution: - fixed status: open - closed ___ Python tracker

[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 96f7926ea444 by Brett Cannon in branch 'default': Issue #15288: Clarify that pkgutil.walk_packages() and friends will no http://hg.python.org/cpython/rev/96f7926ea444 -- nosy: +python-dev

[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I changed to term to loader and linked to the glossary. I also added a versionchanged note for Python 3.3 so people are not too surprised that pkgutil no longer does what it did in Python 3.2. -- resolution: - fixed status: open -

[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ee01fd98b5b0 by Brett Cannon in branch 'default': Issue #15242: Have PyImport_GetMagicTag() return a const char * http://hg.python.org/cpython/rev/ee01fd98b5b0 -- nosy: +python-dev

[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I went ahead and committed Eric's patch. Amaury, if you want to move the macros to a header file I see no reason not to, but I also don't see a need so I didn't want to spend the time doing it myself. -- resolution: - fixed

[issue15288] Clarify the pkgutil.walk_packages() note

2012-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Ronan is right that it is all about finders, not importers per-se. I fixed the docs to not say loader. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15288

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +flox, r.david.murray stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15300 ___

  1   2   >