[ANN] tperimeter 1.112 Released And Available

2010-11-19 Thread Tim Daneliuk
'tperimeter' Version 1.112 is released and available at: http://www.tundraware.com/Software/tperimeter/ The last public release was 1.110 What's New -- The user can now leave either the service name or IP input field blank. A blank service name will default the IP address discovered

ANN: PyGUI 2.3.1

2010-11-19 Thread Greg Ewing
PyGUI 2.3.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version incorporates a modification that I hope will improve the behaviour of ScrollableViews on Windows with pywin32 builds later than 212. (There are still problems with it, though. If the Scrollable

Re: Changing the EAX register with Python

2010-11-19 Thread Stefan Sonnenberg-Carstens
Hi, just read my mail :-) You can just build an debugger in python yourself. The script I posted should give you an idea. Am Fr, 19.11.2010, 08:17 schrieb Tim Roberts: dutche dut...@gmail.com wrote: Hi folks, I have a unusual question here. How can I change the value of EAX register under

Re: Distribution of Python Scripts

2010-11-19 Thread Jean-Michel Pichavant
tazz_ben wrote: Hi Folks - I'm an experienced programmer, but this is my first app with python, so I apologize for any stupidity on my part. So I've written/still working on a command line tool written in Python. It talks to a web service, so there really isn't anything in it that is

Re: SQLite3 and lastrowid

2010-11-19 Thread Alexander Gattin
Hello, On Tue, Nov 16, 2010 at 01:52:42PM -0800, Ian wrote: The proper way to get the number of rows is to use the COUNT aggregate function, e.g., SELECT COUNT(*) FROM TABLE1, which will return a single row with a single column containing the number of rows in table1. It's better to select

HI ALL, COUPLE R INVITING U FOR HOT DATING FOR FREE.... PLZ WELCOME(ABOVE 18YEARS ONLY)

2010-11-19 Thread d...@couples
HI ALL, COUPLE R INVITING U FOR HOT DATING FOR FREE PLZ WELCOME(ABOVE 18YEARS ONLY) http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 http://x2c.eu/58 -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite3 and lastrowid

2010-11-19 Thread Alexander Gattin
On Fri, Nov 19, 2010 at 01:14:34PM +0200, Alexander Gattin wrote: On Tue, Nov 16, 2010 at 01:52:42PM -0800, Ian wrote: The proper way to get the number of rows is to use the COUNT aggregate function, e.g., SELECT COUNT(*) FROM TABLE1, which will return a single row with a single column

Re: SQLite3 and lastrowid

2010-11-19 Thread Alain Ketterlin
Alexander Gattin xr...@yandex.ru writes: The proper way to get the number of rows is to use the COUNT aggregate function, e.g., SELECT COUNT(*) FROM TABLE1, which will return a single row with a single column containing the number of rows in table1. It's better to select count(1) instead

Re: strange subprocess behavior when calling ps

2010-11-19 Thread Alexander Gattin
Hello, On Wed, Nov 17, 2010 at 01:19:09AM -0800, Ned Deily wrote: As far as I know, COMMAND_MODE has no special meaning on other platforms UNIX_STD=2003 on HP-UX if anyone's interested... -- With best regards, xrgtn -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite3 and lastrowid

2010-11-19 Thread Wolfgang Rohdewald
On Freitag 19 November 2010, Alexander Gattin wrote: It's better to select count(1) instead of count(*). The latter may skip rows consisting entirely of NULLs IIRC. in some data bases count(1) is said to be faster than count(*), I believe -- Wolfgang --

Re: SQLite3 and lastrowid

2010-11-19 Thread Alexander Gattin
Hello, On Fri, Nov 19, 2010 at 12:32:19PM +0100, Alain Ketterlin wrote: Alexander Gattin xr...@yandex.ru writes: It's better to select count(1) instead of count(*). The latter may skip rows consisting entirely of NULLs IIRC. Wrong: count(anyname) ignores NULL, whereas count(*) does not.

Re: SQLite3 and lastrowid

2010-11-19 Thread Alain Ketterlin
Alexander Gattin xr...@umc.com.ua writes: On Fri, Nov 19, 2010 at 12:32:19PM +0100, Alain Ketterlin wrote: Alexander Gattin xr...@yandex.ru writes: It's better to select count(1) instead of count(*). The latter may skip rows consisting entirely of NULLs IIRC. Wrong: count(anyname)

Re: Extension on Windows

2010-11-19 Thread Ulrich Eckhardt
Eric Frederich wrote: I am trying to create an extension on Windows and I may be over my head but I have made it pretty far. I am trying to create bindings for some libraries which require me to use Visual Studio 2005. I set up the spammodule example and in VS set the output file to be a

Re: How to correctly pass “pointer-to-pointer ” into DLL via ctypes?

2010-11-19 Thread Diez B. Roggisch
Grigory Petrov grigory@gmail.com writes: Hello. I have a DLL that allocates memory and returns it. Function in DLL is like this: void Foo( unsigned char** ppMem, int* pSize ) {   * pSize = 4;   * ppMem = malloc( * pSize );   for( int i = 0; i * pSize; i ++ ) (* pMem)[ i ] = i; }

Re: SQLite3 and lastrowid

2010-11-19 Thread Alexander Gattin
Hello, On Fri, Nov 19, 2010 at 01:03:14PM +0100, Wolfgang Rohdewald wrote: On Freitag 19 November 2010, Alexander Gattin wrote: It's better to select count(1) instead of count(*). not true, The latter may skip rows consisting entirely of NULLs IIRC. not true either. I've heard that

Re: Changing the EAX register with Python

2010-11-19 Thread David Cournapeau
On Fri, Nov 19, 2010 at 4:17 PM, Tim Roberts t...@probo.com wrote: dutche dut...@gmail.com wrote: Hi folks, I have a unusual question here. How can I change the value of EAX register under python under Linux?? As paimei does under Windows. My project is to have a python program that loads a C

Re: Extension on Windows

2010-11-19 Thread Eric Frederich
On Fri, Nov 19, 2010 at 7:28 AM, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Now when I created a 2nd function to wrap a library function I get the following. ImportError: DLL load failed: The specified module could not be found. This can mean that the module itself couldn't be

Re: How to correctly pass “pointer-to-pointer” i nto DLL via ctypes?

2010-11-19 Thread Grigory Petrov
Thank you a lot! I have stripped down my production code to the sample - and it worked. Bug was in another part of my code where free() was called for the memory in question. On Fri, Nov 19, 2010 at 3:39 PM, Diez B. Roggisch de...@web.de wrote: Grigory Petrov grigory@gmail.com writes:

Re: Changing the EAX register with Python

2010-11-19 Thread dutche
Well, I think using ptrace is really the best way, at least what I have found on Google told me that. Stefan, your answer will fit perfectlly for me, it was what I'm searching. Thank you On Nov 19, 10:43 am, David Cournapeau courn...@gmail.com wrote: On Fri, Nov 19, 2010 at 4:17 PM, Tim

Re: Extension on Windows

2010-11-19 Thread Ulrich Eckhardt
Eric Frederich wrote: Do I put them [DLL dependencies] in some environment variable? Do I put them in site-packages along with the .pyd file, or in some other directory? Take a look at the LoadLibrary() docs: http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx These further lead on

Re: Program, Application, and Software

2010-11-19 Thread Martin Gregorie
On Fri, 19 Nov 2010 01:43:28 +0100, Alexander Kapps wrote: What difference does it make? Is 'print Hello' a program or a script? Are you saying, that it depends on whether you have to manually call some compiler? Thats the way the term 'script' is usually used in the UNIX/Linux world. In

Re: Bunch 2.0 - a dict with a default

2010-11-19 Thread nn
On Nov 18, 8:45 pm, Phlip phlip2...@gmail.com wrote: Pythonistas: If everyone likes this post, then the code is a snippet for community edification. Otherwise, it's a question: How to do this kind of thing better? I want a dict() variant that passes these test cases:         map = Map()  

Re: regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-19 Thread Vlastimil Brom
2010/11/18 Martin v. Loewis mar...@v.loewis.de: Thanks for the confirmation Martin! Do you think, it the mentioned omission of the character names of some CJK ranges in unicodedata intended, or should it be reported to the tracker? It's certainly a bug. So a bug report would be

Re: How to run an EXE, with argument, capture output value

2010-11-19 Thread noydb
Any other help? I am guessing not, just wanted to try one more time. Could really use help, please!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Extension on Windows

2010-11-19 Thread Eric Frederich
On Fri, Nov 19, 2010 at 8:12 AM, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Eric Frederich wrote: Do I put them [DLL dependencies] in some environment variable? Do I put them in site-packages along with the .pyd file, or in some other directory? Take a look at the LoadLibrary()

Re: Program, Application, and Software

2010-11-19 Thread Josef Frank
Am 19.11.2010 15:22, schrieb Martin Gregorie: On Fri, 19 Nov 2010 01:43:28 +0100, Alexander Kapps wrote: What difference does it make? Is 'print Hello' a program or a script? Are you saying, that it depends on whether you have to manually call some compiler? Thats the way the term 'script'

Re: what's the precision of fractions.Fraction?

2010-11-19 Thread RJB
Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number theory and continued fractions. RJB On Nov 18, 8:26 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Thu, 18

Re: Changing the EAX register with Python

2010-11-19 Thread Robert Kern
On 11/19/10 7:08 AM, dutche wrote: Well, I think using ptrace is really the best way, at least what I have found on Google told me that. You may also want to look into pinktrace for another wrapper around ptrace. I haven't used it myself, but it's worth looking into.

Re: What was your strategy?

2010-11-19 Thread Lou Pecora
In article 7xr5ei1p2j@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid wrote: Lou Pecora pec...@anvil.nrl.navy.mil writes: I'll jump in and recommend the book Python in a Nutshell by Martelli. It's encyclopedic. Indeed. I hope Martelli updates it. I'd buy another copy

Round Trip: C to Python to C Module

2010-11-19 Thread Eric Frederich
I have a proprietary software PropSoft that I need to extend. They support extensions written in C that can link against PropLib to interact with the system. I have a Python C module that wraps a couple PropLib functions that I call PyProp. From an interactive Python shell I can import PyProp and

ANN: PyGUI 2.3.1

2010-11-19 Thread Greg Ewing
PyGUI 2.3.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version incorporates a modification that I hope will improve the behaviour of ScrollableViews on Windows with pywin32 builds later than 212. (There are still problems with it, though. If the Scrollable

Re: Changing the EAX register with Python

2010-11-19 Thread Grant Edwards
On 2010-11-19, Tim Roberts t...@probo.com wrote: dutche dut...@gmail.com wrote: My project is to have a python program that loads a C program and sets a breakpoint at some address, and then with this breakpoint I change the EAX register and then continue the program execution. You will need

Re: What was your strategy?

2010-11-19 Thread Steve Holden
On 11/19/2010 10:55 AM, Lou Pecora wrote: In article 7xr5ei1p2j@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid wrote: Lou Pecora pec...@anvil.nrl.navy.mil writes: I'll jump in and recommend the book Python in a Nutshell by Martelli. It's encyclopedic. Indeed. I hope

Re: How to run an EXE, with argument, capture output value

2010-11-19 Thread Jerry Hill
On Fri, Nov 19, 2010 at 9:52 AM, noydb noyd...@gmail.com wrote: Any other help?  I am guessing not, just wanted to try one more time. Could really use help, please!! You'll need to give us more information about the program you're trying to automate. It originally sounded like you just needed

Re: Program, Application, and Software

2010-11-19 Thread Steve Holden
On 11/19/2010 9:22 AM, Martin Gregorie wrote: [...] Indeed, it doesn't make sense there since executables are limited to .BAR or .CMD files, which are directly interpreted by the command processor, and .EXE or .COM files, which must be compiled before they can be run. AFAIK there's no way

Re: Modifying Element In For List

2010-11-19 Thread Johannes Bauer
Am 15.11.2010 18:27, schrieb Duncan Booth: Comparing directly against True or False is error prone: a value in Python can be false without actually being equal to False. Well, you can always use is instead of ==, which makes a comparison to True or False perfectly safe. Regards, Johannes --

Re: Modifying Element In For List

2010-11-19 Thread Steve Holden
On 11/19/2010 12:17 PM, Johannes Bauer wrote: Am 15.11.2010 18:27, schrieb Duncan Booth: Comparing directly against True or False is error prone: a value in Python can be false without actually being equal to False. Well, you can always use is instead of ==, which makes a comparison to

Re: strange behavor....

2010-11-19 Thread Steve Holden
On 11/16/2010 9:12 AM, Arnaud Delobelle wrote: Hrvoje Niksic hnik...@xemacs.org writes: m...@distorted.org.uk (Mark Wooding) writes: So even if the globals() dictionary is custom, its __setitem__ method is *not* called. Fascinating. Thank you. In case it's not obvious, that is because

Re: what's the precision of fractions.Fraction?

2010-11-19 Thread Peter Pearson
On Fri, 19 Nov 2010 07:29:59 -0800 (PST), RJB rbott...@csusb.edu wrote: Does Fractions remove common factors the way it should? If it does and you want to find the closest fraction with a smaller denominator i think tou'll need some number theory and continued fractions. No heroics required,

Re: How to run an EXE, with argument, capture output value

2010-11-19 Thread Tim Harig
C:\Documents and Settings\Tim Harig\My Documents\autoCalcdir Volume in drive C has no label. Volume Serial Number is 30D9-35E0 Directory of C:\Documents and Settings\Tim Harig\My Documents\autoCalc 11/19/2010 12:20 PMDIR . 11/19/2010 12:20 PMDIR .. 11/19/2010

Re: Round Trip: C to Python to C Module

2010-11-19 Thread Diez B. Roggisch
Eric Frederich eric.freder...@gmail.com writes: I have a proprietary software PropSoft that I need to extend. They support extensions written in C that can link against PropLib to interact with the system. I have a Python C module that wraps a couple PropLib functions that I call PyProp.

Module locale throws exception: unsupported locale setting

2010-11-19 Thread Sibylle Koczian
Hello, on a german Windows installation I get problems with locale. If I run that module as a script from a command window this is the output: C:\Python31\Liblocale.py Locale aliasing: Locale defaults as determined by getdefaultlocale():

Re: Module locale throws exception: unsupported locale setting

2010-11-19 Thread Ned Deily
In article ic6ksr$n0k$0...@news.t-online.com, Sibylle Koczian nulla.epist...@web.de wrote: on a german Windows installation I get problems with locale. If I run that module as a script from a command window this is the output: C:\Python31\Liblocale.py Locale aliasing: Locale defaults as

Re: Distribution of Python Scripts

2010-11-19 Thread Stefaan Himpe
So, what's my options. Maybe this page can give some inspiration? http://wiki.python.org/moin/deployment -- http://mail.python.org/mailman/listinfo/python-list

Earn in Management careers.

2010-11-19 Thread gaurav
On Management careers base, Earn monthly. Supporting Management careers. http://managementjobs.webs.com/pm.htm http://topcareer.webs.com/humanresourcemgmt.htm Offers for job seekers Opportunities for you Make your career. http://rojgars1.webs.com/gov.htm

Re: strange behavor....

2010-11-19 Thread Arnaud Delobelle
Hrvoje Niksic hnik...@xemacs.org writes: m...@distorted.org.uk (Mark Wooding) writes: So even if the globals() dictionary is custom, its __setitem__ method is *not* called. Fascinating. Thank you. In case it's not obvious, that is because CPython assumes the type for many of its

Re: How to run an EXE, with argument, capture output value

2010-11-19 Thread noydb
Thanks to Jerry Hill above who helped. This worked: from pywinauto.application import Application app = Application() app.start_(r'C:\temp\hallbig2.exe') app.Form1.Edit6.TypeKeys(r'C:\temp\input\Ea39j.txt') E_Value = while (E_Value == ): app.Form1.Compute.Click() E_Value =

dict diff

2010-11-19 Thread Jin Yi
so i came up with a diff method to compare 2 dicts. i found it pretty useful so i thought i'd share it with everyone. you can see the doctest to check out suggested uses. since we can't modify built-ins, i demonstrated adding a diff method to OrderedDict to show how one could add it to your own

try to use unicode

2010-11-19 Thread Mikael B
Hi. I'm learning python. python 2.6.6 on ubuntu 10.10 I'm swedish so I try to use unicode to get swedish characters. I've checked wikipedia. utf-8 is said to be an unicode encoding.. this is the test program: # -*- coding: utf-8 -*- import readline s=raw_input(u'Månadslön:') and this is the

Re: dict diff

2010-11-19 Thread Steve Holden
On 11/19/2010 8:58 PM, Jin Yi wrote: so i came up with a diff method to compare 2 dicts. i found it pretty useful so i thought i'd share it with everyone. you can see the doctest to check out suggested uses. since we can't modify built-ins, i demonstrated adding a diff method to OrderedDict

Re: dict diff

2010-11-19 Thread Jin Yi
i don't think this piece of code is obscure. i think the use case is there when you know that dicta != dictb, but you need to know where they're different. i wouldn't really care to have it on the dict since it's useful as an unbound method anyway. On Sat, Nov 20, 2010 at 01:11:53AM -0500,

Re: try to use unicode

2010-11-19 Thread Stefan Sonnenberg-Carstens
Am 20.11.2010 06:53, schrieb Mikael B: Hi. I'm learning python. python 2.6.6 on ubuntu 10.10 I'm swedish so I try to use unicode to get swedish characters. I've checked wikipedia. utf-8 is said to be an unicode encoding.. this is the test program: # -*- coding: utf-8 -*- import readline

RE: try to use unicode

2010-11-19 Thread Mikael B
Date: Sat, 20 Nov 2010 08:47:18 +0100 From: stefan.sonnenb...@pythonmeister.com To: mba...@live.se CC: python-list@python.org Subject: Re: try to use unicode Meddelandetext Am 20.11.2010 06:53, schrieb Mikael B: Hi. I'm learning

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: My build error seems actually unrelated to encoding issues. Working directory is ASCII-only, locale is UTF-8. $ ./configure --with-pydebug [snip] $ make [snip] ranlib libpython3.2dm.a gcc -pthread -Xlinker

[issue10461] Use with statement throughout the docs

2010-11-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: +1 I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO diff, I noticed that I liked replacing 'open,read,close' with 'with open, read' just for reading purposes since it turns 3 steps into 1 compound transaction.

[issue10461] Use with statement throughout the docs

2010-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10461 ___ ___

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will try tomorrow, thanks for reminding me. That was a fresh clone. I did. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6011 ___

Re: [issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Ron Adam
On 11/19/2010 08:21 AM, Alexander Belopolsky wrote: Alexander Belopolskybelopol...@users.sourceforge.net added the comment: On Thu, Nov 18, 2010 at 2:37 AM, Ron Adamrep...@bugs.python.org wrote: .. I'll try reading and writing directly to the socket and working up some tests from that. I

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Then I get more failures: == FAIL: test_map_timeout (test.test_concurrent_futures.ProcessPoolExecutorTest) --

[issue10434] Document the rules for public names

2010-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10434 ___ ___

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Nov 19, 2010 at 3:06 PM, STINNER Victor rep...@bugs.python.org wrote: .. Whereas PyUnicode_FromFormatV() converts the format string (bytes) to unicode (characters). If you would like a comparaison in C, it's like

[issue10434] Document the rules for public names

2010-11-19 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10434 ___ ___ Python-bugs-list

[issue4113] Add custom __repr__ to functools.partial

2010-11-19 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Well, of course it can be done with PyUnicode_Concat (obviously, since PyUnicode_AppendAndDel uses that). I used PyUnicode_AppendAndDel because that function does exactly what I needed. I don't see why PyUnicode_AppendAndDel should be

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: I added an empty _pydoc.css file. The server does read it and you'll be able to play around with it, but don't expect it to be pretty if you do until the rest of the html is updated. Should I put that in the pydoc_data? It just

[issue10463] Wrong return value for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
New submission from Daniel Seither p...@tiwoc.de: Cite from http://docs.python.org/library/xml.etree.elementtree.html xml.etree.ElementTree.parse(source, parser=None) Parses an XML section into an element tree. source is a filename or file object containing XML data. parser is an optional

[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
Changes by Daniel Seither p...@tiwoc.de: -- title: Wrong return value for xml.etree.ElementTree.parse() - Wrong return type for xml.etree.ElementTree.parse() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10463

[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
Daniel Seither p...@tiwoc.de added the comment: I need to read more accurately what is printed on my console... Forget about it. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-19 Thread Doug Shea
Doug Shea doug.s...@gmail.com added the comment: Is there perhaps a work-around we could use to get this to compile and have a math module? Force it to export that 'round' symbol in the core, perhaps? -- nosy: +Doug.Shea ___ Python tracker

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Could you try with the patch that I just attached? And thanks for you help, I really appreciated it! -- Added file: http://bugs.python.org/file19645/timing2.patch ___ Python tracker

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This issue seems already fixed. File: Lib/argparse.py 922 # if we didn't use all the Positional objects, there were too few 1923 # arg strings supplied. 1924 if positionals: 1925 self.error(_('too few

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Could you try with the patch that I just attached? And thanks for you help, I really appreciated it! It works ok indeed. -- ___ Python tracker rep...@bugs.python.org

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: No, it's exactly line 1925 that's the problem. The OP would like that to tell him which arguments were missing instead of saying just 'too few arguments'. The block below that is for checking required optionals/positionals. It won't

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Marc-Andre: Many of the characters you refer actually do have names assigned, even if the names don't appear in the Unicode character database. Instead, they are specified in section 4.8 of the Unicode standard, and unicodedata.c already

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Third, for that Graphviz output, was anything special required? If so, I would toss the code into Tools for others to benefit from. It's merely the to_dot function from Lib/__optimizer__.py (which turns an AST into .dot source code),

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: The attached patch solves this issue. I haven't added any unittest because test_argparse.py is quite huge - over 4300 lines-, and I was undecided between «ArgumentError tests» (4251) and «ArgumentTypeError tests» (4262). Any hint? However,

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file19647/bug10424.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: No, it's rather Linux and tool specific to go into ast.py. But adding it to the Tools/ directory makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-11-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: On Friday 19 November 2010 21:58:25 you wrote: I choosed to use ASCII instead of UTF-8, because an UTF-8 decoder is long (210 lines) and complex (see PyUnicode_DecodeUTF8Stateful()), whereas ASCII decode is just: unicode_char =

[issue10299] Add index with links section for built-in functions

2010-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new patch with a 5 column tables. I had to use some rst trickery to make a decent header that works both in the HTML and Latex outputs. I put the title in the middle cell (the 3rd) of the header and left the others empty. The

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Marc-Andre: Many of the characters you refer actually do have names assigned, even if the names don't appear in the Unicode character database. Instead,

[issue9198] Should repr() print unicode characters outside the BMP?

2010-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9198 ___ ___ Python-bugs-list

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. The code is still fairly messy (embarrasingly so in places), but it's better to have it out in public in this tracker than stuck on my hard

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. If this a work in progress, you could create an SVN branch in the sandbox (you can then use svnmerge to avoid diverging too much from mainline)

[issue809163] Can't add files with spaces

2010-11-19 Thread John Keyes
John Keyes johnke...@gmail.com added the comment: This is my first contribution as part of the Bug Weekend (and possibly my first to Python). I tested this by writing a MANIFEST.in and a very small setup.py but after looking at distutils I narrowed the area down to the FileList. I wrote a

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r86538 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10391 ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-19 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101120.zip is a new version of the regex module. The match object now supports additional methods which return information on all the successful matches of a repeated capture group. The API was inspired by that of .Net:

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-11-19 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: joblack - are you still seeing issues with this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10002 ___

[issue809163] Can't add files with spaces

2010-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for diagnosis and the test patch, and welcome to the bug weekend. Some comments: test.support has a symbol, TESTFN, which is guaranteed to be unique for the test run and located in an appropriate writeable location. Many tests

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Daniel, I wasn't trying to avoid importing multiprocessing. What's your use case though? I think that defaulting the number of threads to the numbers of CPUs would trick users into believing that threads are useful for CPU-intensive work in

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There are currently no tests in argparse that test the content of error messages, which is fairly standard for stdlib tests since the error messages aren't considered part of the API (only the nature of the exception is). So there's

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Fixed in r10183 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10183 ___

[issue8705] shutil.rmtree with empty filepath

2010-11-19 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This can't actually work. You can't delete a directory which has open handles to it on Windows, namely the Python process you're running in that directory. The empty file path isn't really the issue here. shutil.rmtree(os.getcwd()) attempts the

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-19 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Terry, when is the deadline for producing the patch for 3.2? Perhaps we should at least submit the 2.7 patch for now so that it goes in for sure? -- ___ Python tracker rep...@bugs.python.org

[issue10122] Documentation typo fix and a side question

2010-11-19 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: If you visit http://docs.python.org/library/functions.html?highlight=getattr#getattr there is still the word 'attributed' present in online docs. Please fix the docs completely. -- ___

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Does anyone remember the reason for making sNaNs unhashable in the first place. I recall there was a discussion about this, but can't remember which issue. -- ___ Python tracker

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, now I remember: making sNaNs hashable has the potential to introduce seemingly random exceptions with set and dict operations. The logic went something like: (1) if sNaNs are hashable, you can put them in dicts, (2) operations on

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: Got a test case that demonstrates a failure? Looks like it works to me... $ uname -ip sparc SUNW,Sun-Fire-280R $ python -c 'import sys; print sys.byteorder' big $ python -c 'import sha; print sha.new(open(test, rb).read()).hexdigest()'

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2010-11-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: +1 on make it identical to multiprossing.Queue. Since the documentation said: multiprocessing.dummy replicates the API of multiprocessing but is no more than a wrapper around the threading module. Does the word replicates implies that

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Something is definietly weird on the PS3. I´ll give more concrete data soon. (and yes, I may have misread the code) -- ___ Python tracker rep...@bugs.python.org

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: If I'm not mistaken, signaling NaNs are only created when the user explicitly initializes a variable. I see this as direct request to raise an exception whenever the variable is accessed in a way that changes the outcome of the program:

  1   2   >