ANN: eGenix mx Base Distribution 3.2.4 (mxDateTime, mxTextTools, etc.)

2012-04-25 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.4 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

Re: generate random numbers in a deterministic way

2012-04-25 Thread Temia Eszteri
Assuming you're using the Python's random module, which works based on the Mersenne Twister, you can preset the seed with random.seed(hashable). More details here: http://docs.python.org/library/random.html#random.seed ~Temia On Wed, 25 Apr 2012 07:51:18 +0200, you wrote: Hi, I'm working with

Download now

2012-04-25 Thread lipoco...@yahoo.com
Download Free Duplicate Remover v1.1 - 389 KB Detect and Remove Duplicate Files on your computer. By this free tool, you can help your computer work FASTER by removing unnecessary files. All you need to do is install this tool start it. You'll get a list of redundant files that you'll have the

Same code cause the different result.

2012-04-25 Thread 叶佑群
Hi, all I have code as: /pobj = subprocess.Popen ([smbpasswd, user], stdin =subprocess.PIPE) password += \n pobj.stdin.write (password) pobj.stdin.write (password)/ the command smbpasswd will change the samba user's password, In shell

python basics

2012-04-25 Thread gowtham raman
http://yellow937.webs.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: global vars across modules

2012-04-25 Thread Thomas 'PointedEars' Lahn
John Nagle wrote: On 4/22/2012 12:39 PM, mambokn...@gmail.com wrote: Question: How can I access to the global 'a' in file_2 without resorting to the whole name 'file_1.a' ? Actually, it's better to use the fully qualified name file_1.a. Using import * brings in everything in the

ANN: eGenix mx Base Distribution 3.2.4 (mxDateTime, mxTextTools, etc.)

2012-04-25 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.4 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

Re: Same code cause the different result.

2012-04-25 Thread Kushal Kumaran
On Wed, Apr 25, 2012 at 12:21 PM, 叶佑群 ye.you...@eisoo.com wrote: Hi, all    I have code as:     pobj = subprocess.Popen ([smbpasswd, user], stdin =subprocess.PIPE)     password += \n     pobj.stdin.write (password)     pobj.stdin.write (password)     the

Re: Same code cause the different result.

2012-04-25 Thread Jean-Michel Pichavant
叶佑群 wrote: Hi, all I have code as: /pobj = subprocess.Popen ([smbpasswd, user], stdin =subprocess.PIPE) password += \n pobj.stdin.write (password) pobj.stdin.write (password)/ the command smbpasswd will change the samba user's password,

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Thomas Rachel
Am 24.04.2012 15:25 schrieb rusi: Identity, sameness, equality and the verb to be are all about the same concept(s) and their definitions are *intrinsically* circular; see http://plato.stanford.edu/entries/identity/#2 Mybe in real life language. In programming and mathematics there are

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Nobody
On Mon, 23 Apr 2012 10:01:24 -0700, Paul Rubin wrote: I can't think of a single case where 'is' is ill-defined. If I can't predict the output of print (20+30 is 30+20) # check whether addition is commutative print (20*30 is 30*20) # check whether multiplication is commutative

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Steven D'Aprano
On Wed, 25 Apr 2012 13:42:31 +0200, Thomas Rachel wrote: Two objects can be equal (=) without being identical (≡), but not the other way. x = float('nan') y = x x is y True x == y False By the way, in mathematics, ≡ normally means is equivalent to, which is not quite the same as

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Chris Angelico
On Thu, Apr 26, 2012 at 3:27 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: By the way, in mathematics, ≡ normally means is equivalent to, which is not quite the same as identical to. That's perhaps because, in mathematics, nobody would even think of asking if this 4 is the

csv: No fields, or one field?

2012-04-25 Thread Neil Cerutti
Is there an explanation or previous dicussion somewhere for the following behavior? I haven't yet trolled the csv mailing list archive, though that would probably be a good place to check. Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright,

Re: csv: No fields, or one field?

2012-04-25 Thread Kiuhnm
On 4/25/2012 20:05, Neil Cerutti wrote: Is there an explanation or previous dicussion somewhere for the following behavior? I haven't yet trolled the csv mailing list archive, though that would probably be a good place to check. Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit

Re: csv: No fields, or one field?

2012-04-25 Thread Neil Cerutti
On 2012-04-25, Kiuhnm kiuhnm03.4t.yahoo.it wrote: On 4/25/2012 20:05, Neil Cerutti wrote: Is there an explanation or previous dicussion somewhere for the following behavior? I haven't yet trolled the csv mailing list archive, though that would probably be a good place to check. Python 3.2

RE: Appending to []

2012-04-25 Thread Prasad, Ramit
Then nested calls like a = [].append('x').append('y').append('z') Sequential appends are nearly always done within a loop. If not in a loop and you have multiple things already in an iterable (or create the iterable inline) you can use extend a= [] a.extend( [ 'x, 'y, 'z' ] ) Or if

Strange __import__() behavior

2012-04-25 Thread Frank Miles
I have an exceedingly simple function that does a named import. It works perfectly for one file r- and fails for the second x. If I reverse the order of being called, it is still x that fails, and r still succeeds. os.access() always reports that the file is readable (i.e. true) If I simply

Re: Strange __import__() behavior

2012-04-25 Thread Chris Kaynor
On Wed, Apr 25, 2012 at 1:05 PM, Frank Miles f...@u.washington.edu wrote: I have an exceedingly simple function that does a named import. It works perfectly for one file r- and fails for the second x. If I reverse the order of being called, it is still x that fails, and r still succeeds.

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Adam Skutt
On Apr 25, 10:38 am, Nobody nob...@nowhere.com wrote: On Mon, 23 Apr 2012 10:01:24 -0700, Paul Rubin wrote: I can't think of a single case where 'is' is ill-defined. If I can't predict the output of     print (20+30 is 30+20)  # check whether addition is commutative print     (20*30 is

Re: Strange __import__() behavior

2012-04-25 Thread Kiuhnm
On 4/25/2012 22:05, Frank Miles wrote: I have an exceedingly simple function that does a named import. It works perfectly for one file r- and fails for the second x. If I reverse the order of being called, it is still x that fails, and r still succeeds. os.access() always reports that the file

Re: Strange __import__() behavior

2012-04-25 Thread Terry Reedy
On 4/25/2012 4:05 PM, Frank Miles wrote: I have an exceedingly simple function that does a named import. It works perfectly for one file r- and fails for the second x. If I reverse the order of being called, it is still x that fails, and r still succeeds. os.access() always reports that the

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Terry Reedy
On 4/25/2012 4:49 PM, Adam Skutt wrote: Identity and equality are distinct concepts in programming languages. There's nothing that can be done about that, and no particularly good reason to force certain language behaviors because some programmers have difficulty with the distinction. Though,

Python 3 porting

2012-04-25 Thread Barry Warsaw
I want to take this opportunity to make folks aware of several Python 3 porting initiatives and resources. In Ubuntu 12.10, we are going to be making a big push to target all the applications and libraries on the desktop CDs to Python 3. While this is a goal of Ubuntu, the intent really is to

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Steven D'Aprano
On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote: Though, maybe it's better to use a different keyword than 'is' though, due to the plain English connotations of the term; I like 'sameobj' personally, for whatever little it matters. Really, I think taking away the 'is' operator

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Roy Smith
In article 4f9833ff$0$29965$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 25 Apr 2012 13:42:31 +0200, Thomas Rachel wrote: Two objects can be equal (=) without being identical (≡), but not the other way. x = float('nan')

Upgrading from 2.7 to 3.x

2012-04-25 Thread deuteros
I'm fairly new to Python I have version 2.7 installed on my computer. However my professor wants us all to use the latest version of Python. How do I go about upgrading? Do I just install the new version? Do I have to do anything with the old version already installed? --

Re: Upgrading from 2.7 to 3.x

2012-04-25 Thread Xavier Ho
What operating system are you running? Cheers, Xav On 26 April 2012 13:08, deuteros deute...@xrs.net wrote: I'm fairly new to Python I have version 2.7 installed on my computer. However my professor wants us all to use the latest version of Python. How do I go about upgrading? Do I just

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Adam Skutt
On Apr 25, 8:01 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote: Though, maybe it's better to use a different keyword than 'is' though, due to the plain English connotations of the term; I like 'sameobj' personally, for

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread Chris Angelico
On Thu, Apr 26, 2012 at 1:50 PM, Adam Skutt ask...@gmail.com wrote: On Apr 25, 8:01 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: 2) The is operator always has the exact same semantics and cannot be overridden. The id() function can be monkey-patched. I can't see how

Re: csv: No fields, or one field?

2012-04-25 Thread Tim Roberts
Neil Cerutti ne...@norwich.edu wrote: Is there an explanation or previous dicussion somewhere for the following behavior? I haven't yet trolled the csv mailing list archive, though that would probably be a good place to check. Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit

Re: Upgrading from 2.7 to 3.x

2012-04-25 Thread Stefan Behnel
deuteros, 26.04.2012 05:08: I'm fairly new to Python I have version 2.7 installed on my computer. However my professor wants us all to use the latest version of Python. Did he/she explicitly tell you to install Python 3? 2.7 is the latest version of Python 2.x, some people may mix that up.

Re: why () is () and [] is [] work in other way?

2012-04-25 Thread John Nagle
On 4/25/2012 5:01 PM, Steven D'Aprano wrote: On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote: Though, maybe it's better to use a different keyword than 'is' though, due to the plain English connotations of the term; I like 'sameobj' personally, for whatever little it matters. Really, I

[issue14605] Make import machinery explicit

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yeah, I was actually going to suggest forcing an absolute path for __main__.__file__ in runpy if you didn't want to do it in importlib itself. I'm much happier with that approach than changing the tests, so the updated patch looks good to me.

[issue14605] Make import machinery explicit

2012-04-25 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - brett.cannon stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14605 ___

[issue14667] No IDLE

2012-04-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please structure your bug report as follows: 1. this is what you did 2. this is what happened 3. this is what you want to happen instead -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue14667] No IDLE

2012-04-25 Thread James Lu
James Lu jam...@gmail.com added the comment: 1,looked for python IDLE 2.NO python #.use text editor (hard) james On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis rep...@bugs.python.orgwrote: Martin v. Löwis mar...@v.loewis.de added the comment: Please structure your bug report as follows:

[issue14667] No IDLE

2012-04-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: 1. how did you look (what operating system, what mouse clicks?) 2. did you not find Python, or did you find Python, and it did not work? -- ___ Python tracker rep...@bugs.python.org

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-25 Thread Kurt Seifried
Kurt Seifried kseifr...@redhat.com added the comment: Please use CVE-2012-2135 for this issue as per http://www.openwall.com/lists/oss-security/2012/04/25/3 -- nosy: +kseifr...@redhat.com ___ Python tracker rep...@bugs.python.org

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-25 Thread Huzaifa Sidhpurwala
Huzaifa Sidhpurwala sidhpurwala.huza...@gmail.com added the comment: I have not tried the patch yet, but modifying the reproducer yields a different crash. This one seems to be a heap-based buffer overflow which is slightly more serious. In the reproducer, you just need to replace ascii()

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Brian: The patch is fine, please apply. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Victor's argument makes sense to me. What I'd be inclined to do is shout at the reader a bit in the traceback header by making it:    Traceback (most recent call FIRST): The output is something like: Thread 0xf758d8d0: File

[issue14642] Fix importlib.h build rule to not depend on hg

2012-04-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset acfdf46b8de1 by Marc-Andre Lemburg in branch 'default': Issue #14605 and #14642: http://hg.python.org/cpython/rev/acfdf46b8de1 -- nosy: +python-dev ___ Python tracker

[issue14605] Make import machinery explicit

2012-04-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset acfdf46b8de1 by Marc-Andre Lemburg in branch 'default': Issue #14605 and #14642: http://hg.python.org/cpython/rev/acfdf46b8de1 -- ___ Python tracker

[issue14605] Make import machinery explicit

2012-04-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Brett Cannon wrote: You can see a little discussion in http://bugs.python.org/issue14642, but it has been discussed elsewhere and the automatic rebuilding was preferred (but it is not a requirement to build as importlib.h is in hg).

[issue14657] Avoid two importlib copies

2012-04-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Code to detect whether you're running off a checkout vs. a normal installation by looking at even more directories ? I don't see any in getpath.c (and that's

[issue13968] Support recursive globs

2012-04-25 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: I added the doublestar functionality to iglob and updated the docs and tests. Also, a few readability renames in that module were a long time coming. I'd love to hear your feedback. -- Added file:

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-25 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I now write tests and I have a question. Should b'\xd8\x00\x41'.decode('utf-16be', 'replace') to give '\xfffd' or '\xfffd\xfffd'? -- ___ Python tracker rep...@bugs.python.org

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: New version of patch which does signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG)) in the thread (is that right?). It also uses a timeout when trying to join the thread. -- Added file:

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Look for pybuilddir.txt. Oh dear. Another one of those hacks... why wasn't this done using constants passed in by the configure script and simple string comparison ? How would that help distinguish between an installed Python and a

[issue14657] Avoid two importlib copies

2012-04-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Look for pybuilddir.txt. Oh dear. Another one of those hacks... why wasn't this done using constants passed in by the configure script and simple string

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The question pybuildir.txt apparently tries to solve is whether Python is running from the build dir or not. It's not whether Python was installed or not. That's the same, for all we're concerned. But pybuilddir.txt does not only solve that

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: in the thread (is that right?). This looks like it. It also uses a timeout when trying to join the thread. Perhaps some kind of warning can be printed if joining fails after the timeout? -- ___

[issue14657] Avoid two importlib copies

2012-04-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: The question pybuildir.txt apparently tries to solve is whether Python is running from the build dir or not. It's not whether Python was installed or not.

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Still no patch from me, but I did create the rudiments of a shared script for poking around at the import internals (Tools/scripts/import_diagnostics.py) Looking at Antoine's patch, I'd be happier with it if it *didn't* mutate the attributes

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would be easier to tell distutils to install the extensions in a fixed name dir (instead of using a platform and version in the name) and then use that getpath.c. distutils is pretty flexible at that :-) Look, this is becoming very off-topic

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looking at Antoine's patch, I'd be happier with it if it *didn't* mutate the attributes of _frozen_importlib, but instead just added importlib._bootstrap as an alias for accessing it. I thought it would be nicer for __file__, __name__ and

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I'd really prefer something like: return load_ns_module(fullname, namespace_path) The point being that load_module() as defined in PEP 302 will never be called on NamespaceLoader. The loader only needs to exist to set module.__loader__,

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14660 ___ ___

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ab3df6979bd0 by Antoine Pitrou in branch '3.2': Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed, thanks. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14664

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Warning added to patch. -- Added file: http://bugs.python.org/file25362/mp_resource_sharer_stop.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14666

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4e9f1017355f by Brian Curtin in branch 'default': Fix #3561. Add an option to place the Python installation into the Windows Path environment variable. http://hg.python.org/cpython/rev/4e9f1017355f -- nosy:

[issue14668] Document the path option in the Windows installer

2012-04-25 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: Now that #3561 is in, it needs to be mentioned in at least the following places: Doc\whatsnew\3.3.rst Doc\faq\windows.rst http://python.org/download/windows/ could use an update, but that's on a separate SVN repository -- assignee:

[issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child

2012-04-25 Thread Sye van der Veen
Sye van der Veen syeber...@gmail.com added the comment: This issue _does_ exist on Windows, and is not limited to the case where the master process exits before its children. The following code, which is almost exactly that from the 2.7.3 documentation, deadlocks on Win7 (Py3.2 and 2.7) and

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Now that the feature is in, I'm going to track the few places we need to document it in #14668. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, I thought either multiprocessing's logging facilities, or the warnings module, could be used. That way, people have a control over verbosity of stderr messages. -- ___ Python tracker

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This could go into 2.7 too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14664 ___

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: mp_resource_sharer_stop.patch: this patch changes two different things, the patch should be splitted. One patch to fix test_socket. One patch to call pthread_sigmask(). I don't think that you should call pthread_sigmask(). It looks like

[issue14369] make __closure__ writable

2012-04-25 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Version of patch which checks invariants in the setter and adds tests. -- Added file: http://bugs.python.org/file25363/writable_closure_with_checking.patch ___ Python tracker

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am really happy to see this as an option in the Windows installer. This has a potential to really reduce the support burden on training new Windows users to use Python and will really help normalize the experience for new users

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: lambacck: I'm -1, but I'm willing to yield to anybody who wants to be in charge of this feature (i.e. Brian, or the release manager). I'm not willing yield to mere user requests, as regular users won't have to deal with negative

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: What do you mean the loader is only needed to set __loader__? You need the loader to create the module (or find it in sys.modules to reload), and set all the attributes properly. If you do this then reloading namespace modules will become a

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Ah. I didn't realize that reload called load_module. I'll back out the change I just made, then. My point was that the original call to load_module isn't made through the normal a finder returned me a loader, so I'll call it code path. It's

[issue14657] Avoid two importlib copies

2012-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: To answer MAL's question about startup, I benchmarked on my machine using the normal_startup benchmark from hg.python.org/benchmarks and the bootstrap work only caused a 5-6% slowdown in a non-debug build. If you do it in a debug build it's

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The joys of trying to shoehorn into an existing API. I mean short of adding a new sys.namespace_loader instead of an explicit keyword argument to FileFinder I can't think of a better solution. -- ___

[issue14642] Fix importlib.h build rule to not depend on hg

2012-04-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: This is where a script could help with printing out a warning if the built Python interpreter is not available. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14642

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: The reason for the conditional approach was to attempt to account for the negative consequences of adding enabling this by default. i.e. if you are already a Python developer and install a new version, it will be status quo, but if you

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: OK, I'm leaning back towards my original preference of getting _frozen_importlib out of the way as quickly as we can. Specifically, I'm thinking of separating out the entry point used by importlib.__init__ from that used by pythonrun.c, such

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think that you should call pthread_sigmask(). It looks like a workaround for this issue, whereas resource_sharer.stop() is the correct fix. The problem is not only with test_multiprocessing and test_socket; any test which uses

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unfortunately, from what I can tell, this is OFF by default. I think that is a mistake. The default for something like this is really important because without new users being explicitly told to set it, new users will not. Most new Python

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Attached patch is an initial attempt (the reference counting on the two modules is likely still a bit dodgy - this is my first version that didn't segfault as I got used to the mechanics of dealing with a frozen module, so it errs on the side

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8a8d2f05068a by Antoine Pitrou in branch '2.7': Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This could go into 2.7 too. Done! -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14664 ___

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yes, in that you'll be able to pick up changes in _bootstrap.py *without* having to rebuild Python. With this in place, we could then get rid of the automatic regeneration of importlib.h which is a complete nightmare if you ever break your

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-25 Thread Kurt Seifried
Changes by Kurt Seifried kseifr...@redhat.com: -- nosy: -kseifr...@redhat.com ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14579 ___ ___

[issue14664] Skipping a test mixin gives metaclass error

2012-04-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks Antoine - much appreciated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14664 ___

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Actually, rather than a test in test suite, we would just change the current automatic rebuild to a Modules/Setup style 'Lib/importlib._bootstrap.py' is newer than 'Python/importlib.h', you may need to run 'make freeze_importlib' --

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Jeff Dean] If a goal is to make it easy for new users to run python, consider installing a desktop shortcut. This would make it very easy for new users (easier than starting up a shell). This is independent of the Path changes discussed

[issue14668] Document the path option in the Windows installer

2012-04-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Don’t forget Doc/using/windows.rst and maybe the various FAQs too (general FAQ, using FAQ, devguide FAQ). -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14657] Avoid two importlib copies

2012-04-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: How do we currently tell that the interpreter is running in a checkout? sysconfig.is_python_build() Someone has to confirm that this works on Windows too, as I’ve been told that not installed vs. installed is less clear on that OS. --

[issue1521950] shlex.split() does not tokenize like the shell

2012-04-25 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file25365/9252961a03e7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

[issue14657] Avoid two importlib copies

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, rather than a test in test suite, we would just change the current automatic rebuild to a Modules/Setup style 'Lib/importlib._bootstrap.py' is newer than 'Python/importlib.h', you may need to run 'make freeze_importlib' -1 from me.

[issue14642] Fix importlib.h build rule to not depend on hg

2012-04-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The status quo seems to work, but people like Georg think it's partially luck that it does and if hg changes its semantics that will cause us trouble. Could you expand on that? -- nosy: +eric.araujo

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The other advantage of splitting the entry points is that we can tweak Brett's plan to make the import machinery explicit such that it happens in a separate function that's only called from __init__.py. That way the published hooks will

[issue14657] Avoid two importlib copies

2012-04-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: At the very least, failing to regenerate importlib.h shouldn't be a fatal build error. It should just run with what its got, and hopefully you will get a working interpreter out the other end, such that you can regenerate the frozen module on

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14660 ___ ___ Python-bugs-list

[issue14669] test_multiprocessing failure on OS X Tiger

2012-04-25 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The OS X Tiger fails more or less intermittently on one of the new multiprocessing tests: == FAIL: test_pickling

[issue14443] Distutils test_bdist_rpm failure

2012-04-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I'm wondering if there may be a deeper problem here: how certain are we that bdist_rpm isn't using the system Python to handle the byte compilation step? It would explain why the files are still being generated in the old locations. I’ve

[issue11599] Useless error message when distutils fails compiling

2012-04-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11599 ___ ___ Python-bugs-list mailing

  1   2   >