cx_Oracle 5.1.2

2012-07-07 Thread Anthony Tuininga
What is cx_Oracle? cx_Oracle is a Python extension module that allows access to Oracle and conforms to the Python database API 2.0 specifications with a few exceptions. Where do I get it? http://cx-oracle.sourceforge.net What's new? 1) Added support for LONG_UNICODE which is a type used to

[RELEASE] py-sanction 0.1-alpha

2012-07-07 Thread Demian Brecht
py-sanction is an OAuth2 lean client library that can be used with a number of OAuth2 providers (currently *lightly* tested with Facebook, Google and Foursquare). Looking for feedback/bug reports before declaring beta/release. Current version is also available on PyPI.

Stochastic programming and optimization addon for FuncDesigner

2012-07-07 Thread dmitrey
hi all, you may be interested in stochastic programming and optimization with free Python module FuncDesigner ( http://openopt.org/FuncDesigner ). We have wrote Stochastic addon for FuncDesigner ( http://openopt.org/StochasticProgramming ), but (at least for several years) it will be

[RELEASE] sanction 0.1.2 - dead easy OAuth2 client

2012-07-07 Thread Demian Brecht
sanction is a lightweight, dead simple client implementation of the OAuth2 protocol. The major goals of the library are: Support multiple providers -- Most providers have varying levels of diversion from the official spec. The goal with this library is to either handle

why greenlet, gevent or the stackless are needed?

2012-07-07 Thread self.python
(I'm very new to this coroutine part so It's not supposed to attack these modules, just I don't know the differences) atfer version 2.5, python officially support coroutine with yield. and then, why greenlet, gevent, Stackless python are still useful? it there somthing that yield can't do or

Re: What’s the differences between these two pieces of code ?

2012-07-07 Thread Steven D'Aprano
On Fri, 06 Jul 2012 21:56:35 -0700, iMath wrote: What’s the differences between these two pieces of code ? Have you tried it? What do you see? Obviously the difference is that the second piece calls print() at the end, and the first does not. Since the for-loops are identical, we can

Re: why greenlet, gevent or the stackless are needed?

2012-07-07 Thread Devin Jeanpierre
On Sat, Jul 7, 2012 at 3:09 AM, self.python howmuchisto...@gmail.com wrote: it there somthing that yield can't do or just it is easier or powerful? couroutine-like generators can't give up control flow unless they are the top level function handled by the coroutine controller thing. For

Re: why greenlet, gevent or the stackless are needed?

2012-07-07 Thread self.python
r 2012년 7월 7일 토요일 오후 4시 33분 26초 UTC+9, Devin Jeanpierre 님의 말: On Sat, Jul 7, 2012 at 3:09 AM, self.python howmuchisto...@gmail.com wrote: it there somthing that yield can't do or just it is easier or powerful? couroutine-like generators can't give up control flow unless they are the top

Re: Which way is best to execute a Python script in Excel?

2012-07-07 Thread Maurizio Spadaccino
Thanks again Emile, I'll try out some examples. I found this one: http://showmedo.com/videotutorials/video?name=2190050fromSeriesID=219 quite enlightning. One last doubt is: say the python code gets used by more Excel Users (different pc), can I include in some way a dinamic generation of the

Re: Which way is best to execute a Python script in Excel?

2012-07-07 Thread Thomas Jollans
On 07/07/2012 11:05 AM, Maurizio Spadaccino wrote: Thanks again Emile, I'll try out some examples. I found this one: http://showmedo.com/videotutorials/video?name=2190050fromSeriesID=219 quite enlightning. One last doubt is: say the python code gets used by more Excel Users (different pc),

Re: PyEval_SetProfile usage ?

2012-07-07 Thread Thomas Jollans
On 07/06/2012 11:40 PM, Salman Malik wrote: Hi All, I have used the Python's C-API to call some Python code in my c code and now I want to know how much time does my Python part of the program takes. I came across the PyEval_SetProfile API and am not sure how to use it. Do I need to write

Deditor 0.4.0

2012-07-07 Thread Kruptein
Hey I released a new version of my python-focused text-editor. you can download it at http://launchpad.net/deditor What is it? Deditor is aimed to be a text-editor which can be used as a basic text-editor as gedit or with the right plugins become a full-feature ide. I focus on making it a python

Re: git_revision issues with scipy/numpy/matplotlib

2012-07-07 Thread Hans Mulder
On 7/07/12 07:47:56, Stephen Webb wrote: I installed py27-numpy / scipy / matplotlib using macports, and it ran without failing. When I run Python I get the following error: $ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python That's a python from python.org,

Re: IDLE won't wrap lines of text

2012-07-07 Thread kwame . asamoah . tekyi
i think i understand the question... see when u doing django and u have use the views.py to respond to request in html form,,, its hard to wrap the html codes in idle.. On Sunday, February 20, 2011 11:54:36 PM UTC, Terry Reedy wrote: On 2/19/2011 6:56 PM, Richard D. Moores wrote: Vista

select module missing/corrupt

2012-07-07 Thread John Pote
We are using a virtual web server running some version of Unix. It has Python versions 2.4,2.6 and 3.1 pre-installed. (BTW the intention is to use Python for a CGI script.) When my script imports subprocess I get the traceback File /usr/lib/python2.6/subprocess.py, line 427, in module

Re: git_revision issues with scipy/numpy/matplotlib

2012-07-07 Thread Ousmane Wilane
H == Hans Mulder han...@xs4all.nl writes: H Or you can explicitly type the full path of the python you want. H Or you can define aliases, for example: H alias apple_python=/usr/bin/python alias H macport_python=/opt/local/bin/python H

Immediate Hiring a Python /Django in NJ. Main skills should be Python . knowledge of java / c++. More technologies are a plus.

2012-07-07 Thread pavan
Dear Candidate. Hope you are having a great day! We have an opportunity for you . We trust that your knowledge, skills and experience will be among our most valuable assets .Please let us know would you be interested for this job opening. If you are interested in pursuing this

Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Andrew D'Angelo
Hi, I've been writing an IRC chatbot that an relay messages it recieves as an SMS. As it stands, I can retrieve and parse SMSs from Google Voice perfectly, and print them to the console. The problem lies in actually posting the message to the IRC channel. Since the SMS checker runs in a thread

Re: Which way is best to execute a Python script in Excel?

2012-07-07 Thread Emile van Sebille
On 7/7/2012 2:05 AM Maurizio Spadaccino said... Thanks again Emile, I'll try out some examples. I found this one: http://showmedo.com/videotutorials/video?name=2190050fromSeriesID=219 quite enlightning. One last doubt is: say the python code gets used by more Excel Users (different pc), can I

Re: git_revision issues with scipy/numpy/matplotlib

2012-07-07 Thread Hans Mulder
On 7/07/12 14:09:56, Ousmane Wilane wrote: H == Hans Mulder han...@xs4all.nl writes: H Or you can explicitly type the full path of the python you want. H Or you can define aliases, for example: H alias apple_python=/usr/bin/python alias H

Re: select module missing/corrupt

2012-07-07 Thread Emile van Sebille
On 7/7/2012 5:03 AM John Pote said... We are using a virtual web server running some version of Unix. It has Python versions 2.4,2.6 and 3.1 pre-installed. (BTW the intention is to use Python for a CGI script.) When my script imports subprocess I get the traceback File

Re: why greenlet, gevent or the stackless are needed?

2012-07-07 Thread Damjan
On 07.07.2012 09:09, self.python wrote: (I'm very new to this coroutine part so It's not supposed to attack these modules, just I don't know the differences) atfer version 2.5, python officially support coroutine with yield. and then, why greenlet, gevent, Stackless python are still useful? it

Re: git_revision issues with scipy/numpy/matplotlib

2012-07-07 Thread Stephen Webb
I think the easiest thing to do would be to remove the python.org Python entirely, kill it from the path (which I've already done), and install directly a MacPorts version of Python. Any caveats or warnings about getting rid of the /Library/Frameworks/Python directory? On Jul 7, 2012, at

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Thomas Jollans
On 07/08/2012 12:55 PM, Andrew D'Angelo wrote: Please set your clock to the correct date and time. (If it would help, the full code can be seen here: http://lickitung.it.cx/exe/bot/bot.py): No, it can't. def sendPrivateMessage(channel, message):#private message send function global

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Andrew D'Angelo
Thomas Jollans t...@jollybox.de wrote in message news:mailman.1895.1341677582.4697.python-l...@python.org... On 07/08/2012 12:55 PM, Andrew D'Angelo wrote: Please set your clock to the correct date and time. My BIOS battery has died and I haven't gotten a chance to replace it. Made a

something go wrongly

2012-07-07 Thread levi nie
my code: aList=[1,2,3,4,5,6,7,8,9,10] xList=[1,2,3] print now aList is,aList.extend(xList) output: now aList is None what i want is [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3] -- http://mail.python.org/mailman/listinfo/python-list

Re: something go wrongly

2012-07-07 Thread Chris Rebert
On Sat, Jul 7, 2012 at 10:23 AM, levi nie levinie...@gmail.com wrote: my code: aList=[1,2,3,4,5,6,7,8,9,10] xList=[1,2,3] print now aList is,aList.extend(xList) output: now aList is None what i want is [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3] See http://stackoverflow.com/a/1682601

Re: something go wrongly

2012-07-07 Thread levi nie
Thanks, Such methods return None to emphasize that they do not create new lists. i got it. 2012/7/8 Chris Rebert c...@rebertia.com On Sat, Jul 7, 2012 at 10:23 AM, levi nie levinie...@gmail.com wrote: my code: aList=[1,2,3,4,5,6,7,8,9,10] xList=[1,2,3] print now aList

RE: PyEval_SetProfile usage ?

2012-07-07 Thread Salman Malik
Thanks Thomas! I will try the timer code that you provided. I have tried profiling with just wrapping the python code with cprofiler's runctx but the problem is that my python code is sort of a packet parser and is called for each packet, but when I see the profiled results it appears that

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread John Nagle
On 7/8/2012 3:55 AM, Andrew D'Angelo wrote: Hi, I've been writing an IRC chatbot that an relay messages it receives as an SMS. We have no idea what IRC module you're using. As it stands, I can retrieve and parse SMSs from Google Voice perfectly The Google Voice code you have probably

ANN: Celery 3.0 (chiastic slide) released!

2012-07-07 Thread Ask Solem
=== Celery 3.0 (Chiastic Slide) Released! === Celery is a simple, flexible and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a

Re: ANN: Celery 3.0 (chiastic slide) released!

2012-07-07 Thread Rotwang
On 07/07/2012 19:26, Ask Solem wrote: === Celery 3.0 (Chiastic Slide) Released! === Does this have anything to do with the Autechre album? -- I have made a thing that superficially resembles music:

Re: Discussion on some Code Issues

2012-07-07 Thread subhabangalore
On Thursday, July 5, 2012 4:51:46 AM UTC+5:30, (unknown) wrote: Dear Group, I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to discuss some coding issues. If any one of this learned room can shower some light I would be helpful enough. I got to code a bunch of

how to compile pygtk in python2.7?

2012-07-07 Thread contro opinion
1.download pygtk 2.cd /home/tiger/pygtk-2.24.0 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr 4. make 5. make install *tiger@ocean:~$ python2.7 Python 2.7.3 (default, Jul 1 2012, 14:13:18) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import gtk

Re: how to compile pygtk in python2.7?

2012-07-07 Thread Benjamin Kaplan
On Sat, Jul 7, 2012 at 9:47 PM, contro opinion contropin...@gmail.com wrote: 1.download pygtk 2.cd /home/tiger/pygtk-2.24.0 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr 4. make 5. make install tiger@ocean:~$ python2.7 Python 2.7.3 (default, Jul 1 2012, 14:13:18) [GCC 4.4.5]

Re: Discussion on some Code Issues

2012-07-07 Thread subhabangalore
On Sunday, July 8, 2012 2:21:14 AM UTC+5:30, Dennis Lee Bieber wrote: On Sat, 7 Jul 2012 12:54:16 -0700 (PDT), subhabangal...@gmail.com declaimed the following in gmane.comp.python.general: But I am bit intrigued with another question, suppose I say:

Re: how to compile pygtk in python2.7?

2012-07-07 Thread Chris Angelico
On Sun, Jul 8, 2012 at 2:47 PM, contro opinion contropin...@gmail.com wrote: 3.PYTHON=/usr/bin/python2.7 ./configure --prefix=/usr 4. make 5. make install What happened when you typed these commands? Were there failure messages? As Benjamine suggested, do you need to become root to install?

[issue15270] Economy of Expression section outdated

2012-07-07 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: The Economy of Expression section of the Dev Guide's Documenting Python-- http://docs.python.org/devguide/documenting.html#economy-of-expression says, The documentation for super() is an example of where a good deal of information

[issue15246] Line coverage for collectionts.abc.Set

2012-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15246 ___ ___

[issue15265] random.sample() docs unclear on k len(population)

2012-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15265 ___

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși io...@artarisi.eu added the comment: I'm working on this right now as part of EuroPython's CPython sprint. -- nosy: +mapleoin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15125

[issue12907] Update test coverage devguide page

2012-07-07 Thread Dougal Matthews
Changes by Dougal Matthews douga...@gmail.com: -- nosy: +d0ugal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12907 ___ ___ Python-bugs-list

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2012-07-07 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: So, how to move this further? In #13425 Petri proposes 4 alternatives, copying them here: 1) Document the function to make it officially part of the public API 2) Rename and move the function to http.server 3) Leave it undocumented and

[issue11027] Implement sectionxform in configparser

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11027 ___ ___

[issue1410680] Add 'surgical editing' to ConfigParser

2012-07-07 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1410680 ___ ___

[issue12178] csv writer doesn't escape escapechar

2012-07-07 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12178 ___ ___ Python-bugs-list

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Ionuț Arțăriși
New submission from Ionuț Arțăriși io...@artarisi.eu: To reproduce: import argparse [74536 refs] parser = argparse.ArgumentParser() [74809 refs] parser.add_argument(foo) parser.add_argument(foo) parser.parse_args([bar]) usage: ipython [-h] foo foo ipython: error: too few arguments An

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I don't see a valid use case to support - in the name of the positional argument. IMHO, it should raise an error (probably a ValueError) for the add_argument in this case ... Or we keep it as-is and close as wont-fix: if the op

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 16ff4889a858 by Nick Coghlan in branch 'default': Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected http://hg.python.org/cpython/rev/16ff4889a858

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: There's actually one semantic change in that last patch: IPv4Address (et al) will now accept leading zeroes in those cases where they're *not* ambiguous (i.e. values less than 8, which have identical representations in both decimal and octal

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Also, I noted the provisional API status in the NEWS message, but I wonder if it would make more sense to leave that kind of note for the commit messages. -- ___ Python tracker

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14241 ___ ___ Python-bugs-list mailing

[issue11908] Weird `slice.stop or sys.maxint`

2012-07-07 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: The attached patch fixes this -- keywords: +patch nosy: +bbrazil Added file: http://bugs.python.org/file26283/issue11908-islice-docs.patch ___ Python tracker rep...@bugs.python.org

[issue15271] argparse: repeatedly specifying the same argument ignores the previous ones

2012-07-07 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Confirmed. It should probably raise an ArgumentError like this one. http://docs.python.org/library/argparse.html#conflict-handler -- components: +Library (Lib) nosy: +flox stage: - needs patch versions: +Python 3.3

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-07-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14241 ___ ___ Python-bugs-list mailing

[issue15270] Economy of Expression section outdated

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The super() doc is also a good example of unreadable jargon (dynamic execution environment ??). Nowhere is it obvious to a beginner what super() is *practically* used for. -- assignee: - docs@python components: +Documentation nosy:

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: If we're worrying about undefined behaviour, it looks like recent optimizations have *introduced* new undefined behaviour in the form of strict aliasing violations. E.g., from ascii_decode: unsigned long value = *(const unsigned long

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This should really be fixed; compilers are known to make optimizations based on the assumption that this sort of undefined behaviour doesn't occur. Doesn't the compiler have all the necessary information here? It's not like a subroutine is

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: (also, I'm not sure what optimization it could actually make) Me neither, but it doesn't seem safe to assume that no compiler will take advantage of this. I don't want to start guessing what compilers might or might not do; it would be

[issue11176] give more meaningful argument names in argparse documentation

2012-07-07 Thread Greg Roodt
Greg Roodt gro...@gmail.com added the comment: Is this still an issue? If so, I've created a simpler first example as suggested below. If we decide these docs still need a bit more work, I can also continue to provide better examples than the foo bar ones. -- keywords: +patch nosy:

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-07-07 Thread Dougal Matthews
Changes by Dougal Matthews douga...@gmail.com: -- nosy: +d0ugal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13498 ___ ___ Python-bugs-list

[issue15265] random.sample() docs unclear on k len(population)

2012-07-07 Thread Eugenio Minardi
Eugenio Minardi eugenio.mina...@gmail.com added the comment: Added the related line to the documentation describing when the exception is raised. -- keywords: +patch nosy: +kmox83 Added file: http://bugs.python.org/file26285/issue15265-fix-docs.patch

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: N.B. This could probably be fixed without affecting performance by using the usual union trick. (IIUC, that trick was technically still undefined behaviour for a while, but was eventually made legal by C99 + TC3.) As far as I know there

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: N.B. This could probably be fixed without affecting performance by using the usual union trick. How would it work? We would have to add various unions to the PyUnicode_Object definition? -- ___

[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-07 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The pkgutil import emulation is insane and permits modules identifiers to contain paths. Identified in #15230 (reporting some very surprising behaviour from runpy.run_module). -- messages: 164806 nosy: brett.cannon, ncoghlan

[issue15130] remove redundant paragraph in socket howto

2012-07-07 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Issue confirmed, patch looks good. -- nosy: +bbrazil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15130 ___

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-07 Thread Ionuț Arțăriși
Ionuț Arțăriși io...@artarisi.eu added the comment: I agree with Florent that this is maybe just a documentation issue, since the argument is accessible via getattr(). -- keywords: +patch Added file: http://bugs.python.org/file26286/argparse-argument-names.diff

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: How would it work? We would have to add various unions to the PyUnicode_Object definition? No, you'd just need a temporary union defined in unicodeobject.c that would look something like: typedef union { unsigned long v; char

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'll see if I can come up with a patch, and open a new issue for it (since I've successfully derailed this issue from its original topic) -- ___ Python tracker rep...@bugs.python.org

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5020afc0b7c9 by Florent Xicluna in branch '3.2': Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration. http://hg.python.org/cpython/rev/5020afc0b7c9 -- nosy: +python-dev

[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-07-07 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Thanks. Fixed in trunk too, changeset b4322ad1fec4 -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15094] Incorrectly placed #endif in _tkinter.c.

2012-07-07 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Issue confirmed, patch looks good. -- nosy: +bbrazil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15094 ___

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I would add a simple note to the exceptions section: Note, when shell=True, OSError will be raised by the child only if the selected shell itself cannot be found. To determine if the shell failed to find the requested application, it is

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: My 4) actually meant that it should always return []. This is what it currently does, so it could be spelled out clearly in the code. IIRC, getallmatchingheaders() cannot be emulated one-to-one using get_all(), because it handles continuation

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Floris Bruynooghe
Floris Bruynooghe floris.bruynoo...@gmail.com added the comment: Attached in a patch for this, I've also changed the version to 3.4 since this is a feature and therefore probably too late to go in 3.3. Please let me know if anything is inadequate. -- keywords: +patch versions:

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Firstly, I think you've identified a real bug with __package__ not being set correctly when using runpy.run_path (and I have updated this issue title accordingly). I have also created a separate bug report (#15272) for the bizarre behaviour

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: If we're worrying about undefined behaviour, it looks like recent optimizations have *introduced* new undefined behaviour in the form of strict aliasing violations. E.g., from ascii_decode: unsigned long value = *(const

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8881 ___

[issue15183] it should be made clear that the statement in the --setup option and the setup kw arg aren't included in the count

2012-07-07 Thread Greg Roodt
Greg Roodt gro...@gmail.com added the comment: Confirmed that the setup statement is correctly excluded from the overall timed run. I've updated the docstring and rst to make this clearer. -- keywords: +patch nosy: +groodt Added file:

[issue8264] hasattr doesn't show private (double underscore) attributes exist

2012-07-07 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: Attached a patch that adds a note for getattr and setattr. hasattr is documented in terms of getattr so I would say it's not needed there. I don't know if the interaction with private attributes is confusing enough that it's worth

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I don't see what the undefined behavior. Can you specify exactly the item of the Standard, in which it is mentioned? It's C99 section 6.5, paragraph 7: An object shall have its stored value accessed only by an lvalue expression that has

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15230 ___ ___ Python-bugs-list

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: You may also have identified a bug with pkgutil's import emulation failing to clean up sys.modules correctly when an import fails. -- ___ Python tracker rep...@bugs.python.org

[issue15230] runpy.run_path doesn't set __package__ correctly

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sorry, that's not accurate - you have enough code in b.py to make the relative import work by convincing the interpreter it's actually being done in a package. So what you're seeing in that regard is the fact that runpy is not any kind of

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset af4ae710daf3 by Nick Coghlan in branch 'default': Issue 14814: Make the ipaddress code easier to follow by using newer language features (patch by Serhiy Storchaka) http://hg.python.org/cpython/rev/af4ae710daf3

[issue14290] Importing script as module causes ImportError with pickle.load

2012-07-07 Thread Floris Bruynooghe
Floris Bruynooghe floris.bruynoo...@gmail.com added the comment: Hi, I think this is a usage error and if not you should try to provide a test case with both files for this. Pickle needs to be able to import the module which contains the classes by the same name as the original module. That

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: The CGIHTTPRequestHandler fix and test would be the best thing to start with, though, as it's not related to the eventual fate of getallmatchingheaders(). -- stage: - needs patch ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Many of Serhiy's tweaks were also micro-optimisations, but I committed them mainly because I found them easier to read. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: I've tested this on head, and the issue appears to be buggy ftp code in python. From the attached tcpdump for fetching delegated-ripencc-20120706: 12:57:19.933607 IP myhost.39627 ftp.ripe.net.ftp: Flags [.], ack 511, win 115, options

[issue15222] mailbox.mbox writes without empty line after each message

2012-07-07 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: MDAs blindly write their message to the end of the user's mail spool file. So, if there's no newline at the end, the mailbox gets corrupted (the new message is joined with the previous one). I tested with Postfix, but this probably happens for

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d03dbc324b60 by Nick Coghlan in branch 'default': Issue 14814: Explain how to get more error detail in the ipaddress tutorial, and tweak the display for octet errors in IPv4 (noticed the formatting problem when

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002 ___ ___ Python-bugs-list

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: Tools/parser/test_unparse.py is the regression test suite for Tools/unparse. To save time, if the cpu resource is not enabled it only test unparsing ten files. However it picks these files at random. It would be nice if the test was

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - keywords: +easy versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15273 ___

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ideally, it would pick a small number of files that are likely to fully exercise Python's grammar. So things like Lib/test/test_grammar might be useful to include. Or perhaps there should be a Python file somewhere in Lib/test whose entire

[issue15002] urllib2 does not download 4 MB file completely using ftp

2012-07-07 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: More particularly, the ftpwrapper's ftp member is being GCed sometime after FtpHandler.ftp_open returns. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15002

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 86d3b4067f74 by Nick Coghlan in branch 'default': Issue 14814: Further clean ups to the ipaddress tutorial http://hg.python.org/cpython/rev/86d3b4067f74 -- ___ Python

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d69f95e57792 by Jesus Cea in branch 'default': Cope with OSs lying - #10142: Support for SEEK_HOLE/SEEK_DATA http://hg.python.org/cpython/rev/d69f95e57792 -- ___ Python

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2012-07-07 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: The same happens on OpenSUSE 12.1 so Python can't be fully built there which is a bit of a shame. OpenSUSE uses this patch for their packages, but that would break other distributions so it's not a good solution: -#include panel.h

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-07 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Thanks for the head-up, Antoine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___

  1   2   3   >