Re: List spam

2011-08-20 Thread Ben Finney
Javier nos...@nospam.com writes: You will lose a lot of people asking/answering interesting stuff, and maybe eventually the list will die. I don't think it would die, but the chances are greater that it would become insular and further disconnected from the Python community, and hence far less

Re: Python Windows Extensions for Mac

2011-08-20 Thread Günther Dietrich
In article mailman.252.1313818564.27778.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: On Fri, Aug 19, 2011 at 1:02 PM, johnny.venter johnny.ven...@zoho.com wrote: Hello, I am looking for the Python Windows Extensions to see if they can be installed on a Mac.THanks. Your

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-20 Thread Alec Taylor
On Sat, Aug 20, 2011 at 9:24 AM, Albert W. Hopkins mar...@letterboxes.org wrote: On Friday, August 19 at 17:12 (-0400), Matty Sarro said: If you're that offended then spend the cycles fixing the damn list so it stops having so much spam. You realize spam comes in almost constantly,

Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from the list. example if tuple 1 and tuple 3 are compare it should find that a single element in

Re: Help on PyQt4 QProcess

2011-08-20 Thread Phil Thompson
On Fri, 19 Aug 2011 14:32:12 -0700 (PDT), Edgar Fuentes fuente...@gmail.com wrote: On Aug 19, 4:21 pm, Carl Banks pavlovevide...@gmail.com wrote: On Friday, August 19, 2011 12:55:40 PM UTC-7, Edgar Fuentes wrote: On Aug 19, 1:56 pm, Phil Thompson  wrote: On Fri, 19 Aug 2011 10:15:20 -0700

Re: Compare tuples of different lenght

2011-08-20 Thread Chris Rebert
On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from the list.

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 10:45 am, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 10:45 am, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if

Python import search path

2011-08-20 Thread Kevin Zhang
Hi, This is the directory tree. project └── sme ├── src │ ├── a.pth │ ├── sss.py └── test └── ttt.py I need to import sss.py in ttt.py. Found a few solution in python docs. A. sys.path.append B. add ***.pth file C. edit .../site-packages/site.py I found out that

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-20 Thread D'Arcy J.M. Cain
On Fri, 19 Aug 2011 17:10:49 -0400 Rodrick Brown rodrick.br...@gmail.com wrote: It's not the end of the world calm down I thought it was quite funny for a friday joke! The first message might have been funny (if you are twelve) but the rest were annoying and insulting. -- D'Arcy J.M. Cain

hello python

2011-08-20 Thread wukexin
from china -- designed by wk...@qq.com-- http://mail.python.org/mailman/listinfo/python-list

Re: Compare tuples of different lenght

2011-08-20 Thread Steven D'Aprano
Jurgens de Bruin wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from the list. It's not clear what you mean by smallest tuple. Is

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 12:17 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Jurgens de Bruin wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest

Re: Compare tuples of different lenght

2011-08-20 Thread Peter Otten
Jurgens de Bruin wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from the list. example if tuple 1 and tuple 3 are compare it

Re: Hot Girls are Looking for Sex

2011-08-20 Thread hackingKK
Well, they might be indented in the right places but i don't know if loops, conditions, functions, if they all happen or not. :) Happy hacking. Krishnakant, On 20/08/11 01:47, Matty Sarro wrote: That's great - but do they program in python? On Fri, Aug 19, 2011 at 2:38 PM, Sajjad

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-20 Thread David Robinow
On Sat, Aug 20, 2011 at 4:16 AM, Alec Taylor alec.tayl...@gmail.com wrote: ... I found said joke rather funny :P Perhaps, as a retired amateur comedian, my standards are too high, but I don't think adding a smilie to a stupid post suddenly turns it into a joke. Nevertheless, the quality of the

Re: Python import search path

2011-08-20 Thread Chris Angelico
On Sat, Aug 20, 2011 at 10:52 AM, Kevin Zhang kevin.misc...@gmail.com wrote: Found a few solution in python docs. A. sys.path.append I think A is not so pretty, and I don't have root  privilege to use B and C. So any both more elegant and practical solutions? If, as I understand from your

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-20 Thread D'Arcy J.M. Cain
On Sat, 20 Aug 2011 08:17:32 -0400 David Robinow drobi...@gmail.com wrote: I found said joke rather funny :P Perhaps, as a retired amateur comedian, my standards are too high, How does one retire from amateur status? Do you suddenly start charging for telling jokes? :-) but I don't think

Really, stop repeating spam! (Was: Hot Girls...)

2011-08-20 Thread D'Arcy J.M. Cain
On Sat, 20 Aug 2011 15:16:08 +0530 hackingKK hackin...@gmail.com wrote: Well, they might be indented in the right places but i don't know if loops, conditions, functions, if they all happen or not. :) [Entire spam deleted AGAIN] Good grief! Haven't you seen all the followups to that posting

Re: Really, stop repeating spam! (Was: Hot Girls...)

2011-08-20 Thread Chris Angelico
On Sat, Aug 20, 2011 at 3:57 PM, D'Arcy J.M. Cain da...@druid.net wrote: Wait, I get it.  The spammer, Matty and you are all on gmail.  You are all the same person, aren't you? Gmail is all one person now? That would explain why I keep seeing things I agree with. I had no idea there were so

Re: Compare tuples of different lenght

2011-08-20 Thread John O'Hagan
On Sat, 20 Aug 2011 01:25:18 -0700 (PDT) Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from

Re: testing if a list contains a sublist

2011-08-20 Thread Simon Forman
On Mon, Aug 15, 2011 at 4:26 PM, Johannes dajo.m...@web.de wrote: hi list, what is the best way to check if a given list (lets call it l1) is totally contained in a second list (l2)? for example: l1 = [1,2], l2 = [1,2,3,4,5] - l1 is contained in l2 l1 = [1,2,2,], l2 = [1,2,3,4,5] - l1 is

Re: Python Windows Extensions for Mac

2011-08-20 Thread Kevin Walzer
On 8/19/11 4:02 PM, johnny.venter wrote: Hello, I am looking for the Python Windows Extensions to see if they can be installed on a Mac.THanks. You can certainly try to install them via easy_install, I supposed, but it's doubtful they would do anything, as the Mac does not support win32

Re: List spam

2011-08-20 Thread George
I find python group is filled with spam mails, is there any way to filter these mails before sending it to the group. I can't see this situation with similar user group, such as the jsr. George. On 20/08/2011 07:07, Ben Finney ben+pyt...@benfinney.id.au wrote: Javier nos...@nospam.com writes:

extended slicing and negative stop value problem

2011-08-20 Thread Max Moroz
Would it be a good idea to change Python definition so that a[10, -1, -1] referred to the elements starting with position 10, going down to the beginning? This would require disabling the negative stop value means counting from the end of the array magic whenever the step value is negative. The

Re: extended slicing and negative stop value problem

2011-08-20 Thread Chris Angelico
On Sat, Aug 20, 2011 at 7:20 PM, Max Moroz maxmo...@gmail.com wrote: Would it be a good idea to change Python definition so that a[10, -1, -1] referred to the elements starting with position 10, going down to the beginning? Well, first off I think it's a dangerous idea to change semantics of

Re: try... except with unknown error types

2011-08-20 Thread Paul Rubin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: You can catch all exceptions by catching the base class Exception: Except that is nearly always poor advice, because it catches too much: it hides bugs in code, as well as things which should be caught. You should always catch the

Re: extended slicing and negative stop value problem

2011-08-20 Thread Max
On Aug 20, 11:29 am, Chris Angelico ros...@gmail.com wrote: If you're using a variable for the stop value, you just need to set it to an explicit None if it would fall negative: a[10:None:-1] That doesn't work if it's set in a loop or if it's calculated as a formula. For example, this very

Re: extended slicing and negative stop value problem

2011-08-20 Thread Chris Angelico
On Sat, Aug 20, 2011 at 7:52 PM, Max maxmo...@gmail.com wrote: That doesn't work if it's set in a loop or if it's calculated as a formula. For example, this very simple code doesn't work because of the -1 problem. Right, which is what I meant by setting it to an explicit None: if

Re: try... except with unknown error types

2011-08-20 Thread Steven D'Aprano
Paul Rubin wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: You can catch all exceptions by catching the base class Exception: Except that is nearly always poor advice, because it catches too much: it hides bugs in code, as well as things which should be caught. You

Re: try... except with unknown error types

2011-08-20 Thread John Nagle
On 8/19/2011 1:24 PM, John Gordon wrote: In4e4ec405$0$29994$c3e8da3$54964...@news.astraweb.com Steven D'Apranosteve+comp.lang.pyt...@pearwood.info writes: You can catch all exceptions by catching the base class Exception: Except that is nearly always poor advice, because it catches too

Re: extended slicing and negative stop value problem

2011-08-20 Thread Steven D'Aprano
Pardon me for breaking threading, but I don't have Max's original post. On Sat, Aug 20, 2011 at 7:20 PM, Max Moroz maxmo...@gmail.com wrote: Would it be a good idea to change Python definition so that a[10, -1, -1] I presume you mean slice notation a[10:-1:-1]. referred to the elements

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this? I found dcerpc might be the way to go. On

Re: Python Windows Extensions for Mac

2011-08-20 Thread Chris Angelico
On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter johnny.ven...@zoho.com wrote: Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I

Re: Replacement for the shelve module?

2011-08-20 Thread Gregory Ewing
Robert Kern wrote: That's just incorrect. You shouldn't use (binary) floats for many *accounting* purposes, but for many financial/econometric analyses, floats are de rigeur and work much better than decimals There's a certain accounting package I work with that *does* use floats -- binary

Re: Replacement for the shelve module?

2011-08-20 Thread Chris Angelico
On Sun, Aug 21, 2011 at 1:37 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: There's a certain accounting package I work with that *does* use floats -- binary ones -- for accounting purposes, and somehow manages to get away with it. Not something I would recommend trying at home, though.

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
Yes, I want to make my queries from a remote non-Windows computer. Here is the scenario: From my mac, I want to use python to access and read objects from a remote Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this? On Aug

[issue11397] os.path.realpath() may produce incorrect results

2011-08-20 Thread Martin Panter
Martin Panter vadmium...@gmail.com added the comment: Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link link = link/inside a readlink(link) call will keep looping. Anyhow, the proposed solution in issue11397_py32_2.patch does not account for paths with

[issue12791] Yield leaks exception being handled as garbage

2011-08-20 Thread Martin Panter
New submission from Martin Panter vadmium...@gmail.com: See attached leaky_generator.py demo. Python doesn't appear to delete the exception variable if an exception is thrown back into it (via throw, close or by deleting it). The result is a reference cycle that needs garbage collecting. This

[issue12787] xmlrpc.client documentation (MultiCall Objects) points to a broken link

2011-08-20 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: AFAIU xmlrpclib.MultiCall implements the technique described on the broken link, and the examples look pretty clear to me, so the user doesn't have to follow the link to understand how to use it. I think it's good to keep a link around, in

[issue12791] Yield leaks exception being handled as garbage

2011-08-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12791 ___ ___

[issue6584] gzip module has no custom exception

2011-08-20 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: The attached patch follows Ezio's hints. -- nosy: +maker Added file: http://bugs.python.org/file22956/6584_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-20 Thread Christian Ziemski
Christian Ziemski cz...@gmx.de added the comment: I attached a patch against argparse.py from Python 2.7.1. Subcommmands can now be abbreviated as long as they are unambiguous. Otherwise an error message 'ambigous choice' will be thrown (like the 'invalid choice' one). (It's my first patch,

[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12789 ___ ___

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-20 Thread Christian Ziemski
Christian Ziemski cz...@gmx.de added the comment: Since there seems to be no means to edit (my last) message a little followup regarding aliases: I found http://bugs.python.org/issue9234 argparse: aliases for positional arguments (subparsers) That one is for version 3.2 and already closed.

[issue6584] gzip module has no custom exception

2011-08-20 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22958/6584_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584 ___

[issue12792] Document the type field of the tracker in the devguide

2011-08-20 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The attached patch adds documentation for the type field of the tracker to the devguide/triaging page. This is also related to the meta issue #393 [0]. [0]: http://psf.upfronthosting.co.za/roundup/meta/issue393 -- assignee:

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-08-20 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Would it be better to use TarError as Sridhar suggested, or create a new class BadTarfile(TarError, IOError), following the convention used for gzip and zipfile? -- nosy: +maker ___ Python tracker

[issue12791] reference cycle with exception state not broken by generator.close()

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem is probably that the frame keeps the last execution state around, and since the exception itself has a reference to a frame, a cycle is created. Note that it doesn't happen if you catch the GeneratorExit that gets raised inside the

[issue12793] allow filters in os.walk

2011-08-20 Thread Jacek Pliszka
New submission from Jacek Pliszka jacek.plis...@gmail.com: I suggest a small change in os.walk module. Instead of: def walk(top, topdown=True, onerror=None, followlinks=False): I would like to have: def walk(top, topdown=True, onerror=None, skipnames=lambda x : False, skipdirs=islink):

[issue12793] allow filters in os.walk

2011-08-20 Thread Jacek Pliszka
Changes by Jacek Pliszka jacek.plis...@gmail.com: -- versions: +Python 2.7 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12793 ___ ___

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 800d45e51dd7 by Victor Stinner in branch '3.2': Issue #12326: sys.platform is now always 'linux2' on Linux http://hg.python.org/cpython/rev/800d45e51dd7 New changeset c816479f6aaf by Victor Stinner in branch '2.7':

[issue12793] allow filters in os.walk

2011-08-20 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12793 ___

[issue12791] reference cycle with exception state not broken by generator.close()

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file22961/genexcstate.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12791

[issue12791] reference cycle with exception state not broken by generator.close()

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 867ce75b885c by Antoine Pitrou in branch '3.2': Issue #12791: Break reference cycles early when a generator exits with an exception. http://hg.python.org/cpython/rev/867ce75b885c New changeset 7d390c3a83c6 by

[issue12791] reference cycle with exception state not broken by generator.close()

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the report, fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12791

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5330af45f777 by Antoine Pitrou in branch '3.2': Issue #12213: Fix a buffering bug with interleaved reads and writes that http://hg.python.org/cpython/rev/5330af45f777 New changeset d7f6391954cf by Antoine Pitrou in

[issue12213] BufferedRandom: issues with interlaced read-write

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This should be fixed for BufferedRandom. As I said, I don't think BufferedRWPair is buggy. -- resolution: - fixed stage: patch review - committed/rejected status: open - pending title: BufferedRandom, BufferedRWPair: issues with

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You should not use BufferedRWPair with the same underlying stream (that's the whole point of BufferedRWPair). It might be documented. Something like Warning: don't use the same stream as reader and writer, or the BufferedRWPair

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm working on a patch to remove the major version of sys.platform. The patch is much bigger than expected. You will see when it will be done :-) -- ___ Python tracker

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cf2010e9f941 by Antoine Pitrou in branch '2.7': Issue #12213: Fix a buffering bug with interleaved reads and writes that http://hg.python.org/cpython/rev/cf2010e9f941 --

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-08-20 Thread Rémy HUBSCHER
Rémy HUBSCHER remy.hubsc...@ionyse.com added the comment: Hello, I did the patch, but I have no idea of how to make a test for it. More over, I have seen a similar problem each time there is this code in the Python code (here in distutils.util.Distribution.get_command_class) :

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-08-20 Thread Rémy HUBSCHER
Rémy HUBSCHER remy.hubsc...@ionyse.com added the comment: Actually it is not the same problem for `distutils.util.Distribution.get_command_class` my mistake. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12703

[issue8713] multiprocessing needs option to eschew fork() under Linux

2011-08-20 Thread Vivek Sekhar
Changes by Vivek Sekhar vi...@viveksekhar.ca: -- nosy: +vsekhar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-08-20 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: Thanks Rémy, About testing, I would go for modules with errors in it and check that when imported trough this function it does what it is supposed to do. IOW: 1. Create a test python module with errors in their definition (Throw an

[issue12787] xmlrpc.client documentation (MultiCall Objects) points to a broken link

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e8f878837eae by Sandro Tosi in branch '2.7': #12787: link original MultiCall proposal to webarchive and in a footnote http://hg.python.org/cpython/rev/e8f878837eae New changeset ab11edca2310 by Sandro Tosi in branch

[issue12787] xmlrpc.client documentation (MultiCall Objects) points to a broken link

2011-08-20 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Thanks Ezio for the suggestions. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12787

[issue12213] BufferedRandom, BufferedRWPair: issues with interlaced read-write

2011-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: BufferedRandom, BufferedRWPair: issues with interlaced read-write - BufferedRandom, BufferedRWPair: issues with interlaced read-write ___ Python tracker

[issue12213] BufferedRandom: issues with interlaced read-write

2011-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: BufferedRandom, BufferedRWPair: issues with interlaced read-write - BufferedRandom: issues with interlaced read-write ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12213

[issue12794] platform: add a major function to get the system major version

2011-08-20 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: #12326 proposes to remove the major version from sys.platform. If we remove it, we will need another easy way to get this information. I don't think that we need the version used to build Python, but the version at runtime.

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm working on a patch to remove the major version of sys.platform As expected by Marc-Andre: we need this information and so it has to be available somewhere else. I created #12794 to add platform.major(). I prefer to get the

[issue12794] platform: add a major function to get the system major version

2011-08-20 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/issue12794 ___

[issue12795] Remove the major version from sys.platform

2011-08-20 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: sys.platform contains the major system version. If you test the sys.platform value (e.g. sys.platform == 'linux2'), your program doesn't work anymore with the new system major version (e.g. Linux 3). This problem is common with

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm working on a patch to remove the major version of sys.platform Done. I created the issue #12795: Remove the major version from sys.platform. -- ___ Python tracker

[issue12795] Remove the major version from sys.platform

2011-08-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: To have an idea of how much code has to be changed for the sys.platform change, there is the diffstat : $ diffstat sys_platform_without_major.patch Lib/ctypes/util.py |6 --

[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-20 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Even if this bug is fixed, it still won't work as you expect, and this s why. The Scanner function accepts a list of 2-tuples. The first item of the tuple is a regex and the second is a function. For example: re.Scanner([(r\d+,

[issue12789] re.Scanner doesn't support more than 2 groups on regex

2011-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: re.Scanner don't support more then 2 groups on regex - re.Scanner doesn't support more than 2 groups on regex ___ Python tracker rep...@bugs.python.org

[issue12795] Remove the major version from sys.platform

2011-08-20 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/issue12795 ___

[issue12792] Document the type field of the tracker in the devguide

2011-08-20 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This documents the current list, but ;-) I think the current list should be modified. 1. Put behavior at the top of the list, as it is the most common (a 'human factor' principle). 2. Combine performance and resource usage. Both are

[issue12213] BufferedRandom: issues with interlaced read-write

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 524896c305ce by Antoine Pitrou in branch '3.2': Issue #12213: make it clear that BufferedRWPair shouldn't be called with the http://hg.python.org/cpython/rev/524896c305ce New changeset a423bd492d6c by Antoine Pitrou

[issue12213] BufferedRandom: issues with interlaced read-write

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it can be closed now. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12213 ___

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4136acaf03de by Éric Araujo in branch 'default': Fix sdist test on Windows (#12678). Patch by Jeremy Kloth. http://hg.python.org/cpython/rev/4136acaf03de -- nosy: +python-dev

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-08-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7d9fa30c5588 by Éric Araujo in branch '3.2': Refactor the copying of xxmodule.c in distutils tests (#12141). http://hg.python.org/cpython/rev/7d9fa30c5588 New changeset 900738175779 by Éric Araujo in branch

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I agree it’s unfortunate that we have to use backslashes to have multi-line with statements. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12782

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: is the only other example I can think of One similar example would be raise in Python 2. all compound statements uniformly allowed the same continuation syntax. This is not true: only import-as allows this syntax. All other uses of

[issue12794] platform: add a major function to get the system major version

2011-08-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please elaborate why we need it? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12794 ___

[issue12795] Remove the major version from sys.platform

2011-08-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think this change should be much much smaller in scope. It was (nearly) agreed to drop the major version if the system is Linux. There is no consensus (that I'm aware of) to drop the major OS version for all systems. So I would propose

[issue12772] fractional day attribute in datetime class

2011-08-20 Thread Miguel de Val Borro
Miguel de Val Borro miguel.de...@gmail.com added the comment: Thanks, I need the fractional day added to the ordinal day of the month. Using the timedelta division it would be: from __future__ import division dt = datetime.datetime(2008, 5, 8, 13, 35, 41, 56) dt.day +

[issue12795] Remove the major version from sys.platform

2011-08-20 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12795 ___ ___

[issue12789] re.Scanner doesn't support more than 2 groups on regex

2011-08-20 Thread Ângelo Otávio Nuffer Nunes
Ângelo Otávio Nuffer Nunes angelonuf...@gmail.com added the comment: Ah, ok, thanks... Then I think my idea is impossible. I will use the Scanner in normal way. :) -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12783] test_posix failure on FreeBSD 6.4: test_get_and_set_scheduler_and_param

2011-08-20 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch skipping this part of the test on FreeBSD (it actually also fails on FreeBSD 7.2). Note that while calling sched_setparam(param) results in EINVAL with SCHED_OTHER processes, calling sched_setscheduler(SCHED_OTHER,

[issue12789] re.Scanner doesn't support more than 2 groups on regex

2011-08-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12789 ___

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12782 ___ ___

[issue12555] PEP 3151 implementation

2011-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file22966/aa9e276a791d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___

[issue12555] PEP 3151 implementation

2011-08-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch incorporating Ezio's comments and synchronized with latest default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___

[issue12794] platform: add a major function to get the system major version

2011-08-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: #12326 proposes to remove the major version from sys.platform. If we remove it, we will need another easy way to get this information. I don't

[issue12794] platform: add a major function to get the system major version

2011-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: platform: add a major function to get the system major version - platform: add a major function to get the system major version ___ Python tracker

[issue12796] total_ordering goes into infinite recursion when NotImplemented is returned

2011-08-20 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This small test file exhibits the issue. When @total_ordering is not applied, the '' operator raises TypeError as expected. When @total_ordering is applied, there is an infinite recursion error. -- components: Library (Lib) files:

[issue12786] subprocess wait() hangs when stdin is closed

2011-08-20 Thread Idan Kamara
Idan Kamara idank...@gmail.com added the comment: Thanks for getting on top of this so quickly Charles. Setting close_fds=True worked like a charm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12786

[issue12768] docstrings for the threading module

2011-08-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12768 ___ ___ Python-bugs-list

  1   2   >