Re: Help please, why doesn't it show the next input?

2013-09-12 Thread William Bryant
Thanks everyone for helping but I did listen to you :3 Sorry. This is my code, it works, I know it's not the best way to do it and it's the long way round but it is one of my first programs ever and I'm happy with it:

Accessing class attribute

2013-09-12 Thread chandan kumar
Hi , I'm new to python ,please correct me if there is any thing wrong with the way accessing class attributes. Please see the below code .I have inherited confid in ExpectId class, changed self.print_msg to Hello. Now inherited confid in TestprintmsgID class.Now I wanted to print

Re: Accessing class attribute

2013-09-12 Thread Peter Otten
chandan kumar wrote: Hi , I'm new to python ,please correct me if there is any thing wrong with the way accessing class attributes. Please see the below code .I have inherited confid in ExpectId class, changed self.print_msg to Hello. Now inherited confid in TestprintmsgID class.Now

Re: Accessing class attribute

2013-09-12 Thread Peter Otten
Peter Otten wrote: chandan kumar wrote: Hi , I'm new to python ,please correct me if there is any thing wrong with the way accessing class attributes. Please see the below code .I have inherited confid in ExpectId class, changed self.print_msg to Hello. Now inherited confid in

Re: better and user friendly IDE recommended?

2013-09-12 Thread Joshua Landau
On 12 September 2013 00:44, Ben Finney ben+pyt...@benfinney.id.au wrote: mnish1...@gmail.com writes: My main advice: Avoid non-free (that is, proprietary) software for your development tools. Learning a set of development tools is a significant investment, and you should not tie that

Re: better and user friendly IDE recommended?

2013-09-12 Thread Ben Finney
Joshua Landau jos...@landau.ws writes: On 12 September 2013 00:44, Ben Finney ben+pyt...@benfinney.id.au wrote: mnish1...@gmail.com writes: My main advice: Avoid non-free (that is, proprietary) software for your development tools. Learning a set of development tools is a significant

Re: Please omit false legalese footers (was: Language design)

2013-09-12 Thread Skip Montanaro
More likely, JP Morgan's mail system added that footer to the message on the way out the virtual door. My recommendation would be to not post using your company email address. Get a free email address. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-12 Thread Oscar Benjamin
On 12 September 2013 07:04, William Bryant gogobe...@gmail.com wrote: Thanks everyone for helping but I did listen to you :3 Sorry. This is my code, it works, I know it's not the best way to do it and it's the long way round but it is one of my first programs ever and I'm happy with it: Hi

Re: Please omit false legalese footers (was: Language design)

2013-09-12 Thread Oscar Benjamin
On 12 September 2013 10:27, Skip Montanaro s...@pobox.com wrote: More likely, JP Morgan's mail system added that footer to the message on the way out the virtual door. My recommendation would be to not post using your company email address. Get a free email address. It wouldn't surprise me if

Pep8 plugin for visual studio

2013-09-12 Thread Chandru Rajendran
Hi all, I am new to python. Please give information about Pep8 style checker plugin for VS2012. Thanks in Advance, Chandru CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If

Re: better and user friendly IDE recommended?

2013-09-12 Thread Joshua Landau
On 12 September 2013 09:04, Ben Finney ben+pyt...@benfinney.id.au wrote: Joshua Landau jos...@landau.ws writes: On 12 September 2013 00:44, Ben Finney ben+pyt...@benfinney.id.au wrote: mnish1...@gmail.com writes: My main advice: Avoid non-free (that is, proprietary) software for your

Re: Accessing class attribute

2013-09-12 Thread Dave Angel
On 12/9/2013 02:15, chandan kumar wrote: Hi , I'm new to python Welcome. I hope you enjoy your time here, and that the language treats you as well as it's treated me. ,please correct me if there is any thing wrong with the way accessing class attributes. None of the following uses class

Re: Parsing an html line and pulling out only numbers that meet a certain criteria

2013-09-12 Thread Dave Angel
On 11/9/2013 23:03, Cory Mottice wrote: I am using line.rfind to parse a particular line of html code. For example, this is the line of html code I am parsing: strong class=temp79spandeg;/span/strongspan class=lowspanLo/span 56spandeg;/span/span and this is the code I use to split the

Re: better and user friendly IDE recommended?

2013-09-12 Thread Paul Pittlerson
On Wednesday, September 11, 2013 5:14:04 PM UTC+3, mnishpsyched wrote: Hey i am a programmer but new to python. Can anyone guide me in knowing which is a better IDE used to develop web related apps that connect to DB using python? If you are a programmer in the sense that you are a

Python Programmers requirement Exp 2 - 3 yrs

2013-09-12 Thread Mobi Esprits
Hi, We have python programmers requirement with an experience of 2 -3 yrs. Job location shall be bangalore. Interested candidates can send their resume to h...@mobiesprits.com Please do not forget to mention the experience in the subject line. Best Regards, Mobi Esprtis Software

Access to objects in a frame on a web page

2013-09-12 Thread Ddp Ludo
Hello, I am trying to program a robot which will allow me to test whether a default password has been changed on my intranet servers . And I 'm stuck since 2 days ... HTML structure of the page: HTML HEAD frameset frameset id=frmSet frame name=frameMain html

Re: better and user friendly IDE recommended?

2013-09-12 Thread Fabio Zadrozny
You'll probably get way too many answers (everyone has its own personal favorite). I suggest you check: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python and https://wiki.python.org/moin/IntegratedDevelopmentEnvironments, grab the ones you think are worth it, experiment with

ANN: Wing IDE 4.1.14 released

2013-09-12 Thread Wingware
Hi, Wingware has released version 4.1.14 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE provides a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring,

Re: Send alt key to subprocess.PIPE stdin

2013-09-12 Thread Wanderer
On Wednesday, September 11, 2013 4:23:57 PM UTC-4, Dave Angel wrote: On 11/9/2013 10:26, Wanderer wrote: How do I send the command 'Alt+D' to subprocess.PIPE? That's not a command, it's a keystroke combination. And without knowing what RSConfig.exe is looking to get its

Re: better and user friendly IDE recommended?

2013-09-12 Thread Wayne Werner
On Thu, 12 Sep 2013, Ben Finney wrote: Better to learn these once, in a single powerful tool that can be maintained independent of any one vendor for as long as its community is interested. And if you're a developer, even a community of one is enough ;) -W --

Re: Send alt key to subprocess.PIPE stdin

2013-09-12 Thread Chris Angelico
On Fri, Sep 13, 2013 at 12:06 AM, Wanderer wande...@dialup4less.com wrote: Thanks, I didn't know that. I thought there would be some \n \t kind of combination or a unicode string for all the key combinations on my keyboard. Unicode identifies every character, but keystrokes aren't characters.

Re: Language design

2013-09-12 Thread Nobody
On Wed, 11 Sep 2013 00:53:53 +, Steven D'Aprano wrote: and most routines that handle file names accept either text strings or bytes strings: I was going to say that just leaves environ and argv. But I see that os.environb was added in 3.2. Which just leaves argv. --

Re: Language design

2013-09-12 Thread Markus Rother
On 10.09.2013 08:09, Steven D'Aprano wrote: What design mistakes, traps or gotchas do you think Python has? Gotchas are not necessarily a bad thing, there may be good reasons for it, but they're surprising. I have one more: Dictionaries should iterate over their items instead of their keys.

Re: Language design

2013-09-12 Thread Ethan Furman
On 09/12/2013 10:51 AM, Markus Rother wrote: On 11.09.2013 23:15, Ethan Furman wrote: On 09/11/2013 01:41 PM, Markus Rother wrote: () == [] False But: bool(().__eq__([])) True This is not a trap, this is simply the wrong way to do it. The magic methods (aka

Re: Python GUI?

2013-09-12 Thread Dave Cook
On 2013-09-12, Michael Torrie torr...@gmail.com wrote: Not me. wxWidgets' event model is way too MFC-esque for me. Does it still use event numbers that you define? Shudder. You don't have to define IDs explicitly. That's been the case for a long time. Gtk and Qt's method of signals and

Re: print function and unwanted trailing space

2013-09-12 Thread Albert Hopkins
On Wed, Sep 11, 2013, at 07:36 AM, Wayne Werner wrote: On Sat, 31 Aug 2013, candide wrote: # - for i in range(5): print(i, end=' ') # - The last ' ' is unwanted print() # - Then why not define end='' instead? I think the

Re: Python GUI?

2013-09-12 Thread Jerry Hill
On Wed, Sep 11, 2013 at 4:55 PM, eamonn...@gmail.com wrote: Have you got anything to say on what one I should be using(excluding PyQT because it has a DD designer :( )? Is Tkinter really dead? Should I stick with wxPython? If that's a reason for excluding a GUI toolkit, you're in trouble.

Re: Expected an indented block

2013-09-12 Thread John Gordon
In eba80aa0-d13d-45ca-ba5e-f0006d772...@googlegroups.com altugozger...@gmail.com writes: Hey guys ! its my first topic and I'm gonna start with a problem :) Im totally beginner in Python and each time I try to run this program it gives me the error down below: http://imgur.com/ufUAMTs That

Re: Expected an indented block

2013-09-12 Thread Chris Angelico
On Fri, Sep 13, 2013 at 1:43 AM, altugozger...@gmail.com wrote: Hey guys ! its my first topic and I'm gonna start with a problem :) Im totally beginner in Python and each time I try to run this program it gives me the error down below: http://imgur.com/ufUAMTs I'm using Sublime Text,

Re: Language design

2013-09-12 Thread Neil Cerutti
On 2013-09-12, Markus Rother pyt...@markusrother.de wrote: On 10.09.2013 08:09, Steven D'Aprano wrote: What design mistakes, traps or gotchas do you think Python has? Gotchas are not necessarily a bad thing, there may be good reasons for it, but they're surprising. I have one more:

Re: Python GUI?

2013-09-12 Thread Ian Foote
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/09/13 21:55, eamonn...@gmail.com wrote: There are a few known GUI toolkits out there, and the main ones from what I can tell are: Tkinter -- Simple to use, but limited PyQT -- You have a GUI designer, so I'm not going to count that PyGTK

Re: Python GUI?

2013-09-12 Thread Benjamin Kaplan
On Sep 12, 2013 9:06 AM, eamonn...@gmail.com wrote: On Thursday, September 12, 2013 6:05:14 AM UTC+1, Michael Torrie wrote: On 09/11/2013 02:55 PM, eamonn...@gmail.com wrote: PyQT -- You have a GUI designer, so I'm not going to count that What do you mean? Gtk has a GUI designer too.

Re: Please omit false legalese footers (was: Language design)

2013-09-12 Thread Grant Edwards
On 2013-09-11, Ben Finney ben+pyt...@benfinney.id.au wrote: Prasad, Ramit ramit.pra...@jpmorgan.com.dmarc.invalid writes: This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of

Expected an indented block

2013-09-12 Thread altugozgercek
Hey guys ! its my first topic and I'm gonna start with a problem :) Im totally beginner in Python and each time I try to run this program it gives me the error down below: http://imgur.com/ufUAMTs I'm using Sublime Text, same problems occured in TextWrangler and in Vim too. I tried python3

Re: Language design

2013-09-12 Thread Neil Cerutti
On 2013-09-12, Markus Rother pyt...@markusrother.de wrote: On 11.09.2013 23:15, Ethan Furman wrote: On 09/11/2013 01:41 PM, Markus Rother wrote: () == [] False But: bool(().__eq__([])) True This is not a trap, this is simply the wrong way to do it. The magic

Re: better and user friendly IDE recommended?

2013-09-12 Thread Paul Rudin
Joshua Landau jos...@landau.ws writes: If the time learning a set of tools is enough to make the choice between tools, I suggest avoiding, say, Vim. That's a big if. If you expect to spend a lot of time editing text, code, etc. over the next few years then it's definitely learning at least

Re: better and user friendly IDE recommended?

2013-09-12 Thread Adrián Espinosa
El miércoles, 11 de septiembre de 2013 16:14:04 UTC+2, mnishpsyched escribió: Hey i am a programmer but new to python. Can anyone guide me in knowing which is a better IDE used to develop web related apps that connect to DB using python? Hi and welcome. I suggest you to use IntelliJ IDEA.

Re: Language design

2013-09-12 Thread Markus Rother
On 11.09.2013 23:15, Ethan Furman wrote: On 09/11/2013 01:41 PM, Markus Rother wrote: () == [] False But: bool(().__eq__([])) True This is not a trap, this is simply the wrong way to do it. The magic methods (aka dunder methods) are there for Python to call,

Re: Python GUI?

2013-09-12 Thread Dave Cook
On 2013-09-12, Dave Cook davec...@nowhere.net wrote: There's also a markup language available, enaml: http://docs.enthought.com/enaml/ I should have mentioned that it's *Python*-based markup, not an XML horrorshow. http://pyvideo.org/video/1231/enaml-a-framework-for-building-declarative-user

Re: Language design

2013-09-12 Thread Terry Reedy
On 9/12/2013 2:24 PM, Markus Rother wrote: Dictionaries should iterate over their items instead of their keys. Dictionaries *can* iterate by keys, values, or items. You would prefer that the default iteration be by items rather than keys. Looking forward to contrary opinions. When the

Re: Language design

2013-09-12 Thread Chris Angelico
On Fri, Sep 13, 2013 at 4:13 AM, Markus Rother pyt...@markusrother.de wrote: On 12.09.2013 01:27, Chris Angelico wrote: On Thu, Sep 12, 2013 at 6:41 AM, Markus Rother pyt...@markusrother.de wrote: 3. The default return value of methods is None instead of self. If it was self, it

Re: Python GUI?

2013-09-12 Thread Dave Cook
On 2013-09-12, Robert Kern robert.k...@gmail.com wrote: There is nothing forcing you to use the GUI designers if you don't want to. There's also a markup language available, enaml: http://docs.enthought.com/enaml/ Dave Cook -- https://mail.python.org/mailman/listinfo/python-list

Re: Language design

2013-09-12 Thread Ned Batchelder
On 9/12/13 2:24 PM, Markus Rother wrote: On 10.09.2013 08:09, Steven D'Aprano wrote: What design mistakes, traps or gotchas do you think Python has? Gotchas are not necessarily a bad thing, there may be good reasons for it, but they're surprising. I have one more: Dictionaries should iterate

Re: Python GUI?

2013-09-12 Thread Robert Kern
On 2013-09-12 17:03, eamonn...@gmail.com wrote: On Thursday, September 12, 2013 6:05:14 AM UTC+1, Michael Torrie wrote: On 09/11/2013 02:55 PM, eamonn...@gmail.com wrote: Possibly. I know Qt and Gtk both can flip the button orders, etc to look more native. And all good toolkits give you

ImportError: No module named Image

2013-09-12 Thread Trandang Bao
Dear Python.org, Recently, I have been studying OpenCV to detect and recognize faces using C++. In order to execute source code demonstration from the OpenCV website I need to run Python to crop image first. Unfortunately, the message error is 'ImportError: No module named Image' when I run the

Stripping characters from windows clipboard with win32clipboard from excel

2013-09-12 Thread stephen . boulet
I have an excel file. When I select cells, copy from excel, and then use win32clipboard to get the contents of the clipboard, I have a 131071 character string. When I save the file as a text file, and use the python 3.3 open command to read its contents, I only have 80684 characters. Excel

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-12 Thread Steven D'Aprano
On Thu, 12 Sep 2013 16:01:20 -0700, stephen.boulet wrote: I have an excel file. When I select cells, copy from excel, and then use win32clipboard to get the contents of the clipboard, I have a 131071 character string. How exactly are you using win32clipboard, and what exact result are you

Re: better and user friendly IDE recommended?

2013-09-12 Thread Veritatem Ignotam
Is this thread going to evolve into your classic vim vs. emacs, sweet! Also, Paul is completely right. V.I. On 09/12/2013 11:47 AM, Paul Rudin wrote: Joshua Landau jos...@landau.ws writes: If the time learning a set of tools is enough to make the choice between tools, I suggest avoiding,

ANN: Obelus 0.1 -- Asterisk AMI / AGI implementation

2013-09-12 Thread Antoine Pitrou
Hello, I'm pleased to announce the first release of Obelus, a MIT-licensed library to interact with Asterisk using the AMI and AGI protocols. This is version 0.1, and as such some APIs are a bit draftish and not guaranteed to be stable accross future releases. Also, documentation is far from

Re: Send alt key to subprocess.PIPE stdin

2013-09-12 Thread Nobody
On Fri, 13 Sep 2013 01:27:53 +1000, Chris Angelico wrote: That said, though: These sorts of keystrokes often can be represented with escape sequences (I just tried it in xterm and Alt-D came out as \e[d), Technically, that would be Meta-D (even if your Meta key has Alt printed on it).

Re: better and user friendly IDE recommended?

2013-09-12 Thread Westley Martínez
On Wednesday, September 11, 2013 7:14:04 AM UTC-7, mnishpsyched wrote: Hey i am a programmer but new to python. Can anyone guide me in knowing which is a better IDE used to develop web related apps that connect to DB using python? I use vim and idle. --

When i leave a LineEdit widget and run slot

2013-09-12 Thread Mohsen Pahlevanzadeh
Dear all, QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8(clicked(bool))), lambda: self.interfaceCodesConstructor.setFilterList(self,name,self.lineEdit.text())) I code pyqt, I have the following code: /// QtCore.QObject.connect(self.checkBox,

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-12 Thread stephen . boulet
Hi Steven. Here is my code: import win32clipboard, win32con def getclipboard(): win32clipboard.OpenClipboard() s = win32clipboard.GetClipboardData(win32con.CF_TEXT) win32clipboard.CloseClipboard() return s I use this helper function to grab the text on the clipboard and do

Re: ImportError: No module named Image

2013-09-12 Thread Jugurtha Hadjar
On 09/13/2013 12:31 AM, Trandang Bao wrote: Dear Python.org, I installed python-2.7.amd64 and downloaded PIL-1.1.7.win32-py2.7 to install Image library. However, the message error is 'Python version 2.7 required, which was not found in the registry'. One is a 32 bit installer, the other is a

Re: Python GUI?

2013-09-12 Thread eamonnrea
On Thursday, September 12, 2013 6:05:14 AM UTC+1, Michael Torrie wrote: On 09/11/2013 02:55 PM, eamonn...@gmail.com wrote: PyQT -- You have a GUI designer, so I'm not going to count that What do you mean? Gtk has a GUI designer too. what of it? I, personally, really like

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-12 Thread MRAB
On 13/09/2013 01:58, stephen.bou...@gmail.com wrote: Hi Steven. Here is my code: import win32clipboard, win32con def getclipboard(): win32clipboard.OpenClipboard() s = win32clipboard.GetClipboardData(win32con.CF_TEXT) win32clipboard.CloseClipboard() return s I use this

Ann: rom 0.20 - Redis object mapper for Python

2013-09-12 Thread Josiah Carlson
Hey everyone, As time progresses, so does my Redis object mapper. The rom package is a Redis object mapper for Python. It sports an interface similar to Django's ORM, SQLAlchemy + Elixir, or Appengine's datastore. The changelog for recent releases can be seen below my signature. You can find

Re: better and user friendly IDE recommended?

2013-09-12 Thread Joe Junior
On 12 September 2013 13:00, Veritatem Ignotam veritatem.igno...@gmail.com wrote: Is this thread going to evolve into your classic vim vs. emacs, sweet! Who doesn't love those? ;-) On 09/12/2013 11:47 AM, Paul Rudin wrote: Joshua Landau jos...@landau.ws writes: If the time learning a set of

Re: Language design

2013-09-12 Thread Markus Rother
On 12.09.2013 01:27, Chris Angelico wrote: On Thu, Sep 12, 2013 at 6:41 AM, Markus Rother pyt...@markusrother.de wrote: 3. The default return value of methods is None instead of self. If it was self, it would be possible to chain method calls (which is called a cascade in

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 10:03 AM, eamonn...@gmail.com wrote: I didn't realise GTK has a GUI designer too :( I don't like it when you can DD to position things. I don't understand why someone wouldn't want to write the positioning code, and have fun with the debugging. That's the best part about

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:02 PM, Michael Torrie wrote: In any event I think you should give both Glade-3 and Qt Designer a serious look. I think your hate of gui designers is about 10 years out of date now, even if you still prefer not to use them. This is a bit old but still how Qt works:

Re: Language design

2013-09-12 Thread Mark Janssen
Really? Are you saying you (and the community at-large) always derive from Object as your base class? Not directly, that would be silly. Silly? Explicit is better than implicit... right? But wait is it the base (at the bottom of the hierarchy) or is it the parent at the top? You see,

Re: Python GUI?

2013-09-12 Thread Peter
I stuck with Tkinter combined with PMW for a very long time, but the lack of extra widgets finally drove me to look elsewhere. I tried PyQT but didn't have a good experience. I can't remember details, but things just seemed to have little gotchas - which the mailing list were very helpful with

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-12 Thread Neil Hodgson
Stephen Boulet: From the clipboard contents copied from the spreadsheet, the characters s[:80684] were the visible cell contents, and s[80684:] all started with b'\x0 and lack any useful info for what I'm trying to accomplish. Looks like Excel is rounding up its clipboard allocation to

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:39 PM, Peter wrote: I stuck with Tkinter combined with PMW for a very long time, but the lack of extra widgets finally drove me to look elsewhere. I tried PyQT but didn't have a good experience. I can't remember details, but things just seemed to have little gotchas - which

Re: Language design

2013-09-12 Thread Steven D'Aprano
On Thu, 12 Sep 2013 20:23:21 -0700, Mark Janssen wrote: Really? Are you saying you (and the community at-large) always derive from Object as your base class? Not directly, that would be silly. Silly? Explicit is better than implicit... right? If I'm inheriting from str, I inherit from

Re: Python GUI?

2013-09-12 Thread CM
Tkinter -- Simple to use, but limited PyQT -- You have a GUI designer, so I'm not going to count that As others have pointed out, that's nonsensical. If you don't like the GUI designer, just don't use it. wxPython -- Very nice, very professional, approved by Python creator, but alas

Re: Python Programmers requirement Exp 2 - 3 yrs

2013-09-12 Thread Ben Finney
Mobi Esprits gssivacha...@gmail.com writes: We have python programmers requirement with an experience of 2 -3 yrs. Please do not use this discussion forum for job advertisements. Instead, please use the Python Job Board which is designed for this purpose

[issue19005] PyIter_Next crashes if passed a non-iterator

2013-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19005 ___

[issue14894] distutils.LooseVersion fails to compare number and a word

2013-09-12 Thread Sam Lai
Sam Lai added the comment: I have a more realistic example of this bug. In the docstring for distutils.LooseVersion, it says '1.5.1' and '3.2.p10' are both valid version numbers. If instead of '3.2.p10', we use '1.5.p10', the following occurs - v1 = LooseVersion('1.5.1') v2 =

[issue18981] Typo in the ctypes tests

2013-09-12 Thread Anoop Thomas Mathew
Changes by Anoop Thomas Mathew atm...@gmail.com: -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18981 ___

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, any benchmarks for your implementation? Does it slow down regular dicts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986 ___

[issue18683] Core dumps on CentOS

2013-09-12 Thread Marc Schlaich
Marc Schlaich added the comment: Yes, I could reproduce segfaults on Python 2.7 (looks like it is even worse than on 2.6 where it appeared only randomly). I was not quite accurate in my initial comment. I don't use any custom C extensions but I'm using pygtk/gobject so it might be a bug

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Lars Buitinck
Changes by Lars Buitinck larsm...@gmail.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18999 ___ ___ Python-bugs-list

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Lars Buitinck
Lars Buitinck added the comment: I don't really see the benefit of a context manager over an argument. It's a power user feature anyway, and context managers (at least to me) signal cleanup actions, rather than construction options. -- ___ Python

[issue18683] Core dumps on CentOS

2013-09-12 Thread STINNER Victor
STINNER Victor added the comment: I'll try that patch and keep you posted. Cool, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18683 ___

[issue14432] Bug in generator if the generator in created in a C thread

2013-09-12 Thread STINNER Victor
STINNER Victor added the comment: ping? (for myself :-)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14432 ___ ___ Python-bugs-list mailing

[issue18683] Core dumps on CentOS

2013-09-12 Thread Marc Schlaich
Marc Schlaich added the comment: The generator.patch from #14432 didn't help. The other couldn't be applied to 2.7. I have a core dump, should I upload it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18683

[issue18683] Core dumps on CentOS

2013-09-12 Thread STINNER Victor
STINNER Victor added the comment: I have a core dump, should I upload it? The coredump is not useful if we cannot analyze it. Please open it in gdb, type thread all apply where and copy/paste in a file and attach the file. You may use set pagination off for easier copy/paste. --

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Richard Oudkerk
Richard Oudkerk added the comment: By context I did not really mean a context manager. I just meant an object (possibly a singleton or module) which implements the same interface as multiprocessing. (However, it may be a good idea to also make it a context manager whose __enter__() method

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Olivier Grisel
Olivier Grisel added the comment: The process pool executor [1] from the concurrent futures API would be suitable to explicitly start and stop the helper process for the `forkserver` mode. [1] http://docs.python.org/3.4/library/concurrent.futures.html#concurrent.futures.ProcessPoolExecutor

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread Ethan Furman
Ethan Furman added the comment: On 09/11/2013 02:39 PM, Tim Delaney wrote on PyDev: I would think that retrieving the keys from the dict would return the transformed keys (I'd call them canonical keys). The more I think about this the more I agree. A canonicaldict with a key function

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread Ethan Furman
Ethan Furman added the comment: True, but how big a deal is that? For one, it seems questionable to have the presentation portion of the data be part of the key. For two, when presentation is important a separate list must be kept anyway to preseed the dict; so just use that list to cycle

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2013-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello, To discover a 32-bit interpreter running on a 64-bit system, we could use platform.architecture(), which returns platform.architecture() ('32bit', 'ELF') Just use (sys.maxsize 2**32). What then, though? How do you turn '32bit' to

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2013-09-12 Thread Lukas Wunner
Lukas Wunner added the comment: *ping* Anybody, please consider applying the patch I've submitted August 8th so that this issue gets fixed in Python 2.7's urllib.py. Thanks so much. -- ___ Python tracker rep...@bugs.python.org

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Olivier Grisel
Olivier Grisel added the comment: Richard Oudkerk: thanks for the clarification, that makes sense. I don't have the time either in the coming month, maybe later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18999

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread R. David Murray
R. David Murray added the comment: It would be simpler, but it would also be useless for the actual use case for which this issue was opened. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18986

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: R. David Murray added the comment: You are conceptualizing this very differently. In our view, this data structure is for cases where the original key is the most important piece of information (about the keys). The transformation in the lookup process

[issue18990] Remove unnecessary API inconsistency from ElementTree.XMLPullParser.close()

2013-09-12 Thread Stefan Behnel
Stefan Behnel added the comment: ping - I would like to see this fixed for alpha3, which is due in two weeks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18990 ___

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-09-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: 2. _PyVerify_fd(fd) is always true. Given the current definition: #define _PyVerify_fd(fd) (_get_osfhandle(fd) = 0) for those values of fd _get_osfhandle(fd) = 0, always. Hum, are you sure this is the selected implementation? - this code is only in 2.7

[issue18986] Add a case-insensitive case-preserving dict

2013-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ethan, please don't post the same message *both* on the tracker and on the mailing-list. I'm sure most people here also read the ML thread. -- ___ Python tracker rep...@bugs.python.org

[issue19007] precise time.time() under Windows 8

2013-09-12 Thread STINNER Victor
STINNER Victor added the comment: time.time() is sometimes used in performance critical code. Is GetSystemTimePreciseAsFileTime() as fast as GetSystemTimeAsFileTime()? Linux has the opposite: CLOCK_REALTIME_COARSE. This clock is less accurate but may be faster. http://lwn.net/Articles/342018/

[issue19007] precise time.time() under Windows 8

2013-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: GetSystemTimePreciseAsFileTime() has very little overhead; the new function is even a little faster than GetSystemTimeAsFileTime(), a call takes a few ten nanoseconds. from http://www.windowstimestamp.com/description#C_2 --

[issue18844] allow weights in random.choice

2013-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Neil. It is interesting. Vose's alias method has followed disadvantages (in comparison with the roulette wheel selection proposed above): 1. It operates with probabilities and uses floats, therefore it can be a little less accurate. 2. It

[issue18993] There is an overshadowed and invalid test in testmock.py

2013-09-12 Thread Michael Foord
Michael Foord added the comment: Although I'm not certain the first test is invalid. It's testing a different case than the second test. So if the first test passes it should be renamed rather than removed. If it *fails* then I'd like to look at the behaviour and specify (test) that.

[issue18993] There is an overshadowed and invalid test in testmock.py

2013-09-12 Thread Michael Foord
Michael Foord added the comment: Good catch - thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18993 ___ ___ Python-bugs-list mailing list

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2013-09-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15873 ___ ___

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-09-12 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___

[issue13107] Text width in optparse.py can become negative

2013-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is less ugly patch (for argparse and optparse). Instead of prohibiting wrapping at all for small width, it limits minimal width of formatted text. It try first decrease the indent for help. -- stage: test needed - patch review Added file:

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-12 Thread Richard Oudkerk
Richard Oudkerk added the comment: There are lots of things that behave differently depending on the currently set start method: Lock(), Semaphore(), Queue(), Value(), ... It is not just when creating a Process or Pool that you need to know the start method. Passing a context or start_method

  1   2   >