> You might try `py-spy`.
That worked well, I started trying to get more data from the profile
output with the stats module but didn't quite get there.
Thank you everyone,
jlc
--
https://mail.python.org/mailman/listinfo/python-list
Joseph L. Casale wrote at 2022-1-10 18:43 +:
> ...
>I expected this given the implementation, but I was hoping to get some
>finer details so I can track down the specific module or at least the specific
>file so I have a place to start reviewing code for optimizations.
>
>Is
s, but the largest culprit only shows various built-ins.
I expected this given the implementation, but I was hoping to get some
finer details so I can track down the specific module or at least the
specific
file so I have a place to start reviewing code for optimizations.
ilt-ins.
>
> I expected this given the implementation, but I was hoping to get some
> finer details so I can track down the specific module or at least the specific
> file so I have a place to start reviewing code for optimizations.
>
> Is there something I can use to analyze
details so I can track down the specific module or at least the specific
file so I have a place to start reviewing code for optimizations.
Is there something I can use to analyze the existing profile output or to
generate
it with more feedback?
Thanks,
jlc
--
https://mail.python.org/mailman
Gilmeh Serda wrote:
Can't wait until we get to PEP 84657675, or PEP 33
PEP TREE(3) promises to be even more exciting!
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Nov 5, 2019 at 3:16 AM Veek M wrote:
>
> sez it all really, among the Finished PEPs, which ones should I pore
> through to teach Python competently!
>
> What PEPs are considered de rigueur? What PEPs do you guys consider note-
> worthy?
>
> https://www.python.org/dev/peps/
That's a really
sez it all really, among the Finished PEPs, which ones should I pore
through to teach Python competently!
What PEPs are considered de rigueur? What PEPs do you guys consider note-
worthy?
https://www.python.org/dev/peps/
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 16 Jul 2018 06:47:53 -0600, John T. Haggerty wrote:
> So, it's early for me---and I'm not sure if these things can be done but
> I'd like to know the following:
>
> 1. How can Python connect to a running operating system process on a
> host operating system to see what part of the executi
So, it's early for me---and I'm not sure if these things can be done but
I'd like to know the following:
1. How can Python connect to a running operating system process on a host
operating system to see what part of the execution is like?---ie keep track
of health stats like it's stuck on disk acc
Please reply to the list rather than directly to me (and then you will
get a quicker response from someone else).
On 25 February 2016 at 17:13, Giriprasadh Raghavan
wrote:
> I open the setup file of python 3.5.1 and click then install button. Then I
> am displayed an error that says:
>
> One or m
On 13/08/2014 7:28 AM, Roy Smith wrote:
Second, if you're going to be parsing web pages, trying to use regexes
is a losing game. You need something that knows how to parse HTML. The
canonical answer is lxml (http://lxml.de/), but Beautiful Soup
(http://www.crummy.com/software/BeautifulSoup/) is
On Tue, 12 Aug 2014 13:00:30 -0700, Simon Evans wrote:
> in accessing from the 'Racing Post' on a daily basis. Anyhow, the code
Following is some starter code. You will have to look at the output,
compare it to the web page, and work out how you want to process it
further. Note that I use beaut
On Tue, 12 Aug 2014 15:44:58 -0700 (PDT), Simon Evans wrote:
[snip]
> Dear Programmers, Thank you for your responses. I have installed
> 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup'
> book, but can't seem to make any progress with it, I am too thick to
> make much use of it.
In article <53eaab7d$0$29979$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> By studying how other scraping programs work, and studying how your racing
> pages store data, you should be able to put the two together and see how to
> get the data you want.
It's also worth mentioning
Simon Evans wrote:
> Dear Programmers, Thank you for your responses. I have installed
> 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' book,
> but can't seem to make any progress with it, I am too thick to make much
> use of it. I was hoping I could scrape specified stuff off
ccessing data using links say from the Dow Jones index, to
> accessing the details I would be interested in accessing from the 'Racing
> Post' on a daily basis. Anyhow, the code it returns is not in the example I
> am going to give, is not the information I am seeking, instead o
he Dow Jones index, to
> accessing the details I would be interested in accessing from the 'Racing
> Post' on a daily basis. Anyhow, the code it returns is not in the example I
> am going to give, is not the information I am seeking, instead of returning
> the given odds o
g data using links say from the Dow Jones index, to
> accessing the details I would be interested in accessing from the 'Racing
> Post' on a daily basis. Anyhow, the code it returns is not in the example I
> am going to give, is not the information I am seeking, instead of return
Dear Programmers,
I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I
have tried a few of his python programs in the Python27 command prompt, but
altered them from accessing data using links say from the Dow Jones index, to
accessing the details I would be
.X object at 0xb7c9adac>
py> x.__class__ = Y
py> x
<__main__.Y object at 0xb7c9adac>
py> type(x)
I believe that it depends on whether the instance being inspected is a
heap-type (e.g. pure-Python object) or not.
> I'm
> looking for some CPyhton implementation detai
, , True)
So, type doesn't use object's __class__ to determine its class. I'm looking
for some CPyhton implementation details - how does class identification with
type() work? According to CPython's sources it looks like there is a "marker"
of actual object's cl
Kiuhnm wrote:
> Regarding ctypes, try this to convince yourself that there's no problem
> in reusing BignumPtrType:
> from ctypes import POINTER, c_int
> assert POINTER(c_int) is POINTER(c_int)
print ('POINTERs are shareable:', ctypes.POINTER (BignumType) is ctypes.POINTER
(BignumType))
On 4/30/2012 17:42, mwil...@the-wire.com wrote:
On 4/30/2012 17:02, Kiuhnm wrote:
BignumTypePtr = ctypes.POINTER(BignumType)
for op, op_word in ((libbnem.BN_add, libbnem.BN_add_word),
(libbnem.BN_sub, libbnem.BN_sub_word)):
op.argtypes = [BignumTypePtr] * 3
op_word.argtypes = [BignumTypePtr, ct
> On 4/30/2012 17:02, Kiuhnm wrote:
>> BignumTypePtr = ctypes.POINTER(BignumType)
>>
>> for op, op_word in ((libbnem.BN_add, libbnem.BN_add_word),
>> (libbnem.BN_sub, libbnem.BN_sub_word)):
>> op.argtypes = [BignumTypePtr] * 3
>> op_word.argtypes = [BignumTypePtr, ctypes.c_ulong]
>> op.restype = op
http://123maza.com/46/river834/
--
http://mail.python.org/mailman/listinfo/python-list
Hey ya,
today we launched the first issue of PyGameZine.
For more info, please see the pygame website:
http://www.pygame.org/
cheers!
--
http://mail.python.org/mailman/listinfo/python-list
t and community-run by volunteers. It
is your conference so you can give a talk, lead a workshop or help
with publicity - see our wiki for more details.
In particular, it would help a lot if you can forward this
announcement to your Python-using friends and colleagues and relevant
mailing lists, or li
http://123maza.com/65/agent409/
--
http://mail.python.org/mailman/listinfo/python-list
Buy Genuine Google Adsense Account only for Rs.200/- for indian
people.
For more details visit
http://www.buygoogleadsense.tk/
We also provide procedure for creating unlimited
google adsense account trick .
--
http://mail.python.org/mailman/listinfo/python-list
On May 30, 3:03 pm, Kam-Hung Soh <[EMAIL PROTECTED]> wrote:
> Kalibr wrote:
> > On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote:
> >> You can use the shell COM objects to access media properties
> >> as shown by Explorer.
>
> >> import win32com.client
> >> sh=win32com.client.Dispatch('S
Kalibr wrote:
On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote:
You can use the shell COM objects to access media properties
as shown by Explorer.
import win32com.client
sh=win32com.client.Dispatch('Shell.Application')
folder= r'M:\Music\Bob Dylan\Highway 61 Revisited'
ns=sh.NameSpa
Kalibr wrote:
> On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote:
>>
>> You can use the shell COM objects to access media properties
>> as shown by Explorer.
>>
>> import win32com.client
>> sh=win32com.client.Dispatch('Shell.Application')
>>
>> folder= r'M:\Music\Bob Dylan\Highway 61 Rev
Roger Upole wrote:
Kalibr wrote:
I've been trying to figure out how to find the details of files
(specifically music for now) for a little sorting script I'm making,
My aim is to get details on the artist, album, and genre for mp3 and
wma files (possibly more in the future). My clo
On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote:
>
> You can use the shell COM objects to access media properties
> as shown by Explorer.
>
> import win32com.client
> sh=win32com.client.Dispatch('Shell.Application')
>
> folder= r'M:\Music\Bob Dylan\Highway 61 Revisited'
> ns=sh.NameSpac
Kalibr wrote:
> I've been trying to figure out how to find the details of files
> (specifically music for now) for a little sorting script I'm making,
> My aim is to get details on the artist, album, and genre for mp3 and
> wma files (possibly more in the future). My cl
On May 29, 5:26 am, Kalibr <[EMAIL PROTECTED]> wrote:
> On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > You don't say, but I assume you're on Windows since you mention
> > GetFileVersionInfo (which doesn't have anything to do with media
> > files, by the way) and WMA. There
Kalibr wrote:
On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
You don't say, but I assume you're on Windows since you mention
GetFileVersionInfo (which doesn't have anything to do with media
files, by the way) and WMA. There may be packages out there
to do all this already but if not y
On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>
> You don't say, but I assume you're on Windows since you mention
> GetFileVersionInfo (which doesn't have anything to do with media
> files, by the way) and WMA. There may be packages out there
> to do all this already but if not you'll n
Kalibr wrote:
I've been trying to figure out how to find the details of files
(specifically music for now) for a little sorting script I'm making,
My aim is to get details on the artist, album, and genre for mp3 and
wma files (possibly more in the future). My closest match was when
I've been trying to figure out how to find the details of files
(specifically music for now) for a little sorting script I'm making,
My aim is to get details on the artist, album, and genre for mp3 and
wma files (possibly more in the future). My closest match was when I
stumbled accro
A_H wrote:
Hi, I'm using PyExcelerator, and it's great,
If you are using the latest released version, it's not, IMO. Reading the
fixed-later bug reports on Sourceforge may prompt you to get the latest
version from svn. Reading the unfixed bug reports on Sourceforge may
prompt you to switch t
Hi, I'm using PyExcelerator, and it's great, but I can't figure out a
few things:
(1) I set the cell style to '0.00%' but the style does not work.
(2) I want to place a border around the cells( x1, y1, x2, y2 ) but I
can't find any example of doing that.
Well I do see ONE example, but it erase
Tips On Buying A Desktop Computer
While the case may not be important to some computer users it is a
consideration to be thought about before purchasing a desktop
computer. ...
Log on : http://www.computer-solution.page.tl
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 14 Mar 2008 17:06:00 +, Matt Nordhoff wrote:
> Hmm, if Perl's on-disk hash tables are good, maybe someone should port
> them to Python, or maybe someone already has.
I don't know Perl's on-disk hash tables but there is a `shelve` module in
the standard library.
Ciao,
Marc 'Bl
Matt Nordhoff wrote:
> Michael Wieher wrote:
>> I'm not sure if a well-written file/seek/read algorithm is faster than a
>> relational database...
>> sure a database can store relations and triggers and all that, but if
>> he's just doing a lookup for static data, then I'm thinking disk IO is
>> fa
Michael Wieher wrote:
> I'm not sure if a well-written file/seek/read algorithm is faster than a
> relational database...
> sure a database can store relations and triggers and all that, but if
> he's just doing a lookup for static data, then I'm thinking disk IO is
> faster for him? not sure
I w
2008/3/14, Gerardo Herzig <[EMAIL PROTECTED]>:
>
> Saideep A V S wrote:
>
> >Hello Sir,
> >
> > Thank You a ton. I was looking for this function. As far what I've
> >understood from the "Shelve" module is that, there would be no memory
> >wastage and the whole transactions would be done from and
Saideep A V S wrote:
>Hello Sir,
>
> Thank You a ton. I was looking for this function. As far what I've
>understood from the "Shelve" module is that, there would be no memory
>wastage and the whole transactions would be done from and to the file we
>specify. Am I right?.
>
> My actual task is t
Saideep A V S wrote:
>Hello Sir,
>
> I am a beginner level programmer in Python. I am in search of a
>function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables
>in Perl (i.e., tie function in Perl).
>
>
> Could anyone help me with the concept. I have also searched the net,
Hello Sir,
I am a beginner level programmer in Python. I am in search of a
function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables
in Perl (i.e., tie function in Perl).
Could anyone help me with the concept. I have also searched the net, but
was not successful in fin
In article <[EMAIL PROTECTED]>,
bukzor <[EMAIL PROTECTED]> wrote:
>On Jan 4, 2:15 pm, Steven D'Aprano <[EMAIL PROTECTED]
>cybersource.com.au> wrote:
>> On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote:
>> > Why cant you implement < for complex numbers? Maybe I'm being naive, but
>> > isn't this th
Sion Arrowsmith:
> Because ... how to be polite about this? No, I can't. std::set is
> crap. The implementation is a sorted sequence
What about using hash_map instead? You can use it with GCC too (but
you have to use a trick if you want to use string keys).
Bye,
bearophile
--
http://mail.python.
On Jan 4, 2:15 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote:
> > Why cant you implement < for complex numbers? Maybe I'm being naive, but
> > isn't this the normal definition?
> > a + bi < c + di iff sqrt(a**2 + b**2) < sqr
On Jan 4, 6:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
> Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>
> >BTW if you're using C++, why not simply use std::set?
>
> Because ... how to be polite about this? No, I can't. std::set is
> crap. The implementation is a sorted sequence -- if you're luc
On Jan 4, 10:15 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote:
> > Why cant you implement < for complex numbers? Maybe I'm being naive, but
> > isn't this the normal definition?
> > a + bi < c + di iff sqrt(a**2 + b**2) < sq
On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote:
> Why cant you implement < for complex numbers? Maybe I'm being naive, but
> isn't this the normal definition?
> a + bi < c + di iff sqrt(a**2 + b**2) < sqrt(c**2, d**2)
No, it is not. Ordered comparisons are not defined for complex numbers.
> bukzor <[EMAIL PROTECTED]> (B) wrote:
>B> Why cant you implement < for complex numbers? Maybe I'm being naive,
>B> but isn't this the normal definition?
>B> a + bi < c + di iff sqrt(a**2 + b**2) < sqrt(c**2, d**2)
There doesn't exist a `normal' definition of < for the complex numbers. F
bukzor schrieb:
> On Jan 4, 9:08 am, Sion Arrowsmith <[EMAIL PROTECTED]>
> wrote:
>> Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>>
>>> BTW if you're using C++, why not simply use std::set?
>> Because ... how to be polite about this? No, I can't. std::set is
>> crap. The implementation is a sorted se
On Jan 4, 5:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
[...]
> But the real killer is that requirement for a std::set is that
> T::operator< exists. Which means, for instance, that you can't
> have a set of complex numbers
This is really OT but IIRC, std::set is actually
std::set< T, st
On Jan 4, 9:08 am, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
> Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>
> >BTW if you're using C++, why not simply use std::set?
>
> Because ... how to be polite about this? No, I can't. std::set is
> crap. The implementation is a sorted sequence -- if you're luc
Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>BTW if you're using C++, why not simply use std::set?
Because ... how to be polite about this? No, I can't. std::set is
crap. The implementation is a sorted sequence -- if you're lucky,
this is a heap or a C array, and you've got O(log n) performance.
But
Achim Domma <[EMAIL PROTECTED]> writes:
> I'm interested in details about how sets are implemented in python.
> They seem to be quite fast and I found some remarks who state, that
> the implementation is highly optimized. I need to implemented sets
> in C/C++ and need a s
On Jan 4, 2008 9:54 AM, Achim Domma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm interested in details about how sets are implemented in python.
> They seem to be quite fast and I found some remarks who state, that
> the implementation is highly optimized. I need to imple
Hi,
I'm interested in details about how sets are implemented in python.
They seem to be quite fast and I found some remarks who state, that
the implementation is highly optimized. I need to implemented sets in
C/C++ and need a starting point on how to do it right. Could somebody
give
John Nagle wrote:
> Heikki Toivonen wrote:
>That's progress, but the build still doesn't work:
...
> during a C compile, we get
>
> SWIG/_m2crypto_wrap.c:2529:18: error: _lib.h: No such file or directory
>
> and the build goes downhill from there, with many compile errors in the
> GCC phase.
Heikki Toivonen wrote:
> John Nagle wrote:
>
>>But notice that the -D entry didn't appear on the SWIG command line.
>>Neither did the "-includeall". The "swig_opts" values around line
>>129 aren't actually being used. I think that's left over from the code
>>intended
>>to allow builds with Pytho
John Nagle wrote:
> But notice that the -D entry didn't appear on the SWIG command line.
> Neither did the "-includeall". The "swig_opts" values around line
> 129 aren't actually being used. I think that's left over from the code
> intended
> to allow builds with Python 2.3 and earlier. The "sel
Heikki Toivonen wrote:
> John Nagle wrote:
>
>>Back in March, I posted this:
>>
>>
>>>Hit that with OpenSSL. Red Hat took elliptical curve cryptography
>>>out of Fedora 6 for patent reasons. With that missing, M2Crypto won't
>>>build. It ought to; the implementor of M2Crypto thought of that
The original message was received at Mon, 11 Jun 2007 16:19:34 -0400
from [216.121.182.178]
- The following addresses had permanent fatal errors -
***
** Attachment document.scr was filtered.
***
** Attachment file.scr was filtered.
***--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 29 Mar 2007 16:45:08 -0300
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> If you think that Python got confused and has two duplicate modules, try
> to find them in sys.modules. Perhaps under the names 'log' and 'xxx.log'
> Or, using print, try to see *when* your global variable is res
En Thu, 29 Mar 2007 15:56:54 -0300, Mitko Haralanov <[EMAIL PROTECTED]>
escribió:
>> You may check if this is the case, looking at sys.modules
>
> I did look at sys.modules but I wasn't sure what to look for. There was
> a log module in the list but what else should I look for?
If you think tha
On Thu, 29 Mar 2007 15:43:46 -0300
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> Surely there is a ./resources/__init__.py too?
There sure is:
./resources/__init__.py is:
__all__ = ['simple', 'other']
> You may check if this is the case, looking at sys.modules
I did look at sys.modules but I
En Thu, 29 Mar 2007 14:42:33 -0300, Mitko Haralanov <[EMAIL PROTECTED]>
escribió:
> I have three modules that a comprising the problem:
> ./core.py
> ./log.py
> ./resources/simple/__init__.py
Surely there is a ./resources/__init__.py too?
> The problem that I am seeing is that 'global_info' in
Hi all,
I am going to do my best to describe the issue that I am having and
hopefully someone can shed some light on it:
I have three modules that a comprising the problem:
./core.py
./log.py
./resources/simple/__init__.py
core.py looks something like this (simplified version):
import log
class
--|||--
Request Management System - Time Inc.
---
To confirm this message was intended to be created as a request
in the Internet Technology Group's Request Management System,
please
[EMAIL PROTECTED] writes:
> alright, i'm coding a program that will log me into yahoo.com (so
> far), now, the problem i have is that once i've submitted by login &
> password, the program doesn't know whether yahoo.com accepted it.
> "
> response = ClientCookie.urlopen(form.click())
> "
>
> now,
alright, i'm coding a program that will log me into yahoo.com (so
far), now, the problem i have is that once i've submitted by login &
password, the program doesn't know whether yahoo.com accepted it.
"
response = ClientCookie.urlopen(form.click())
"
now, when i get an error, the contents of 'resp
roduct in c.Win32_Product (Caption=appname):
> > print product.Caption
> > # product.Uninstall ()
> >
> >
>
> Thanks Tim for the reply. I started looking along the same lines.
> It looks like, I need to give the Product details exactly as it is
> register
n
> # product.Uninstall ()
>
>
Thanks Tim for the reply. I started looking along the same lines.
It looks like, I need to give the Product details exactly as it is
registered(?).
Trying out stuff like:
>>> import wmi
>>> appname = "IsoBuster 1.9.1"
&g
This message was undeliverable due to the following reason(s):
Your message could not be delivered because the destination server was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely
e Add/Remove Program details and check if the application
| is present.
| 3) If present, then uninstall it.
|
| I want to understand the Python Win32 modules/calls that would helpful
| to me in this direction. Are there any? I don't want to do it as GUI
| automation using dogtail, as I want t
ogram details and check if the application
is present.
3) If present, then uninstall it.
I want to understand the Python Win32 modules/calls that would helpful
to me in this direction. Are there any? I don't want to do it as GUI
automation using dogtail, as I want to maintain a homogeneous
Your message was not delivered due to the following reason(s):
Your message could not be delivered because the destination computer was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most lik
Something like:
import csv
in_csv=csv.reader( file('your INPUT filenamehere.csv') )
out_csv=csv.writer( file('your OUPUT filenamehere.csv','wb') )
## If you have a header record on your input file, then
out_csv.writerow( in_csv.next() )
## Iterate over your input file
for row in in_csv:
# Row
Hi ALL,
I am sorry for not mentioning that I am new to python and scripting.
How can I add the above script to handle csv file. I want the script to
generate passwords in the passwords column/row in a csv file.
userid,realname,dateofB,passwd
The script should read the userid and genrate the pass
k.i.n.g. enlightened us with:
> Now I have to write a script to generate random password in the
> password field for each user. A simple algorithm is sufficient for
> passwords
Check out the source of pwsafe, it has a great password generator. It
can generate with different lengths, based on amoun
Kanthi skrev:
> I have a csv file which in taken as the input file for adding
> users in my linux mail server with the format
>
> userid,fullname,passwword,dateofbith
>
> Now I have to write a script to generate random password in the
> password field for each user. A simple algorithm is sufficie
import random
def rand_str(len):
chars = ''.join(['abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'1234567890',
'_+']) # plus whatever additional characters you
want
return ''.join([random.choice(chars) for i in ran
Hi,
I have a csv file which in taken as the input file for adding users in
my linux mail server with the format
userid,fullname,passwword,dateofbith
Now I have to write a script to generate random password in the
password field for each user. A simple algorithm is sufficient for
passwords
I bei
Python:
ActivePython 2.4.2 Build 10 (ActiveState
Corp.) based on
Python 2.4.2 (#67, Jan 17 2006, 15:36:03) [MSC
v.1310 32 bit (Intel)] on win32
-
win32ui:
Dont know how to get version info.
Little snippet
[code:1:f18a50c332]import win32ui
aa = sorted(dir(win32ui))
for i in
;content if on appropriate endian machine), which would make the bit
>>extraction comparable easy and effective as the i.__hex__() based method.
>>Using digits() instead of the code you have provided speeds the whole
>>thing up two times (see attached code for details), but stil
ld make the bit
>extraction comparable easy and effective as the i.__hex__() based method.
>Using digits() instead of the code you have provided speeds the whole
>thing up two times (see attached code for details), but still is
>i.__hex__() the best way to go and could be improve
he internal representation is surprising). Basically it
gives the implementor of a Python interpreter the freedom to choose the
internal representation that he deems to be the most fitting. If
implementation details leaked outside that wouldn't be possible anymore.
Cheers,
Carl Friedrich Bolz
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
> Claudio Grondi <[EMAIL PROTECTED]> writes:
>
>>The question is if Python allows somehow access to the bytes of the
>>representation of a long integer or integer in computers memory?
>
>
> No it doesn't, and that's a good thing, since the internal
> representation is a little
Claudio Grondi <[EMAIL PROTECTED]> wrote:
...
> What I am also looking for is a conversion to base 256 (i.e where the
> full byte is used and the string and the integer have the same actual
> content if on appropriate endian machine), which would make the bit
gmpy supplies that, too:
gmpy.bi
Claudio Grondi wrote:
>> You can get somewhat faster in Python than your code if you avoid
>> producing new long objects all the time, and do the task in chunks of 30
>> bits.
>
> It would be nice if you could explain why you consider chunks of 30 bits
> to be superior e.g. to chunks of 32 bits?
.
What I am also looking for is a conversion to base 256 (i.e where the
full byte is used and the string and the integer have the same actual
content if on appropriate endian machine), which would make the bit
extraction comparable easy and effective as the i.__hex__() based method.
Using digits()
Claudio Grondi wrote:
> Martin v. Löwis wrote:
> > You can get somewhat faster in Python than your code if you avoid
> > producing new long objects all the time, and do the task in chunks of 30
> > bits.
> It would be nice if you could explain why you consider chunks of 30 bits
> to be superior e.g
1 - 100 of 134 matches
Mail list logo