[issue16530] documentation of os.wait3

2012-11-22 Thread George Yoshida
New submission from George Yoshida: Documentation defines os.wait3 function as : os.wait3([options]) but, this argument is required(no default options are set), so os.wait3(options) is the correct definition. http://docs.python.org/3.3/library/os.html#os.wait3 -- assignee: docs

[issue16371] typo in ctypes

2012-10-31 Thread George Yoshida
New submission from George Yoshida: In the following sentence: http://docs.python.org/3.3/library/ctypes.html 16.17.1.19. Surprises There are some edges in ctypes where you may be expect something else than what actually happens. you may be expect should read you may expect

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: Under 2.6, there's another failure: As for 2.6/2.7 issues, changing 'assertListEqual' to 'assertEqual' should suffice. -- keywords: +patch nosy: +quiver Added file: http://bugs.python.org/file18496/2.6.diff

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: test_initgroups fails only if the test is invoked by a root and the user is assigned to only one group. If I understand test_initgroups correctly, it (1)looks for an unused gid, (2)inits process user's group with that gid, (3)checks

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Removed file: http://bugs.python.org/file18498/test_setgroups.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Added file: http://bugs.python.org/file18499/test_setgroups.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: FAIL: test_setgroups (test.test_posix.PosixGroupsTester) -- Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/test/test_posix.py, line 428

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Added file: http://bugs.python.org/file18500/py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581

[issue5744] multiprocessing.managers.BaseManager.connect example typos

2009-04-12 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: The example ... has *2* typos I guess the reporter wants to point out - extra parenthesis(fixed in r71544) - closing quote is missing for authkey argument -- nosy: +quiver status: closed - open

[issue5344] typo in what's new in 2.6

2009-02-21 Thread George Yoshida
New submission from George Yoshida qui...@users.sourceforge.net: In What's new in 2.6 PEP 343 section, the following sentence lacks a closing parenthesis: The expression is evaluated, and it should result in an object that supports the context management protocol (that is, has __enter__

[issue4734] broken link for 2.5.3 doc download

2008-12-23 Thread George Yoshida
New submission from George Yoshida qui...@users.sourceforge.net: Download page for 2.5.3 documantation is not ready. --- Go to Documentation top page: http://docs.python.org/ click Previous versions click Python 2.5.3 click Download all these documents But this URL, http://www.python.org

Re: How do you do this in python?

2005-11-04 Thread George Yoshida
[EMAIL PROTECTED] wrote: Pass your script to Perl via standard input: echo print 'Hello, world' | perl - $ echo print 'hello, world' | python - hello, world Cheers, -- george -- http://mail.python.org/mailman/listinfo/python-list

Re: Help sorting a list by file extension

2005-08-11 Thread George Yoshida
Bengt Richter wrote: [name for dec,name in sorted((int(nm.split('.')[1]),nm) for nm in namelist)] ['test.1', 'test.2', 'test.3', 'test.4', 'test.10', 'test.15', 'test.20'] Giving a key argument to sorted will make it simpler:: sorted(namelist, key=lambda x:int(x.rsplit('.')[-1])) -- george

Re: couple of new python articles on onlamp

2005-06-03 Thread George Yoshida
Kongulo(google crawling tool) seems to be using your App, py2exe. Great work, Thomas! Thomas Heller wrote: Jeremy Jones [EMAIL PROTECTED] writes: I've got a couple of new articles on ONLamp: Writing Google Desktop Search Plugins http://www.onlamp.com/pub/a/python/2005/06/01/kongulo.html

Re: Shift-JIS to UTF-8 conversion

2005-05-20 Thread George Yoshida
PyTJ wrote: I need to convert a Japanese Shift-JIS CSV file to Unicode UTF-8. My machine is a Windows 98 english computer with Python 2.3.4 Any hints?. First, you need to install codecs to support japanese encodings. Python 2.3.* does not support SJIS by default. I'll give you two

Re: RFC 2822 format date printing function in python

2005-05-06 Thread George Yoshida
praba kar wrote: In Php we can print RFC 2822 formatted date by date('r') with parameter r. Then it will print the below format date. Thu, 7 Apr 2005 01:46:36 -0300. I want to print same RFC 2822 format in python. Is it possible in python? . If possible kindly mention the

Re: Using wildcards...

2005-05-02 Thread George Yoshida
Harlin Seritt wrote: {1:1} Random text here. {1:2} More text here. and so on. Of course the {*} can be of any length, so I can't just do .split() based on the length of the bracket text. What I would like to do is to .split() using something akin to this: textdata.split('{*}') # The '*'

Re: Python interpreter error: unsupported operand type(s) for -: 'tuple' and 'int'

2005-03-29 Thread George Yoshida
Rakesh wrote: To quote a much smaller trimmed-down example, here is how it looks like: ## --- # Entry Point to the whole program ## --- def main(): mylist = GenerateList() minnumber =

Re: interactive execution

2005-02-08 Thread George Yoshida
Jive Dadson wrote: I've got some code that compiles some text and then executes it. When the string is print 'Hello', it prints Hello. I get no exception when I compile and execute foo = 555. If I then compile and exec print foo, I get a name error. The variable foo is undefined. My assumption

Re: Proccess termination

2005-01-28 Thread George Yoshida
alexrait1 wrote: I use popen.popen2 or popen.popen3 to start a new process and read from it's stdout/ write to it's stdin. But I need a way to know when a process terminates. Do you know about a library that provides these tools other then the standard os module... or should I use it otherwise?