d for blind users on how to effectively use Python's
IDLE.
Any guidance or resources you could provide would be greatly appreciated.
Thank you for your assistance.
Best regards,
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
>
> Hi,
>
> We developed a Python module that interfaces with native code via Cython.
>
> We currently build on Windows with Visual Studio Toolchain.
>
> We encounter the following issues when trying to build a debug version:
>
> 1) 3rd party modules installed via PIP are Release mode, but Visual S
Interesting PEG thing. C++ compilers are getting better at suggesting
fixes for minor syntax errors (in 2011 on MSVC I remember seeing pages of
errors for forgetting a semicolon after a struct.) but python seems to be
lagging behind in this regard.. will check out superhelp, maybe it'll help
me pa
-- Forwarded message -
From: Jeff Linahan
Date: Wed, Jul 22, 2020, 5:23 PM
Subject: Fwd: [BUG] missing ')' causes syntax error on next line
To:
Subscribing to the mailing list as per the bot's request and resending.
-- Forwarded message -
Fro
On Wednesday, December 25, 2019 at 9:13:09 AM UTC-5, Jeff Gitlin wrote:
> With the new operator := in Python 3.8
> that allows you to do things like
>
> if ( x := f() ) == 1:
>
> Is there any reason to use just the assignment operator?
………..
Thanks. That web page is
On Wednesday, December 25, 2019 at 9:22:56 AM UTC-5, Chris Angelico wrote:
> On Thu, Dec 26, 2019 at 1:16 AM Jeff Gitlin wrote:
> >
> > With the new operator := in Python 3.8
> > that allows you to do things like
> >
> > if ( x := f() ) == 1:
> >
> > I
With the new operator := in Python 3.8
that allows you to do things like
if ( x := f() ) == 1:
Is there any reason to use just the assignment operator?
--
https://mail.python.org/mailman/listinfo/python-list
Python newbie here, looking for code samples for encrypting and decrypting
functions, using AES. See lots of stuff on the interwebs, but lots of comments
back an forth about bugs, or implemented incorrect, etc...
I need to encrypt some strings that will be passed around in URL, and then also
s
On Tuesday, August 21, 2018 at 9:48:50 AM UTC-6, Jeff M wrote:
> are there other places also? On pypi I did not see anywhere the status of
> defects or downloads, if it's actively supported.
nevermind, i see the info i was looking for on the left side.
--
https://mail.python.
are there other places also? On pypi I did not see anywhere the status of
defects or downloads, if it's actively supported.
--
https://mail.python.org/mailman/listinfo/python-list
Is this a good example to follow for a project that does mostly python to
interact with external data sources including files, transformation, and import
into Postgres?
https://github.com/bast/somepackage
I have a SWE background but not with python, and I want to make sure my team is
following
nt: Friday, May 5, 2017 10:07:33 AM
To: python-list@python.org
Cc: jeff saremi
Subject: Re: Python 2.7: no such module pip
On Fri, May 5, 2017 at 4:57 PM, jeff saremi wrote:
>
> There is no such option in the installation. Please take a look at the
> screenshot I enclosed.
Sorry, I overl
Thanks very much Eryk. I will look into WinPython. And as for the PYTHONPATH i
came up with that. I will unset it.
From: eryk sun
Sent: Thursday, May 4, 2017 10:21:20 PM
To: python-list@python.org
Cc: jeff saremi
Subject: Re: Python 2.7 on Windows: Copy&P
forgot the attachment
From: jeff saremi
Sent: Friday, May 5, 2017 9:57:30 AM
To: eryk sun; python-list@python.org
Subject: Re: Python 2.7: no such module pip
Eryk
There is no such option in the installation. Please take a look at the
screenshot I enclosed. If
module named ensurepip
From: eryk sun
Sent: Friday, May 5, 2017 9:49:18 AM
To: python-list@python.org
Cc: jeff saremi
Subject: Re: Python 2.7: no such module pip
On Fri, May 5, 2017 at 4:30 PM, jeff saremi wrote:
> i checked the installation again. There is no option to
.
From: eryk sun
Sent: Thursday, May 4, 2017 9:58:40 PM
To: python-list@python.org
Cc: jeff saremi
Subject: Re: Python 2.7: no such module pip
On Thu, May 4, 2017 at 8:24 PM, jeff saremi wrote:
> Did a fresh install of python-2.7.amd64.msi on windows 10.
>
> Th
Did a fresh install of python-2.7.amd64.msi on windows 10.
The install finishes with success. Python runs. No pip when the following is
run:
C:\> python -m pip install elastalert
C:\Python27\python.exe: No module named pip
--
https://mail.python.org/mailman/listinfo/python-list
i've been waiting for my confirmation email. Never received it
Someone should look into the registration. And there is no admin emails where
you could send your issue to!
thanks
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
es
2. Add the new Python2.7\bin to PATH
3. Add C:\python2.7\Lib and C:\python2.7\Lib\site-packages to PYTHONPATH
thanks
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, April 10, 2016 at 9:33:47 PM UTC-4, Jeff Schumaker wrote:
> On Sunday, April 10, 2016 at 10:03:37 AM UTC-4, Chris Angelico wrote:
> > On Sun, Apr 10, 2016 at 11:54 PM, Jeff Schumaker wrote
>
> > > As a new member of this group, I am not sure on how to repor
On Sunday, April 10, 2016 at 10:03:37 AM UTC-4, Chris Angelico wrote:
> On Sun, Apr 10, 2016 at 11:54 PM, Jeff Schumaker wrote
> > As a new member of this group, I am not sure on how to report unacceptable
> > behavior. If this is not the correct way, I apologize.
> >
On Sunday, April 10, 2016 at 1:15:18 PM UTC-4, bream...@gmail.com wrote:
> On Sunday, April 10, 2016 at 2:54:45 PM UTC+1, Jeff Schumaker wrote:
> > On Thursday, April 7, 2016 at 2:50:32 AM UTC-4, Ethan Furman wrote:
> > > On 04/05/2016 01:05 PM, Thomas '
ome unnecessary rudeness on the part of one of the
respondants to the original post
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
I'm trying to use Python Editor v5 for Chromebooks. It works fine, except it
won't read data files. I'm just wondering if anyone else is using this editor
and has found a solution to this problem.
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, January 8, 2016 at 6:16:49 PM UTC+1, geral...@gmail.com wrote:
> On Friday, 8 January 2016 17:38:11 UTC+1, acushl...@gmail.com wrote:
> > On Wednesday, 30 December 2015 19:21:32 UTC+1, Won Chang wrote:
> > > i have these task which i believe i have done well to some level
> > >
> > >
x27;t remember the specific issues off-hand but since I was
successful using the batch files, I didn't worry about it.
With this build of Python I have gotten rudimentary extensions working with
Boost.Python and straight C code. Had to build Boost against this build of
Python to make that work.
j
On Sun, Oct 18, 2015 at 5:15 AM, Tim Golden wrote:
> On 17/10/2015 17:25, Jeff Archer wrote:
>
>> I am trying to build Python on windows. I have gotten the source in
>> compressed form, Python-3.5.0.tgz. Attempting to follow
>> PCBuild\readme.txt
>>
>> Ran
I am trying to build Python on windows. I have gotten the source in
compressed form, Python-3.5.0.tgz. Attempting to follow PCBuild\readme.txt
Ran the get_externals.bat in the PCBuild folder. No apparent errors.
Trying to build and getting errors:
1> abort: there is no Mercurial repository he
r (in part) didn't know if the
whole thing would be useful. Thinking about this I'm not sure if this a
compiler issue or a situation where lxml isn't supported in 3.5 yet.
Might someone be able to shed some insight?
Thanks,
Jeff
...
C:\Program Files (x86)\Microsoft Visual Studi
and the like.
Thanks for your help!
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
c features.
IronPython 2.7.5 is also available for embedding via NuGet. The main
package is IronPython, and the standard library is in
IronPython.StdLib.
- Jeff
[1] http://ironpython.codeplex.com/releases/view/169382
[2] http://bit.ly/ipy275fixed
[3] https://github.com/IronLanguages/main/compare
Python is definitely suitable for that sort of task.
Django is good for this sort of thing, but I’d also like to mention using Flask
(http://flask.pocoo.org), especially if you are a beginner. I use it for some
of my work, and you could potentially get your project up and running that much
quic
I have some simple code I would like to share with someone that can assist
me in integrating authentication script into. I'm sure it's an easy answer
for any of you. I am still researching, but on this particular project,
time is of the essence and this is the only missing piece of the puzzle for
Folks, I promise I'll get to the point where my questions aren't so basic,
but I'm just now starting to get into Python. So I'm using the urllib
script to check to make sure our company sites are up. As stated earlier,
I have three sites which require some form of authentication in order to
repo
So I'm using the following script to check our sites to make sure they are
all up and some of them are reporting they are "down" when, in fact, they
are actually up. These sites do not require a logon in order for the home
page to come up. Could this be due to some port being blocked internally
This worked perfectly. Thank You
Where, exactly in the script would I place the " print str(e) " ?
The line after the print site + " is down" line.
Original Post :
I'm not really receiving an "exception" other than those three sites, out
of the 30 or so I have listed, are the only sites
Sorry to be a pain here, guys, as I'm also a newbie at this as well.
Where, exactly in the script would I place the " print str(e) " ?
Thanks
Original message :
I'm not really receiving an "exception" other than those three sites, out
> of the 30 or so I have listed, are the only sites which s
/my..com/intranet.html* is down*
http://#.main..com/psso/pssignsso.asp?dbname=FSPRD90
* is down*
http://sharepoint..com/regions/west/PHX_NSC/default.aspx
* is down*
Cc: python-list@python.org
Date: Mon, 16 Dec 2013 06:54:48 -0500
Subject: Re: Question RE urllib
On Mon, Dec 16, 2013
So I'm using the following script to check our sites to make sure they are
all up and some of them are reporting they are "down" when, in fact, they
are actually up. These sites do not require a logon in order for the home
page to come up. Could this be due to some port being blocked internally
Looking for a script which will check connectivity of any or all of our
company URL's first thing in the morning to make sure none or our sites are
down. Any suggestions ? Thank You
--
https://mail.python.org/mailman/listinfo/python-list
(First off, sorry in advance, as I’m not sure if this is the right place to
post my inquiry).
*Consumer level eye tracking - easy activation of virtual buttons without
touchscreen*
After using Autohotkey for remapping, I soon didn't have enough keyboard
buttons to attach macros and lines of co
Thank you. This is extremely helpful. The key that I was missing is that
it's running them outside of the ipy context. I also discovered that if you
call the script .ipy instead of .py, it actually does more or less what I
was expecting -- that is, it allows magic commands, and I got the thing
work
On 2013-07-03 13:19:26 +, Steven D'Aprano said:
On Wed, 03 Jul 2013 14:00:49 +0100, Tim Golden wrote:
Goodness, I doubt if you'll find anyone who can seriously make a case
that the Windows command prompt is all it might be. I'm not a Powershell
user myself but people speak highly of it.
Sorry. Should have been more clear.
This is a hosting account server. I am not in the sudoers file.
Was able to get PIL v1.1.7 to create a tiff file. Problem solved.
Thanks.
On Monday, June 3, 2013 12:41:17 PM UTC-4, Irmen de Jong wrote:
> On 3-6-2013 18:23, consult...@gmail.com wrote:
>
> >
Hi Gene,
I'm the maintainer of pycollada. No such paywall exists, and a login is not
required. I'm not sure how you came across that.
As Chris said, it's a standard BSD license. I'd be happy to help with
packaging, so feel free to contact me.
Jeff
--
http://mail.python.
ere both parties listen to
> > >>each other, feel free to raise them here. Keep in mind three things:
> >
> > [snip three things]
> >
> > > You forgot the fourth point.
> >
> > Apparently so did you :)
>
> "Amongst the points are such diverse elements as..."
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Cheers,
Jeff Jeffries III
CEO: www.willyoubemyfriend.com
--
http://mail.python.org/mailman/listinfo/python-list
way to get keyword arguments (or default) when using
** notation?
--
Cheerios,
Jeff Jeffries III
CFO: www.touchmycake.com <http://www.willyoubemyfriend.com>
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Oct 18, 2012 at 10:51 AM, Dave Angel wrote:
> On 10/18/2012 10:10 AM, Jeff Jeffries wrote:
> > Hello everybody
> >
> > When I set "AttributeChanges" in my example, it sets the same value for
> all
> > other subclasses. Can someone help me wi
On Sunday, March 25, 2012 6:22:10 PM UTC-6, Ben Finney wrote:
> jeff writes:
>
> > On Sunday, March 25, 2012 4:04:55 PM UTC-6, Heiko Wundram wrote:
> > > Am 25.03.2012 23:32, schrieb jeff:
> > > > but I have to be able to get back to root privilege so I ca
On Sunday, March 25, 2012 4:04:55 PM UTC-6, Heiko Wundram wrote:
> Am 25.03.2012 23:32, schrieb jeff:
> > After the os.setgroups, os.getgroups says that the process is not in
> > any groups, just as you would expect... I can suppress
> > membership in the root group only b
Run this test program as root:
import os
print "before:", os.getgroups()
os.system("groups")
os.setgroups([])
print "after:", os.getgroups()
os.system("groups")
After the os.setgroups, os.getgroups says that the process is not in any
groups, just as you would expect. However the groups command
7;t
really want to start digging around in there either)
The patch in this case is very limited in scope, and all it inflicts on the
subject code inside of decimal.Decimal.__new__(), is better programming
practices.
--jeff
On Fri, Mar 2, 2012 at 5:49 PM, Ethan Furman wrote:
> Jeff Be
HISTORY:
In using python 2.7.2 for awhile on a web project (apache/wsgi web.py), I
discovered a problem in using decimal.Decimal. A short search revealed that
many other people have been having the problem as well, in their own
apache/wsgi implementations (django, mostly), but I found no rea
cribing a successive parameter.
I'm hoping this reflects the implementation of omniORBpy. Assuming
that it does, are there well-defined routines for interrogating/
manipulating these interface class objects?
Thanks,
Jeff
[note: this was originally posted at stackoverflow
http://stackoverf
ettle to a
steady state.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
erous improvements is that
IronPython’s startup time has decreased by 10% when compared to
IronPython 2.6.1.
This is the first full community release of IronPython, and I want to
give a huge thank you to everyone who was involved in this release.
- Jeff
--
http://mail.python.org/mailman/lis
.mainloop()
>
> This example is helpful to me. I am curious though why the tk window
> takes up the full screen instead of being much smaller as usual for
> other examples I run. Shortening or shrinking the text has no effect.
Because a 70point Helvetica font was requested, and the text widget
has a default size of 80x24. That would occupy the full size of most
screens.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
lease...
If you need Python 2.7, PIL is available via pypm for ActivePython
2.7:
http://code.activestate.com/pypm/pil/
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 13, 2:18 am, o...@dtrx.de (Olaf Dietrich) wrote:
> Jeff Hobbs :
>
>
>
>
>
> > On Oct 12, 9:43 am, o...@dtrx.de (Olaf Dietrich) wrote:
>
> >> After some somewhat heavy mouse action inside the
> >> canvas (with the left button pressed), the applic
ing in the
> script above to make the whole thing more robust?
>
> Thanks in advance for any help or suggestions
It seems very heavy-handed to create 1-pixel images for drawing onto
the canvas. Any reason not to use something lighter weight?
I suspect the "self.root.update()" is the problem. Try
update_idletasks() instead, or to even avoid it if possible. You
don't want to call update in the event loop, because you are likely
reprocessing from the same call, causing the recursion.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
8.4 =8.4.19-3
> tix =8.4.0-6ubuntu1
> tix-dev =8.4.0-6ubuntu1
As the first link indicates, Tix 8.4.3 has this fixed, which is the
latest stable version:
https://sourceforge.net/projects/tix/files/
Try building that from source and using it in place of Tix 8.4.0 that
you are currently
ge1.fromstring(...) that should have a
similar effect, in that it changes the underlying image data and the
label will display that.
Whether you need to label.bind or something else to effect this change
is up to you. You could have it happen on a timer, triggered by an
event, or randomly effected
anslation occurring, and you need to split/
join or index the items properly. Without being more clear how you
want to represent your data, what you need isn't clear. Perhaps you
just need to reference the first index of the variable, or ... who
knows, there are lots of possibilities.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 10, 9:43 am, John wrote:
> On Tue, 10 Aug 2010 09:20:31 -0700 (PDT), Jeff Hobbs
>
>
>
> wrote:
> >On Aug 9, 9:53 pm, John wrote:
> >> As a learning exercise in Tkinter I htought about making a very simple
> >> and basic file manager for my own use
nd has lots of controls:
http://tktreectrl.sourceforge.net/
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
g, and not /usr/lib/python2.x.y naming).When Going
from 2.6 to 2.7, you're better off reinstalling your extensions.
Thanks,
Jeff
http://www.jmcneil.net
--
http://mail.python.org/mailman/listinfo/python-list
ust run
arch -i386 python2.7
and then it will find the compatible i386 Tk. The next release of
ActivePython 2.7 (which is building i386+x86_64) will have the Tk
version independence, so it could work with core Tk or AT 8.6, or 8.5
in 32-bit mode.
Less confuzzulated?
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 18, 2:59 pm, Ethan Furman wrote:
> Jeff Hobbs wrote:
> > On Jun 6, 2:11 pm, rantingrick wrote:
> >> On Jun 6, 2:06 pm, Mark Lawrence wrote:
> >>> On 06/06/2010 16:31, rantingrick wrote:
> >>>> On Jun 5, 9:22 pm, ant wrote:
> >>>
ld perspective. Tk 8.5 does have native themed widgets (using
Win32, Carbon or Cocoa, and X11, though also with plugins to gtk and
qt). I'd have to explore more into Tkinter to see where anybody
derives value from Tix in current programs.
In any case, the basic mantra for Tix is new development should avoid
it, but existing development should work fine. New development should
leverage the good work of Guilherme Polo in making the Tk 8.5 core
themed widgets available in Tkinter.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
If you look to revamp things, don't go down the path of trying to
remove Tcl to get to Tk. Instead reconsider the approach to Tcl. A
little bending might prove a much better match in the long term.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
oth.h file, but i have no idea what I
am supposed to do with it...
Can anyone shed some light on this for me please?
thanks in advance,
gr
Arno
Have you come across the PyBluez library yet? I recently used it in a
project and it worked very well.
Hth,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
Might, Courage, Vision, SINCERITY.
> / v \ Simplicity is Beauty! May the Force and Farce be with you!
> /( _ )\ (x86_64 Ubuntu 9.10) Linux 2.6.32.7
> ^ ^ 12:16:01 up 6 days 20:22 2 users load average: 0.45 0.26 0.09
> 不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援
> (CSSA):http://www.sw
the mouse
clicks and simply call event.Skip(). If you do this, you might have to
introduce a flag that gets set to True only during your calculation, and
then your event hander could look something like this:
def OnMouseClick(self, event):
# Only skip mouse click event if calculating
On Nov 25, 4:45 am, Jon Clements wrote:
> On Nov 25, 8:13 am, Steven D'Aprano
>
>
>
>
>
> wrote:
> > On Tue, 24 Nov 2009 22:42:28 -0800, John Nagle wrote:
> > > My dedicated hosting provider wants to switch me to a new server with
> > > CentOS 5.3, so I have to look at how much work is required.
n/data/force_mcs"
> % mcs)
>
> Any right way to do it?
>
> Thanks.
>
> --henry
I'd ditch the echo business altogether. 2.x. Not tested.
import glob
mcs = get_mcs_from_somewhere()
for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/
force_mcs')
On Sep 25, 4:28 pm, Jeff McNeil wrote:
> On Sep 25, 4:13 pm, tinn...@isbd.co.uk wrote:
>
>
>
>
>
> > Jeff McNeil wrote:
> > > On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
> > > > I can't get the list_folders() method of the mailbox.Maildir class
On Sep 25, 4:13 pm, tinn...@isbd.co.uk wrote:
> Jeff McNeil wrote:
> > On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
> > > I can't get the list_folders() method of the mailbox.Maildir class to
> > > do anything remotely useful. It seems to do nothing at all.
h.join(self._path, entry)):
result.append(entry[1:])
return result
The above example is from 2.6. Your structure is simply a list of
Maildir compliant directories below '/home/chris/Mail/apex.' They're
not, in the Maildir++ sense of the word, folders.
--
Thanks,
Jeff
mcjeff.blospot.com
--
http://mail.python.org/mailman/listinfo/python-list
ut the socketserver from standard library and I'm asking if
> there is anything else.
>
> Thanks,
> Tvrtko
I know this probably isn't overly helpful, but Twisted allows you to
defer a blocking call to a thread using a 'deferToThread' construct.
It ex
n do something like the
following:
try:
FTP_instance.do_something()
except ftplib.all_errors, e:
handle_an_error(e)
I do something much like that in an NMS-like application I wrote.
--
Thanks,
Jeff
mcjeff.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
What's wrong here? (I am no Linux guru)
>
> Thanks in advance
> Mark
Assuming Bash, you'll want $? instead. The '!$' construct is used to
pull the last argument of the previous command. Also, if I remember
correctly, the history mechanism is disabled within shell sc
r the '/net/sqlhost/usr/
lib/python2.4/site-packages/
SQLAlchemy-0.5.6-py2.4.egg/' path. Using your configuration, Python
is looking for:
/net/sqlhost/usr/lib/python2.4/site-packages/
SQLAlchemy-0.5.6-py2.4.egg/sqlalchemy/sqlalchemy/
As an example, see below. Note that this is in a virtual en
, or else raise.
>
> ~Sean
I do this myself in a lot of places, almost exactly like this. It's
slightly clearer to use 'if e.errno == errno.ENOENT' in my opinion,
but, whatever.
The only place I've run into issues with this is when dealing with
socket programming across oper
On Jun 23, 6:59 am, Francesco Bochicchio wrote:
> Hi all,
>
> is there any site that reports the current porting (to Python 3.x)
> status of the main non-standard extension modules (such as pygtk,
> pywin32, wxpython, ...) ?
> I think such information would be very useful for people - like me -
>
nent
[r...@buildslave01 eggs]#
[r...@buildslave01 eggs]# ls Beaker/
Beaker-1.1.2-py2.4.egg Beaker-1.2.1-py2.4.egg
[r...@buildslave01 eggs]#
On this particular system, buildbot drops successfully built eggs into
the correct location automatically for testing purposes.
HTH,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
erver.server_bind(self)
s = MyXMLServer(('127.0.0.1', 8080))
print s.socket.getsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY)
HTH,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
g against None:
if var is None:
do_stuff()
The use of the 'is' operator checks whether objects are exactly the
same (id(var) == id(None)) as opposed to 'isinstance' or '==.'
You might also try defining descriptors in order to make your type
checks slightly more t
xea+\xef\xee\xe7\xe2\xee\xed\xe8\xf2\xfc"
with open('test.txt', 'w') as f:
print >>f, s
print chardet.detect(open('test.txt').read())
(t)j...@marvin:~/t$ python test.py
{'confidence': 0.98999, 'encoding': 'windows-1251'}
(t)j...@marvin:~/t$
HTH,
Jeff
mcjeff.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 10, 12:49 pm, Seamus MacRae wrote:
> Jeff M. wrote:
> > On Jun 9, 9:08 pm, Arved Sandstrom wrote:
> >> Jon Harrop wrote:
> >>> Arved Sandstrom wrote:
> >>>> Jon, I do concurrent programming all the time, as do most of my peers.
> >>&g
On Jun 10, 10:26 am, Sparky wrote:
> Hey! I am developing a small application that tests multiple websites
> and compares their "response time". Some of these sites do not respond
> to a ping and, for the measurement to be standardized, all sites must
> have the same action preformed upon them. An
;}'''
> print dict
> ''' Actual output: {'a': <__main__.MyClass instance at 0x79cfc8>}'''
>
> Thanks,
> Amit
class MyClass:
def __repr__(self): # <--- see
http://docs.python.org/library/functions.html#repr
return str(self.__dict__)
HTH,
Jeff
mcjeff.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
would be wasted every
day around the world - ignoring the fact that Google wouldn't exist if
that were the case ;-). Obviously Google engineers work incredibly
hard every day to ensure correct results, but performance better be
right up there at the top of the list as well.
Jeff M.
--
http://mail.python.org/mailman/listinfo/python-list
7;t an "InterruptedSystemCall" error or
equivalent in the standard exception hierarchy. EnvironmentError is
the parent of OSError & IOError, which is where you'll most likely be
encountering that state.
Thanks,
Jeff
mcjeff.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
elf.other_name = Value(name)
h1 = md5(pickle.dumps(P1('sabres'))).hexdigest()
h2 = md5(pickle.dumps(P2('sabres'))).hexdigest()
print h1 == h2
>>> False
Just something to be aware of. Depending on what you're trying to
accomplish, it may make sense to simply define a metho
On Jun 8, 11:33 am, Gary Herron wrote:
> Kless wrote:
> > Is there any way of to get the class name to avoid to have that write
> > it?
>
> > ---
> > class Foo:
> > super(Foo, self)
> > ---
>
> > * Using Py 2.6.2
>
> The question does not make sense:
> "to have WHAT
g an obvious example... there are
many more. Unshared state has its place. Immutable state has its
place. Shared immutable state has its place. Shared mutable place has
its place.
Jeff M.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 7, 1:56 am, Paul Rubin <http://phr...@nospam.invalid> wrote:
> "Jeff M." writes:
> > > > Even the lightest weight
> > > > user space ("green") threads need a few hundred instructions, minimum,
> > > > to amortize the cost o
ht the definition of green threads was that multiplexing them
> doesn't require context switches.
There's always a context switch. It's just whether or not you are
switching in/out a virtual stack and registers for the context or the
hardware stack/registers.
Jeff M.
--
http://mail.python.org/mailman/listinfo/python-list
On May 28, 2:23 pm, Daniel wrote:
> Hello,
>
> Python 2.5.2
> WinXP
>
> I'm using CGIHTTPServer.py and want to return a response code of 400
> with a message in the event that the cgi script fails for some
> reason. I notice that
> run_cgi(self):
> executes this line of code,
> self.send_response
..
>
> $ python
> Python 2.4.4 (#1, Oct 23 2006, 13:58:00)
> [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
>
>
> My computer is FC6 linux.
There's only a couple dozen of them, right-click->Save As. I'm sure
Juniper would appreciate that much more than an automated crawler.
As far as your ValueError is concerned, consider that
'www.juniper.com' doesn't start with a protocol specification when
passed into urllib2.urlopen.
-Jeff
mcjeff.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 1056 matches
Mail list logo