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 ,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
--
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.
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.
--
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.
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
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
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
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.
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
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,
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:
-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
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.
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
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
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
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
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.
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,
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
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
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
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
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
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
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
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
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
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,
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
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).
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.
--
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,
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
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
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
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
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
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
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
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
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:
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,
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
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
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
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
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
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
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19005
___
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 =
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
___
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
___
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
Changes by Lars Buitinck larsm...@gmail.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18999
___
___
Python-bugs-list
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
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
___
STINNER Victor added the comment:
ping? (for myself :-))
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14432
___
___
Python-bugs-list mailing
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
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.
--
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
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
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
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
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
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
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
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
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
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
___
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
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
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/
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
--
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
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.
Michael Foord added the comment:
Good catch - thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18993
___
___
Python-bugs-list mailing list
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
___
___
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:
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 - 100 of 112 matches
Mail list logo