[ANN] python-ghostscript 0.4

2011-01-29 Thread Hartmut Goebel
Announcing: python-ghostscript 0.4 A Python-Interface to the Ghostscript C-API using ctypes :Copyright: GNU Public License v3 (GPLv3) :Author: Hartmut Goebel h.goe...@crazy-compiler.com :Homepage:

Earn $2 Per Click For Free Join Make Money

2011-01-29 Thread Ravi chandran
www.workfrominter.com -- http://mail.python.org/mailman/listinfo/python-list

multiple values for keyword argument

2011-01-29 Thread Tobias Blass
Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying to execute the program below I get the following error message. Traceback (most recent call last): File ./abirechner.py, line 64, in module win =MainWin() File

Re: Use the Source Luke

2011-01-29 Thread TP
On Fri, Jan 28, 2011 at 10:32 AM, Raymond Hettinger pyt...@rcn.com wrote: I hoping a new trend will start with dev's putting direct source code links in their documentation:  http://rhettinger.wordpress.com/2011/01/28/open-your-source-more/ I'm looking for more examples of projects that

Re: multiple values for keyword argument

2011-01-29 Thread Francesco Bochicchio
On 29 Gen, 12:10, Tobias Blass tobiasbl...@gmx.net wrote: Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying to execute the program below I get the following error message. Traceback (most recent call last):   File

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
On Sat, 29 Jan 2011, Francesco Bochicchio wrote: On 29 Gen, 12:10, Tobias Blass tobiasbl...@gmx.net wrote: Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying to execute the program below I get the following error message.

EARN 1000 DOLLARS PER DAY - WITHOUT INVESTMENT

2011-01-29 Thread success all
http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple values for keyword argument

2011-01-29 Thread Frank Dierkes
On Sat, 29 Jan 2011 14:18:30 +0100, Tobias Blass wrote: On Sat, 29 Jan 2011, Francesco Bochicchio wrote: class MainWin(Frame):         def create_edit(row,self): def create_edit(self, row): Ok it works now. So the problem was that python requires 'self' to be the first

Re: multiple values for keyword argument

2011-01-29 Thread Peter Otten
Tobias Blass wrote: On Sat, 29 Jan 2011, Francesco Bochicchio wrote: On 29 Gen, 12:10, Tobias Blass tobiasbl...@gmx.net wrote: Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying to execute the program below I get the

Re: multiple values for keyword argument

2011-01-29 Thread Roy Smith
In article 8qijsgfgu...@mid.dfncis.de, Frank Dierkes frank.dier...@googlemail.com wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of self is so universal that using anything else will just make your code more difficult

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
Roy Smith wrote: In article 8qijsgfgu...@mid.dfncis.de, Frank Dierkes frank.dier...@googlemail.com wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of self is so universal that using anything else will just make your

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
On Sat, 29 Jan 2011, Peter Otten wrote: Tobias Blass wrote: On Sat, 29 Jan 2011, Francesco Bochicchio wrote: On 29 Gen, 12:10, Tobias Blass tobiasbl...@gmx.net wrote: Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying

Re: Use the Source Luke

2011-01-29 Thread Miki
Clojure a source that shows the source of a function (doh!). It's probably easy to implement in Python with the inspect module. Sadly this won't work for built-ins. Clojure's irc clojurebot will answer source function with a link to github that points to the first line of definition. --

Distress sale/JBR/1 Bed /AED790sqft / 15th floor/050-8320722

2011-01-29 Thread PETER WONG F H (+971 50 8320722)
Distress sale/JBR/1 Bed /AED790sqft / 15th floor/050-8320722 JBR Lower Price AED790per/sqft 15th floor 1,465.90sqft(AED1,160,000.00) +Transfer Fee 2 % + Broker Fee 2% JBR Apartments Located near to Dubai Marina and lying in a beach front location comprises the area of JBR or Jumeirah Beach

[ANN] python-ghostscript 0.4

2011-01-29 Thread Hartmut Goebel
Announcing: python-ghostscript 0.4 A Python-Interface to the Ghostscript C-API using ctypes :Copyright: GNU Public License v3 (GPLv3) :Author: Hartmut Goebel h.goe...@crazy-compiler.com :Homepage:

Re: how to read the last line of a huge file???

2011-01-29 Thread Aahz
In article mailman.1412.1296196161.6505.python-l...@python.org, John O'Hagan resea...@johnohagan.com wrote: file.seek takes an optional 'whence' argument which is 2 for the end, so you can just work back from there till you hit the first newline that has anything after it: def

Re: multiple values for keyword argument

2011-01-29 Thread patty
Roy Smith wrote: In article 8qijsgfgu...@mid.dfncis.de, Frank Dierkes frank.dier...@googlemail.com wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of self is so universal that using anything else will just make your

Re: how to read the last line of a huge file???

2011-01-29 Thread Tim Chase
On 01/26/2011 04:59 AM, Xavier Heruacles wrote: I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... I wrote a modestly tested version (including missing

Re: Use the Source Luke

2011-01-29 Thread Raymond Hettinger
On Jan 29, 3:22 am, TP wing...@gmail.com wrote: On Fri, Jan 28, 2011 at 10:32 AM, Raymond Hettinger pyt...@rcn.com wrote: I hoping a new trend will start with dev's putting direct source code links in their documentation:  http://rhettinger.wordpress.com/2011/01/28/open-your-source-more/

Looking for Remote Python Project

2011-01-29 Thread joy99
Dear Room, I am a Python Programmer from India(New Delhi Region), and I worked for quite a long time in Bangalore. I have been working in Python for the last 4 years or so. I have successfully built around 15 projects in Python. I am looking for some remote Python Projects, which can be done from

Re: Use the Source Luke

2011-01-29 Thread Ben Finney
rusi rustompm...@gmail.com writes: On Jan 29, 4:10 am, Ben Finney ben+pyt...@benfinney.id.au wrote: I have a quibble with the framing: The rest of the blame lies with installers. They all treat human-readable scripts like they were binaries and tuck the code away in a dark corner.

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
Tobias Blass tobiasbl...@gmx.net writes: Ok it works now. So the problem was that python requires 'self' to be the first parameter? More accurately, the instance is passed as the first parameter, and Python doesn't care what you name it. (Your fellow programmers do care, though, so please

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
pa...@cruzio.com writes: I, myself, use the spanish word 'yo' instead (less keystrokes, I hate 'self', and it amuses me); if I'm working with my numerical experiments I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do try to use 'self' to avoid possible confusion.

Re: Looking for Remote Python Project

2011-01-29 Thread Ben Finney
joy99 subhakolkata1...@gmail.com writes: I am looking for some remote Python Projects, which can be done from home. If any one knows of anything, I may be helpful enough. One of the best ways to begin contributing is to fix bugs and provide patches. For Python itself, see the Python bug

Re: apscheduler error

2011-01-29 Thread Aahz
In article mailman.654.1294470254.6505.python-l...@python.org, =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= al...@gothcandy.com wrote: A package of mine, TurboMail, suffers from the same threading issue if used improperly; you enqueue e-mail, it starts a thread, then you immediately exit. TM

Re: apscheduler error

2011-01-29 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: In article mailman.654.1294470254.6505.python-l...@python.org, =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= al...@gothcandy.com wrote: A package of mine, TurboMail, suffers from the same threading issue if used improperly; you enqueue e-mail, it starts a

Re: multiple values for keyword argument

2011-01-29 Thread Steven D'Aprano
On Sat, 29 Jan 2011 09:03:28 -0500, Roy Smith wrote: In article 8qijsgfgu...@mid.dfncis.de, Frank Dierkes frank.dier...@googlemail.com wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of self is so universal that

Re: Use the Source Luke

2011-01-29 Thread rusi
On Jan 30, 2:22 am, Ben Finney ben+pyt...@benfinney.id.au wrote: The “problem”, which I don't consider to be a problem per se, is one of OS-wide policy, not “installers”. The policy is a matter of tradeoffs across the system, and isn't “tucking the code away in a dark corner”. Earlier mail:

Re: Use the Source Luke

2011-01-29 Thread Steven D'Aprano
On Sat, 29 Jan 2011 19:59:33 -0800, rusi wrote: On Jan 30, 2:22 am, Ben Finney ben+pyt...@benfinney.id.au wrote: The “problem”, which I don't consider to be a problem per se, is one of OS-wide policy, not “installers”. The policy is a matter of tradeoffs across the system, and isn't “tucking

[pygame-bug] Pygame.cdrom bug

2011-01-29 Thread rantingrick
Hello folks, Pygame --the best little 2d game engine in Pythoina-- is great for little 2d one off games and such (or so i've heard). I really don't do much 2d graphics but pygame has some other helpful modules so i downloded it about a year or so ago although i had not used it until today. I

Re: [pygame-bug] Pygame.cdrom bug

2011-01-29 Thread Benjamin Kaplan
On Sat, Jan 29, 2011 at 11:25 PM, rantingrick rantingr...@gmail.com wrote: Hello folks, Pygame  --the best little 2d game engine in Pythoina-- is great for little 2d one off games and such (or so i've heard). I really don't do much 2d graphics but pygame has some other helpful modules so i

Re: Use the Source Luke

2011-01-29 Thread rusi
On Jan 30, 9:21 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I think this is a fairly accurate description of (one aspect of) the problem. If you dont see it as a problem how do you explain that google can search the World Wide Web better than we can search our

Re: Use the Source Luke

2011-01-29 Thread Raymond Hettinger
On Jan 28, 3:10 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Raymond Hettinger pyt...@rcn.com writes: The rest of the blame lies with installers. They all treat human-readable scripts like they were binaries and tuck the code away in a dark corner. That’s hardly a “blame” of

Re: Python critique

2011-01-29 Thread rantingrick
On Dec 10 2010, 5:15 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: n = 1 [print(n) for n in (2,)] print n Oh *thats* why we have print as a function! I always wanted to put print in a list cmp. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python critique

2011-01-29 Thread rantingrick
On Dec 13 2010, 4:40 am, Jean-Michel Pichavant jeanmic...@sequans.com wrote: It's more a demonstration that you can do it with python. The reason is that Python developpers will not put themself in the situation where they need to use a variable 'orange' line 32 and use the same variable

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
pa...@cruzio.com wrote: I, myself, use the spanish word 'yo' instead (less keystrokes, I hate 'self', and it amuses me); if I'm working with my numerical experiments I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do try to use 'self' to avoid possible confusion. :) I am

Re: how to read the last line of a huge file???

2011-01-29 Thread John O'Hagan
On Sat, 29 Jan 2011, Aahz wrote: In article mailman.1412.1296196161.6505.python-l...@python.org, John O'Hagan resea...@johnohagan.com wrote: [...] def lastline(filename): offset = 0 line = '' with open(filename) as f: while True: offset -= 1

Re: Looking for Remote Python Project

2011-01-29 Thread joy99
On Jan 30, 2:49 am, Ben Finney ben+pyt...@benfinney.id.au wrote: joy99 subhakolkata1...@gmail.com writes: I am looking for some remote Python Projects, which can be done from home. If any one knows of anything, I may be helpful enough. One of the best ways to begin contributing is to fix

[issue11054] OS X installer build script for 3.2 can no longer build with system Python on OS X 10.5

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks okay to me (and any bugs are likely to become apparent when the installers are built...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11054

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It's reviewed by Antoine, so you can commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10989 ___

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think the canonical message is expected X, not Y. Otherwise, fine to commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11032 ___

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11032 ___ ___

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: If this helps with hanging, okay to commit. (It doesn't have any effect on non-OSX anyway.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10940

[issue11037] State of PEP 382 or How does distutils2 handle namespaces?

2011-01-29 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Martin, could you shed some light on the state of that PEP? -- nosy: +lukasz.langa title: How distutils2 handle namespaces - State of PEP 382 or How does distutils2 handle namespaces? ___ Python

[issue11053] OS X IDLE 3 with Tk 8.4 appears to hang with syntax error

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Good to go. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11053 ___ ___ Python-bugs-list

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'd really like someone else to throw a pair of eyes at the code changes before it is committed. But yes, I will allow this into rc2, and we'll buy some stabilizing time by adding an rc3 to the cycle. --

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- Removed message: http://bugs.python.org/msg127391 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'd really like someone else to throw a pair of eyes at the code changes before it is committed. But yes, I will allow this into rc2, since a completely broken module isn't really what a minor release is about. --

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The new test is faulty; it appears to be specific to the timezone of the patch submitter. The library fix should go in nevertheless, if you could add a correct test, Alexander, it would be great. -- priority: normal - release blocker

[issue11056] 2to3 fails for inner __metaclass__ class definition

2011-01-29 Thread nw
New submission from nw nils.win...@googlemail.com: The attached code is not converted properly. No warning either. Eventually it may be a good idea to reintroduce the old more versatile method. -- components: 2to3 (2.x to 3.0 conversion tool) files: test.py messages: 127394 nosy:

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: RDM: it seems i was too tired to get your messages right last evening! Indeed it's now completely my fault, i should inspect the content further in respect to the str/bytes etc. stuff! Thus - i will now need three or four days

[issue11057] Missing DistutilsOptionError

2011-01-29 Thread Kelsey
New submission from Kelsey kelsey.highto...@gmail.com: Missing DistutilsOptionError import in distutil2.config causes the following error: Traceback (most recent call last): File /opt/OpenPython-2.7.1/lib/python2.7/runpy.py, line 162, in _run_module_as_main __main__, fname, loader,

[issue11057] Missing DistutilsOptionError

2011-01-29 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: Link to patch: https://bitbucket.org/khightower/distutils2/changeset/22f336b467b8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11057

[issue11057] Missing import of DistutilsOptionError

2011-01-29 Thread Kelsey
Changes by Kelsey kelsey.highto...@gmail.com: -- title: Missing DistutilsOptionError - Missing import of DistutilsOptionError ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11057 ___

[issue11046] setup.py/configure [darwin]

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Let me summarize this thread: - For darwin/MacOS X there exists an undocumented MACOSX_DEPLOYMENT_TARGET switch, which makes its way all through the build-system and the 'sysconfig' module. Even though 'configure' auto-detects

[issue11046] setup.py/configure [darwin]

2011-01-29 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20575/DIFF ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11046 ___

[issue11046] setup.py/configure [darwin]

2011-01-29 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20582/DIFF ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11046 ___

[issue10826] pass_fds sometimes fails

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch to ignore door files when running the fd_status script. It seems to eradicate the intermittent failures on the solaris buildbots. -- keywords: +patch Added file: http://bugs.python.org/file20600/spdoors.patch

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-29 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It looks like the canonical message is expected X, got Y. With that change I've checked it in in r88226. I'll backport. -- assignee: haypo - eric.smith ___ Python tracker rep...@bugs.python.org

[issue11058] dist directory not created when running sdist command

2011-01-29 Thread Kelsey
New submission from Kelsey kelsey.highto...@gmail.com: When trying to create a source distribution, I get the following error and no stack trace: [openpython:yamlconfig]$ /opt/OpenPython-2.7.1/bin/python -m distutils2.run sdist WARNING:root:warning: no files found matching 's'

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-29 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Actually this error doesn't exist on older versions because these used to be methods on a string. The error was introduced in r85456 (issue 9418) when these became functions in the _string module. No need to backport. -- resolution: -

[issue9418] Move _formatter_* methods from string type into _string module

2011-01-29 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: No further action required. I'm not going to remove format() and friends from stringlib as long as there's chatter about adding a .format() for bytes. -- resolution: - accepted stage: patch review - committed/rejected status: open -

[issue11058] dist directory not created when running sdist command

2011-01-29 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: Link to patch: https://bitbucket.org/khightower/distutils2/changeset/6ef86fa5236b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11058

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, fixed in r88228. Not backport needed, SSLContext was introduced in Python 3.2. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: +if isinstance(message, io.TextIOWrapper): +# Backward compatibility hack. +message = message.buffer Is it a good thing to parse a mailbox using a text file? If not, we should emit a

[issue11049] add tests for test.support

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: test_warnings actually includes sanity checks for import_fresh_module - they could be adapted into a separate unit test easily enough. -- ___ Python tracker rep...@bugs.python.org

[issue11059] code.python.org repo failures introduced!

2011-01-29 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: ... because i don't know where to place this message, i do place it here. Whatever has happened in the last 90 minutes, cloning from code.python.org/hg results in mercurial panics! Please see

[issue11049] add tests for test.support

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +os.mkdir(os.path.join(TESTFN, TESTFN)) Please don't. This will break the day TESTFN becomes a non-trivial path. +def test_make_bad_fd(self): +fd = support.make_bad_fd() +self.assertRaises(OSError, os.write, fd, bfoo)

[issue11059] code.python.org repo failures introduced!

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: MAN!! Forget it - it's ok again; it's maybe really a mercurial non-atomicity failure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11059

[issue11059] code.python.org repo failures introduced!

2011-01-29 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11059 ___ ___

[issue11059] code.python.org repo failures introduced!

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Works fine here. -- nosy: +pitrou resolution: - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11059 ___

[issue11059] code.python.org repo failures introduced!

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Nope. In the meanwhile i've accomplished to clone py3k once again, but branches/release2.7-maint fails over and over again. I've added another message to http://mercurial.selenic.com/bts/issue2239. Have a nice weekend.

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nick, a more problematic issue is that __main__ is always called __main__, regardless of whether it is actually imported as the real main module or through a regular import. This means that it is impossible to discriminate between both uses by

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, forget that (!). The following patch seems to work: Index: Lib/multiprocessing/forking.py === --- Lib/multiprocessing/forking.py (révision 88224) +++

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: I'm fine with that tweak antoine -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___ ___

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Also in respect to Issue 6203 i could talk about a project which did not link against anything in the end, only ld(1) and syscalls and the undocumented third 'char **envp' arg to UNIX main()s. Thus: all of you should be *very*

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: User lemburg pointed me to this, but no, i've posted msg127416 to Issue 11022. -- nosy: +sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6203

[issue11015] Bring test.support docs up to date

2011-01-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11015 ___ ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Victor: yes, I was thinking that when I added that comment but forgot to come back to it. Thanks for spotting that. Another thing I forgot about yesterday is that I activated the commented out statements that do linesep transformations

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Useless is a rather strong word. Every change we've made to the import system (or, more accurately, the main module identification system) has been backed up with decent use cases - nearly all of the subsequent problems can be traced back to

[issue11049] add tests for test.support

2011-01-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: * class TestCase(unittest.TestCase): - why not give the test class a more useful name? done * import_fresh_module is tested similarly to import_module - can't a test be added that it indeed performs its special sauce? Even by

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: (Replaced patch file to fix a typo in a comment) -- Added file: http://bugs.python.org/file20603/issue10845_mitigation.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file20601/issue10845_mitigation.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Georg, it would be very good to have this fix in for RC2. Otherwise any use of multiprocessing in conjunction with zipfile, package or directory execution will fail on Windows in 3.2. -- assignee: - georg.brandl priority: critical -

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: With issue10845_mitigation.diff applied, Antoine's patch is no longer necessary? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (Replaced patch file to fix a typo in a comment) Does that patch still work if the objects marshalled between parent and child refer to classes living in the __main__.py module? -- ___ Python tracker

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-01-29 Thread Godefroid Chapelle
New submission from Godefroid Chapelle got...@bubblenet.be: sdist does not complain about version = 0.4.5dev which is not PEP 386 compliant -- assignee: tarek components: Distutils2 messages: 127425 nosy: eric.araujo, gotcha, tarek priority: normal severity: normal status: open

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: __main__.py files aren't like ordinary modules - they should *not* be defining classes or anything like that. Instead, they should be treated as if the entire file was implicitly inside an if __name__ == '__main__': clause - when imported

[issue10845] test_multiprocessing failure under Windows

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: To answer Antoine's question directly: With the patch, it works just as well as multiprocessing on Windows currently does if the objects marshalled between parent and child refer to classes defined inside a if __name__ == '__main__': clause in

[issue11037] State of PEP 382 or How does distutils2 handle namespaces?

2011-01-29 Thread Sebastien Douche
Sebastien Douche sdou...@gmail.com added the comment: Thanks Martin for the response, but I cannot understand how implement it after reading the PEP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11037

[issue11037] How does distutils2 handle namespaces?

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Sébastien. How does d2 handle namespaces? It does not, because such a thing does not exist yet. We don’t support setuptools’ namespace packages, but wait for the cleaned-up standardization thanks to to PEP 382. That PEP hasn’t reached

[issue11037] How does distutils2 handle namespaces?

2011-01-29 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Yes me neither. The PEP is hard to understand, maybe a pseudo-code example could shed some light -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11037

[issue11037] How does distutils2 handle namespaces?

2011-01-29 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Eric: the PEP was accepted already IIRC, and its status is not up-to-date. So it's just a matter of adding the implementation now. This bug can be a placeholder for its implementation if no other bug was opened for this yet --

[issue11037] Implementing PEP 382

2011-01-29 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- title: How does distutils2 handle namespaces? - Implementing PEP 382 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11037 ___

[issue11057] Missing import of DistutilsOptionError

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed two NameErrors in that file in 801c90825cc1, thanks. -- assignee: tarek - eric.araujo resolution: - fixed stage: - committed/rejected versions: +3rd party -Python 2.7 ___ Python tracker

[issue11062] mailbox fails to round-trip a file to a Babyl mailbox

2011-01-29 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: One of the new tests introduced for #9124 fails for the Bably mailbox format. The failing tests pass a file to the add method (test_add_binary_file, test_add_nonascii_binary_file, test_add_text_file_warns). The failing part of the

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. Would you like to complete it? It lacks tests, and I think the fix may be in the wrong place: You fixed sdist but not bdists. I think the root of the problem is in the manifest (distutils2) / filelist (distutils1)

[issue11042] [PyPI CSS] Adding project urls onto a project page using register, apparition of an overhead over the title

2011-01-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This tracker is for bugs found in the CPython distribution (or distutils2, which is temporarily developed outside of it), not other codebases like PyPI or the tracker itself. Your bug report will be welcome on the catalog-...@python.org

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch fixes the test (hopefully we don't have to support systems with non-POSIX epoch) and cleans up whitespace. -- resolution: - accepted stage: patch review - commit review Added file:

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file20604/issue10939.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939 ___

  1   2   3   >