ANN: Intro+Intermediate Python course, SF, May 24-26

2011-02-26 Thread wesley chun
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May

Proxy to open blocked sites

2011-02-26 Thread Ahmed Ragab
Proxy to open blocked sites http://ppropx.4mtm.net OR http://pronet.4mtm.net -- http://mail.python.org/mailman/listinfo/python-list

Re: getpass and IDEs

2011-02-26 Thread Nobody
On Fri, 25 Feb 2011 11:50:35 -0500, Andrew wrote: I find that calling getpass produces a warning noting that it can't suppress output, if I'm using idle, wingide, or a few others. If I'm running from the console it works fine, but then I can't make use of ide-integrated debugging. I know

Re: py3k: converting int to bytes

2011-02-26 Thread J. Gerlach
Am 24.02.2011 17:19, schrieb s...@uce.gov: Is there a better way to convert int to bytes then going through strings: x=5 str(x).encode() Thanks. bytes([8]) b'\x08' seems more straight forward... -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k: converting int to bytes

2011-02-26 Thread J. Gerlach
Am 26.02.2011 12:26, schrieb J. Gerlach: Am 24.02.2011 17:19, schrieb s...@uce.gov: Is there a better way to convert int to bytes then going through strings: x=5 str(x).encode() Thanks. bytes([8]) b'\x08' seems more straight forward... ... but it gives a different result. I

backwards-compatibility

2011-02-26 Thread Jason Swails
Hello, I have a question I was having a difficult time finding with a quick google search, so I figured someone on here might know. For the sake of backwards compatibility (and supporting systems whose default python is OLD), I'd like to rewrite some code to be compliant with Pythons as old as

Re: py3k: datetime resolution / isoformat

2011-02-26 Thread yves
On 11-02-25 07:49 PM, Ned Deily wrote: datetime.datetime.now().replace(microsecond=0).isoformat() '2011-02-25T18:48:24' Ah, Thanks! -- Yves. http://www.SollerS.ca/ http://blog.zioup.org/

Re: parsing a file for analysis

2011-02-26 Thread Andrea Crotti
Il giorno 26/feb/2011, alle ore 06.45, Rita ha scritto: I have a large text (4GB) which I am parsing. I am reading the file to collect stats on certain items. My approach has been simple, for row in open(file): if INFO in row: line=row.split() user=line[0]

Re: parsing a file for analysis

2011-02-26 Thread Martin Gregorie
On Sat, 26 Feb 2011 16:29:54 +0100, Andrea Crotti wrote: Il giorno 26/feb/2011, alle ore 06.45, Rita ha scritto: I have a large text (4GB) which I am parsing. I am reading the file to collect stats on certain items. My approach has been simple, for row in open(file): if INFO in

Re: parsing a file for analysis

2011-02-26 Thread Rita
Thanks Andrea. I was thinking that too but I was wondering if there were any other clever ways of doing this. I also though, I can build a filesystem structure depending on the __time. So, for January 01, 2011. I would create /tmp/data/20110101/data . This way I can have a fast index of the data.

Re: backwards-compatibility

2011-02-26 Thread Benjamin Kaplan
On Sat, Feb 26, 2011 at 8:11 AM, Jason Swails jason.swa...@gmail.com wrote: Hello, I have a question I was having a difficult time finding with a quick google search, so I figured someone on here might know.  For the sake of backwards compatibility (and supporting systems whose default python

Re: parsing a file for analysis

2011-02-26 Thread Rita
Yes, Yes :-). I was using awk to do all of this. It does work but I find myself repeating reading the same data because awk does not support complex data structures. Plus the code is getting ugly. I was told about Orange (http://orange.biolab.si/). Does anyone have experience with it? On Sat,

Re: backwards-compatibility

2011-02-26 Thread Terry Reedy
On 2/26/2011 11:32 AM, Benjamin Kaplan wrote: On Sat, Feb 26, 2011 at 8:11 AM, Jason Swailsjason.swa...@gmail.com wrote: Hello, I have a question I was having a difficult time finding with a quick google search, so I figured someone on here might know. For the sake of backwards compatibility

come back and find python 3

2011-02-26 Thread pipehappy
Hi, all Just come back to use Python, but find something has changed in Python 3. Like package name is no longer with capitalized char for each word in the name; convenient print is removed. And I don't know why can someone inside explain to me about this. I think old package name is better for

Re: come back and find python 3

2011-02-26 Thread Emile van Sebille
On 2/26/2011 11:36 AM pipehappy said... Hi, all Just come back to use Python, but find something has changed in Python 3. Like package name is no longer with capitalized char for each word in the name; convenient print is removed. And I don't know why can someone inside explain to me about

Re: come back and find python 3

2011-02-26 Thread Westley Martínez
On Sat, 2011-02-26 at 11:36 -0800, pipehappy wrote: Hi, all Just come back to use Python, but find something has changed in Python 3. Like package name is no longer with capitalized char for each word in the name; convenient print is removed. And I don't know why can someone inside

Re: come back and find python 3

2011-02-26 Thread Terry Reedy
On 2/26/2011 2:36 PM, pipehappy wrote: To answer your questions, as I understand them. 1. Print was not removed, just changed to a function: a. gets rid of special-case hackish syntax like and trailing comma by using keyword args instead, becoming more flexible as a result; b. function can

Re: Suggestion Reqd for Designing a Website in Python

2011-02-26 Thread Ritesh Nadhani
I would look into Flask or Pyramid. Just my $0.02. On Fri, Feb 25, 2011 at 7:03 AM, Daniel Fetchinson fetchin...@googlemail.com wrote: I have developed one big Machine Learning software a Machine Translation system in Python. Now, I am thinking to make a User Interface of it and upload it in

Python getting stuck

2011-02-26 Thread Shanush Premathasarathan
Hi All, When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I am unable to use Python. Please Help as quick as possible!!! Thanks a lot. Kind Regards Big Python fan! Shanush -- http://mail.python.org/mailman/listinfo/python-list

Re: Python getting stuck

2011-02-26 Thread Corey Richardson
On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: Hi All, When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I am unable to use Python. Please Help as quick as possible!!! What OS? Are you using the standard interpreter? Are you using IDLE, bpython, etc? What

jQuery-like sliding container animations for Tkinter?

2011-02-26 Thread python
Any thoughts on the ability to implement jQuery-like sliding container animations in Tkinter? By jQuery animations I mean the smooth sliding effects one sees on many websites where containers slide in and out of visible view or smoothly shrink or grow? My working knowledge of Tkinter tells me

Re: jQuery-like sliding container animations for Tkinter?

2011-02-26 Thread Corey Richardson
On 02/26/2011 07:24 PM, pyt...@bdurham.com wrote: Any thoughts on the ability to implement jQuery-like sliding container animations in Tkinter? By jQuery animations I mean the smooth sliding effects one sees on many websites where containers slide in and out of visible view or smoothly shrink

Re: Python getting stuck

2011-02-26 Thread Dan Stromberg
On Sat, Feb 26, 2011 at 4:03 PM, Corey Richardson kb1...@aim.com wrote: On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: Hi All, When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I am unable to use Python. Please Help as quick as possible!!! What OS? Are

Executing js/ajax in a sandboxed environment

2011-02-26 Thread Rohan Malhotra
I need to parse a url for it's content in python. I want to execute all js of html page associated with the url and then parse for the content so that javascript induced changes in content are also present. I was wondering if there is a way to execute js associated in page in sandbox environment

Re: Python getting stuck

2011-02-26 Thread Westley Martínez
On Sat, 2011-02-26 at 17:10 -0800, Dan Stromberg wrote: On Sat, Feb 26, 2011 at 4:03 PM, Corey Richardson kb1...@aim.com wrote: On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: Hi All, When I use cut, copy, paste, and any keyboard shortcuts,

[ANN]VTD-XML 2.10

2011-02-26 Thread Jimmy
VTD-XML 2.10 is now released. It can be downloaded at https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/. This release includes a number of new features and enhancement. * The core API of VTD-XML has been expanded. Users can now perform cut/paste/insert on an empty element.

[issue11328] NESTED WHILE CYCLES ERROR

2011-02-26 Thread Alex
Alex alex.gay...@gmail.com added the comment: This is invalid, there's no bug. j doesn't get magically reinitialized to 0, in fact this code would do the same thing in any language I can think of. -- nosy: +alex ___ Python tracker

[issue11328] NESTED WHILE CYCLES ERROR

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11328 ___

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure why you use PyTuple_Size() and PyTuple_GetItem(). You should be able to do a first call to PyArg_ParseTuple() (using the S specifier to mandate a bytes object), and call PyErr_Clear() and fallback to the second PyArg_ParseTuple() if

[issue11172] Avoid '.' as runpath on AIX

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now backported as part of issue 941346. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - AIX shared library fix ___ Python tracker rep...@bugs.python.org

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Not sure that silencing errors from quit() is the right thing. Is there any reason? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9795

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Here is a simplified version. -- Added file: http://bugs.python.org/file20904/sethostname_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10866

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I think you're right. I've committed the patch to 3.3 in r88639 after having added a minimal test. Is there a full name I should credit? Thank you for contributing! -- assignee: theller - resolution: - fixed stage: patch review -

[issue11318] Python 3.2 FAQ example code typo?

2011-02-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Understood. Now I get it. If you create an instance c of the class C (so c = C() ) and try to get the variable count from that class, then c.count is the same reference as C.count. Please make that clearer in the FAQ by saying If you

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Reopening and reverted the commit in r88640. The patch changes behaviour by turning the previous unrooted filename ('libc.so.6') into a full path ('/lib64/libc.so.6'). This breaks builds where multiple versions of a library are available and

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Juraj Ivancic
New submission from Juraj Ivancic juraj.ivan...@gmail.com: It seems that PyEval_InitThreads() can no longer be called before Py_Initialize(). I get a fatal error in PyThreadState_GET(). This contradicts the documentation http://docs.python.org/release/3.2/c-api/init.html#PyEval_InitThreads

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Hi Alexandre, I read your blog post, but I don't understand-- Why does bytecode need to be pickled in order to pickle live generators? I understand that the local variables need to be pickled, (and let's assume they're all pickleable,) and

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Given the way the new GIL works, I'm afraid it's not really possible to support this (it needs some thread-state to be available). Note that there is no reason, AFAIK, why you would want to call PyEval_InitThreads() before Py_Initialize().

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0018 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Python crashes when dereferencing 0x0018, which is NULL + 24

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-26 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- nosy: +sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11322 ___ ___

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: From the path names in the trace you appear to have a MacPorts Python 2.7 installed. For what it's worth, the standard library test_time works for me on OS X 10.6.6 with a current MacPorts 2.7.1 as well as a python.org 2.7.1. Exactly how did you try

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 11:12 ~/tmp $ python3 ~/usr/opt/py3k/lib/python3.3/test_zlib.py Bus error Your code snippet: 11:21 ~/tmp $ /usr/bin/time -lp python3 test.py posix.stat_result(st_mode=33184, st_ino=10066605, st_dev=234881025, st_nlink=1,

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Edoardo Spadolini
Edoardo Spadolini keri...@gmail.com added the comment: Not really, but putting something in your inheritance lattice only to mark a class as providing an interface just doesn't seem right to me. -- ___ Python tracker rep...@bugs.python.org

[issue10516] Add list.clear() and list.copy()

2011-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch adding copy() and clear() to bytearrays, with tests and doc. I didn't add the methods to MutableSequence because I have a doubt about it - in particular which exception get raised by .pop if it's empty. Curiously, lists and

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: True with the following: import time time.asctime((2011, 2, 26, -1, 0, 0, 0, 0, 0)) You'll get a segfault. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread akira
New submission from akira 4kir4...@gmail.com: Since Python 3.2 logging package doesn't support formatting flags for the `asctime` keyword, but the documentation uses them. For example in Doc/library/logging.rst: FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s' should be

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: docs@python - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11330 ___

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327 ___ ___ Python-bugs-list

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: $ /opt/local/bin/python2.7 Python 2.7.1 (r271:86832, Dec 31 2010, 11:59:23) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import time time.asctime((2011, 2, 26, -1, 0, 0, 0, 0, 0)) 'Mon

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This explains why you don't get a segfault: your libc is broken ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327 ___

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread akira
New submission from akira 4kir4...@gmail.com: The line with `LoggerAdapter` is not used in http://docs.python.org/dev/howto/logging-cookbook.html#using-filters-to-impart-contextual-information Here's a patch for Doc/howto/logging-cookbook.rst: doc-logging-cookbook-unused-line-r88640.patch

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: If it's broken, complain to Apple. $ otool -L $(/opt/local/bin/python2.7 -c 'import time;print(time.__file__)') /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so: /usr/lib/libSystem.B.dylib

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: People may use SystemError for other purposes, but the docs are pretty clear it is only for internal errors that indicate an interpreter bug: http://docs.python.org/dev/library/exceptions.html#SystemError Extension modules or an embedding

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- assignee: docs@python - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11331 ___

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Oliver Drake
New submission from Oliver Drake obdrak...@gmail.com: Purely a modification to test_logging.py with the focus being to increase coverage. coverage.py now measures 97% (when running test_logging.py by itself). I'm not sure if I've followed py-dev unit test conventions exactly, I've created

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I'll give you the same result again but with additional clock(), just for a heart's pleasure: clock(): 0.100958 , fstat(): posix.stat_result(st_mode=33184, st_ino=10075508, st_dev=234881025, st_nlink=1, st_uid=502, st_gid=20,

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: If it's broken, complain to Apple. Actually, I checked glibc's asctime, and it has the same behaviour. But the point is that asctime can return NULL. That still doesn't explain the OP's crash on OS X 10.6.6. Yes it does. If

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - vinay.sajip nosy: +brett.cannon, vinay.sajip stage: - patch review type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11332

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch including a check for PyObject_GetBuffer()'s return value, the missing declaration of HAVE_SETHOSTNAME in pyconfig.h.in, and a test for giving a bytes values to the function. -- Added file:

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: Currently instances of classes which inherit an ABC in collections.abc will have a __dict__. This can be a problem for example a tree-like data structure. It would make sense to inherit for example MutableMapping, but that would

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I updated my local svn checkout, and the code has been fixed recently: r87648 | alexander.belopolsky | 2011-01-02 15:48:22 -0500 (Sun, 02 Jan 2011) | 1 line Issue #8013: Fixed time.asctime segfault when OS's asctime fails

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: In what use-cases would you want to call MyABC.register() when defining a class instead of inheriting from MyABC? For example if you don't want to inherit a __dict__ for a tree-like data structure (see also issue11333). --

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Feb 25, 2011 at 03:43:06PM +, Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: r88586: Normalized the encoding names for Latin-1 and UTF-8 to 'latin-1' and 'utf-8' in the stdlib.

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-02-26 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Updated patch with extra tests. -- Added file: http://bugs.python.org/file20911/issue11256_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11256

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Raymond Hettinger wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If you agree, Raymond, I'll backport the patch. Yes. That will address Antoine's legitimate concern about making other backports

[issue11298] unittest discovery needs better explanation

2011-02-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: No, tests as top level modules work fine too. Importability is the only requirement. (Projects themselves are not typically packages but contain packages - so the wording needs to change slightly but I like the rest.) --

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It still fails under AMD64 OpenIndiana: == ERROR: test_offset_overflow (test.test_os.TestSendfile) --

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: (socket.error, EOFError) after quit() indicates that the socket is disconnected, in which case we should not raise any error (or at least, this is the approach we're using in ftplib) while all other NNTPError related errors are not

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11323 ___ ___

[issue11325] compilation warning with sendfile

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11325 ___ ___ Python-bugs-list

[issue11257] asyncore stores unnecessary object references

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Unless there's a way to automatically call close() when a dispatcher instance is no longer referenced (and I can't think of anything to do that) I'd say we better close this as rejected. --

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: What about Doc/whatsnew/3.3.rst? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___

[issue11333] Add empty __slots__ to collections.abc abstract base classes

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

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Real patch is the first hunk of attached file. Other 2 hunks are optimizations.. -- keywords: +patch Added file: http://bugs.python.org/file20912/z.patch ___ Python tracker rep...@bugs.python.org

[issue11082] ValueError: Content-Length should be specified

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, there was no entry in Misc/NEWS, so this was not in whatsnew/3.2.rst. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: Removed file: http://bugs.python.org/file20912/z.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What about Doc/whatsnew/3.3.rst? This is filled by Raymond (or other people) when the release nears. No need to care about it in regular commits. -- ___ Python tracker rep...@bugs.python.org

[issue11171] Python 2.7.1 does not start when ./configure is used with --prefix != --exec-prefix

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was unclear. distutils.sysconfig does not play a role in the startup of python anymore. My question was: does distutils.sysconfig._get_makefile_filename have the same bug as the one that was fixed in sysconfig._get_makefile_filename?

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, so the root cause is that sendfile() under Solaris can fail with EINVAL when the offset is past the end of file (but only on 64-bit builds, strangely :-)). Here is a patch, tested under Linux, 32-bit OpenSolaris and 64-bit OpenSolaris. It

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release32-maint (r88644). Support was reinstated - the docs weren't changed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python

[issue11085] expose _abcoll as collections.abc

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some missed doc changes. -- keywords: +patch Added file: http://bugs.python.org/file20914/collections.abc-in-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11085

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release32-maint (r88645), thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Shouldn’t there be a regression test for this? -- components: +Library (Lib) -Documentation nosy: +eric.araujo -docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11330

[issue10882] Add os.sendfile()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It seems we have a failure on Leopard: I think the issue is you request a 4096 transfer near the end of file, but there aren't that many bytes remaining. Apparently OS X then doesn't transfer anything and returns 0. Hint: 10485760. / 4096

[issue11071] What's New review comments

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The section about os.environb talks about unencoded bytes and unencoded environment variables instead of undecoded. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11071

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed in r88647. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: only first hunk is really the patch. 2 next hunks are optimizations. -- Added file: http://bugs.python.org/file20915/z.patch ___ Python tracker rep...@bugs.python.org

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: = ORIGINAL === $ ./qwe.py 10 read length: 10 read data: xx should read test. read: test $ ./qwe.py -10 read length: -10 read data: xx should read test. read: test = PATCHED === $ ./qwe.py 10 read

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: Added file: http://bugs.python.org/file20917/shorttest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Thanks for doing this, I appreciate the effort you've put into it. My comments: 1. Each test class ought to be independent, but they aren't - for example, if I comment out all of your test classes other than LoggerTest, it fails. 2. I try

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I fail to see the bug here. Python's getpass.py is mimicing the behavior of getpass.c

[issue9441] increase logging handlers test coverage

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into release32-maint (r88651). -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: There should, and I'm looking at some additional tests suggested for inclusion in #11332. I'll mark the issue as pending to remind me to ensure that the test gets added soon. -- status: closed - pending

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: No, I do not, for several reasons. First of all, this is not a change *from* previous behaviour, but a change *back to* previous behaviour. And sensible behaviour, too. Secondly, I have tested what getpass does on windows (Python 2.7.1

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The value of the instruction pointer depends on the byte-code. So it's not portable either. But, the bigger issue is the fact generator objects do not have names we can refer to, unlike top-level functions and classes which pickle

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Regression test added to py3k and release32-maint (r88654). I just had to modify an existing test case. -- status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: The patch looks good. Just to be clear, on my system running autoreconf adds the correct stuff to pyconfig.h.in Isn't it best to leave it up to the committer to generate configure and pyconfig.h.in, especially since different autoconf

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks good. Just to be clear, on my system running autoreconf adds the correct stuff to pyconfig.h.in Ah, strange. I used autoconf and it didn't... Isn't it best to leave it up to the committer to generate configure and

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Ah, strange. I used autoconf and it didn't... From the man page of autoreconf: Run `autoconf' (and `autoheader', `aclocal', `automake', `autopoint' (formerly `gettextize'), and `libtoolize' where appropriate) repeatedly to

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: +1. I've bumped into exactly this problem (https://github.com/DanielStutzbach/blist/issues/closed#issue/29) I'm not intimately familiar with how __slots__ works. Are there any drawbacks to adding an empty __slots__ to the ABCs?

  1   2   >