Python3: API Documentation generator

2010-09-27 Thread Tim Diels
Hi all I've just switched to python3 and it turns out my current API documentation generator (epydoc) no longer works. I am looking for a tool that reads the docstrings of all classes, ... in my project and turns it into HTML documentation. Thanks for your time limyreth --

Re: Python3: API Documentation generator

2010-09-27 Thread Chris Rebert
On Sun, Sep 26, 2010 at 11:56 PM, Tim Diels fark...@gmail.com wrote:  Hi all I've just switched to python3 and it turns out my current API documentation generator (epydoc) no longer works. I am looking for a tool that reads the docstrings of all classes, ... in my project and turns it into

Re: Calling an arbitrary function with the right arguments

2010-09-27 Thread Bruno Desthuilliers
John O'Hagan a écrit : How to call a function with the right arguments without knowing in advance which function? (snip) For most use case I can think of, I can only second Steven and Chris - if your functions are interchangeable then they should have a same API. Now there's at least one

Re: Calling an arbitrary function with the right arguments

2010-09-27 Thread Peter Otten
John O'Hagan wrote: How to call a function with the right arguments without knowing in advance which function? For example: import random def f1(): pass def f2(foo): pass def f3(foo, bar): pass foo=random.choice((1,2,3)) bar=random.choice((1,2,3))

Re: Calling an arbitrary function with the right arguments

2010-09-27 Thread Jean-Michel Pichavant
John O'Hagan wrote: How to call a function with the right arguments without knowing in advance which function? For example: import random def f1(): pass def f2(foo): pass def f3(foo, bar): pass foo=random.choice((1,2,3)) bar=random.choice((1,2,3)) myfunc=random.choice((f1, f2,

check path.exists() with a converted path

2010-09-27 Thread Alessandro
Hi, I'm a python newbie with a problem too hard to tackle. I have a string defining a path, were all the spaces have been converted to underscores. How can I find if it corresponds to a real path? e.g. a string like '/some/path_to/directory_1/and_to/directory_2' with a real path:

Re: check path.exists() with a converted path

2010-09-27 Thread Chris Rebert
On Mon, Sep 27, 2010 at 2:23 AM, Alessandro alexxx.ma...@gmail.com wrote: Hi, I'm a python newbie with a problem too hard to tackle. I have a string defining a path, were all the spaces have been converted to underscores. How can I find if it corresponds to a real path? e.g. a string like

problem in Gasp !

2010-09-27 Thread n.a.s
Hi, I want to ask about graphics using Gasp .Attached is exercise 10 (houses at night) http://openbookproject.net/thinkCSpy/ch04.html#exercises ,if i call the draw_house function once it will work properly ,but more than one call,windows and doors disappear from some houses . Any one can

Re: check path.exists() with a converted path

2010-09-27 Thread Paul Rudin
Alessandro alexxx.ma...@gmail.com writes: Hi, I'm a python newbie with a problem too hard to tackle. I have a string defining a path, were all the spaces have been converted to underscores. How can I find if it corresponds to a real path? e.g. a string like

Re: check path.exists() with a converted path

2010-09-27 Thread Raphaël Plasson
On Sep 27, 6:23 pm, Alessandro alexxx.ma...@gmail.com wrote: I have a string defining a path, were all the spaces have been converted to underscores. (...) notice that the real path can contain BOTH spaces and underscores. How can I feed it to os.path.exists() ??? You are losing some

Re: check path.exists() with a converted path

2010-09-27 Thread Peter Otten
Alessandro wrote: Hi, I'm a python newbie with a problem too hard to tackle. I have a string defining a path, were all the spaces have been converted to underscores. How can I find if it corresponds to a real path? e.g. a string like '/some/path_to/directory_1/and_to/directory_2' with a

Re: check path.exists() with a converted path

2010-09-27 Thread Alessandro
people, you're great - best newsgroup I've ever been! I think I'll go with the glob suggestion - works like a charm!!! thank you... alessandro -- http://mail.python.org/mailman/listinfo/python-list

Re: Too much code - slicing

2010-09-27 Thread Antoon Pardon
On Thu, Sep 23, 2010 at 12:23:22AM +, Steven D'Aprano wrote: On Tue, 21 Sep 2010 16:17:48 +0200, Antoon Pardon wrote: On Tue, Sep 21, 2010 at 12:07:07AM +, Steven D'Aprano wrote: On Mon, 20 Sep 2010 19:28:49 +0200, Antoon Pardon wrote: Not necessarily. Some of us have the

Plone Conference 2010 schedule published

2010-09-27 Thread Matt Hamilton
Over 400 attendees are set to meet at the 8th annual Plone Conference for a week-long programme of training, talks and developer sprints from the 25th to 31st October at the Thistle Grand Hotel in Bristol, UK. Plone Conference 2010 registrations are open. Plone, an Open Source Content Management

possible circular import problem with python-3, but not python-2

2010-09-27 Thread Darren Dale
I am attempting to contribute to the h5py project by porting the code for python-3. The code is available in a branch at github: http://github.com/darrendale/h5py/tree/py3k . That code uses cython to wrap the hdf5 library. So far, only a few minor changes have been needed (relative imports,

Re: Errors with PyPdf

2010-09-27 Thread flebber
On Sep 27, 2:46 pm, Dave Angel da...@ieee.org wrote: On 2:59 PM, flebber wrote: snip Traceback (most recent call last):    File C:/Python26/Pdfread, line 16, inmodule      open('x.txt', 'w').write(content) NameError: name 'content' is not defined When i use. import pyPdf def

Re: Raw Sockets - IP-Encapsulation

2010-09-27 Thread Alexander Gattin
Hello, On Fri, Sep 24, 2010 at 04:51:01PM +0100, Nobody wrote: On Thu, 23 Sep 2010 21:41:19 +0200, Matthias Guentert wrote: I would like to create an IP tunnel using the IP protocol type 4 (socket.IPPROTO_IPIP) on a Linux host. (I also would be happy if I could create a GRE tunnel)

minimal D: need software testers

2010-09-27 Thread Kruptein
Hey, I've released the second alpha for minimal-D a program I've written in python which should make developing easier. I need people to test the app on bugs and give ideas. It is written in python using the wxPython toolkit and is linux-only. (using on windows is on own risk) You can download

reduced-tagged (was Re: toy list processing problem: collect similar terms)

2010-09-27 Thread Mirko
On Sep 26, 12:05 am, Xah Lee xah...@gmail.com wrote: I am hijacking the following post and driving it to Cuba (the Monthy Python fans will know what I refer to). I want to create a `reduce'- like function that can handle similar problems. Xah said: here's a interesting toy list processing

Re: reduce-tagged (was Re: toy list processing problem: collect similar terms)

2010-09-27 Thread Mirko
On Sep 27, 11:18 am, Mirko mirko.vuko...@gmail.com wrote: On Sep 26, 12:05 am, Xah Lee xah...@gmail.com wrote: I am hijacking the following post and driving it to Cuba (the Monthy Python fans will know what I refer to).  I want to create a `reduce'- like function that can handle similar

Introducing Kids to Programming: 2 or 3?

2010-09-27 Thread Marco Gallotta
Hi there I'm sure you get a lot of 2 or 3 questions, but here's another. Umonya [1] uses Python to introduce school kids to programming. The initiative is only 15 months old and up till now we've been using existing notes and exercises and thus Python 2. But we're at the stage where we can either

Re: reduce-tagged (was Re: toy list processing problem: collect similar terms)

2010-09-27 Thread Mirko
On Sep 27, 11:40 am, Mirko mirko.vuko...@gmail.com wrote: On Sep 27, 11:18 am, Mirko mirko.vuko...@gmail.com wrote: On Sep 26, 12:05 am, Xah Lee xah...@gmail.com wrote: I am hijacking the following post and driving it to Cuba (the Monthy Python fans will know what I refer to).  I want

Re: Introducing Kids to Programming: 2 or 3?

2010-09-27 Thread Andreas Waldenburger
On Mon, 27 Sep 2010 17:48:06 +0200 Marco Gallotta ma...@gallotta.co.za wrote: Since these are kids, we feel the nice changes in 3 such as removing integer division will help in teaching. It will also remove confusion when they go to download Python and grab the latest version. Since they're

Konya - Turkish Company Directory - NEW ! - Seyfi Suna www.een.kso.org.tr

2010-09-27 Thread Seyfi Suna
Konya - Turkish Company Directory - NEW ! - Seyfi Suna www.een.kso.org.tr http://www.een.kso.org.tr/en/konya-firma-rehberi/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python3: API Documentation generator

2010-09-27 Thread Tim Diels
On 27/09/2010 09:02, Chris Rebert wrote: On Sun, Sep 26, 2010 at 11:56 PM, Tim Dielsfark...@gmail.com wrote: Hi all I've just switched to python3 and it turns out my current API documentation generator (epydoc) no longer works. I am looking for a tool that reads the docstrings of all

Re: Strong typing vs. strong testing

2010-09-27 Thread namekuseijin
On 27 set, 05:46, TheFlyingDutchman zzbba...@aol.com wrote: On Sep 27, 12:58 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: RG rnospa...@flownet.com writes: In article 7df0eb06-9be1-4c9c-8057-e9fdb7f0b...@q16g2000prf.googlegroups.com,  TheFlyingDutchman zzbba...@aol.com

relative imports and sub-module execution

2010-09-27 Thread King
Hi, After reading couple of docs and articles, I have implemented a simple test package with nested modules. When running main.py, everything is working fine. Some of my sub- modules has some small test routines for debug purpose. It's because I am using relative package imports at the top, I am

Re: Introducing Kids to Programming: 2 or 3?

2010-09-27 Thread Terry Reedy
On 9/27/2010 11:48 AM, Marco Gallotta wrote: Hi there I'm sure you get a lot of 2 or 3 questions, but here's another. Umonya [1] uses Python to introduce school kids to programming. The initiative is only 15 months old and up till now we've been using existing notes and exercises and thus

Re: Python3: API Documentation generator

2010-09-27 Thread Terry Reedy
On 9/27/2010 1:15 PM, Tim Diels wrote: On 27/09/2010 09:02, Chris Rebert wrote: On Sun, Sep 26, 2010 at 11:56 PM, Tim Dielsfark...@gmail.com wrote: Hi all I've just switched to python3 and it turns out my current API documentation generator (epydoc) no longer works. I am looking for a tool

Re: Python3: API Documentation generator

2010-09-27 Thread Ken Watford
On Mon, Sep 27, 2010 at 1:15 PM, Tim Diels limyr...@gmail.com wrote: On 27/09/2010 09:02, Chris Rebert wrote: On Sun, Sep 26, 2010 at 11:56 PM, Tim Dielsfark...@gmail.com  wrote:  Hi all I've just switched to python3 and it turns out my current API documentation generator (epydoc) no

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda x:x+1,filter(lambda x:x%2==0,[1,2,3,4,5])) How about this: LC(func, inputList, P) compared to [func for myVar in inputList if P] the functional form is: • shorter • not

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread namekuseijin
On 27 set, 16:06, Xah Lee xah...@gmail.com wrote: 2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda x:x+1,filter(lambda x:x%2==0,[1,2,3,4,5])) How about this: [snip] how about this: read before replying. --

Re: Introducing Kids to Programming: Scratch

2010-09-27 Thread Kee Nethery
My son has been writing games using MIT's Scratch. It is visual and highly interactive. In an afternoon he can build something that looks cool to him, is interactive, and that he can share with others. It's not Python but he is learning how to make the tools do what he wants and he is getting

Re: Strong typing vs. strong testing

2010-09-27 Thread Pascal J. Bourguignon
namekuseijin namekusei...@gmail.com writes: in C I can have a function maximum(int a, int b) that will always work. Never blow up, and never give an invalid answer. If someone tries to call it incorrectly it is a compile error. In a dynamic typed language maximum(a, b) can be called with

Re: Strong typing vs. strong testing

2010-09-27 Thread Scott L. Burson
Pascal J. Bourguignon wrote: On the other hand, with the dynamic typing mindset, you might even wrap your values (of whatever numerical type) in a symbolic expression mentionning the unit and perhaps other meta data, so that when the other module receives it, it may notice (dynamically) that

Re: Strong typing vs. strong testing

2010-09-27 Thread Pascal J. Bourguignon
Scott L. Burson sc...@ergy.com writes: Pascal J. Bourguignon wrote: On the other hand, with the dynamic typing mindset, you might even wrap your values (of whatever numerical type) in a symbolic expression mentionning the unit and perhaps other meta data, so that when the other module

Re: toy list processing problem: collect similar terms

2010-09-27 Thread ccc31807
On Sep 26, 12:05 am, Xah Lee xah...@gmail.com wrote: here's a interesting toy list processing problem. I have a list of lists, where each sublist is labelled by a number. I need to collect together the contents of all sublists sharing the same label. So if I have the list ((0 a b) (1 c d)

Re: [ctpug] Introducing Kids to Programming: 2 or 3?

2010-09-27 Thread Simon Cross
On Mon, Sep 27, 2010 at 5:48 PM, Marco Gallotta ma...@gallotta.co.za wrote: We received a grant from Google to reach 1,000 kids in South Africa with our course in 2011. People have also shown interest in running the course in Croatia, Poland and Egypt. We're also eyeing developing African

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
On Sep 27, 12:11 pm, namekuseijin namekusei...@gmail.com wrote: On 27 set, 16:06, Xah Lee xah...@gmail.com wrote: 2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda x:x+1,filter(lambda x:x%2==0,[1,2,3,4,5])) How about

Re: program organization question for web development with python

2010-09-27 Thread Hans
On Sep 17, 2:36 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Hans a écrit : (snip) Maybe I did not make my question clear. I never tried python web programing before, so I want to start from CGI. You can indeed learn quite a few things doing raw CGI - the

Nautilus Python

2010-09-27 Thread Eduardo Ribeiro
I'm a python noob and wrote the following code for a nautilus extension: #!/usr/local/bin/python # -*- coding: utf-8 -*- import urllib import gtk import pygtk import nautilus import gconf import gtk.glade class Slide (nautilus.MenuProvider): f = None def __init__(self):

vhttp://www.vipshops.org/ nike air jordan shoe for sale,nike , chanal, gucci, juicy, polo tshirt.adidas and so on.all are free shipping.

2010-09-27 Thread fcgffj
nike air jordan shoes http://www.vipshops.org/ nike shoes http://www.vipshops.org/ ed hardy http://www.vipshops.org/ SUIT ShortJ ERSEY Jean Jacket Hoody http://www.vipshops.org/ T-ShirtT http://www.vipshops.org/ -Shirt_W http://www.vipshops.org/ Tracksuit_W http://www.vipshops.org/ Skirt_W

strange results from sys.version

2010-09-27 Thread John Machin
I am trying to help a user of my xlrd package who says he is getting anomalous results on his work computer but not on his home computer. Attempts to reproduce his alleged problem in a verifiable manner on his work computer have failed, so far ... the only meaning difference in script output

Re: strange results from sys.version

2010-09-27 Thread Robert Kern
On 9/27/10 6:01 PM, John Machin wrote: I am trying to help a user of my xlrd package who says he is getting anomalous results on his work computer but not on his home computer. Attempts to reproduce his alleged problem in a verifiable manner on his work computer have failed, so far ... the only

Re: strange results from sys.version

2010-09-27 Thread Sridhar Ratnakumar
On 2010-09-27, at 4:30 PM, Robert Kern wrote: On 9/27/10 6:01 PM, John Machin wrote: I am trying to help a user of my xlrd package who says he is getting anomalous results on his work computer but not on his home computer. Attempts to reproduce his alleged problem in a verifiable manner

Re: strange results from sys.version

2010-09-27 Thread Sridhar Ratnakumar
On 2010-09-27, at 4:01 PM, John Machin wrote: User (work): sys.version: 2.7 (r27:82500, Aug 23 2010, 17:18:21) etc Me : sys.version: 2.7 (r27:82525, Jul 4 2010, 09:01:59) etc [...] User result looks whacked: lower patch number, later date Perusing

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread namekuseijin
On 27 set, 18:39, Xah Lee xah...@gmail.com wrote: On Sep 27, 12:11 pm, namekuseijin namekusei...@gmail.com wrote: On 27 set, 16:06, Xah Lee xah...@gmail.com wrote: 2010-09-27 For instance, this is far more convenient: [x+1 for x in [1,2,3,4,5] if x%2==0] than this: map(lambda

Re: Debugger - fails to continue with breakpoint set

2010-09-27 Thread Danny Levinson
Does this describe the problem you are having? http://bugs.python.org/issue5294 -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems reading tif files

2010-09-27 Thread gujax
On Sep 26, 9:19 pm, Christian Heimes li...@cheimes.de wrote: Am 27.09.2010 02:31, schrieb gujax: Hi, I have read several related e-mails dating back as far as 2006. I am quite confused whether PIL can open tif images. Some posts seem to say there isn't yet any support for PIL while there

Re: Problems reading tif files

2010-09-27 Thread gujax
Thanks Christian, Here is the info: TIFF Directory at offset 0x8 (8) Subfile Type: (0 = 0x0) Image Width: 640 Image Length: 480 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Rows/Strip: 480

Re: Strong typing vs. strong testing

2010-09-27 Thread John Nagle
On 9/27/2010 10:46 AM, namekuseijin wrote: On 27 set, 05:46, TheFlyingDutchmanzzbba...@aol.com wrote: On Sep 27, 12:58 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: RGrnospa...@flownet.com writes: In article 7df0eb06-9be1-4c9c-8057-e9fdb7f0b...@q16g2000prf.googlegroups.com,

Re: Nautilus Python

2010-09-27 Thread Steven D'Aprano
On Mon, 27 Sep 2010 15:28:34 -0700, Eduardo Ribeiro wrote: But it doesn't work. What do you mean doesn't work? - It crashes the operating system; - You get a core dump; - You get an exception; - It hangs forever, never doing anything; - It does something unexpected; - Something else? --

Re: reduced-tagged (was Re: toy list processing problem: collect similar terms)

2010-09-27 Thread Steven D'Aprano
On Mon, 27 Sep 2010 08:18:22 -0700, Mirko wrote: Here is my Common Lisp (and I only care about Common Lisp answers) Good for you. So why are you spamming other newsgroups with your CL solution? Not once, but three times. Replies to /dev/null. -- Steven --

Re: toy list processing problem: collect similar terms

2010-09-27 Thread Seebs
On 2010-09-26, Xah Lee xah...@gmail.com wrote: On Sep 25, 11:17??pm, Paul Rubin no.em...@nospam.invalid wrote: Python solution follows (earlier one with an error cancelled). ??All crossposting removed since crossposting is a standard trolling tactic. btw, i disagree about your remark on

Re: toy list processing problem: collect similar terms

2010-09-27 Thread Seebs
On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote: It was livibetter who without any motivation or reasoning posted Python code in CLPM. Not exactly; he posted it in a crossposted thread, which happened to include CLPM and other groups, including comp.lang.python. It is quite possible

How to Deal with Xah Lee Spam/Abuse (was: toy list processing problem: collect similar terms)

2010-09-27 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: On 2010-09-26, Xah Lee xah...@gmail.com wrote: On Sep 25, 11:17??pm, Paul Rubin no.em...@nospam.invalid wrote: Python solution follows (earlier one with an error cancelled). ??All crossposting removed since crossposting is a standard trolling tactic.

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote: It was livibetter who without any motivation or reasoning posted Python code in CLPM. Not exactly; he posted it in a crossposted thread, which happened to include CLPM and other groups, including

Example of exec_proxy

2010-09-27 Thread Prathibha G
Hi Team, I am very new to this python world. Below is my problem. I have a Machine A where i want to execute some commands(dos commands from command prompt), delete/create some files, delete/create some directories. All this i need to do from my local host. Is there a way which i can do? Can

Re: Nautilus Python

2010-09-27 Thread Peter
On Sep 28, 12:31 pm, Steven D'Aprano steve-REMOVE- t...@cybersource.com.au wrote: On Mon, 27 Sep 2010 15:28:34 -0700, Eduardo Ribeiro wrote: But it doesn't work. What do you mean doesn't work? - It crashes the operating system; - You get a core dump; - You get an exception; - It hangs

Re: toy list processing problem: collect similar terms

2010-09-27 Thread Seebs
On 2010-09-28, John Bokma j...@castleamber.com wrote: Seebs usenet-nos...@seebs.net writes: On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote: It was livibetter who without any motivation or reasoning posted Python code in CLPM. Not exactly; he posted it in a crossposted thread, which

Re: toy list processing problem: collect similar terms

2010-09-27 Thread John Bokma
Seebs usenet-nos...@seebs.net writes: fup set to poster On 2010-09-28, John Bokma j...@castleamber.com wrote: Seebs usenet-nos...@seebs.net writes: On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote: It was livibetter who without any motivation or reasoning posted Python code in CLPM.

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18999/py27_winreg_EnumValue.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9937 ___

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19021/py27_fix_winreg_EnumValue_op1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9937 ___

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've withdrew my patch... It has still problem, and I cannot fix it yet. I suppose option 2 is easy. ANSI API's limitation makes it harder to implement correctly. -- ___ Python tracker

[issue9937] _winreg.EnumValue causes MemoryError

2010-09-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can't we use RegEnumValueW and RegQueryInfoKeyW? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9937 ___

[issue9958] (c)elementTree missing children

2010-09-27 Thread Valentin Kuznetsov
New submission from Valentin Kuznetsov vkuz...@gmail.com: Hi, I found that parsing XML file with identical structure leads to missing children item at some point. In my test case which I attach it happens at id=183. Basically I have XML with bunch of elements of the following structure:

[issue9958] (c)elementTree missing children

2010-09-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The given script yields an item on a start event; but the element may not be fully populated at this point. please read http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse You should use the end

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Geoffrey Bache
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: I also just ran into this. Is it likely that an enhancement request to provide access to the raw command line, as requested by the previous commenter, would be accepted? It's sometimes useful to have some idea about what kind of

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Merely from a Windows point-of-view, you could get the full command line fairly easily: code import ctypes pstring = ctypes.windll.kernel32.GetCommandLineW () print (ctypes.c_wchar_p (pstring).value) /code TJG -- nosy: +tim.golden

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-27 Thread akira
New submission from akira 4kir4...@gmail.com: $ python3.1 -c'import math; f = math.log(4,2); print(int(f), f.as_integer_ratio())' 2 (2, 1) $ python3.2 -c'import math; f = math.log(4,2); print(int(f), f.as_integer_ratio())' 1 (9007199254740991, 4503599627370496) Python 3.2a2+ (py3k:85028, Sep

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Geoffrey Bache
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: Interesting. Any idea if something similar is possible on Linux? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2972 ___

[issue9955] multiprocessing.Pipe segmentation fault when recv of unpicklable object

2010-09-27 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9955 ___ ___ Python-bugs-list mailing list

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I'm afraid I don't know; might be worth asking that on the main python mailing list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2972

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-27 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: No, it's not really a bug: math.log(x, 2) isn't an atomic operation: it's computed internally as something like log(x) / log(2), and since each of the three steps (computation of the logs, division) can introduce a small rounding error,

[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2010-09-27 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: test test_structmembers crashed -- type 'exceptions.ValueError': string too long Traceback (most recent call last): File /builddir/build/BUILD/Python-2.7/Lib/test/regrtest.py, line 863, in runtest_inner the_package =

[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2010-09-27 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9960 ___ ___ Python-bugs-list

[issue9961] Identity Crisis! variable assignment using strftime fails comparison test.

2010-09-27 Thread Bill Hawkes
New submission from Bill Hawkes williamhawke...@yahoo.com: See below. When variable assignment is used with strftime for the day of the week, it fails comparison checks for the days of the week. Even when using the str() function it still fails. Manual entry of variable assignment is required

[issue9961] Identity Crisis! variable assignment using strftime fails comparison test.

2010-09-27 Thread Jean-Paul Calderone
Jean-Paul Calderone inva...@example.invalid added the comment: You mistakenly used is for these comparisons, rather than ==. The strftime involvement is a red herring. The real problem is the use of an /identity/ comparison rather than an /equality/ comparison. -- nosy: +exarkun

[issue1615376] subprocess doesn\'t handle SIGPIPE

2010-09-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615376 ___ ___ Python-bugs-list

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-09-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list mailing

[issue9609] make cProfile multi-stack aware

2010-09-27 Thread Todd Whiteman
Changes by Todd Whiteman twhit...@yahoo.com.au: -- nosy: +twhitema ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9609 ___ ___ Python-bugs-list

[issue9941] Unify trace and profile interfaces

2010-09-27 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I've ran into a problem adding context manager functionality to Profile/Trace objects. When profile/trace function is set in __enter__ and removed in __exit__ it catches two spurious events: a return from __enter__ and a

[issue1634774] locale 1251 does not convert to upper case properly

2010-09-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: the OP is right: str.upper is supposed to be locale-dependent http://docs.python.org/library/stdtypes.html#str.upper But the implementation uses _toupper() which is a macro with Visual Studio, and obviously not locale-dependent:

[issue9950] socket.sendall() crash when receiving a signal

2010-09-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in r85032. I'm gonna watch the buildbots a bit, in case the test fails on some platforms. -- assignee: - pitrou resolution: - fixed stage: - committed/rejected ___ Python tracker

[issue8521] Allow some winreg functions to accept named arguments

2010-09-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed in r85033. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8521

[issue8158] documentation of 'optparse' module incomplete

2010-09-27 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, since 2.7 optparse is deprecated in favor of argparse: is this bug still worth to be fixed? If so, I can work on a patch for the doc. Regards, Sandro -- nosy: +sandro.tosi ___ Python

[issue8158] documentation of 'optparse' module incomplete

2010-09-27 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Sorry, I probably overlooked at the situation. After a quick chat with Antoine on IRC, it's clear optparse is here to stay for all the lifetime of 2.7 (quite a long and prosper, we hope :) so yes, it's worth work on its documentation, hence

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-27 Thread akira
akira 4kir4...@gmail.com added the comment: No, it's not really a bug: math.log(x, 2) isn't an atomic operation: It is not a bug, but values of math.log(4) differs between 3.1 and 3.2 i.e., math.log(4.0) in 3.2 returns value that is consistent with math.log(4) in 3.1 but math.log(4) in 3.2

[issue9441] increase logging handlers test coverage

2010-09-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: It would be nice to see tests for NTEventLogHandler, as there are currently none. I looked into implementing NTEventLogHandler's Win32 calls in a C extension rather than requiring a third-party module, but stopped once I realized there weren't

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-27 Thread akira
Changes by akira 4kir4...@gmail.com: Added file: http://bugs.python.org/file19031/test_log_power_two.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9959 ___

[issue9950] socket.sendall() crash when receiving a signal

2010-09-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch passes at least on Linux, OS X and Solaris buildbots. Backported to 3.1 (r85034) and 2.7 (r85035). -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9959] int(math.log(4,2)) == 1 instead of 2

2010-09-27 Thread akira
Changes by akira 4kir4...@gmail.com: -- type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9959 ___ ___

[issue9929] subprocess.Popen unbuffered not work

2010-09-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: But if line buffering doesn't work, disabling buffering on stdout/stderr does have a functional consequence: it allows process output to appear as generated instead of coming in chunks when the buffer is full. Of course, I could be

[issue9929] subprocess.Popen unbuffered not work

2010-09-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But if line buffering doesn't work, disabling buffering on stdout/stderr does have a functional consequence: it allows process output to appear as generated instead of coming in chunks when the buffer is full Yes, sorry, I had it backwards.

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-09-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This doesn't seem to be an issue anymore. -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8959

[issue9934] Python Docs Typo

2010-09-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ported to distutils2 in 2f460982b025, thanks! -- components: +Distutils2 nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9934

[issue9943] TypeError message became less helpful in Python 2.7

2010-09-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9943 ___ ___ Python-bugs-list

[issue9945] Improper locking in logging

2010-09-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just to be sure: this does not apply to 3.1? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9945 ___

[issue9946] lock use in logging

2010-09-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- superseder: - Improper locking in logging ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9946 ___ ___

[issue3532] bytes.tohex method

2010-09-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See #9951 for a patch adding bytes.hex -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3532 ___

  1   2   >